No image with Vivotek FD8361 IP POE

Forum for questions and support relating to the 1.24.x releases only.
Locked
flabbergasted
Posts: 4
Joined: Tue Aug 18, 2009 3:32 pm
Location: Louisiana State, uSA

No image with Vivotek FD8361 IP POE

Post by flabbergasted »

I have been trying for about a year and a half, (on and off) to get any one of my cameras to work with ZM. I recently purchased two Vivotek FD8361 IP POE
cameras since Vivotek cameras are not IE dependent cameras. I think that I am on the verge of getting them to work and I think the problem has something to do with the apache2 server not being able to deliver something. Below are entries from the logs and some details about my system.

I am using Ubuntu 10.04 LTS and Zoneminder 1.24.2 set to High bandwidth and I installed ZM using the Ubuntu repository.

Code: Select all

uname -a
Linux workhorse 2.6.32-26-generic #47-Ubuntu SMP Wed Nov 17 15:58:05 UTC 2010 x86_64 GNU/Linux
This is run on an HP Pavillion m7557c with two AMD Athlons 64 x 2 Dual Core Processor 4600+ and 4 gigs of ram that I just installed in this last week.


The following occurs when I attempt to view the monitor. BTW, both the function and source are green until zmdc crashes with signal 6. When I click on the source to edit it and save the changes, whether I make any or not, it will turn back to green again.
==> /var/log/apache2/error.log <Sun> \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/zm/zms-188082s.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://workhorse.peoplezoo.net/zm/index ... atch&mid=1
[Sun Nov 28 21:03:32 2010] [error] [client 127.0.1.1] socket_sendto( /tmp/zm/zms-188082s.sock ) failed: No such file or directory, referer: http://workhorse.peoplezoo.net/zm/index ... atch&mid=1
[Sun Nov 28 21:03:32 2010] [error] [client 127.0.1.1] 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/zm/zms-188082s.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://workhorse.peoplezoo.net/zm/index ... atch&mid=1
[Sun Nov 28 21:03:44 2010] [error] [client 127.0.1.1] socket_sendto( /tmp/zm/zms-188082s.sock ) failed: No such file or directory, referer: http://workhorse.peoplezoo.net/zm/index ... atch&mid=1
The following is appearing in both messages and zmdc.log.
==> /var/log/messages <Nov> /var/log/messages <==
Nov 28 21:07:44 workhorse zma_m1[3903]: last message repeated 9 times
Nov 28 21:07:44 workhorse zmdc[3743]: INF ['zmc -m 1' crashed, signal 6]
Nov 28 21:07:44 workhorse zmdc[3743]: INF [Starting pending process, zmc -m 1]
Nov 28 21:07:44 workhorse zmdc[3743]: INF ['zmc -m 1' starting at 10/11/28 21:07:44, pid = 3917]
Nov 28 21:07:44 workhorse zmdc[3917]: INF ['zmc -m 1' started at 10/11/28 21:07:44]
Nov 28 21:07:44 workhorse zmc_m1[3917]: INF [Debug Level = 0, Debug Log = <none>]
Nov 28 21:07:44 workhorse zmc_m1[3917]: INF [New Debug Level = 9, New Debug Log = /var/log/zm/zm_debug.log.03917]
I created a subdirectory under /var/run for zoneminder and made the owner and group www-data just to make sure that the entry I am seeing in the apache2 error log wasn't caused by a permissions issue. Of course I changed the path in the options settings in zoneminder. The specific log entry I thought might have something to do with it is,"
[Sun Dec 05 18:20:47 2010] [error] [client 127.0.1.1] socket_sendto( /var/run/zoneminder/zms-945461s.sock ) failed: No such file or directory, referer: http://workhorse.peoplezoo.net/zm/index ... atch&mid=1
I was getting this same message before the creation of the new sub directory and changing the path in options.

The following are the settings for the source from the cameras.

Source Type: Remote
Function: Modect
Max FPS: 20
Alarm FPS: 15
Remote Protocol: RTSP
Remote Method: RTP/RTSP
Remote Host Name: 192.168.1.113
Remote Host Port: 554
Remote Host Path: /live2.mjpg (Also tried /cgi-bin/live2.mjpg)
Remote Image Colors: 24 bit
Capture Width: 640
Capture Height: 480

