Page 1 of 2

Solved.

Posted: Wed Aug 31, 2005 8:41 pm
by moontaurus
Help! It was working fine (except for the authentication problem) then.... just... no more access. I restarted the machine, had to restart zm in the runlevel editor, which says zm is running now. But this is what I get:
_
An error occurred while loading http://localhost/www/zm/index.php:

Connection to host localhost is broken
_
ZM is still recording events. I look in the events directory and there are new images stored. zma etc are active in top. Other html web pages in other directories work. But. I. Just. Can't. Access. Zoneminder. Why? What's going on? What should I look for? What does this mean?

Thank you!!!

Posted: Thu Sep 01, 2005 12:32 am
by tim@pcs-alaska.com
Does the apache error log give any clues?

(zm stopped working....)

Posted: Thu Sep 01, 2005 4:40 am
by moontaurus
Thanks Tim!

When I try to load zm, this is what appears 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 at the same time (pid 17126 is the same):
17126 wwwrun 16 0 0 0 0 Z 0.3 0.0 0:00.01 httpd2- <defunct>

What does it mean? (I'm a linux novice.... and not a programmer, need some hand-holding) Thank you, Tim!!!!

Heeeelp!

Posted: Fri Sep 02, 2005 7:05 am
by moontaurus
I'm at my wit's end. I bought a video card and two cameras, then I stayed up into the wee hours many a night, finally got it all working (except for images won't load in authentication mode, and ZM doesn't restart on reboot) but now...... ZM is dead and I don't understand! It won't work at all in the browser..... Heeeeelp! Somebody out there?? Pleeeease.....

Posted: Fri Sep 02, 2005 4:15 pm
by zoneminder
Can you view any other pages on your machine at all. Having httpd segv is usually pretty major and indicates something fundamentally wrong somewhere. Do you see any errors in any of the ZM logs?

Phil

Your questions re: Mau-Cam

Posted: Fri Sep 02, 2005 6:02 pm
by moontaurus
zoneminder wrote:Can you view any other pages on your machine at all. Having httpd segv is usually pretty major and indicates something fundamentally wrong somewhere. Do you see any errors in any of the ZM logs?
Hi Phil, thank you!! ZM is still running and recording events, it seems. And, to answer you, yes, I can view web pages contained everywhere else on my server with no problem. I can even view contents of the directory above zm, and I can view contents of events/ directory within zm, etc. ... As a matter of fact, while writing this, I just did a test. I added a test index.html (note: ".html", not ".php") file right into the zm directory and that views just fine. So, it has something to do with php or zm or mysql.... Any ideas what to look for?

I looked through the logs and there are various errors, but they seem to be consistent though back when zm was working, so I don't interpret anything as meaningful (but that's not saying much coming from me). I stuck 'em all here:
[url]http://***/zm/[/url]

Don't be shocked by some of the archived event names, like "Mau's first PeePee on camera". That's the Mau-Cam. For kicks I'll put a movie in the above directory too. This was actually one of the last events recorded before I lost comms with zm. Mau is my cat and I have an infrared camera trained on her litterbox. This, until I get everything working, and get a "bait" bicycle to install in my car port for real. I've had TWO bicycles stolen this month, second time they cut through a motorcycle lock. Anyway, long story, but I think I actually know who might be responsible.

So, back to zm and "serious errors"... Your wisdom, oh wise one? Thank you!!!!!

Sincerely, your linux newbie....

Posted: Sat Sep 03, 2005 2:52 am
by cordel
You are missing some perl modules that would help.
Can't locate LWP/UserAgent.pm ( LWP::UserAgent )
Can't locate Date/Manip.pm ( Date::Manip )
See the readme on how to install these via CPAN or install the perl packages for the modules for your distro.
Regards,
Cordel

Mau-Cam

Posted: Sat Sep 03, 2005 8:10 am
by moontaurus
Hi again, glad to hear from you! So I threw in a bunch of Perl from Suse. Now I have /usr/lib/perl5/vendor_perl/5.8.3/LWP/UserAgent.pm
and /usr/lib/perl5/vendor_perl/5.8.3/Date/Manip.pm on my disk, as per your note.

And.... drumroll.... situation still the same. I looked at the end of zmdc.log where your found the two missing perl scripts, now there seems to be a MYSQL access problem? (I updated the logs at the link above). Where to now?

Posted: Sat Sep 03, 2005 8:31 am
by cordel
Make sure you have MySQL running. That error was not in your logs earlier and didn't show up till 05/08/24 01:38:13 and is intermittant from then.

MySQL

Posted: Sat Sep 03, 2005 8:37 am
by moontaurus
cordel wrote:Make sure you have MySQL running. That error was not in your logs earlier and didn't show up till 05/08/24 01:38:13 and is intermittant from then.
So I checked, and, yes, seems MySQL is enabled in SUSE Yast runlevel editor, and 'mysql mysql' gets me the prompt. Anything else I should check?

Posted: Sat Sep 03, 2005 9:01 am
by cordel
If you could tail your logs so they are not so long and include messages that would help.
If you haven't already tried, you may want to reboot your machine.

Tailed logs

Posted: Sun Sep 04, 2005 10:15 am
by moontaurus
cordel wrote:If you could tail your logs so they are not so long and include messages that would help.
If you haven't already tried, you may want to reboot your machine.
Oh, many a reboot, many a reboot. So I have tailed the logs and included more, as per. I lost access to ZM on 8/30 at night. Last change to the system before zm turned its back on me: I removed ffmpeg and dependencies via Suse Yast which kept complaining about it -- I never could get ffmpeg to work, and the mpeg_encode works just great for me. I look forward to your thoughts. I'm so bummed that, after all this hard work late nights, zm is down.

Posted: Sun Sep 04, 2005 3:56 pm
by zoneminder
Can you create a file, call it 'debug.php' in your web root and makes it's contents just the following

Code: Select all

<?php

phpinfo();

?>
then try and access that. If you get output perhaps it might show something useful, at least it would prove that php is ok.

Phil

That was fun

Posted: Sun Sep 04, 2005 7:42 pm
by moontaurus
Update 9/4/05 pm:

Uhmuhgod. I updated some nearly random SUSE packages in Yast Yum, things that I hoped might help MySQL or PHP or Pearl, based on their names and descriptions, though Greek to me. Basically I shot in the dark, because I don't know linux or computer programming and I have no idea what I'm doing. Anyway, two things happened: 1. ZM loads now in the browser.... (for the time-being? Last week zm went away for no good reason) and 2. now images load correctly when I have authentication on! A first.

If anybody for some reason is REALLY curious about what has happened, then I'll provide a set of before-and-after logs for you. (In return, just tell me what you figure out.) I'm still worried about what once said, that my apache error log - the seg faults - suggested a serious fundemental problem somewhere.

Cheers for now, thank you HUGELY for everything to date, and here's hoping I won't come crawling back anymore after zm decides to go back to sleep.

Now here is the original message I posted here this morning:
zoneminder wrote:Can you create a file, call it 'debug.php' in your web root ... then try and access that. If you get output perhaps it might show something useful, at least it would prove that php is ok. Phil
Oh goody, that was fun, Phil. Indeed, the php file works and gives me a nice php status screen. Who knew -- that's cool.

Where should I go from here?

Thank you!!!

Posted: Wed Sep 07, 2005 11:22 am
by zoneminder
Thanks for the update.

Do you know which packages were updated on your system? I assume that there is a yast or yum log somewhere that might tell you.

Phil