• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Random Server Reboots/Crashes with plesk

afterxleep

New Pleskian
I've been running 10.4 for several years on a server (CentOS 5.4) without any issues, but suddenly today, the server (a Xen based VPS) started rebooting suddenly just after sending your username/password to login.

It also seems to be crashing on any plesk/bin command line utils.

I've restored backups and discarded a hardware issue my moving VPS to other parent with no luck. There are no kernel crash logs that evidence driver problems or something close to that.

Any ideas?

Thanks,

D
 
The main Plesk logs are
  • Error log: /var/log/sw-cp-server/error_log and /var/log/sw-cp-server/sw-engine.log
  • Panel log: /usr/local/psa/admin/logs/panel.log
Have you checked them at least?
 
Thanks for the answer. I did check them but could not find anything relevant. I will try a fresh OS install+plesk and then restoring backups to see if that fixes the issue.

If that does not work I'll restore the server as it was and check those in detail.

Thanks!

D
 
Hi Igor.

These are the logs with errors. After throwing that error, the server reboots itself (like a reset).

From the error, you would assume mysql is down, or the sock file does not exists, but I checked both.

This started happening on CentOS 5.6 and is happening on a fresh plesk install.

Code:
2016-11-21 12:58:34: (mod_fastcgi.c.2588) FastCGI-stderr: PleskFatalException: Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

file: /usr/local/psa/admin/plib/common_func.php3

line: 150

code: 0

trace: #0 /usr/local/psa/admin/auto_prepend/auth.php3(111): psaerror('Unable to conne...')

#1 {main}


PHP Fatal error:  Uncaught exception 'Zend_Exception' with message 'No entry is registered for key 'config'' in /usr/local/psa/admin/plib/Zend/Registry.php:147

Stack trace:

#0 /usr/local/psa/admin/plib/CommonPanel/Exception.php(63): Zend_Registry::get('config')

#1 /usr/local/psa/admin/plib/CommonPanel/Exception.php(43): CommonPanel_Exception::_sendRuntimeReportXML(Object(PleskFatalException), 1)

#2 /usr/local/psa/admin/plib/PleskException.php(49): CommonPanel_Exception::sendNotification(Object(PleskFatalException))

#3 /usr/local/psa/admin/plib/PleskException.php(10): report_crash('Unable to conne...', Array, 'PleskFatalExcep...', 500, Object(PleskFatalException))

#4 [internal function]: plesk_exception_handler(Object(PleskFatalException))

#5 {main}

  thrown in /usr/local/psa/admin/plib/Zend/Registry.php on line 147
 
There is really something wrong with MySQL. I would suggest you try to restart it and check MySQL logs.
 
Noup. got tired after several days debugging with no luck. I wiped down the whole thing, installed a fresh copy of plesk and restored a backup.
 
Thanks for your quick response. I did the same course of action...I built a new box with latest version of plesk and migrated the 60 sites over. It was a pain and took me 16 hours to do it, but glad to be off plesk 10 and that server. Was an action item for over a year now....this finally was the last straw.

Thanks again!
 
Back
Top