{"id":312,"date":"2020-07-15T10:22:42","date_gmt":"2020-07-15T08:22:42","guid":{"rendered":"https:\/\/binaryvikings.io\/?p=312"},"modified":"2022-01-03T20:41:02","modified_gmt":"2022-01-03T18:41:02","slug":"failedfailed-to-connect-to-xxx-xxx-xxx-xxx-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send","status":"publish","type":"post","link":"https:\/\/binaryvikings.io\/?p=312","title":{"rendered":"&#8220;Failed&#8221;,&#8221;Failed to connect to xxx.xxx.xxx.xxx &#8211; The underlying connection was closed: An unexpected error occurred on a send.&#8221;"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"242\" src=\"https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/02\/quickguide.png\" alt=\"\" class=\"wp-image-240\" srcset=\"https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/02\/quickguide.png 865w, https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/02\/quickguide-300x84.png 300w, https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/02\/quickguide-768x215.png 768w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p>Connecting to a XenServer host from XenCenter might give you the following error: &#8220;Failed&#8221;,&#8221;Failed to connect to XXX.XXX.XXX.XXX<br>The underlying connection was closed: An unexpected error occurred on a send.&#8221;<\/p>\n\n\n\n<p>In this example we&#8217;ll use 10.0.0.90 as the test IP.<\/p>\n\n\n\n<p>The initial error you&#8217;ll see is this error below, when trying to connect to your host.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"508\" src=\"https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/07\/XenCenter-error.png\" alt=\"\" class=\"wp-image-313\" srcset=\"https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/07\/XenCenter-error.png 774w, https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/07\/XenCenter-error-300x197.png 300w, https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/07\/XenCenter-error-768x504.png 768w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><figcaption>The error message shown in XenCenter<\/figcaption><\/figure>\n\n\n\n<p>It&#8217;s happened for me a few times, and I&#8217;ve expected it to be a firewall issue every time. However, it&#8217;s often more simple than that. Here&#8217;s how to fix it:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open an SSH connection to the host.<\/li><li>When you&#8217;re in, write <strong>xsconsole<\/strong>.<\/li><li>When the UI opens, it&#8217;ll show as depicted below.<\/li><li>Press <strong>F8<\/strong> to restart <em>xapi<\/em>.<\/li><li>When <em>xapi<\/em> has restarted, attempt connection again.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"375\" src=\"https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/07\/error-when-in-on-SSH.png\" alt=\"\" class=\"wp-image-314\" srcset=\"https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/07\/error-when-in-on-SSH.png 638w, https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/07\/error-when-in-on-SSH-300x176.png 300w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><figcaption>The underlying Xen API xapi is not running.<\/figcaption><\/figure><\/div>\n\n\n\n<p>Upon connection, you should see that you can now connect without issues. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"215\" height=\"37\" src=\"https:\/\/binaryvikings.io\/wp-content\/uploads\/2020\/07\/Logging-in-works.png\" alt=\"\" class=\"wp-image-315\"\/><figcaption>Working &#8220;XenConnection&#8221;<\/figcaption><\/figure><\/div>\n\n\n\n<p>If it doesn&#8217;t work for you, write a comment. It would be great to see if there are other ways to solve this type of issue!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Over&#8217;n&#8217;out!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connecting to a XenServer host from XenCenter might give you the following error: &#8220;Failed&#8221;,&#8221;Failed to connect to XXX.XXX.XXX.XXXThe underlying connection was closed: An unexpected error<\/p>\n","protected":false},"author":1,"featured_media":243,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[19,17],"tags":[],"class_list":["post-312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-virtual-machines"],"_links":{"self":[{"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312"}],"version-history":[{"count":4,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":319,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions\/319"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/media\/243"}],"wp:attachment":[{"href":"https:\/\/binaryvikings.io\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}