nginx and ssh server does not respond (Debian6, Ispconfig3, Bind)
I know nothing about nginx but I have installed it together with ISPConfig3 to create a "perfect server".
The server was working fine for about 3 months. A long power failure drained UPS batteries and the server powered-off without a UPS shutdown signal. When the server turned on again, it could not resolve dns queries. I ssh to the server and it looked like bind was not running. I browse to the ISPconfig using the static IP and ISPconfig's web interface was showing that all services was running. So I decided to reinstall bind but after a second thought I did an Code:
aptitude -y upgrade I would like some suggestions to be able to recover the server. Thank you. |
Powering off a machine incorrectly can lead to all sorts of file system inconsistencies and errors, some of which may remain hidden until it is too late. Especially in the event of a failed emergency shutdown you should pro-actively check file systems before commencing. Also when an important subsystem fails the default approach should be to troubleshoot the issue and find out the reason why and not simply reinstall the software. Finally while vendors, providers and resellers want you to believe that using a web-based management panel makes Linux "easy" without any knowledge its usage should be founded on basic OS knowledge and admin skills and not to shield yourself from having to learn about and deal with it.
Quote:
|
Thank you very much for your reply. It was very attractive to replace bash commands and nano with a nice web interface. It was attractive to replace Apache with nginx for use at older hardware. Unfortunately that was wrong. My omissions (proper NUT configuration) were critical and my knowledge is not enough.
The server is physically reachable but I felt I should get some advice before try something more. So, any troubleshooting advices are very welcome. |
Quote:
Quote:
|
I booted at runlevel 1 but could not find any useful information at log files. Anyway while running "telinit 2", I have noticed that server stopped responding while showing it was trying to start bind. So, I rebooted and it stopped responding while it was trying to start ClamAV (which was the next message line after "Starting bind"). Finally, I re-booted once more and this time the boot process finished normally.
Now dns resolves queries, ssh works, nginx responds with a default web page, ISPconfig interface and it's sites are not reachable. All web content files are reachable thru putty. Is it a hard disk problem? |
Quote:
|
Force filesystem check at reboot:
Code:
shutdown -rF now I should mention that some logfile had a clue about named not running, but that was exactly after power failure and it disappeared after "aptitude -y upgrade". syslog and daemon.log logfile analysis: Code:
logwatch --logfile syslog --logfile daemon.log --numeric --detail 5 --service all --range All --archives --output unformatted --filename /var/log/logwatch.log Quote:
Code:
apachectl -k stop How can I prevent apache to restart itself after an upgrade? Any more suggestions? |
Quote:
Quote:
Quote:
Quote:
Quote:
|
Thank you unSpawn, your posts were really helpful.
|
All times are GMT -5. The time now is 02:24 PM. |