Page 1 of 1

No LiveStream (SOLVED)

Posted: Sat Jul 16, 2011 5:43 pm
by olki
Hello,

I've installed zoneminder but when I click on my camera, I have the message in the cambozola area: failed to connect to server (denied?)

I'm using a Foscam FI8918W, and I can access it through a browser. In zm, I set the path to "/videostream.cgi?user=admin&pwd=" and I disabled any firewall. Any idea of what the problem could be? Linux permissions, network access or maybe something else?

Thanks

Re: Cambozola failed to connect

Posted: Sun Jul 17, 2011 8:44 am
by olki
OK, ZM can definitly access the camera as I was able to record standstill images. So the cambozola live stream is not working for any reason. I have a doubt about the linux permission, when I list the /usr/share/zoneminder directory, I get the following output:

drwxr-xr-x 2 www-data www-data 4096 2011-07-17 01:21 ajax
-rwxrwxr-x 1 root root 62762 2011-07-17 01:22 cambozola.jar
lrwxrwxrwx 1 root root 17 2011-07-16 12:15 cgi-bin -> ../../lib/cgi-bin
drwxr-xr-x 2 www-data www-data 4096 2011-07-17 01:21 css
drwxr-xr-x 2 root root 4096 2011-07-16 12:15 db
lrwxrwxrwx 1 root root 28 2011-07-16 12:15 events -> /var/cache/zoneminder/events
drwxr-xr-x 2 www-data www-data 4096 2011-07-17 01:21 graphics
lrwxrwxrwx 1 root root 28 2011-07-16 12:15 images -> /var/cache/zoneminder/images
drwxr-xr-x 2 www-data www-data 4096 2011-07-17 01:21 includes
-rw-r--r-- 1 www-data www-data 3810 2011-07-17 01:21 index.php
drwxr-xr-x 2 www-data www-data 4096 2011-07-17 01:21 js
drwxr-xr-x 2 www-data www-data 4096 2011-07-17 01:21 lang
drwxr-xr-x 5 www-data www-data 4096 2011-07-17 01:21 skins
drwxr-xr-x 2 www-data www-data 4096 2010-04-12 17:31 sounds
lrwxrwxrwx 1 root root 26 2011-07-16 12:15 temp -> /var/cache/zoneminder/temp
drwxr-xr-x 3 www-data www-data 4096 2011-07-16 12:15 tools
drwxr-xr-x 2 www-data www-data 4096 2011-07-17 01:21 views

Does it look correct?

Thanks

Re: No LiveStream

Posted: Sun Jul 17, 2011 9:26 am
by olki
I've just realize that cambozola is needed only for IE. I use FF or Chrome, anyway when I click on the monitor, there's no image displayed, nor in Chrome (broken image-link icon is displayed though), neither in FF.

Any ideas?

Thanks

Re: No LiveStream

Posted: Sun Jul 17, 2011 10:19 am
by olki
Just looking at the logs, I have:
2011-07-17 12:17:43.161592 web_php 17116 ERR socket_sendto( /tmp/zm/zms-540240s.sock ) failed: No such file or directory /usr/share/zoneminder/includes/functions.php 2319
2011-07-17 12:17:36.300128 zmc_m1 24500 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2011-07-17 12:17:32.912396 zmc_m1 24500 WAR Corrupt JPEG data: 2 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2011-07-17 12:17:32.613462 zmc_m1 24500 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2011-07-17 12:17:29.171497 zmc_m1 24500 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2011-07-17 12:17:20.576503 zmc_m1 24500 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2011-07-17 12:17:20.264064 zmc_m1 24500 WAR Corrupt JPEG data: 2 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2011-07-17 12:17:14.203324 zmc_m1 24500 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp

I've looked for the socket_sendto() error with no luck. I've set the permissions of /tmp/zm to world read/write.

Re: No LiveStream

Posted: Sun Jul 17, 2011 8:46 pm
by mastertheknife
Whats in the system log? its typically in /var/log/syslog or /var/log/messages

mastertheknife

Re: No LiveStream

Posted: Sun Jul 17, 2011 9:29 pm
by olki
Thanks for helping.

The /var/log/messages is showing:

Jul 17 23:22:03 ks zmc_m1[14295]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd9]
Jul 17 23:22:09 ks zmc_m1[14295]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]
Jul 17 23:23:10 ks zmc_m1[14295]: last message repeated 14 times
Jul 17 23:24:13 ks zmc_m1[14295]: last message repeated 24 times
Jul 17 23:24:13 ks zmc_m1[14295]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd9]
Jul 17 23:24:16 ks zmc_m1[14295]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]
Jul 17 23:24:16 ks zmc_m1[14295]: INF [Monitor-1: 20000 - Capturing at 3.88 fps]
Jul 17 23:24:18 ks zmc_m1[14295]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]

and basically the same for syslog.

For info, I've 1st installed zm from the ubuntu repositoty and it was the version 1.22, so I've installed mannually on top the trunk from svn, which appeared to be the 1.25.
I've also changed the default http port for zm as I have an other virtual host running on the port 80 (that has nothing to do with zm)

Re: No LiveStream (SOLVED)

Posted: Mon Jul 18, 2011 8:47 am
by olki
And here is the apache log:

[Mon Jul 18 00:11:54 2011] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch mod_scgi/1.13 mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
[Mon Jul 18 00:12:12 2011] [error] [client xxx.xxx.xxx.xxx] ERR [socket_sendto( /tmp/zm/zms-756392s.sock ) failed: No such file or directory], referer: xxx.xxx.xxx.xxx:port/index.php?view=watch&mid=1
[Mon Jul 18 00:12:20 2011] [error] [client xxx.xxx.xxx.xxx ERR [socket_sendto( /tmp/zm/zms-756392s.sock ) failed: No such file or directory], referer: xxx.xxx.xxx.xxx:port/index.php?view=w

OK, I've uninstalled everything and re-installed following the instructions there: http://www.zoneminder.com/wiki/index.ph ... fmpeg,_etc.)
and it works now.

I guess that I've messed up something in the apache/cgi configuration on my server.