Camera Page Constantly Reloads - No Image

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
ss32
Posts: 5
Joined: Sun Feb 10, 2019 2:10 pm

Camera Page Constantly Reloads - No Image

Post by ss32 »

###############################################

Edit: This was solved and came back, and then solved again. See post 5.

###############################################


Fresh install of 1.32.3 on Ubuntu Server 18.04 following this guide

I'm able to view the stream in VLC with no issues, and when testing yesterday on a docker container running 1.33.1 everything worked great. /dev/shm is only at 5% use and this is the only camera I have enabled. The camera is a WyzeCam v2 running the Xiaomi-Dafang firmware.

I do see an error in the logs

Code: Select all

Socket /var/run/zm/zms-886903s.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.
But I also see that the camera is streaming....

Code: Select all

2019-02-10 08:52:52	zmc_m2		4170	INF	Cam1: images:6100 - Capturing at 25.00 fps, capturing bandwidth 521932bytes/sec	zm_monitor.cpp	2477
2019-02-10 08:52:48	zmc_m2		4170	INF	Cam1: images:6000 - Capturing at 25.00 fps, capturing bandwidth 524739bytes/sec	zm_monitor.cpp	2477
2019-02-10 08:52:44	zmc_m2		4170	INF	Cam1: images:5900 - Capturing at 20.00 fps, capturing bandwidth 394033bytes/sec	zm_monitor.cpp	2477
2019-02-10 08:52:39	zmc_m2		4170	INF	Cam1: images:5800 - Capturing at 25.00 fps, capturing bandwidth 534370bytes/sec	zm_monitor.cpp	2477
2019-02-10 08:52:35	zmc_m2		4170	INF	Cam1: images:5700 - Capturing at 25.00 fps, capturing bandwidth 497959bytes/sec	zm_monitor.cpp	2477
2019-02-10 08:52:31	zmc_m2		4170	INF	Cam1: images:5600 - Capturing at 20.00 fps, capturing bandwidth 399653bytes/sec
Has the "Paths" page been removed from the options? It seems to be missing in my console.
Image

And there is a socket in /var/run/zm but of a different name than the one in the logs

Code: Select all

# ll /var/run/zm
total 8
drwxr-xr-x  2 www-data www-data  100 Feb 10 14:48 ./
drwxr-xr-x 32 root     root     1080 Feb 10 14:32 ../
-rw-r--r--  1 www-data www-data    4 Feb 10 14:01 zmaudit.pid
srwxr-xr-x  1 www-data www-data    0 Feb 10 14:01 zmdc.sock=
-rw-r--r--  1 www-data www-data    4 Feb 10 14:01 zm.pid
Camera configuration:

Image
Image
Image
Last edited by ss32 on Sun Feb 10, 2019 6:16 pm, edited 4 times in total.
ss32
Posts: 5
Joined: Sun Feb 10, 2019 2:10 pm

Re: Camera Page Constantly Reloads - No Image

Post by ss32 »

I have found ZM_PATH_ZMS in /etc/zm/conf.d/01-system-paths.conf and changed it to reflect the location of nph-zms

Code: Select all

# locate nph-zms
/usr/lib/zoneminder/cgi-bin/nph-zms
But I'm still seeing the same errors in the logs.

edit: Per the comment here - https://github.com/ZoneMinder/zoneminde ... t-62621247 - the path needs to be relative to the webroot. I have tried

Code: Select all

/zm/cgi-bin/nph-zms
/zoneminder/cgi-bin/nph-zms
/cgi-bin/nph-zms
as well with no luck.
ss32
Posts: 5
Joined: Sun Feb 10, 2019 2:10 pm

Re: Camera Page Constantly Reloads - No Image

Post by ss32 »

Solved:

Reinstalled everything from scratch, using only the LAMP stack. I think something got crossed when I installed previously and I had some weird hybrid of LAMP/LEMP.

For posterity, from a fresh install of 18.04 server:

Code: Select all

apt update;apt upgrade -y; apt install openssh-server -y
add-apt-repository ppa:iconnor/zoneminder
add-apt-repository ppa:iconnor/zoneminder-1,32
apt update
apt install zoneminder
cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
vi /etc/mysql/my.cnf
     L40: sql_mode = NO_ENGINE_SUBSTITUTION
systemctl restart mysql
systemctl enable zoneminder.service
adduser www-data video
systemctl start zoneminder.service
a2enmod cgi
a2enmod rewrite
a2enconf zoneminder
vi /etc/php/7.2/apache2/php.ini
	L939: date.timezone = America/Chicago
chown -R www-data:www-data /usr/share/zoneminder/
service apache2 restart
ss32
Posts: 5
Joined: Sun Feb 10, 2019 2:10 pm

Re: Camera Page Constantly Reloads - No Image

Post by ss32 »

The same problem popped up again after I changed the admin password from the default.

Code: Select all

Feb 10 17:56:27 cambox zms_m1[698]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:27 cambox web_php[32483]: ERR [Socket /var/run/zm/zms-826063s.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
Feb 10 17:56:28 cambox zms_m1[699]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:28 cambox zma_m1[32482]: INF [zma_m1] [Cam1: 10000 - Analysing at 16.67 fps]
Feb 10 17:56:29 cambox zms_m1[703]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:30 cambox zmc_m1[32476]: INF [zmc_m1] [Cam1: images:12400 - Capturing at 25.00 fps, capturing bandwidth 527003bytes/sec]
Feb 10 17:56:33 cambox zma_m1[32482]: INF [zma_m1] [Cam1: 10100 - Analysing at 20.00 fps]
Feb 10 17:56:35 cambox zmc_m1[32476]: INF [zmc_m1] [Cam1: images:12500 - Capturing at 20.00 fps, capturing bandwidth 439671bytes/sec]
Feb 10 17:56:38 cambox zma_m1[32482]: INF [zma_m1] [Cam1: 10200 - Analysing at 20.00 fps]
Feb 10 17:56:39 cambox zmc_m1[32476]: INF [zmc_m1] [Cam1: images:12600 - Capturing at 25.00 fps, capturing bandwidth 520269bytes/sec]
Feb 10 17:56:42 cambox zms_m1[711]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:42 cambox zms_m1[712]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:42 cambox web_php[491]: ERR [Socket /var/run/zm/zms-786642s.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 t
Feb 10 17:56:42 cambox zms_m1[713]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:43 cambox zmc_m1[32476]: INF [zmc_m1] [Cam1: images:12700 - Capturing at 25.00 fps, capturing bandwidth 506822bytes/sec]
Feb 10 17:56:43 cambox zms_m1[717]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:43 cambox web_php[32466]: ERR [Socket /var/run/zm/zms-758715s.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
Feb 10 17:56:44 cambox zma_m1[32482]: INF [zma_m1] [Cam1: 10300 - Analysing at 16.67 fps]
Feb 10 17:56:44 cambox zms_m1[718]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:44 cambox zms_m1[722]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:44 cambox web_php[32460]: ERR [Socket /var/run/zm/zms-097775s.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
Feb 10 17:56:45 cambox zms_m1[723]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:45 cambox zms_m1[727]: ERR [zms_m1] [Unable to authenticate user]
Feb 10 17:56:46 cambox web_php[32459]: ERR [Socket /var/run/zm/zms-983498s.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
Feb 10 17:56:46 cambox zms_m1[728]: ERR [zms_m1] [Unable to authenticate user]
ss32
Posts: 5
Joined: Sun Feb 10, 2019 2:10 pm

Re: Camera Page Constantly Reloads - No Image

Post by ss32 »

Post Reply