Help Required with CentOS and Mysql and Bind DNS
Just wondering if someone could point me in the right direction, I'm using Webmin (control panel) to run multiple non-profit websites for various charities in the Toronto region for free and have run into some difficulties.
I had been trying to add a user to ftp and something has gone absolutely wrong.
My DNS server and MySQL server instances do not want to start nor run
From the DNS I get the following error code:
"Failed to start service : Failed to start BIND : Starting named: [FAILED]"
And from the MySQL Server I get the following error code:
"Failed to start service : Timeout error occurred trying to start MySQL Daemon. Starting MySQL: [FAILED]"
Also all the websites except the Webmin modules now display a 403 error page. I'm guessing Webmin isn't affected as it runs on a different webserver.
Thank You in advance for your help.
As a place to start, in webmin you could look at your system logs "messages" to get a better error message from bind. then work from there. For more help your probably going to have to give a lot more information to others for help.
This is what I have got from the mysql log file.
121022 17:11:37 [ERROR] bdb: fatal region error detected; run recovery
121022 17:11:37 [ERROR] bdb: /var/lib/mysql: Permission denied 121022 17:11:37 [ERROR] Can't start server : Bind on unix socket: Permission denied
121022 17:11:37 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
121022 17:11:37 [ERROR] Aborting
121022 17:11:37 [Note] /usr/libexec/mysqld: Shutdown complete
121022 17:11:37 mysqld ended "
|reply to ds5v50 |
said by ds5v50:This is correct. When you have multiple failures (here: DNS, Webserver and Database server) it is generally best to look at whether any dependencies exist between them. If so, the problem of component A not working may simply be the result of component B (on which A depends) not working and troubleshooting should initially focus on component B (in your case the Webserver and Database server probably depend on DNS to work so you should focus on BIND first).
As a place to start, in webmin you could look at your system logs "messages" to get a better error message from bind. then work from there.
BIND tends to be pretty good about stating exactly what it is unhappy about when it refuses to start. The contents of /var/log/messages should help to point you in the right direction.
Some additional things you may be able to check depending on the level of access that you still have:
- how much diskspace do you have in the / filesystem ? Since you mention that this happened around the same time as you were adding another user /etc/passwd, /etc/group and/or /etc/shadow may have been truncated if you tried to update them while the filessystem was full (that can have the additional problem of missing error messages hiding the problem).
- do /etc/passwd and /etc/group (/etc/shadow as well if you have root access) look intact and complete ? Did the name of the user account you added have any special characters that may cause problems in parsing those files ?
Got some spare cpu cycles ? Join Team Helix or Team Starfire!