Problem logging in Plesk: Read timed out after 10 seconds

Created:

2016-11-16 13:11:08 UTC

Modified:

2017-08-17 23:40:36 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Problem logging in Plesk: Read timed out after 10 seconds

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

  1. Unable to login to Plesk, Plesk administrator home page is not available. The following error appears:
    Internal error: Read timed out after 10 seconds
    Message Read timed out after 10 seconds
    File Socket.php
    Line 511
    Type Zend_Http_Client_Adapter_Exception

    In some cases access under admin account is possible, however it fails with the error above under customer/reseller account.

  2. Plesk /var/log/plesk/panel.log in debug mode contains the following error:
    [2016-09-09 14:11:01] ERR [1] Zend_Http_Client_Adapter_Exception: Read timed out after 10 seconds
    file: /usr/local/psa/admin/externals/Zend/Http/Client/Adapter/Socket.php
    line: 511
    code: 1000
    trace: #0 /usr/local/psa/admin/externals/Zend/Http/Client/Adapter/Socket.php(329): Zend_Http_Client_Adapter_Socket->_checkSocketReadTimeout()
    #1 /usr/local/psa/admin/externals/Zend/Http/Client.php(1075): Zend_Http_Client_Adapter_Socket->read()
    #2 /usr/local/sb/include/SB/ErrorsReport.php(56): Zend_Http_Client->request(string 'POST')
    #3 /usr/local/sb/include/SB/Log.php(151): SB_ErrorsReport::send(object of type SB_Facade_Exception_NotFound)
    #4 /usr/local/sb/include/SB/Facade/ServiceWrapper.php(54): SB_Log->logException(object of type SB_Facade_Exception_NotFound, boolean false)
    #5 /usr/local/psa/admin/plib/Sitebuilder/Transport/Local.php(90): SB_Facade_ServiceWrapper->__call(string 'isPublished', array)
    #6 /usr/local/psa/admin/plib/Sitebuilder/Transport/Local.php(90): SB_Facade_ServiceWrapper->isPublished(string 'b35f9e1e-afd5-329a-fc6b-ee04468a457a')
    #7 /usr/local/psa/admin/plib/Sitebuilder/Connector.php(542): Sitebuilder_Transport_Local->isPublished(string 'b35f9e1e-afd5-329a-fc6b-ee04468a457a')
    #8 /usr/local/psa/admin/plib/Sitebuilder/Connector.php(524): Sitebuilder_Connector->_isSitePublished(string 'b35f9e1e-afd5-329a-fc6b-ee04468a457a')
    #9 /usr/local/psa/admin/plib/Sitebuilder/Connector.php(503): Sitebuilder_Connector->_getPublishedSitesNumber(resource)
    #10 /usr/local/psa/admin/plib/Limits/Extension/Plesk/Sitebuilder.php(18): Sitebuilder_Connector->getPublishedSitesNumber()
    #11 /usr/local/psa/admin/plib/Limits/Counter/Plesk.php(424): Limits_Extension_Plesk_Sitebuilder->getUsed()
    #12 /usr/local/psa/admin/plib/Promo/LicenseLimits.php(42): Limits_Counter_Plesk->getUsed()
    #13 /usr/local/psa/admin/plib/Promo/LicenseLimits.php(34): Promo_LicenseLimits->_isLimitAboutToBeExceeded()
    #14 /usr/local/psa/admin/plib/Promo/Abstract.php(17): Promo_LicenseLimits->isActive()
    #15 /usr/local/psa/admin/application/admin/controllers/HomeController.php(81): Promo_Abstract::getPromosList()
    #16 /usr/local/psa/admin/application/admin/controllers/HomeController.php(42): Admin_HomeController->_preparePromos()
    #17 /usr/local/psa/admin/externals/Zend/Controller/Action.php(516): Admin_HomeController->adminAction()
    #18 /usr/local/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch(string 'adminAction')
    #19 /usr/local/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(object of type Zend_Controller_Request_Http, object of type Zend_Controller_Response_Http)
    #20 /usr/local/psa/admin/plib/Application/Web.php(42): Zend_Controller_Front->dispatch(NULL null)
    #21 /usr/local/psa/admin/htdocs/application.php(15): Plesk\\Application_Web->run()

Cause

Database inconsistency. Orphaned record about WebPresenceBuilder instance left in psa.dom_param table.

Resolution

  1. Find orphaned record using ID b35f9e1e-afd5-329a-fc6b-ee04468a457a which is taken from error in /var/log/plesk/panel.log:

    # plesk db
    mysql> select d.name, p.dom_id, p.param, p.val from psa.domains d, psa.dom_param p where d.id=p.dom_id and p.val="b35f9e1e-afd5-329a-fc6b-ee04468a457a";
    +--------------+--------+----------------------+--------------------------------------+
    | name | dom_id | param | val |
    +--------------+--------+----------------------+--------------------------------------+
    | exampole.com | 194 | site_builder_site_id | a15b313b-864e-efce-54d0-ade052a78514 |
    +--------------+--------+----------------------+--------------------------------------+
  2. Check if information about WebPresenceBuilder exists in sitebuilder5 database or not:

    mysql> select * from sitebuilder5.site where uuid = "b35f9e1e-afd5-329a-fc6b-ee04468a457a";
    Empty set (0.00 sec)
    mysql> select * from sitebuilder5.site_publish_settings where url like "%example.com%";
    Empty set (0.00 sec)
  3. If not, then create dump of psa database to make changes revertible as follows:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin psa > /root/psa`date +%F_%H.%M`.sql
  4. Remove orphaned records as follows:

    mysql> delete from psa.dom_param where dom_id=194 and val="b35f9e1e-afd5-329a-fc6b-ee04468a457a";
Have more questions? Submit a request
Please sign in to leave a comment.