I have tried it with and without the cgi-bin/ in the path. When I click on the Monitor to view the streaming image the status bar just hangs on "Waiting for workhorse.peoplezoo.net" and results in the apache2 log entries above.

I could really use some help with this. If there is any other info I could provide, I will be happy to post it.

The manual for this particular camera is located at http://www.vivotek.com/downloads/downlo ... ick=FD8361

I would love to help with getting some presets for this camera as it is an excellent camera and it might open the door to another camera to add to the list of easy to install cameras in zoneminder.
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Post by lyallp »

Does /tmp/zm directory exist?
...Lyall
flabbergasted
Posts: 4
Joined: Tue Aug 18, 2009 3:32 pm
Location: Louisiana State, uSA

Post by flabbergasted »

Yes, it does. I changed the directory to /var/run/zoneminder tonight. I may have some logs from before and after in the same post. :oops: It had no effect.

Tonight I changed the directory to /var/run/zoneminder and changed the owner and group to www-data and still no effect. The first thing I thought of was permissions. I am still not sure that isn't the issue.

Thanks for the quick response. :)
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Post by lyallp »

I assume permissions have been discounted by making the directory world read/write/execute and all parent directories world read/execute, just to completely eliminate that possibility?

Maybe a PHP Configuration issue? php.ini? my default_socket_timeout is 60 (seconds).

On my system, in /var/run/zm, I notice a pile of old sock files left lying around.

Is the server you are running this on slow or under load?
...Lyall
flabbergasted
Posts: 4
Joined: Tue Aug 18, 2009 3:32 pm
Location: Louisiana State, uSA

Post by flabbergasted »

OK, changing the permission as you stated did not fix the issue. I have one file in /var/run/zoneminder which is zmdc.sock, so it was obviously put there by zoneminder. The apache2 error log message says that /var/run/zoneminder/zms-084506s.sock does not exist, so why would one file be written and the other not?

