I’m having some issues with my virtualmin installation (running on UBUNTU 10.04 LTS). After an update to PHP 5.3.3, and doing
$ sudo update $ sudo update
some repositories where installed, including some virtualmin features. As soon I restarted the VPS, i was no more able to start webmin at boot. After asking the VPS manager to start webmin for me, I was nt able to start mysql: i kept recieving the message:
root@ns1:~# mysql -u root -p=0220404 ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
I’ve tried to fix it, but it seems that the command service thinks is running but it isnt, so it wont let me start it. On this attempt to fix it, it seems i broke something, cause now mails are not being deliverd to virtualmin virtual servers account, they are being rejected.
That’s why i’ve tried to migrate my virtualmin installation to another clean installation of UBUNTU 12.04, but when trying to do this, i get the following error:
Backup failed : DBI connect failed : Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
So, in other words, i’m trying to migrate my virtual servers because mysql is not working, and i’m not able to start it. But to made the backups, it ask me to have mysql in function. So, how should i proceed?
It sounds like the current need is to get MySQL up and running… since the init script won’t start it, citing that it’s already running, you may want to verify that there aren’t any MySQL related processes running.
To do that, log in to your server over SSH, and run this command:
Thanks a lot for your help. There were some problems with the packages after the updates i’ve made to the system. I’ve manage to solve it picking the trouble packages and executing:
dpkg-reconfigure trouble-package
After that, everything was working JUST fine, until i realize that IMAP was not working in localhost, and therefore, webmail is not working.
Hmm, it does look like it’s listening on all interfaces on port 143… if it’s not responding, that sounds like either Dovecot has some sort of configuration issue, or maybe a firewall is causing some sort of problem.
What does this output:
iptables -L -n
Also, if you look in /var/log/mail.log, do you see any errors when trying to connect?
Apr 9 22:55:04 ns1 postfix/local[8016]: 43C3732EC351: to=, relay=local, delay=0.19, delays=0.08/0/0/0.11, dsn=5.3.0, status=bounced (Command died with status 127: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: sh: /usr/bin/procmail-wrapper: not found )
But it seems to be old (from Apr9) and does not seems to make sense anymore… is it?