Error during CLI Gate interface usage: transfer closed with outstanding read data remaining

Symptoms

Migration hangs

Migration fails with error:


    [2015-04-19 22:36:29.393|52103] INFO: tError_ParseFile[9b85e473-5336-4e8b-8212-aa706386adbd]: The XML file - was not parsed successfully with the following errors:
    Entity: line 6:parsererror :Opening and ending tag mismatch: hr line 5 and body</body>       ^Entity: line 7:parsererror :Opening and ending tag mismatch: body line 3 and html</html>       ^Entity: line 7:parsererror :Premature end of data in tag html line 1</html>       ^ [./xml_parse.cpp:126]
    plesk::tXmlDocument::tXmlDocument(const string&)

Migration fails with error


    INFO: FailedDomainDeployment[8b8adf25-291f-4e3b-8624-63c3a4989bba]: Failed deployment of domain domain.tld [./domain_deploy.cpp:410]
    void plesk::tDomainDeployer::operator()(plesk::XmlNode) const
    Inner exception:
    ExecCliGate::GateError[a0116883-7cd4-42c8-8f90-08c786e41318]: Error during CLI Gate interface usage: transfer closed with outstanding read data remaining [./cmd_exec.cpp:192]
    void plesk::CliExec::makePostRequest(const string&)

Plesk becomes unaccessible during migration, error in migration logs:


    [2015-04-19 22:36:29.393|52103] INFO: Normalized HTTP response: <html>
    <head><title>504 Gateway Time-out</title></head>

Cause

sw-enginer stuck on destination server.
Resolution

Increase limit for open files:

Modify ‘/etc/init.d/sw-engine’, add the following into the startup script:


    ulimit -n 65536

Restart the services:


    #service sw-engine restart
    #service sw-cp-server restart

If Nginx alredy service stuck:

a. Kill alll nginx processes using the below command:


    # killall nginx

b. Restart nginx service:


    # systemctl start nginx.service

Disable and re-enale nginx using nginxmng:


    # /usr/local/psa/admin/bin/nginxmng -d
    # /usr/local/psa/admin/bin/nginxmng -e
    # /usr/local/psa/admin/bin/nginxmng -s
    Enabled

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.