There are a few other things in the apache log and the zmdc.log that might be helpful.
'==> /var/log/apache2/error.log <==
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmdc.pl line 51.
BEGIN failed--compilation aborted at /usr/bin/zmdc.pl line 51.
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmdc.pl line 51.
BEGIN failed--compilation aborted at /usr/bin/zmdc.pl line 51.
[Sun Dec 05 21:42:29 2010] [error] [client 127.0.1.1] PHP Deprecated: Function split() is deprecated in /usr/share/zoneminder/skins/classic/views/monitor.php on line 129, referer: http://workhorse.peoplezoo.net/zm/index.php'
The next is from zmdc.log. It appears that some images are being streamed, but I am not sure. Sorry for the lengthy post, but I am hoping this info will help.
==> /var/log/zm/zmdc.log <==
12/05/10 21:46:07.096304 zmdc[8438].INF [Starting pending process, zmc -m 1]
12/05/10 21:46:07.098439 zmdc[8438].INF ['zmc -m 1' starting at 10/12/05 21:46:07, pid = 9519]
tail: /var/log/zm/zm_debug.log.09519: file truncated
21:46:07.353636 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:43, y:479.00]
12/05/10 21:46:07.353651 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:42, y:479.00]
12/05/10 21:46:07.353660 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:41, y:479.00]
12/05/10 21:46:07.353667 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:40, y:479.00]
12/05/10 21:46:07.353674 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:39, y:479.00]
12/05/10 21:46:07.353682 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:38, y:479.00]
12/05/10 21:46:07.353690 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:37, y:479.00]
12/05/10 21:46:07.353697 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:36, y:479.00]
12/05/10 21:46:07.353705 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:35, y:479.00]
12/05/10 21:46:07.353712 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:34, y:479.00]
12/05/10 21:46:07.353720 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:33, y:479.00]
12/05/10 21:46:07.353727 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:32, y:479.00]
12/05/10 21:46:07.353735 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:31, y:479.00]
12/05/10 21:46:07.353742 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:30, y:479.00]
12/05/10 21:46:07.353750 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:29, y:479.00]
12/05/10 21:46:07.353757 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:28, y:479.00]
12/05/10 21:46:07.353765 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:27, y:479.00]
12/05/10 21:46:07.353772 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:26, y:479.00]
12/05/10 21:46:07.353780 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:25, y:479.00]
12/05/10 21:46:07.353787 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:24, y:479.00]
12/05/10 21:46:07.353795 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:23, y:479.00]
12/05/10 21:46:07.353802 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:22, y:479.00]
12/05/10 21:46:07.353810 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:21, y:479.00]
12/05/10 21:46:07.353817 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:20, y:479.00]
12/05/10 21:46:07.353825 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:19, y:479.00]
12/05/10 21:46:07.353832 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:18, y:479.00]
12/05/10 21:46:07.353840 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:17, y:479.00]
12/05/10 21:46:07.353847 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:16, y:479.00]
12/05/10 21:46:07.353855 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:15, y:479.00]
12/05/10 21:46:07.353862 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:14, y:479.00]
12/05/10 21:46:07.353870 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:13, y:479.00]
12/05/10 21:46:07.353878 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:12, y:479.00]
12/05/10 21:46:07.353885 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:11, y:479.00]
12/05/10 21:46:07.353893 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:10, y:479.00]
12/05/10 21:46:07.353900 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:9, y:479.00]
12/05/10 21:46:07.353908 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:8, y:479.00]
12/05/10 21:46:07.353915 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:7, y:479.00]
12/05/10 21:46:07.353923 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:6, y:479.00]
12/05/10 21:46:07.353930 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:5, y:479.00]
12/05/10 21:46:07.353938 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:4, y:479.00]
12/05/10 21:46:07.353945 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:3, y:479.00]
12/05/10 21:46:07.353952 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:2, y:479.00]
12/05/10 21:46:07.353960 zmc_m1[-1].DB9-zm_image.cpp/1316 [x:1, y:479.00]
12/05/10 21:46:07.363518 zmc_m1[-1].DB1-zm_monitor.cpp/2459 [Loaded monitor 1(Monitor-1), 1 zones]
12/05/10 21:46:07.363541 zmc_m1[-1].INF-zmc.cpp/188 [Starting Capture]
12/05/10 21:46:07.363603 zmc_m1[-1].DB2-zm_remote_camera_rtsp.cpp/112 [Waiting for sources]
12/05/10 21:46:08.136029 zmc_m1[-1].DB2-zm_rtsp.cpp/72 [Received RTSP response: RTSP/1.0 404 Not Found
CSeq: 1

(35 bytes)]
12/05/10 21:46:08.136135 zmc_m1[-1].ERR-zm_rtsp.cpp/92 [Unexpected response code 404, text is 'Not Found']
12/05/10 21:46:08.136220 zmc_m1[-1].DB1-zm_rtsp.cpp/304 [Processing SDP '']
12/05/10 21:46:08.136345 zmc_m1[-1].DB2-zm_rtsp.cpp/46 [Sending RTSP message: SETUP rtsp://192.168.1.113:554/live2.mjpg RTSP/1.0
Transport: RTP/AVP/TCP;unicast
User-Agent: ZoneMinder/1.24.2
CSeq: 2
I forgot to mention, the server is not under heavy load. A look at the system monitor shows each CPU load isn't going much over 40% occasionally. I have four gigs of ram that is hanging around the low 20%.
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Post by lyallp »

The compilation errors are ominous.
Might I suggest a clean re-build and install?
Maybe even a manual build rather than using the rpm/deb whatever you use, if the re-install does not work.

Refer to my Gentoo forums post for compilation (CFLAG setting) and configuration details (last entry has a summary).

Maybe that will help.
...Lyall
flabbergasted
Posts: 4
Joined: Tue Aug 18, 2009 3:32 pm
Location: Louisiana State, uSA

Post by flabbergasted »

I'll give that a try and update here when I am finished. Give me a day or to to complete it.

The Synaptic package manager gives the option to completely remove, so it will get rid of any files that have to do with, since I am also trying to add a 2 TB hard drive to this server and this is the primary function of it, I will do a clean install of everything and install zm from source. I'll keep you posted.

Thanks a lot for your help with this. I am hoping the next person who uses these cameras will have an easy time of setting them up.
DaveQB
Posts: 59
Joined: Tue Sep 07, 2010 4:30 am
Location: Sydney, NSW

Post by DaveQB »

Looks like incorrect URL going by what I know of the vivotek cameras.

If you set the stream (say stream 1) as JPEG, then you need to access it through http://<ip>/video.mjpg

If you set stream 1 as MPEG4 or H.264, then access it through rtsp://<ip>:554/live.sdp

rtsp://<ip>:554/live.mjpg does not exist (atleast not with the IP8332/0)

The 404 error you are seeing supports this.

I'd say read the manual/PDF for it.
Locked