Ubuntu server 10.04 and Vivotek IP cams

Forum for questions and support relating to the 1.24.x releases only.
Locked
fkas
Posts: 4
Joined: Thu Sep 16, 2010 7:17 pm

Ubuntu server 10.04 and Vivotek IP cams

Post by fkas »

Hello everyone!

I have tried for several weeks now getting a few IP cams working with ZoneMinder. I did however get it working on 10.04 desktop.
I still do not have streaming video when I select a cam, did a lot of looking arround though to get it working but no result yet.

Installed Webmin so it would be easier checking the logfiles which are looking like below;
# /var/log/sys
Sep 16 11:24:31 server02 zmc_m1[1060]: WAR [Discarding packet for unrecognised ssrc 229640ca]
Sep 16 11:24:31 server02 zmc_m1[1060]: WAR [Discarding packet for unrecognised ssrc 4395a85e]
Sep 16 11:24:31 server02 zmc_m1[1060]: WAR [Discarding packet for unrecognised ssrc df04d4f4]
Sep 16 11:24:31 server02 zmc_m1[1060]: WAR [Discarding packet for unrecognised ssrc fddaa053]
Sep 16 11:24:31 server02 zmc_m1[1060]: WAR [Discarding packet for unrecognised ssrc 772a851a]
Sep 16 11:24:31 server02 zmdc[1038]: INF ['zmc -m 1' crashed, signal 8]
Sep 16 11:24:31 server02 zmdc[1038]: INF ['zmfilter.pl ' stopping at 10/09/16 11:24:31]
Sep 16 11:24:31 server02 zmdc[1038]: INF ['zmfilter.pl ' exited, signal 14]
Sep 16 11:24:31 server02 zmdc[1038]: INF ['zmwatch.pl ' stopping at 10/09/16 11:24:31]
Sep 16 11:24:31 server02 zmdc[1038]: INF ['zmwatch.pl ' exited, signal 14]
Sep 16 11:24:31 server02 zmdc[1038]: INF ['zmaudit.pl -c' stopping at 10/09/16 11:24:31]
Sep 16 11:24:31 server02 zmdc[1038]: INF ['zmaudit.pl -c' exited, signal 14]
Sep 16 11:24:41 server02 zmdc[1038]: INF [Server shutdown at 10/09/16 11:24:41]
Sep 16 11:26:02 server02 init: tty1 main process ended, respawning
Sep 16 11:36:02 server02 kernel: [ 940.050037] [drm] nouveau 0000:01:00.0: Setting dpms mode 1 on vga encoder (output 2)
Sep 16 11:39:01 server02 CRON[1699]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Sep 16 12:09:01 server02 CRON[1960]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Sep 16 12:17:01 server02 CRON[2014]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Sep 16 12:39:01 server02 CRON[2227]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Sep 16 13:09:01 server02 CRON[2487]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Sep 16 13:17:01 server02 CRON[2540]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
# Apache Error log
[Thu Sep 16 11:21:43 2010] [error] [client 192.168.2.108] socket_sendto( /tmp/zms-013343s.sock ) failed: No such file or directory, referer: http://192.168.2.109/?view=watch&mid=1
[Thu Sep 16 11:21:43 2010] [error] [client 192.168.2.108] array (\n 0 => \n array (\n 'file' => '/usr/share/zoneminder/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-013343s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/share/zoneminder/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/usr/share/zoneminder/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.2.109/?view=watch&mid=1
[Thu Sep 16 11:24:41 2010] [error] [client 192.168.2.108] File does not exist: /usr/share/zoneminder/favicon.ico
[Thu Sep 16 19:37:25 2010] [error] [client 192.168.2.101] File does not exist: /usr/share/zoneminder/zm
[Thu Sep 16 19:37:28 2010] [error] [client 192.168.2.101] File does not exist: /usr/share/zoneminder/favicon.ico
[Thu Sep 16 21:30:43 2010] [notice] caught SIGTERM, shutting down
[Thu Sep 16 21:31:56 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.2 with Suhosin-Patch configured -- resuming normal operations
[Thu Sep 16 21:32:38 2010] [error] [client 192.168.2.101] PHP Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /usr/share/zoneminder/includes/functions.php on line 808, referer: http://192.168.2.109/index.php
[Thu Sep 16 21:32:38 2010] [error] [client 192.168.2.101] PHP Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /usr/share/zoneminder/includes/functions.php on line 813, referer: http://192.168.2.109/index.php
[Thu Sep 16 21:32:38 2010] [error] [client 192.168.2.101] PHP Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /usr/share/zoneminder/includes/functions.php on line 818, referer: http://192.168.2.109/index.php
fkas
Posts: 4
Joined: Thu Sep 16, 2010 7:17 pm

Post by fkas »

ZoneMinder 1.24.2
Vivotek FD7131
AMD64 CPU

Anybody with suggestions?
fkas
Posts: 4
Joined: Thu Sep 16, 2010 7:17 pm

Post by fkas »

I managed to solve some issue's but not all, these are still in the logs.

* Apache error log

[Fri Sep 17 10:44:49 2010] [error] [client 192.168.2.101] socket_sendto( /tmp/zms-079416s.sock ) failed: No such file or directory, referer: http://192.168.2.109/?view=watch&mid=1
[Fri Sep 17 10:44:49 2010] [error] [client 192.168.2.101] array (\n 0 => \n array (\n 'file' => '/usr/share/zoneminder/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-079416s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/share/zoneminder/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/usr/share/zoneminder/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.2.109/?view=watch&mid=1
[Fri Sep 17 10:44:53 2010] [error] [client 192.168.2.101] PHP Deprecated: Function split() is deprecated in /usr/share/zoneminder/skins/classic/views/monitor.php on line 129, referer: http://192.168.2.109/

* /var/log/syslog

Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc 45d048f7]
Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc 2e164b66]
Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc 268d545c]
Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc a29ff324]
Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc d38f87ce]
Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc fa6c9485]
Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc 37b62205]
Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc fc391e57]
Sep 17 10:46:42 server02 zmc_m1[1028]: WAR [Discarding packet for unrecognised ssrc 82fd81c1]
fkas
Posts: 4
Joined: Thu Sep 16, 2010 7:17 pm

