Hmmm. I was able to get a live version from source compiled by making a new ebuild (took some hacking as the old one was from the svn days and needed to be changed to git) but now I am running into some more serious issues.
1. At localhost/zm I see the following in the upper corner:
(note: some log entries altered to get around spam filter)
Code: Select all
Warning: disk_total_space(): No such file or directory in /usr/share/zoneminder/www /includes/functions.php on line 1642
Warning: disk_free_space(): No such file or directory in /usr/share/zoneminder/www /includes/functions.php on line 1643
Warning: Division by zero in /usr/share/zoneminder/www /includes/functions.php on line 1643
2. While going through the options and in adding a new monitor I get various messages like:
Code: Select all
Notice: Undefined variable: Server in /usr/share/zoneminder/www /skins/classic/views/monitor.php on line 46
3. Symptom: I get a white screen now after defining my camera source and I cannot view it. This is despite using the same source and other settings as before.
4. Some log entries:
Code: Select all
zm_monitor.cpp 3160
2015-10-16 16:04:30.309182 zmc_m1 3206 INF dlink1: 12000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 16:03:56.546432 zmc_m1 3206 INF dlink1: 11000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 16:03:22.683094 zmc_m1 3206 INF dlink1: 10000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 16:02:48.900656 zmc_m1 3206 INF dlink1: 9000 - Capturing at 26.32 fps zm_monitor.cpp 3160
2015-10-16 16:02:10.628165 zmc_m1 3206 INF dlink1: 8000 - Capturing at 19.61 fps zm_monitor.cpp 3160
2015-10-16 16:01:19.858634 zmc_m1 3206 INF dlink1: 7000 - Capturing at 30.30 fps zm_monitor.cpp 3160
2015-10-16 16:00:46.111322 zmc_m1 3206 INF dlink1: 6000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 16:00:12.266263 zmc_m1 3206 INF dlink1: 5000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 15:59:38.516206 zmc_m1 3206 INF dlink1: 4000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 15:59:04.741396 zmc_m1 3206 INF dlink1: 3000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 15:58:30.933852 zmc_m1 3206 INF dlink1: 2000 - Capturing at 30.30 fps zm_monitor.cpp 3160
2015-10-16 15:57:57.303035 web_php 3057 ERR socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2347
2015-10-16 15:57:57.116103 zmc_m1 3206 INF dlink1: 1000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 15:57:54.678153 web_php 3055 ERR socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory /usr/share/zoneminder/www /includes/functions.php 2347
2015-10-16 15:57:54.297761 web_js 3057 ERR getStreamCmdResponse stream error: socket_bind( /run/zm/zms-881943w.sock ) failed: Address already in use - checkStreamForErrors() ?view=watch
2015-10-16 15:57:54.231339 web_php 3057 ERR socket_bind( /run/zm/zms-881943w.sock ) failed: Address already in use /usr/share/zoneminder/www /includes/functions.php 2347
2015-10-16 15:57:51.672379 web_js 3055 ERR getStreamCmdResponse stream error: socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2015-10-16 15:57:51.607117 web_php 3055 ERR socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory /usr/share/zoneminder/www /includes/functions.php 2347
2015-10-16 15:57:48.603899 web_js 3055 ERR getStreamCmdResponse stream error: socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2015-10-16 15:57:48.498089 web_php 3057 ERR socket_sendto( /run/zm/zms-881943s.sock ) failed: No such file or directory /usr/share/zoneminder/www /includes/functions.php 2347
2015-10-16 15:57:24.006870 zmwatch 3219 INF Watchdog pausing for 30 seconds
This is what happens when I try to view my monitor:
Code: Select all
2015-10-16 16:08:26.779038 zmc_m1 3206 INF dlink1: 19000 - Capturing at 29.41 fps zm_monitor.cpp 3160
2015-10-16 16:08:18.214647 web_php 3057 ERR socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2347
2015-10-16 16:08:15.210666 web_js 3057 ERR getStreamCmdResponse stream error: socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2015-10-16 16:08:15.155136 web_php 3057 ERR socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory /usr/share/zoneminder/www /includes/functions.php 2347
2015-10-16 16:08:12.105357 web_js 3055 ERR getStreamCmdResponse stream error: socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2015-10-16 16:08:12.005600 web_php 3055 ERR socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory /usr/share/zoneminder/www /includes/functions.php 2347
2015-10-16 16:07:52.988089 zmc_m1 3206 INF dlink1: 18000 - Capturing at 30.30 fps
/var/log/apache2/error.log:
Code: Select all
[Fri Oct 16 16:08:12 2015] [error] [client 127.0.0.1] PHP Warning: Division by zero in /usr/share/zoneminder/www/includes/functions.php on line 1643, referer: localhost/zm/index.php
[Fri Oct 16 16:08:15 2015] [error] [client 127.0.0.1] ERR [socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory], referer: localhost/zm/index.php?view=watch&mid=1
[Fri Oct 16 16:08:18 2015] [error] [client 127.0.0.1] ERR [socket_sendto( /run/zm/zms-201093s.sock ) failed: No such file or directory], referer: localhost/zm/index.php?view=watch&mid=1
[Fri Oct 16 16:08:24 2015] [error] [client 127.0.0.1] client denied by server configuration: /usr/htdocs, referer: localhost/zm/index.php?view=log
[Fri Oct 16 16:08:24 2015] [error] [client 127.0.0.1] File does not exist: /usr/share/zoneminder/www/skins/classic/css/graphics, referer: localhost/zm/skins/classic/css/classic/skin.css
[Fri Oct 16 16:09:13 2015] [error] [client 127.0.0.1] PHP Warning: disk_total_space(): No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 1642, referer: localhost/zm/index.php
[Fri Oct 16 16:09:13 2015] [error] [client 127.0.0.1] PHP Warning: disk_free_space(): No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 1643, referer: localhost/zm/index.php
[Fri Oct 16 16:09:13 2015] [error] [client 127.0.0.1] PHP Warning: Division by zero in /usr/share/zoneminder/www/includes/functions.php on line 1643, referer: localhost/zm/index.php
Paths appear to be good. They all seem to have the apache:apache ownership.
I do notice lots of .sock entries in /run/zm (which I set to 777 for testing though it is apache:apache ownership)
Code: Select all
srwxr-xr-x 1 apache apache 0 Oct 16 15:57 zmdc.sock
-rw-r--r-- 1 apache apache 4 Oct 16 15:57 zm.pid
srwxr-xr-x 1 apache apache 0 Oct 15 22:51 zms-025254s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:30 zms-197412w.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:35 zms-219556s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:35 zms-225268s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:41 zms-228533s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:32 zms-233718s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:32 zms-238645s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:32 zms-262680s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 07:29 zms-325430s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 17:24 zms-438571s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 19:11 zms-465452s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 17:32 zms-490216s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 17:24 zms-507972s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:38 zms-585137s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:39 zms-591750s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 17:33 zms-669011s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 21:17 zms-741615w.sock
srwxr-xr-x 1 apache apache 0 Oct 15 19:11 zms-769902s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 11:11 zms-825946s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 22:50 zms-840291s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 22:52 zms-854710s.sock
srwxr-xr-x 1 apache apache 0 Oct 16 01:30 zms-858231s.sock
srwxr-xr-x 1 apache apache 0 Oct 15 18:16 zms-915645w.sock
I have a feeling there is something stupid that I did wrong but I cannot find it. Any ideas? Should I try re-installing the official release again and verifying that it works (minus the crashing error when losing the stream)?
BTW, I deleted the old mysql database and started fresh with a new one.
Thanks.