Page 1 of 1

No video on the view window

Posted: Wed Aug 26, 2009 12:48 am
by somoene275
I've got version 1.24.2 installed on centos 5.3
most everything work fine but the live view of my camera
it's connected by bt878 card on /dev/video0 port 0

mocord works and i can see my stills but try to view the video and i get error in my http errorlog
get the same thing if i click the camera and try to view it live

HTTP error log
[Tue Aug 25 20:21:31 2009] [notice] mod_python: Creating 4 session mutexes based on 125 max processes and 0 max threads.
[Tue Aug 25 20:21:31 2009] [notice] Apache configured -- resuming normal operations
[Tue Aug 25 20:23:57 2009] [error] [client 192.168.0.50] socket_sendto( /tmp/zms-217768s.sock ) failed: No such file or directory, referer: http://192.168.0.57/zm/index.php?view=watch&mid=1
[Tue Aug 25 20:23:57 2009] [error] [client 192.168.0.50] array (\n 0 => \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n 'line' => 51,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-217768s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/html/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.0.57/zm/index.php?view=watch&mid=1
[Tue Aug 25 20:26:55 2009] [error] [client 192.168.0.50] socket_sendto( /tmp/zms-225816s.sock ) failed: No such file or directory, referer: http://192.168.0.57/zm/index.php?view=e ... c=1&page=1
[Tue Aug 25 20:26:55 2009] [error] [client 192.168.0.50] array (\n 0 => \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n 'line' => 51,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-225816s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/html/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.0.57/zm/index.php?view=e ... c=1&page=1
[Tue Aug 25 20:26:58 2009] [error] [client 192.168.0.50] socket_sendto( /tmp/zms-225816s.sock ) failed: No such file or directory, referer: http://192.168.0.57/zm/index.php?view=e ... c=1&page=1
[Tue Aug 25 20:26:58 2009] [error] [client 192.168.0.50] array (\n 0 => \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n 'line' => 51,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-225816s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/html/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.0.57/zm/index.php?view=e ... c=1&page=1
[Tue Aug 25 20:28:14 2009] [error] [client 192.168.0.50] socket_sendto( /tmp/zms-043545s.sock ) failed: No such file or directory, referer: http://192.168.0.57/zm/index.php?view=watch&mid=1
[Tue Aug 25 20:28:14 2009] [error] [client 192.168.0.50] array (\n 0 => \n array (\n 'file' => '/var/www/html/zm/ajax/stream.php',\n 'line' => 51,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-043545s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/html/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/html/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://192.168.0.57/zm/index.php?view=watch&mid=1



This is the only errors i seem to find i've looked in me messages.log ,zmdc.log, zmwatch.log and many otheres and this seems to be my only error

Posted: Tue Sep 01, 2009 12:11 pm
by somoene275
I've been watching in the tmp dir and it's creating a file /tmp/zms-217768w.sock and looking for /tmp/zms-217768s.sock

I can't seem to figure out whats going on
I've even rebuild it from scratch by the centos wiki page but used the current version of zoneminder
I've also tried it just as they said and used the older version and i still i'm getting the same error

Posted: Wed Sep 02, 2009 8:05 am
by sabaka33
somoene275 wrote:I've been watching in the tmp dir and it's creating a file /tmp/zms-217768w.sock and looking for /tmp/zms-217768s.sock

I can't seem to figure out whats going on
I've even rebuild it from scratch by the centos wiki page but used the current version of zoneminder
I've also tried it just as they said and used the older version and i still i'm getting the same error
Any progress with this? I'm stuck with a similar problem.
Compiled v1.24.2 on ubuntu 9.04 x64. ZM is functional. Modect working. Events can be viewed as frames but not as video. All pages that should have video display the page fine, just no video (not even black box).

Looking at the live feed page, firebug console keeps logging the following errors every second or two (IK-WB15A network camera):
{"result":"Error","message":"socket_sendto( \/tmp\/zms-361517s.sock ) failed: No such file or directory"}
Each time this request is made, the following file appears for a short period:
srwxr-xr-x 1 www-data www-data 0 2009-09-02 00:19 /tmp/zms-361517w.sock
So it does seem to be trying to open the wrong file. :?

Posted: Thu Oct 01, 2009 7:44 pm
by rc3
I have exactly the same problem (looking for /tmp/zms-273155s.sock but only /tmp/zms-273155w.sock appears from time to time).

ZM Version: 1.24.2
OS: Debian Lenny
HTTP SREVER: lighttpd

Posted: Fri Oct 02, 2009 3:04 am
by mitch
Read: http://www.zoneminder.com/wiki/index.ph ... leshooting
and post the zms individual debug log on pastebin.

Posted: Tue Dec 01, 2009 8:28 am
by execcr
some news? i have the same problem

Ubuntu 8.04
Zoneminder 1.24.2
Apache2

When the error appears, i'm unable to connet to zm index.php page (server do not respond) and i have to restart apache2 to make it work again (and i dont restart zoneminder)

But when zm page is stuck, if i try to acess to webmin on the same server, apache works without problem.

I cant figured out!

Code: Select all

[Tue Dec 01 08:20:56 2009] [error] [client 192.168.123.104] socket_select failed: Interrupted system call, referer: http://192.168.123.1/index.php?view=event&eid=176&trms=1&attr1=MonitorId&op1=%3d&val1=2&page=1
[Tue Dec 01 08:20:56 2009] [error] [client 192.168.123.104] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 65,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_select failed: Interrupted system call',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://192.168.123.1/index.php?view=event&eid=176&trms=1&attr1=MonitorId&op1=%3d&val1=2&page=1

[Tue Dec 01 08:20:57 2009] [error] [client 192.168.123.104] socket_bind(  ) failed: Address already in use, referer: http://192.168.123.1/index.php?view=watch&mid=2
[Tue Dec 01 08:20:57 2009] [error] [client 192.168.123.104] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 18,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_bind(  ) failed: Address already in use',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:20:57 2009] [error] [client 192.168.123.104] socket_bind(  ) failed: Address already in use, referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:20:57 2009] [error] [client 192.168.123.104] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 18,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_bind(  ) failed: Address already in use',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:21:00 2009] [error] [client 192.168.123.104] socket_sendto( /tmp/zms-672658s.sock ) failed: No such file or directory, referer: http://192.168.123.1/index.php?view=event&eid=176&trms=1&attr1=MonitorId&op1=%3d&val1=2&page=1

[Tue Dec 01 08:21:00 2009] [error] [client 192.168.123.104] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-672658s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://192.168.123.1/index.php?view=event&eid=176&trms=1&attr1=MonitorId&op1=%3d&val1=2&page=1

[Tue Dec 01 08:21:00 2009] [error] [client 192.168.123.104] socket_sendto( /tmp/zms-279770s.sock ) failed: No such file or directory, referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:21:00 2009] [error] [client 192.168.123.104] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-279770s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:21:00 2009] [error] [client 192.168.123.104] socket_sendto( /tmp/zms-279770s.sock ) failed: No such file or directory, referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:21:00 2009] [error] [client 192.168.123.104] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-279770s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:21:01 2009] [error] [client 192.168.123.104] socket_sendto( /tmp/zms-279770s.sock ) failed: No such file or directory, referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:21:01 2009] [error] [client 192.168.123.104] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-279770s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 119,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://192.168.123.1/index.php?view=watch&mid=2

