Zoneminder UNSTABLE & HANGS, needs frequent restarting
Zoneminder UNSTABLE & HANGS, needs frequent restarting
After a few minutes of live streaming my connection to a remote terminal , apache freezes and needs to have "sudo apache2ctl restart" typed on a ssh terminal to recover. It always leaves a large negative number in the fps value. i am using a PV-149 4 camera board from Bluecherry and using a hard drive install from the Bluecherry Live 1.24 CD.I am using Firefox 3.0.6 as my remote browser.
Also, the resolution will only set to 320x240, if i use 640x480 i get a black screens.
Also, the resolution will only set to 320x240, if i use 640x480 i get a black screens.
-
- Posts: 190
- Joined: Tue Sep 16, 2008 5:22 am
What is you hardware camera configuration? there or some recent posts by me regarding the hanging thing? please jump in on them as the squeaky wheel get the grease. One is apache hang not solved and the other is titled ajax error or something like that.
I have had black screen because of outdated hardware also you have to reset zm after you change resolution have you tried that?.
I have had black screen because of outdated hardware also you have to reset zm after you change resolution have you tried that?.
A MAJOR NEW CLUE
I have looked at the other threads suggested by c0mputerking and tried the fix by lonewolf:
To fix: on or about line 60 in ajax/stream.php change
Code:
if ( $numSockets === false )
to
Code:
if ( $numSockets === false || $numSockets < 1 )
When I add this fix it still freezes the image(with the telltale negative one thousand something fps rate) every few minutes but I do not need to restart apache anymore , now if I reclick on the camera in the console view (which no longer loses connection) it unfreezes the image in the live camera view.
(Also , the resolution problem was solved by loading settings and rebooting.Hats off to c0mputerking for that tip)
This rest of this thread should be linked with the others by c0mputerking, but I dont know how to do it.
To fix: on or about line 60 in ajax/stream.php change
Code:
if ( $numSockets === false )
to
Code:
if ( $numSockets === false || $numSockets < 1 )
When I add this fix it still freezes the image(with the telltale negative one thousand something fps rate) every few minutes but I do not need to restart apache anymore , now if I reclick on the camera in the console view (which no longer loses connection) it unfreezes the image in the live camera view.
(Also , the resolution problem was solved by loading settings and rebooting.Hats off to c0mputerking for that tip)
This rest of this thread should be linked with the others by c0mputerking, but I dont know how to do it.
-
- Posts: 190
- Joined: Tue Sep 16, 2008 5:22 am
APACHE GOES WILD
Here's my /var/log/apache2/access.log
SOMETHING IS VERY WRONG HERE!!!!!
IF I DON'T GET THIS FIXED SOON MY HARD DRIVE WILL BE FILLED WITH THIS LOG FILE THAT IS ADDING ENTRIES EVERY 3 SECONDS !!!!!!!javascript:emoticon(':(')
92.168.0.101 - - [28/Mar/2009:09:37:52 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:37:55 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:37:58 -0700] "POST /index.php HTTP/1.1" 200 137 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:00 -0700] "POST /index.php HTTP/1.1" 200 787 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:01 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:04 -0700] "POST /index.php HTTP/1.1" 200 139 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:07 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:10 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:13 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:16 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:19 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:23 -0700] "POST /index.php HTTP/1.1" 200 139 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:26 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:29 -0700] "POST /index.php HTTP/1.1" 200 139 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:30 -0700] "POST /index.php HTTP/1.1" 200 787 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:32 -0700] "POST /index.php HTTP/1.1" 200 139 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
SOMETHING IS VERY WRONG HERE!!!!!
IF I DON'T GET THIS FIXED SOON MY HARD DRIVE WILL BE FILLED WITH THIS LOG FILE THAT IS ADDING ENTRIES EVERY 3 SECONDS !!!!!!!javascript:emoticon(':(')
92.168.0.101 - - [28/Mar/2009:09:37:52 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:37:55 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:37:58 -0700] "POST /index.php HTTP/1.1" 200 137 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:00 -0700] "POST /index.php HTTP/1.1" 200 787 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:01 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:04 -0700] "POST /index.php HTTP/1.1" 200 139 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:07 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:10 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:13 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:16 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:19 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:23 -0700] "POST /index.php HTTP/1.1" 200 139 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:26 -0700] "POST /index.php HTTP/1.1" 200 138 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:29 -0700] "POST /index.php HTTP/1.1" 200 139 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:30 -0700] "POST /index.php HTTP/1.1" 200 787 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
192.168.0.101 - - [28/Mar/2009:09:38:32 -0700] "POST /index.php HTTP/1.1" 200 139 "http://192.168.0.112/?view=watch&mid=1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6"
- henriquejf
- Posts: 77
- Joined: Tue Feb 10, 2009 12:01 pm
- Location: Brazil
duplicated topics
In an effort to solve, or even organize related problems, i am asking users experiencing **APACHE HANGS** to double check what has been tried before by other users, so we don´t loose our time and get things working as expected;
I am not even sure that it is a ZM bug, but i am sure that many people have to restart apache from time to time, just as me; One user found it useful to restart apache as a cron job every x minutes, another user proposed to use http://jzmconsole.securitykit.net/ as a workaround for the problem when it happens in the montage view, but i am sure that we´ll have that fixed soon by the community, so we don´t have to give up and try the mentioned workarounds;
apache hanging problems - related, duplicated (or not) topics
==============================================================
** Maxopenfile reached & machine hangs zm problem ?
http://www.zoneminder.com/forums/viewtopic.php?t=13486
** apache not responding
http://www.zoneminder.com/forums/viewtopic.php?t=13322
** Apache instances/responsiveness issue...solved(?)
http://www.zoneminder.com/forums/viewto ... c&start=15
** Zoneminder UNSTABLE & HANGS, needs frequent restarting
http://www.zoneminder.com/forums/viewto ... 1196#51196
** hundreds of httpd processes
http://www.zoneminder.com/forums/viewtopic.php?t=13588
If some experienced programmer could give us a light, it would be so kind !!
I am not even sure that it is a ZM bug, but i am sure that many people have to restart apache from time to time, just as me; One user found it useful to restart apache as a cron job every x minutes, another user proposed to use http://jzmconsole.securitykit.net/ as a workaround for the problem when it happens in the montage view, but i am sure that we´ll have that fixed soon by the community, so we don´t have to give up and try the mentioned workarounds;
apache hanging problems - related, duplicated (or not) topics
==============================================================
** Maxopenfile reached & machine hangs zm problem ?
http://www.zoneminder.com/forums/viewtopic.php?t=13486
** apache not responding
http://www.zoneminder.com/forums/viewtopic.php?t=13322
** Apache instances/responsiveness issue...solved(?)
http://www.zoneminder.com/forums/viewto ... c&start=15
** Zoneminder UNSTABLE & HANGS, needs frequent restarting
http://www.zoneminder.com/forums/viewto ... 1196#51196
** hundreds of httpd processes
http://www.zoneminder.com/forums/viewtopic.php?t=13588
If some experienced programmer could give us a light, it would be so kind !!
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
- henriquejf
- Posts: 77
- Joined: Tue Feb 10, 2009 12:01 pm
- Location: Brazil
I have a simple suggestion of a workaround that works for me: close all instances of your browser and open it again;
Altough it seems to work, you may notice acumulated sock files under /tmp that may indicate that this is a real problem;
I have my experiences and logs documented in
http://www.zoneminder.com/forums/viewtopic.php?p=52491
hope it helps someone;
I still experience these "hangs" (that in fact aren´t apache hanging as you restart your browser and have things working again) with zm 1.24.1 in the latest SVN 2862 (as of may 6th, 2009)
Altough it seems to work, you may notice acumulated sock files under /tmp that may indicate that this is a real problem;
I have my experiences and logs documented in
http://www.zoneminder.com/forums/viewtopic.php?p=52491
hope it helps someone;
I still experience these "hangs" (that in fact aren´t apache hanging as you restart your browser and have things working again) with zm 1.24.1 in the latest SVN 2862 (as of may 6th, 2009)
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany
Here is a suggestion that works for me, use the ZM install DVD...
Ok, that was a joke, but seriously I don't have any problems with the newer SVN and I don't understand why more people don't provide input on the Live CD/DVD/ or vmware option. I know everyone wants to get ZM working on every OS under the sun, but if everyone put effort into one build that had every single tweak, addon, or whatever, everyone would be much further ahead.
I have over 10 AXIS cam's running at my house for testing and can leave the montage view on over night and have it working still in the morning, if not days later. I can also use jZMConsole or ZMviewer that I've installed on my DVD for viewing with no issues. I've never once had to restart apache or ZM for that matter. Wish I could offer more help, but I think i've done enough offering something that just works.
Ok, that was a joke, but seriously I don't have any problems with the newer SVN and I don't understand why more people don't provide input on the Live CD/DVD/ or vmware option. I know everyone wants to get ZM working on every OS under the sun, but if everyone put effort into one build that had every single tweak, addon, or whatever, everyone would be much further ahead.
I have over 10 AXIS cam's running at my house for testing and can leave the montage view on over night and have it working still in the morning, if not days later. I can also use jZMConsole or ZMviewer that I've installed on my DVD for viewing with no issues. I've never once had to restart apache or ZM for that matter. Wish I could offer more help, but I think i've done enough offering something that just works.
- henriquejf
- Posts: 77
- Joined: Tue Feb 10, 2009 12:01 pm
- Location: Brazil
well, actually i have already tryed the zmlarch live cd, and the zmlivecds before, but still the little problems; please tell me if there is another new livecd instead of zmlarch that i dont know about; I have read many of your posts and had a lot of help with them, and im sure that your effort is priceless; im my personal case, i need zm on top of a ubuntu server install for one company i work on; but ill be pleasured myself to have your distro on my home, no doubts !!!I know everyone wants to get ZM working on every OS under the sun,
Tks for your comments; as i have stated everywhere else im not sure that this is a particular problem or a zm bug, i think ill get to know that by this weekend at most, counting on your (and community) help;
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany
- henriquejf
- Posts: 77
- Joined: Tue Feb 10, 2009 12:01 pm
- Location: Brazil
edit: moved my last post to
http://www.zoneminder.com/forums/viewto ... 2593#52593
and will continue just there; sorry for the pollution;
http://www.zoneminder.com/forums/viewto ... 2593#52593
and will continue just there; sorry for the pollution;
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
Can you Run a Ajax Script in a desktop application? If you've found a really cool Ajax App, and you want to be able to run the app and only the app from your desktop, is there a way to build an application that takes you straight to the Ajax application? I'm talking basically about a Chat script that is in Ajax that I like. I don't want to make any changes to the application at all, I just want to run it from a desktop application, so I don't have to stay on the website to do it. Is this possible?
___________________
muslim matrimonial
___________________
muslim matrimonial
Re: Zoneminder UNSTABLE & HANGS, needs frequent restarting
It's possible in theory, but it really depends on just what your script does, can you give us more information.