After pc reboot "Zoneminder Console - Stopped"

Forum for questions and support relating to the 1.24.x releases only.
user1985
Posts: 9
Joined: Mon Aug 02, 2010 11:45 am

After pc reboot "Zoneminder Console - Stopped"

Post by user1985 »

When i restart pc get "Zoneminder Console - Stopped"
I start it manualy but when restart pc it gets stopped again.

Ubuntu 10.4 desktop+Zoneminder 1.24.2

How to solve it?
user1985
Posts: 9
Joined: Mon Aug 02, 2010 11:45 am

Post by user1985 »

Anybody please help!
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

You have a required service that ZM needs not set to start at boot. In FC12 you'd need to go to System::Administration::Services, scroll down to the ZM services, enable the ones that aren't running, and set to start. Can't tell you specifically on Ubuntu.
williamthrilliam
Posts: 7
Joined: Wed Aug 11, 2010 12:05 am

Post by williamthrilliam »

Install "bum". Just search for it in the synaptic package manager. It should show up in System > Administration > Bootup Manager
user1985
Posts: 9
Joined: Mon Aug 02, 2010 11:45 am

Post by user1985 »

Thanks "bb99" and "williamthrilliam" for your answers, but this not help.
When i start manualy Zoneminder service In Boot-Up Manager, after reboot it stopped.

Any ideas?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Post by PacoLM »

Try reinstalling apache2.
user1985
Posts: 9
Joined: Mon Aug 02, 2010 11:45 am

Post by user1985 »

that not helpped :(
user1985
Posts: 9
Joined: Mon Aug 02, 2010 11:45 am

Post by user1985 »

I installed 3 diferent PC by this manual: http://www.zoneminder.com/wiki/index.ph ... 29_Desktop

and get this error...

:x
user1985
Posts: 9
Joined: Mon Aug 02, 2010 11:45 am

Post by user1985 »

before reboot pc
Image

after reboot pc
Image


Any ideas?
novazion
Posts: 19
Joined: Mon Mar 08, 2010 10:30 am

Post by novazion »

I've got this problem too with Ubuntu server.
Zoneminder service is configured to start on boot, but this does not happen.
I don't think this is a zoneminder problem, as the init script works perfectly. It should be an Ubuntu problem, i'll try top post on an ubuntu and see ifI can get something to work.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Haven touched ubuntu in a while but i believe it has something to do with permission you may have to add zm to the video group. If not go open the log viewer under admin tool should give some more info.
Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post by Pada »

I'm having the exact same thing.

It appears to me as if the ZoneMinder service is trying to start before the MySQL server has started, letting the ZoneMinder service fail to start.

I'm gonna see if sleeping the ZM startup script for a few seconds could fix this.
Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post by Pada »

This is typically what I have:
/var/log/syslog wrote:Aug 24 03:01:33 it-desktop zmfix[1267]: ERR [Can't connect to server: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]
Aug 24 03:01:34 it-desktop /etc/mysql/debian-start[1431]: Upgrading MySQL tables if necessary.
* Note that ZM is trying to start 1 second before MySQL ^^

Simply adding 'sleep 15' in the line above 'zmfix -a' in the /etc/init.d/zoneminder file fixed my ZoneMinder startup problems!
Here's the new output from the syslog:
Aug 24 03:05:29 it-desktop /etc/mysql/debian-start[1412]: Upgrading MySQL tables if necessary.
Aug 24 03:05:44 it-desktop zmpkg[1731]: INF [Command: start]
^^ Now there's a nice 15 second gap :)
rrntal
Posts: 5
Joined: Sat Aug 14, 2010 2:25 pm

Post by rrntal »

works but for me (I'm using 10.4 server with dist-upgrade on 8-29-10) adding the "sleep 15" line broke apache2 and kept it from starting on boot. I fixed this and got apache server to start on boot by removing it from startup with "update-rc.d -f apache2 remove" and adding the line "apache2ctl restart" AFTER the sleep command.

works great now!
novazion
Posts: 19
Joined: Mon Mar 08, 2010 10:30 am

Post by novazion »

What I have done:

update-rc.d -f zoneminder remove
then
update-rc.d zoneminder defaults 92

So it strats after apache, and normally after mysql.

Worked for me.
Locked