Cristian Livadaru's blog

... think again ...

How Libnss-mysql Stole My Evening

After installing a new VPS I thought I would go with Debian Lenny, although it’s not “stable” yet. The installation was quick and easy, no problems here. Then a control panel was needed, here of course I went with DTC the great GPL control panel from gplhost. After everything was up an running I noticed postfix was crashing.
warning: process /usr/lib/postfix/bounce pid 23776 killed by signal 6 warning: /usr/lib/postfix/bounce: bad command startup -- throttling warning: process /usr/lib/postfix/smtpd pid 4848 killed by signal 6 warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

As usual, when you have no idea what it is, start searching. Funny enough, the first search result on google was a topic on gplhost froums, where I actually answered! Unfortunately my answer was related to a different question of that thread, but I still think it’s a bit funny. So as dsadmin was writing, it seems to be a mysql connection problem. The workaround described there (removing the mysql stuff from nsswitch.conf) does help, but it’s just a workaround and not a solution. It seems like libnss-mysql is broken in Debian Lenny and probably in Ubuntu also. A recompile didn’t help.

So, here comes Damien (also from gplhost) with the idea to install libnss-mysql-bg instead of libnss-mysql. After some modifications to the dtc control file (without them debian removes dtc because of dependency to libnss-mysql) I could remove libnss-mysql and install libnss-mysql-bg instead. Now all I had to do is run the DTC installer one more time so it can make all necessary modification to the libnss-mysql-bg config files (yes, DTC works with both!) and my problems where all solved.