{"id":2658,"date":"2015-09-18T04:14:26","date_gmt":"2015-09-18T04:14:26","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2658"},"modified":"2015-09-18T04:14:26","modified_gmt":"2015-09-18T04:14:26","slug":"error-during-cli-gate-interface-usage-transfer-closed-with-outstanding-read-data-remaining","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/09\/18\/error-during-cli-gate-interface-usage-transfer-closed-with-outstanding-read-data-remaining\/","title":{"rendered":"Error during CLI Gate interface usage: transfer closed with outstanding read data remaining"},"content":{"rendered":"<p>Symptoms<\/p>\n<p>    Migration hangs<\/p>\n<p>    Migration fails with error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    &#x5B;2015-04-19 22:36:29.393|52103] INFO: tError_ParseFile&#x5B;9b85e473-5336-4e8b-8212-aa706386adbd]: The XML file - was not parsed successfully with the following errors:\n    Entity: line 6:parsererror :Opening and ending tag mismatch: hr line 5 and body&lt;\/body&gt;       ^Entity: line 7:parsererror :Opening and ending tag mismatch: body line 3 and html&lt;\/html&gt;       ^Entity: line 7:parsererror :Premature end of data in tag html line 1&lt;\/html&gt;       ^ &#x5B;.\/xml_parse.cpp:126]\n    plesk::tXmlDocument::tXmlDocument(const string&amp;)\n\n<\/pre>\n<p>    Migration fails with error<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    INFO: FailedDomainDeployment&#x5B;8b8adf25-291f-4e3b-8624-63c3a4989bba]: Failed deployment of domain domain.tld &#x5B;.\/domain_deploy.cpp:410]\n    void plesk::tDomainDeployer::operator()(plesk::XmlNode) const\n    Inner exception:\n    ExecCliGate::GateError&#x5B;a0116883-7cd4-42c8-8f90-08c786e41318]: Error during CLI Gate interface usage: transfer closed with outstanding read data remaining &#x5B;.\/cmd_exec.cpp:192]\n    void plesk::CliExec::makePostRequest(const string&amp;)\n\n<\/pre>\n<p>    Plesk becomes unaccessible during migration, error in migration logs:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    &#x5B;2015-04-19 22:36:29.393|52103] INFO: Normalized HTTP response: &lt;html&gt;\n    &lt;head&gt;&lt;title&gt;504 Gateway Time-out&lt;\/title&gt;&lt;\/head&gt;\n\n<\/pre>\n<p>Cause<\/p>\n<p>sw-enginer stuck on destination server.<br \/>\nResolution<\/p>\n<p>Increase limit for open files:<\/p>\n<p>    Modify &#8216;\/etc\/init.d\/sw-engine&#8217;, add the following into the startup script:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    ulimit -n 65536\n\n<\/pre>\n<p>    Restart the services:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    #service sw-engine restart\n    #service sw-cp-server restart\n\n<\/pre>\n<p>    If Nginx alredy service stuck:<\/p>\n<p>    a. Kill alll nginx processes using the below command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    # killall nginx\n<\/pre>\n<p>    b. Restart nginx service:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    # systemctl start nginx.service\n\n<\/pre>\n<p>    Disable and re-enale nginx using nginxmng:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    # \/usr\/local\/psa\/admin\/bin\/nginxmng -d\n    # \/usr\/local\/psa\/admin\/bin\/nginxmng -e\n    # \/usr\/local\/psa\/admin\/bin\/nginxmng -s\n    Enabled\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Symptoms Migration hangs Migration fails with error: &#x5B;2015-04-19 22:36:29.393|52103] INFO: tError_ParseFile&#x5B;9b85e473-5336-4e8b-8212-aa706386adbd]: The XML file &#8211; was not parsed successfully with the following errors: Entity: line 6:parsererror :Opening and ending tag mismatch: hr line 5 and body&lt;\/body&gt; ^Entity: line 7:parsererror :Opening and ending tag mismatch: body line 3 and html&lt;\/html&gt; ^Entity: line 7:parsererror :Premature end of &#8230; <a title=\"Error during CLI Gate interface usage: transfer closed with outstanding read data remaining\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/09\/18\/error-during-cli-gate-interface-usage-transfer-closed-with-outstanding-read-data-remaining\/\" aria-label=\"Read more about Error during CLI Gate interface usage: transfer closed with outstanding read data remaining\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-2658","post","type-post","status-publish","format-standard","hentry","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2658"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2658\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}