Page 1 of 1
can't stat '/tmp/zm'
Posted: Mon Jan 08, 2018 12:00 am
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 (132.66 KiB) Viewed 4064 times
Can you help?
Best,
A.
Re: can't stat '/tmp/zm'
Posted: Mon Jan 08, 2018 3:23 pm
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.
Re: can't stat '/tmp/zm'
Posted: Mon Jan 08, 2018 10:38 pm
by alex_peri
Thanks, that worked!!!
Re: can't stat '/tmp/zm'
Posted: Tue Jan 09, 2018 10:11 am
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?
Re: can't stat '/tmp/zm'
Posted: Tue Jan 09, 2018 5:34 pm
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
Re: can't stat '/tmp/zm'
Posted: Thu Aug 09, 2018 11:33 pm
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