Cambozola fails with zms

Support and queries relating to all previous versions of ZoneMinder
Locked
serge
Posts: 6
Joined: Tue Nov 25, 2003 4:54 am

Cambozola fails with zms

Post by serge »

I'm running ZM on OS: RH7.2, kernel 2.4.7-10; WS: apache 1.3.29; PHP-4.3.4; MySQL 4.0.16; Java 1.3.1-09;
VCC: IVC-200G. First of all, thanks for the great tool. Installation was quite smooth. The only outstanding
so far is Cambozola video stream viewer - can't make it working. The zms is working fine since the
command line execution with exported corresponding QUERY_STRING produces bitestream to output correctly. The Cambozola 0.34 as well as 0.22 passes
the test with Cambozola test server, however when I try it from command line together with zms ( using root account ) then 0.34 returns "Failed to connect to server (denied?)" ( trace from console says "java.lang.Exception: Failed to connect to server (denied?)" ) and 0.22 simply hangs. I've tried original applet distributions as well as my own builds - the same result. The "ZM - camera - Watch"
window launches applet thus left-mouse button click starts pop-up which tells correct URL but FPS 0 (!!!).
The stills are ok at the same time. I'm trying within local network thus I'm using http://192.168.1.120/zmtest/cgi-bin/zms ... efresh=250. However,
the same thing happens when I try outside using http://{domain}:8080. Well, could you please tell me what else can be checkecd out ?
Thanks in advance.
Serge
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Cambozola fails with zms

Post by zoneminder »

Hi Serge,

Do you know if you can get streaming by using Mozilla or another browser that supports it natively? That would eliminate one possible source of errors. Also, what platform and browser are you using to monitor the stream, plus which JVM if you know it? Finally do you know if you are able to view other sites that use the Cambozola applet, the Cambozola home page has a couple of examples ou can try out I think.

Phil,
serge
Posts: 6
Joined: Tue Nov 25, 2003 4:54 am

Re: Cambozola fails with zms

Post by serge »

Hi Phil,
The client runs W2K Prof. with IE Version: 6.0.2800.1106 Cipher Strength: 128-bit SP1; IE JVM (Java Plug-in ) 1.4.0_01 ( Use Java 2 v1.4.0_01 for <aplet> ). I've tried Mozilla 1.5 on RH7.2 but it shows bitestream the same as I see in console. The applet example on http://www.charliemouse.com/code/cambozola/config.html fails with message cannot connect to "peeper.axisinc.com", however the peeper.axisinc.com is pingable from my side ... hmmm.
Thanks for helping me out.
Serge
serge
Posts: 6
Joined: Tue Nov 25, 2003 4:54 am

Re: Cambozola fails with zms

Post by serge »

