I use Arch Linux for all my needs at home and would really like to setup a home security camera system using ZoneMinder running on an Arch Linux VM.
I have created my VM and passed a USB webcam to it from the host system, which is available in the VM as /dev/video0.
I have followed the Arch Wiki page for Zoneminder (https://wiki.archlinux.org/index.php/ZoneMinder) and installed the zoneminder package from the Arch User Repositiry (https://aur.archlinux.org/packages/zoneminder/).
After completing this I've managed to get into the ZoneMinder web interface and add a new "local monitor" using the webcam on /dev/video0 but when I try to view it I just see a blank white box where the image should be, and the video image never appears. Although the blue light on the camera is on ...
The zoneminder log is showing the following issues repeatedly ...
Code: Select all
2017-10-31 14:18:39.318678 web_php 1525 ERR disk_total_space returned false. Verify the web account user has access to /dev/shm zoneminder/includes/functions.php 1450
2017-10-31 14:13:45.741420 zms 1534 ERR Terminating, last frame sent time 1509459225.241306 secs more than maximum of 10.000000 zm_monitor.cpp 4213
2017-10-31 14:13:45.196412 web_js 617 ERR getStreamCmdResponse stream error: Socket /var/lib/zoneminder/sock/zms-514994s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors() ?view=watch
2017-10-31 14:13:44.975230 web_php 617 ERR Socket /var/lib/zoneminder/sock/zms-514994s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. zoneminder/includes/functions.php 2033
Can anybody help with this?
Many thanks - Justin