Apache issue's and no video stream.

Post by fkas »

Hello anybody, please reply!

If I check all zm logs it looks like "allmost" everything is working accept the fact that I can't get video in my browser.
Allready did some surging but couldn't figure it out.

Ubuntu server 10.04
X86_amd64
ZoneMinder 1.24.2
ZoneMinder = /usr/share/zoneminder
apache.conf & zm.conf = /etc/zm

I don't know if the problems in both the apache2/error- and syslog are related.
Apache2error.log
[Thu Sep 30 09:42:48 2010] [error] [client 192.168.2.101] socket_sendto( /tmp/zms-882018s.sock ) failed: No such file or directory, referer: http://192.168.2.109/index.php?view=watch&mid=1
[Thu Sep 30 09:42:48 2010] [error] [client 192.168.2.101] array (\n 0 => \n array (\n 'file' => '/usr/share/zoneminder/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-882018s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/share/zoneminder/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/usr/share/zoneminder/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.2.109/index.php?view=watch&mid=1
[Thu Sep 30 09:42:56 2010] [error] [client 192.168.2.101] socket_sendto( /tmp/zms-882018s.sock ) failed: No such file or directory, referer: http://192.168.2.109/index.php?view=watch&mid=1
[Thu Sep 30 09:42:56 2010] [error] [client 192.168.2.101] array (\n 0 => \n array (\n 'file' => '/usr/share/zoneminder/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-882018s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/share/zoneminder/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/usr/share/zoneminder/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.2.109/index.php?view=watch&mid=1

var/log/syslog
Sep 30 09:48:13 server02 zmc_m1[2374]: WAR [Discarding packet for unrecognised ssrc 595f0311]
Sep 30 09:48:13 server02 zmc_m1[2374]: WAR [Discarding packet for unrecognised ssrc 70560ad]

zm_debug.log
09/30/10 09:42:27.611255 zms[-1].INF-zm_debug.c/292 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.02436]
09/30/10 09:42:27.611521 zms[-1].DB1-zms.cpp/98 [Query: mode=mpeg&monitor=1&scale=100&bitrate=75000&maxfps=10&format=swf&buffer=1000&connkey=882018&rand=1285832547]
09/30/10 09:42:27.611964 zms[-1].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
09/30/10 09:42:27.612734 zms[-1].DB1-zm_monitor.cpp/338 [monitor purpose=0]
09/30/10 09:42:27.612777 zms[-1].DB1-zm_monitor.cpp/345 [mem.size=13825844]
09/30/10 09:42:27.612967 zms[-1].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
09/30/10 09:42:27.617900 zms[-1].DB1-zm_monitor.cpp/458 [Monitor FD7131 has function 2]
09/30/10 09:42:27.617909 zms[-1].DB1-zm_monitor.cpp/459 [Monitor FD7131 LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
09/30/10 09:42:27.617915 zms[-1].DB1-zm_monitor.cpp/460 [Monitor FD7131 IBC = 60, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
09/30/10 09:42:27.617927 zms[-1].DB1-zm_monitor.cpp/2459 [Loaded monitor 1(FD7131), 0 zones]
09/30/10 09:42:27.618077 zms[-1].DB3-zm_stream.cpp/58 [FPS:0.00, MXFPS:10.00, BFPS:0.00, EFPS:0.00, FM:1]
09/30/10 09:42:27.618105 zms[-1].DB3-zm_stream.cpp/65 [aEFPS:0.00, aFM:1]
09/30/10 09:42:27.618113 zms[-1].DB2-zm_monitor.cpp/3374 [Checking swap image location]
09/30/10 09:42:27.618119 zms[-1].DB3-zm_monitor.cpp/3375 [Checking swap image path]
09/30/10 09:42:27.618153 zms[-1].DB3-zm_monitor.cpp/2868 [Swap path '/tmp/zmswap-m1/zmswap-q882018' missing, creating]
09/30/10 09:42:27.618224 zms[-1].DB2-zm_monitor.cpp/3396 [Assigning temporary buffer]
09/30/10 09:42:27.625512 zms[-1].DB2-zm_monitor.cpp/3399 [Assigned temporary buffer]
09/30/10 09:42:28.125665 zms[-1].ERR-zm_monitor.cpp/3579 [Terminating, last frame sent time 1285832547.625576 secs more than maximum of 10.000000]
09/30/10 09:42:28.125783 zms[-1].DB1-zm_monitor.cpp/3588 [Cleaning swap files from /tmp/zmswap-m1/zmswap-q882018]
09/30/10 09:42:28.125888 zms[-1].DB1-zm_monitor.cpp/3616 [Can't glob '/tmp/zmswap-m1/zmswap-q882018/*.*': 3]
Locked