Page 1 of 2

After pc reboot "Zoneminder Console - Stopped"

Posted: Fri Aug 13, 2010 11:24 am
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?

Posted: Fri Aug 13, 2010 12:40 pm
by user1985
Anybody please help!

Posted: Fri Aug 13, 2010 2:49 pm
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.

Posted: Sun Aug 15, 2010 9:25 pm
by williamthrilliam
Install "bum". Just search for it in the synaptic package manager. It should show up in System > Administration > Bootup Manager

Posted: Mon Aug 16, 2010 6:59 am
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?

Posted: Mon Aug 16, 2010 12:06 pm
by PacoLM
Try reinstalling apache2.

Posted: Tue Aug 17, 2010 8:00 am
by user1985
that not helpped :(

Posted: Tue Aug 17, 2010 12:01 pm
by user1985
I installed 3 diferent PC by this manual: http://www.zoneminder.com/wiki/index.ph ... 29_Desktop

and get this error...

:x

Posted: Tue Aug 17, 2010 1:35 pm
by user1985
before reboot pc
Image

after reboot pc
Image


Any ideas?

Posted: Wed Aug 18, 2010 11:23 am
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.

Posted: Wed Aug 18, 2010 9:54 pm
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.

Posted: Tue Aug 24, 2010 12:44 am
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.

Posted: Tue Aug 24, 2010 1:10 am
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 :)

Posted: Sun Aug 29, 2010 3:02 pm
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!

Posted: Mon Aug 30, 2010 9:54 am
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.