Page 1 of 1

[SOLVED] Zonminder fails to start on boot

Posted: Tue Nov 23, 2010 6:01 pm
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

Posted: Wed Nov 24, 2010 5:42 pm
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