can't stat '/tmp/zm'

Forum for questions and support relating to the 1.30.x releases only.
Locked
alex_peri
Posts: 5
Joined: Sun Jan 07, 2018 5:37 pm

can't stat '/tmp/zm'

Post by alex_peri »

Hi all,

I have installed Zoneminder v 1.30.4 on an Oracle VM VirtualBox running Debian.
Zoneminder installed correctly (as far as I could see) with no errors.

I have a Trendnet IP camera which I configured and is being monitored and I can see the live streaming.
In the log though I noticed a number of errors can't stat '/tmp/zm'
Please see image attached
ZM.JPG
ZM.JPG (132.66 KiB) Viewed 4038 times
Can you help?

Best,
A.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: can't stat '/tmp/zm'

Post by knight-of-ni »

Common problem with the Debian packages. The root cause is /tmp/zm is on private tmpfs folder. One process creates the files and folders but other processes can't read it, because it's private.

To fix, go to web portal and click Options-> Paths and change the swap path from /tmp/zm to /dev/shm.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
alex_peri
Posts: 5
Joined: Sun Jan 07, 2018 5:37 pm

Re: can't stat '/tmp/zm'

Post by alex_peri »

Thanks, that worked!!!
cannca
Posts: 3
Joined: Sun Jan 07, 2018 11:54 am

Re: can't stat '/tmp/zm'

Post by cannca »

hello, were you able to get live view on the trendnet?
I'm stuck in this error?

2018-01-07 19:13:01.788130 zmdc 683 INF 'zmc -m 1' crashed, signal 4 zmdc.pl
2018-01-07 19:12:59.066110 zmdc 1119 INF 'zmc -m 1' started at 18/01/07 18:12:59 zmdc.pl
2018-01-07 19:12:59.054270 zmdc 683 INF 'zmc -m 1' starting at 18/01/07 18:12:59, pid = 1119 zmdc.pl
2018-01-07 19:12:55.819920 zmwatch 739 INF Restarting capture daemon for Monitor-1, shared data not valid zmwatch.pl
2018-01-07 19:12:55.533920 zmwatch 739 ERR Memory map file '/tmp/zm/zm.mmap.1' does not exist. zmc might not be running. zmwatch.pl

Some help?
alex_peri
Posts: 5
Joined: Sun Jan 07, 2018 5:37 pm

Re: can't stat '/tmp/zm'

Post by alex_peri »

I have the same error 'zmc -m 1' crashed, signal 4 zmdc.p
but I can still see the video stream.
The Pan and tilt does not appear.
I notice that the camera works only in explorer and not in firefox so needs ActiveX
Pedulla
Posts: 167
Joined: Thu Nov 27, 2014 11:16 am
Location: Portland, Or

Re: can't stat '/tmp/zm'

Post by Pedulla »

knight-of-ni wrote: Mon Jan 08, 2018 3:23 pm Common problem with the Debian packages. The root cause is /tmp/zm is on private tmpfs folder. One process creates the files and folders but other processes can't read it, because it's private.

To fix, go to web portal and click Options-> Paths and change the swap path from /tmp/zm to /dev/shm.
OMG!

I'm posting this so just in case someone tries to do what I did, the key words might bring this up and save them the hassle.

I had the same issue with / filling or being too close to full to be comfortable so I thought I'd do a clever bind mount to a directory along side the event storage.... :/
I did a

Code: Select all

sudo mount --bind /var/cache/zoneminder/tmp /tmp/zm
to test the theory and zoneminder started.
So I added the bind mount to /etc/fstab to make it automatic.

I'm such a dork. Just change the configuration option above.

Hah! Happy Zone'ing
Locked