First: No Thumbnails and Stills, now no Replaying of events.

Support and queries relating to all previous versions of ZoneMinder
Locked
TheWheel
Posts: 4
Joined: Thu May 18, 2006 6:44 am
Location: Almere, Netherlands

First: No Thumbnails and Stills, now no Replaying of events.

Post by TheWheel »

Hi,

I've installed ZoneMinder on a SuSE 10.0 intel system using the outline of "dgconseil" (I think on a 32 bit system?).

I have not been able to install ffmpeg (no RPM on the SuSE distro).

After installation I had to remove all the "T" switches in all the .pm files for I kept getting errors about the $ENV{PATH} beïng insecure.

After that ZoneMinder seems to work except for the fact that I don't have any thumbnails or stills or the great feature of seeïng what caused an alarm (the system is in an constant state of alarm). In the event-list the cause is alway's "continuous".....

I do have the netpbm pakkage installed and enabled it in the configscreen and the path to the utilities is correct (/usr/bin). In the "images" directory there are images but they are all zero bytes in length (can't be right ;-)).

The Apache2 error.log say's:
---

Code: Select all

pnmtojpeg: Error reading magic number from Netpbm image stream.  Most often, this means your input file is empty.
jpegtopnm: Unable to open file '[color=red]events/1/24/012-capture.jpg[/color]' for reading.  fopen() returns errno 2 (No such file or directory)
pnmscalefixed: Error reading magic number from Netpbm image stream.  Most often, this means your input file is empty.
---

So I've scanned and search this forum but have not seen this problem before (must be something uniek on my system...)

If there is anyone who can help me figure out whats wrong with my installation I would be verry greatfull!

===
What I found out:
I have not installed ZM in the document root, but in a sub-directory ('zm'). Now it looks like ZM can't cope with this. The interface to the netpbm utilities uses exactly what I put in the PATH config (e.g. 'events') and that's (in my case) a non existing dir (as it is '<doc-root>/zm/events'). If I change it in 'zm/events' than the netpbm get's 'zm/events', but the browser want's to use '<doc-root>/zm/zm/events'. So now I have configured Apache2 to have an alias '/x/y/z/events' that points to '/x/y/z/events' (still there?) and in the PATH config I places '/x/y/z/events' .. and than it works .. allmost. I can not playback my captures (I can see the Stills now but no streaming video anymore..). Maybe thats an other problem...

Now everything is working but I cannot replay events. I do have the stills. I see no errors in the various log files.

This are the properties of the event-windows:

Code: Select all

http://mydomein/cgi-bin/nph-zms?mode=jpeg&event=117&frame=1&scale=100&rate=100&maxfps=10&auth=<chars>&rand=<chars>
Can anyone help me with this .. please???

Thanks in advance.
Fear not that thy life shall come to an end, but rather fear that it shall never have a beginning.
[John Henry Cardinal Newman (1801 - 1890)]
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There should be no problem with installing ZM uin a subdir under the doc root as that is what I have done since I started the project.

Can you post the options you passed to 'configure' originally?
Phil
TheWheel
Posts: 4
Joined: Thu May 18, 2006 6:44 am
Location: Almere, Netherlands

How stupid can one be?

Post by TheWheel »

I checked some more log files and noticed that there was a reference to /srv/www/htodocs which should be of cource /srv/www/htdocs (without the extra "o"). So I checked my Makefile and indeed the wrong webdir in WEB_PREFIX. I rebuilded the whole package with the correct "--with-webdir=/srv/www/htdocs/zm/" option (I even included the subdir) then I removed all the "T" switches in the shabang line of all the perl script and now it works like a charm!!!
Thanks for your reply anyway.
Will hide in a dark place now :(
Fear not that thy life shall come to an end, but rather fear that it shall never have a beginning.
[John Henry Cardinal Newman (1801 - 1890)]
Locked