I've tried zms from Netscape 7.1 and it shows broken image. When I run zms from console
( e.g. $> ./zms ) then I see bite stream which keeps feeding with "--ZoneMinderFrame"
footers - looks good. However, when I try it through cambozola from console ( e.g. java
-jar cambozola.jar "http://...) then applet window shows up with build and copyright
information. At the same time I can see mixed binary traces showing up on console
which contain some error messages as well ( not full list - just beginning and end ):
+ mysql/mysql.sock MYSQL_UNIX_PORT my MYSQL_PWD localhost %d unknown
+ show databases show tables 4.0.16
+ Malformed packet SSL connection error Error connecting to master:
+ Error connecting to slave: Error on SHOW SLAVE HOSTS: Error on SHOW SLAVE STATUS:
Embedded server ...
+ Fatal error in defaults handling.
+ Program aborted.
The applet hangs for a while and then shows "Failed to connect to server (denied?)" message.
The same message appears on console as well.
I've tried mysql running in regular / safe / --skip-grant-tables modes - the same result.
Actually everything else except video streaming works just fine. Can
this be that PHP fails to talk to mysql since it seems fails when it is being called through
a web server. Could you please tell me what else can be checked.
Thanks.
Serge
serge
Posts: 6
Joined: Tue Nov 25, 2003 4:54 am

Re: Cambozola fails with zms

Post by serge »

Adding to my previous post, looking into zms.cpp source the database connection is being initiated by zms module itself thus PHP is out of scope ...
Thanks for looking into this.
Serge
serge
Posts: 6
Joined: Tue Nov 25, 2003 4:54 am

Re: Cambozola fails with zms

Post by serge »

Hi Phil,
As I've mentioned before, when I set QUERY_STRING to "monitor=1&idle=250&refresh=50" and run zms from console
then I can see byte stream on console with following header :

Server: ZoneMinder Stream Server
Pragma: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Type: multipart/x-mixed-replace;boundary=ZoneMinderFrame
--ZoneMinderFrame
Content-type: image/jpg

The following appears on /var/log/messages :

Dec 6 04:32:23 SE000120 zms[18338]: INF [Debug Level = 0, Debug Log = ]
Dec 6 04:32:23 SE000120 zms[18338]: INF [Got 1 monitors]
Dec 6 04:32:23 SE000120 zms[18338]: INF [monitor mode=0]
Dec 6 04:32:23 SE000120 zms[18338]: INF [shm.size=30413248]
Dec 6 04:32:23 SE000120 zms[18338]: INF [Initialised zone 0/All - 1 - 352x288 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Dec 6 04:32:23 SE000120 zms[18338]: INF [Monitor testcam01 has function 2]
Dec 6 04:32:23 SE000120 zms[18338]: INF [Monitor testcam01 LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Dec 6 04:32:23 SE000120 zms[18338]: INF [Monitor testcam01 IBC = 100, WUC = 25, pEC = 12, PEC = 12, FRI = 1000, RBP = 10]
Dec 6 04:32:23 SE000120 zms[18338]: INF [Loaded monitor 1(testcam01), 0 zones]

I've tried zms from Netscape 7.1 and Mozilla 1.5 installed on W2K Prof. and both show broken image icon.

The html source captured from Netscape shows :
<img src="/zmtest/cgi-bin/zms?monitor=1&idle=250&refresh=50" border="0" width="352" height="288">

The image properties captured from html page as it follows :
Location: http://192.168.1.120/zmtest/cgi-bin/zms ... refresh=50
Width : 352px
Height : 288px
Size of File: 0KB (0 bytes)

The following entries started to appear on apache access_log file when I've lounched camera - watch window :
192.168.1.105 - - [06/Dec/2003:04:51:51 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:51:53 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:51:56 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:51:58 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:52:01 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:52:03 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:52:06 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:52:09 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:52:11 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 588
192.168.1.105 - - [06/Dec/2003:04:52:14 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 590
192.168.1.105 - - [06/Dec/2003:04:52:17 -0500] "GET /zmtest/index.php?view=watchstatus&mid=1&last_status=0 HTTP/1.1" 200 588
192.168.1.105 - - [06/Dec/2003:04:52:17 -0500] "GET /zmtest/index.php?view=watchevents&mid=1&max_events=10 HTTP/1.1" 200 10889

I'm testing zoneminder on my local network where SE000120(192.168.1.120) is a zm server RH7.2 and 192.168.1.105
is client W2K Prof. with Mozilla 1.5

However, when zm is being called from browser then no zms messages appear in /var/log/messages file.

What drives me crazy is that no single error message anywhere ... and everything works fine except video stream. Is this Apache configuration problem ? ...
Please tell me what do you think I should check else ?

Thanks in advance
Serge
snakebyte
Posts: 45
Joined: Sun Dec 07, 2003 1:51 am

Re: Cambozola fails with zms

Post by snakebyte »

Noticed that your cgi-bin isn't the standard place for cgi files... have you marked that dir as executable in your apache config file?

Have you tried to access that url directly from your browser?

http://192.168.1.120/zmtest/cgi-bin/zms ... refresh=50
serge
Posts: 6
Joined: Tue Nov 25, 2003 4:54 am

Re: Cambozola fails with zms

Post by serge »

The Apache has been configured to allow execution of cgi from $ZM_HOME/cgi-bin using ExecCGI directive right from the beginning
thus when I've tried to request zms directly from browser using URL captured from Cambozola then it has produced byte stream
in response (see my previous posts). On top of that (I didn't mention this), I've also tried zms from $APACHE_HOME/cgi-bin
with the same result.
Last night I resolved the problem quite rough way (some time it helps). Since I gave up with 1.3.29 then I've installed Apache 2.0.48 and then
configured it the same way as
it has been done before with 1.3.29. I've also upgraded Perl with latest stable release 5.8.2 and configured Apache again with the --with-perl option.
The Mozilla 1.5 has started showing streaming video right away !
I had to switch Cambozola back from 0.34 to 0.22, since it was showing corrupted stream, in order to make streaming video on IE6.0.
Currently I have 4 cameras attached and I left system running to test box resources utilization.
Thanks everybody for looking into this.
Serge
jidea
Posts: 1
Joined: Fri Jan 16, 2004 9:28 pm

Re: Cambozola fails with zms

Post by jidea »

Hello serge, i had a similar problem, until i discovered that the name of the camera is the name of a directory under image. But http don't like space, and my camera had a name with a space in it.
i rename it and now all is perfect
Locked