i can't see image both via cambozola/stream and still image

Support and queries relating to all previous versions of ZoneMinder
Locked
pariani
Posts: 4
Joined: Sun Dec 05, 2004 1:30 pm

i can't see image both via cambozola/stream and still image

Post by pariani »

hi i'have this problem:

- zone alarm version: 1.19.5
- OS: Debian Linux Unstable
- Kernel: 2.6.8.1
- my cam is:
dev/video1: OK [ -device /dev/video1 ]
type : v4l
name : Logitech ClickSmart 310
flags: capture

i see image with the cam if i use xawtx -device /dev/video1
i congured zonealarm, i logged into the system, i configuered a monitor, but when i try to see image i don't see anything ?

what i can do? what i shall configure?

thank you to all
PAolo
sgn
Posts: 68
Joined: Mon Oct 25, 2004 2:36 pm

Post by sgn »

First of all, you have to make sure that the httpd-user can access cgi-bin/zms and that it can access event-images (I presume it can do both, as you are obviously recording).

Then apache has to be configured to treat the zms binary as a CGI. This is done by adding the following to httpd.conf:

<Directory /path/to/zmwebroot/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>

Assuming that apache has mod_cgi and mod_cgid compiled in (they are if you are using a precompiled binary from Debian), these lines configures apache to treat everything in the specified directory as a CGI. Also, make sure that executing files is allowed on the partition in question. Check /etc/fstab and look for "noexec" .