[Tue Dec 01 08:21:07 2009] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.9 with Suhosin-Patch configured -- resuming normal operations

Posted: Wed Dec 02, 2009 5:59 am
by jfkastner
try messing with the security settings - permissions, group membership etc

i've put the zm username in (almost) all groups - that helped

Posted: Wed Dec 02, 2009 5:10 pm
by ehymel
I was having exact same problem, and after days of google and scouring this forum, I found no answer.

Eventually I stumbled on the answer. When I would try to view the picture from the camera, I had a red X instead of the picture. Events were being recorded, and I could see them in my events directory. I could see no video though. Apache logs showed the same errors you mentioned.

My clue was from right-clicking the missing picture and looking at properties. If I cut and paste the URL of the picture in a new browser window, I got a file not found error. Apache logs confirmed with this error:

Code: Select all

File does not exist: /var/www/cgi-bin/zm
Hmmm, it could not find the nph-zms script in cgi-bin/zm. I checked apache config files, and scriptalias was in place:

Code: Select all

ScriptAlias /cgi-bin/zm/ "/usr/libexec/zoneminder/cgi-bin/"
To fix the problem, I copied the nph-zms (and zms) cgi scripts to cgi-bin, as in:

Code: Select all

# mkdir /var/www/cgi-bin/zm
# cp -a /usr/libexec/zoneminder/cgi-bin/* /var/www/cgi-bin/zm
Now everything works perfectly. Not sure why the scriptalias directive in the apache config file isn't being picked up correctly, but I was tired of this not working and the above fix did the trick.

no display

Posted: Tue Dec 08, 2009 3:46 pm
by gdr0001
Had the same problem but found putting the two files (nph-zms and zms) into /var/www/cgi-bin and chown apache:apache. finally gave me a picture.

I am using Fedora 11 and v1.24.2

Figured it out

Posted: Tue Dec 15, 2009 10:02 pm
by geesy
Had to add perl-sys-mmap

Posted: Thu Jan 28, 2010 7:11 pm
by orsty3001
I have this same problem. I can ever see the still images that ZM has created but no streaming video. Same error too.

Changing permissions seems to have no affect.

same problem

Posted: Fri Feb 19, 2010 5:27 pm
by Spik
All the above didn't bring success.
Ubuntu 9.10, Apache2, Zoneminder 1.24.1

After some experimenting figured out that changing port number on whitch Apache2 listens to (8082) afects loss of video stream and event stream. Stills are always there where they should be. Returning the port back to 80 streams are back. (Have to change the port because port 80 is forwarded in router to other local adress).

Creating video in Event page works in Mozilla but not in IE?

Any clues where to grab the bull?