Page 1 of 1

Authentication on = no images

Posted: Wed Aug 31, 2005 3:24 am
by moontaurus
Hi there. I have ZM working well on SUSE 9.1. It's a wonderful thing. Two questions (from a linux newbie, to be sure, I'm easily lost!)

1. When authentication is enabled, I can log in and change options, but images don't load (either as jpegs or via combozola.... eg., broken image icons). (Yes indeed, I do have full priv's set for the user I've created in zm 'options'.) The only way I can view monitors, events etc., is to turn off authentication.

2. After a machine restart, zm is running in 'stopped' mode. I submitted the zm script to the runlevel (thank you readme file). ZM is there in the Yast runlevel editor and 'enabled' after reboot. But how can I make it actually be "running" when it is running (rather than "stopped") after a reboot (eg power failure), so I don't have to manually restart it in the zm console each time? Thank you for your knowledge!

____

Background info:

This is the configure command I used that seemed to work in my SUSE 9.1 (does it look right?)

./configure --with-mysql=/usr --with-webdir=/disk2/www/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=/usr/include/ffmpeg --with-lame=/usr/include/lame --with-webuser=wwwrun --with-webgroup=www

And "grant select,insert,update,delete on zm.* to 'ralph'@localhost identified by 'rover';"

... correct? And placement of the ' mark and everything else? (not the real SQL user/pass of course)

Typing 'zmpkg.pl start' as per the readme, returns command not found, even if I run from /usr/local/bin where zm lives.

I installed zm script in /etc/init.d - but I had to remove the line that said
# Source function library.
. /etc/rc.d/init.d/functions

Because the script just stopped there. Here are candidates?

linux:/ # find -name functions
./etc/sysconfig/isdn/scripts/functions
./etc/sysconfig/hardware/scripts/functions
./etc/sysconfig/network/scripts/functions
./usr/share/zsh/help/functions
./usr/share/zsh/4.2.0/functions

Do I need 'functions'? Could its omission be the cause of my problem?

Re: an earlier inquiry, here is what is running (so says 'top -u wwwrun' | grep "zm" ... again, linux is new to me):

8013 wwwrun 16 0 6772 4868 1912 S 0.0 1.9 0:01.10 zmwatch.pl
9319 wwwrun 16 0 113m 20m 20m S 0.0 8.3 0:00.62 zmc
7979 wwwrun 16 0 7216 5368 1992 S 0.0 2.1 0:00.56 zmdc.pl
8007 wwwrun 15 0 6912 5176 1964 S 0.0 2.0 0:01.01 zmaudit.pl
8013 wwwrun 16 0 6772 4868 1912 S 0.0 1.9 0:01.10 zmwatch.pl
9516 wwwrun 15 0 99404 4724 4208 S 1.3 1.8 0:09.94 zms

Cheers!

________

Posted: Wed Aug 31, 2005 2:18 pm
by gregmac
this is not the first time this has come up..

http://www.zoneminder.com/forums/viewtopic.php?t=4902
http://www.zoneminder.com/forums/viewtopic.php?t=4759

I recently moved my ZM install to a new machine (bttv crashed one too many times, taking down important services..), and I have the same problem again. If I enable authentication, I can't view images.

Posted: Thu Sep 01, 2005 5:35 pm
by moontaurus
Hi Greg, thank you!
If I understand the discussion, they are trouble-shooting cookies client-side? I'm pretty certain that whatever the problem, it is servers-side; only because I've happen to try it now from so many different computers (mac and pc, office, home, friend's house), browsers (FF, IE, Opera, Netscape, Safari), etc, that it cannot be the cookie configuration on just one Firefox. Could it be how server-side configures the cookies?

But... sadly, it's all moot for me for the time-being since zm has mysteriously stopped working all together. Any wisdom? I'd be forever greatful! Now I get "connection broken to host" in the browser with this in the apache error log:

[Wed Aug 31 21:50:05 2005] [notice] child pid 17122 exit signal Segmentation fault (11)
[Wed Aug 31 21:50:11 2005] [notice] child pid 17123 exit signal Segmentation fault (11)
[Wed Aug 31 21:51:03 2005] [notice] child pid 17126 exit signal Segmentation fault (11)
[Wed Aug 31 21:51:09 2005] [notice] child pid 17127 exit signal Segmentation fault (11)
[Wed Aug 31 21:51:09 2005] [notice] child pid 17130 exit signal Segmentation fault (11)

I found this in Top while doing the above (pid 17126 is the same):
17126 wwwrun 16 0 0 0 0 Z 0.3 0.0 0:00.01 httpd2- <defunct>

All other directories (ie non-zm, html web pages) are being served correctly. What does it mean? (I'm a linux novice.... and not a programmer, need some hand-holding) Thanks for any ideas!!!!

Posted: Mon Sep 19, 2005 7:48 pm
by gregmac