Getting ZM to work on Debian (I'm using Sarge) is hell itself, but if you've gotten as far as it seems, give yourself a pat on the back.

BTW: (If you are using IE as client) You are sure that cambozola.jar is available for the clients to download?

- sgn out.
pariani
Posts: 4
Joined: Sun Dec 05, 2004 1:30 pm

Post by pariani »

i verified what you suggest, but nothing :(

i have tha availabilty for CGI in apache, and all the directory under /var/www are owned by the user of aphace (www-data)

what other can i control ?

thank you very much...
sgn
Posts: 68
Joined: Mon Oct 25, 2004 2:36 pm

Post by sgn »

Can I assume you configured zm with the --with-webuser and --with-webgroup accordingly?

You are able to look at old events as stills, right?

Take a look at apache's logs, they tend to be useful. What kind of message do you get from Cambozola? Do you have a JVM (Java Virtual Machine (If not, get it at http://java.sun.com, click on Java VM))? It will be required to run Cambozola on the client.

Does syslog, messages, zmdc.log, zmpkg.log or zmwatch.log hint about any errors? I had to make way through my share of memory-issues, default restrictions in Debian and so on. The most common errors are:

Cant shmget...
Failed to set window attributes...
Cant locate shared memory key xxxxxx (Or something like that)

If Cambozola "fails to connect", the problem is most likely that zms is unable to run. If it returns something about "http://blablabla/cgi-bin/zms=blablabla and the number 500 near the end, the problem is that zms is unable to access any images for streaming.

Take a look at the logs, thats what they are for.
pariani
Posts: 4
Joined: Sun Dec 05, 2004 1:30 pm

Post by pariani »

Can I assume you configured zm with the --with-webuser and --with-webgroup accordingly?
YES


You are able to look at old events as stills, right?
NO I DON'T SEE STILLS, DO YOU MEAN 'STILL' ON THE CAMERA PAGE? I DON'T SEE ANY IMAGES

FROM APACHE LOG I HAVE:
Sun Dec 5 19:27:59 2004] [error] [client 127.0.0.1] Premature end of script headers: /usr/lib/cgi-bin/zms
[Sun Dec 5 19:28:05 2004] [error] [client 127.0.0.1] Premature end of script headers: /usr/lib/cgi-bin/zms
[Sun Dec 5 19:28:08 2004] [error] [client 127.0.0.1] Premature end of script headers: /usr/lib/cgi-bin/zms

CAMBOZOLA WRITE:
retruned HTTP response code: 500 from URL ......


Do you have a JVM (Java Virtual Machine (If not, get it at http://java.sun.com, click on Java VM))? It will be required to run Cambozola on the client.
IYES I HAVE, AND MY VM FUNCTIONS CORRECTLY


LOG FROM ZMDC.LOG:
Starting pending process, zmfilter.pl
'zmfilter.pl' started at 04/12/06 00:13:30
'zmfilter.pl' starting at 04/12/06 00:13:30, pid = 2447
Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /opt/zm/bin/zmfilter.pl line 109.
BEGIN failed--compilation aborted at /opt/zm/bin/zmfilter.pl line 109.
'zmfilter.pl ' crashed at 04/12/06 00:13:30, exit status 2


LOG FROM ZMPKG.LOG
Command: start
Executing: /opt/zm/bin/zmdc.pl check
Removing shared memory
Executing: /opt/zm/bin/zmfix
Executing: /opt/zm/bin/zmdc.pl status
Executing: /opt/zm/bin/zmdc.pl start zmc -d 1
Executing: /opt/zm/bin/zmdc.pl start zmfilter.pl
Executing: /opt/zm/bin/zmdc.pl start zmaudit.pl -d 900 -y
Executing: /opt/zm/bin/zmdc.pl start zmwatch.pl


LOG FROM ZMWATCH.LOG
Watchdog starting at 04/12/06 00:12:10
Watchdog pausing for 30 seconds


I have some errors from zmdc.log and this errors appear to be related to zms, what shall i do ?

thank you
paolo
User avatar
securiteaze
Posts: 25
Joined: Wed Jun 16, 2004 5:38 pm

Post by securiteaze »

Looks to me that you are missing some perl modules.

Code: Select all

Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /opt/zm/bin/zmfilter.pl line 109. 
Your distro may have the necessary modules already packaged, otherwise, check my post at the bottom of the following page. http://www.zoneminder.com/forums/viewto ... highlight=
sgn
Posts: 68
Joined: Mon Oct 25, 2004 2:36 pm

Post by sgn »

Cambozola reports signal 500, meaning zms works now, however it can't find anything to stream. The reason why it cant find anything is that zm is unable to start without certain perl-modules (used for timestamping, communication with MySQL etc.)

Debian does not have all of them installed by default, apt-get the following ones and you'll be on your way:
libdate-manip-perl libio-stringy-perl libwww-perl libdbd-mysql-perl libmime-perl libmailtools-perl (All I can remember right now)

Also, the main package "perl" isn't installed by default unless you used tasksel. If you're lacking any perl modules after having done this (the logs will whine), search for them using the apt-cache utility. They are usually named using the following syntax: libnnnnnn-perl

Also, if you installed MySQL from source, make sure to put /path/to/mysql/lib in /ect/ld.so.conf and run ldconfig. ZM won't find libmysqlclient if you don't.
pariani
Posts: 4
Joined: Sun Dec 05, 2004 1:30 pm

Post by pariani »

Hi,
i installed the perl module indicated that i had missed.
Now i don't have no more error for perl, but i'm continuing to not see any images, both vis stream and still.

I report my log down here.

LOG FROM ZM:
Server starting at 04/12/07 10:55:56
'zmc -d 1' started at 04/12/07 10:55:59
'zmc -d 1' starting at 04/12/07 10:55:59, pid = 2186
'zmfilter.pl' started at 04/12/07 10:55:59
'zmfilter.pl' starting at 04/12/07 10:55:59, pid = 2190
'zmaudit.pl -d 900 -y' started at 04/12/07 10:55:59
'zmaudit.pl -d 900 -y' starting at 04/12/07 10:55:59, pid = 2194
'zmc -d 1' crashed at 04/12/07 10:56:00, exit status 255
'zmc -d 1' starting at 04/12/07 10:56:00, pid = 2199
'zmc -d 1' started at 04/12/07 10:56:00
'zmwatch.pl' started at 04/12/07 10:56:00
'zmwatch.pl' starting at 04/12/07 10:56:00, pid = 2201
'zmc -d 1' crashed at 04/12/07 10:56:01, exit status 255
Starting pending process, zmc -d 1
'zmc -d 1' started at 04/12/07 10:56:06
'zmc -d 1' starting at 04/12/07 10:56:06, pid = 2226
'zmc -d 1' crashed at 04/12/07 10:56:07, exit status 255
Starting pending process, zmc -d 1
'zmc -d 1' started at 04/12/07 10:56:17
'zmc -d 1' starting at 04/12/07 10:56:17, pid = 2262
'zmc -d 1' crashed at 04/12/07 10:56:18, exit status 255
Scanning for events
Command: start
Executing: /opt/zm/bin/zmdc.pl check
Removing shared memory
Executing: /opt/zm/bin/zmfix
Executing: /opt/zm/bin/zmdc.pl status
Executing: /opt/zm/bin/zmdc.pl start zmc -d 1
Executing: /opt/zm/bin/zmdc.pl start zmfilter.pl
Executing: /opt/zm/bin/zmdc.pl start zmaudit.pl -d 900 -y
Executing: /opt/zm/bin/zmdc.pl start zmwatch.pl
Watchdog starting at 04/12/07 10:56:00
Watchdog pausing for 30 seconds


LOG FROM APACHE (error.log):
[Tue Dec 7 10:54:39 2004] [notice] Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.9-1 configured -- resuming normal operations
[Tue Dec 7 10:54:39 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Dec 7 10:56:10 2004] [error] [client 127.0.0.1] Premature end of script headers: /usr/lib/cgi-bin/zms
[Tue Dec 7 10:56:14 2004] [error] [client 127.0.0.1] Premature end of script headers: /usr/lib/cgi-bin/zms

LOG FROM VAR/LOG/MESSAGES
Dec 7 10:56:10 localhost zms[2248]: INF [Debug Level = 0, Debug Log = ]
Dec 7 10:56:14 localhost zms[2259]: INF [Debug Level = 0, Debug Log = ]
Dec 7 10:56:17 localhost zmc-d1[2262]: INF [Debug Level = 0, Debug Log = ]
Dec 7 10:56:17 localhost kernel: /home/paolo/click/spca5xx-20041121/drivers/usb/spca50x.c: [spca500_initialise:5368] Spca500 Sensor Address 0x00
Dec 7 10:56:31 localhost gconfd (paolo-2135): Il server GConf non è utilizzato, arresto
Dec 7 10:56:31 localhost gconfd (paolo-2135): Uscita
Dec 7 10:56:38 localhost zmc-d1[2272]: INF [Debug Level = 0, Debug Log = ]
Dec 7 10:56:38 localhost kernel: /home/paolo/click/spca5xx-20041121/drivers/usb/spca50x.c: [spca500_initialise:5368] Spca500 Sensor Address 0x00
Dec 7 10:57:19 localhost zmc-d1[2281]: INF [Debug Level = 0, Debug Log = ]
Dec 7 10:57:19 localhost kernel: /home/paolo/click/spca5xx-20041121/drivers/usb/spca50x.c: [spca500_initialise:5368] Spca500 Sensor Address 0x00

i saw that i have probelm with zmc, but i don't understand for what.
I remark that with xawtv i can see the images from my camera... so i think that the kernel V4L and the modules for the camera are ok... and so where is the problem now?

thank you very much,
Paolo
sgn
Posts: 68
Joined: Mon Oct 25, 2004 2:36 pm

Post by sgn »

I have no experince with GConf, it might be the issue, however i have no chance of knowing that.

Also, the error in apache's logs might indicate that zms is not executed in the right way, but it's also the warning you'll get if there is nothing to stream.

You're not using PHP safe mode or anything, right? And the user running apache has access to /dev/videoX? (chmod 766)?
Locked