[SOLVED] Zonminder fails to start on boot

Forum for questions and support relating to the 1.24.x releases only.
Locked
barrydocks
Posts: 42
Joined: Mon Aug 10, 2009 3:15 pm

[SOLVED] Zonminder fails to start on boot

Post by barrydocks »

Need a little help, system is a Dell Poweredge 4600 running 10.04 32bit. Followed this guide to get zoneminder working: http://www.zoneminder.com/wiki/index.ph ... 2C_etc.%29

Only problem is that I get this error on boot:

Code: Select all

 * Starting AppArmor profiles       [80G 
[74G[ OK ]

Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/ZoneMinder/Config.pm line 89

Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.

BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.

Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.

BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.

Compilation failed in require at /usr/bin/zmpkg.pl line 45.

BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.

failure



 * Starting MD monitoring service mdadm --monitor       [80G 
[74G[ OK ]

 * Starting web server apache2       [80G 
[74G[ OK ]
Zoneminder starts successfully after boot from either CLI or web console
Last edited by barrydocks on Wed Nov 24, 2010 5:42 pm, edited 1 time in total.
barrydocks
Posts: 42
Joined: Mon Aug 10, 2009 3:15 pm

Post by barrydocks »

OK solved this, I had moved the images and events folders to a stripped software raid array but zoneminder was starting before the software raid, so just changed the boot sequence so that zonminder started after mdadm :D
Locked