Comment 2 for bug 625008

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Eric, thanks for taking the time to file this bug report and working with us to make Ubuntu better.

This would appear to be because mysqld was stopped or configured in an incompatible way, as indicated by this message from DpkgTerminalLog.txt:

Creating config file /etc/dbconfig-common/bacula-director-mysql.conf with new version
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).

error #2 means "No such file or directory", which would only occur if mysqld was stopped, or the configuration was changed to move the socket file somewhere else.

mysqld must be started and configured to use /var/run/mysqld/mysqld.sock in order for the config values to be checked.

Try ensuring that mysqld is started and that the socket file exists, and then run

sudo dpkg-reconfigure bacula-director-mysql

Marking Invalid, if you encounter another error while configuring the package, I would encourage you to open a new bug report.