{"id":7436,"date":"2024-09-06T07:26:32","date_gmt":"2024-09-06T06:26:32","guid":{"rendered":"https:\/\/tomaskalabis.com\/wordpress\/?p=7436"},"modified":"2024-09-06T07:32:54","modified_gmt":"2024-09-06T06:32:54","slug":"upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server","status":"publish","type":"post","link":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/","title":{"rendered":"Upgrade Veeam MS365 to 8.0.2.159 fails with &#8211; Unable to connect to the specified server"},"content":{"rendered":"\n<h3>Upgrade Veeam MS365 to 8.0.2.159 fails with &#8211; Unable to connect to the specified server<\/h3>\n<p>I just started a upgrading procedure of Veeam MS365 to the latest 8.0.2.159, but fails with error message Unable to connect to the specified server. Error: Failed to connect to: &lt;IP&gt;:&lt;port&gt;.\u00a0I wanna use an existing PostgreSQL Instance, which\u00a0 was created by Veeam Backup &amp; Replication, the Veeam Backup for Microsoft 365.<\/p>\n<p><a href=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-06-at-8.12.20.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-7437 aligncenter\" src=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-06-at-8.12.20-494x203.png\" alt=\"\" width=\"494\" height=\"203\" srcset=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-06-at-8.12.20-494x203.png 494w, https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-06-at-8.12.20-288x118.png 288w, https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-06-at-8.12.20-768x315.png 768w, https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-06-at-8.12.20.png 836w\" sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/a><\/p>\n<p>its caused by the configuration settings applied to PostgreSQL by Veeam Backup &amp; Replication are incompatible with those required by Veeam Backup for Microsoft 365.<\/p>\n<h4>How to resolve it ?<\/h4>\n<p>To enable Veeam Backup for Microsoft 365 and Veeam Backup &amp; Replication to share the existing PostgreSQL instance, you must modify several PostgreSQL configuration files described below.<\/p>\n<ul>\n<li>Stop all task in Veeam Backup and Replication and MS365\u00a0<\/li>\n<li>Stop all veeam services via &#8211; &#8222;<strong><em>Get-Service Veeam* | Stop-Service -Force<\/em><\/strong>&#8222;<\/li>\n<li>Open an Administrative PowerShell Console<\/li>\n<\/ul>\n<p>Run the the following PowerShell script to update the configuration files and restart the PostgreSQL service:<\/p>\n<p>\u00a0<\/p>\n<p><code>#Modify postgresql.conf to change listen_addresses from 'localhost' to '*' to allow remote connections.<\/code><br \/><code>(Get-Content -Path \"C:\\Program Files\\PostgreSQL\\15\\data\\postgresql.conf\") -replace \"listen_addresses = 'localhost'\", \"listen_addresses = '*'\" | Set-Content -Path \"C:\\Program Files\\PostgreSQL\\15\\data\\postgresql.conf\"<\/code><\/p>\n<p><code># Modify pg_hba.conf to enforce SSPI authentication for 'postgres' user and allow password-based connections (SCRAM-SHA-256) for all other users.<\/code><br \/><code>Add-Content -Path \"C:\\Program Files\\PostgreSQL\\15\\data\\pg_hba.conf\" \"`n# non-localhost host with user 'postgres' and SSPI<\/code><br \/><code>host all postgres 0.0.0.0\/0 sspi map=veeam<\/code><br \/><code>host all postgres ::\/0 sspi map=veeam<\/code><br \/><code># non-localhost host with user 'all' and password<\/code><br \/><code>host all all 0.0.0.0\/0 scram-sha-256<\/code><br \/><code>host all all ::\/0 scram-sha-256\"<\/code><\/p>\n<p><code># Ensure pg_ident.conf allows SSPI (Windows-based) authentication for the Local System account and the current user, mapped to the postgres account.<\/code><br \/><code>If (!(Select-string -Path \"C:\\Program Files\\PostgreSQL\\15\\data\\pg_ident.conf\" -Pattern \"veeam\"))<\/code><br \/><code>{<\/code><br \/><code>Add-Content -Path \"C:\\Program Files\\PostgreSQL\\15\\data\\pg_ident.conf\" \"veeam `\"SYSTEM@NT AUTHORITY`\" postgres<\/code><br \/><code>veeam `\"$env:UserName@$env:Computername`\" postgres\"}<\/code><\/p>\n<p><code>#Restart the PostgreSQL Service<\/code><br \/><code>Restart-Service -Name \"postgresql*\"<\/code><\/p>\n<div class=\"veeam-text text aem-GridColumn--tablet--12 aem-GridColumn--offset--tablet--0 aem-GridColumn--default--none aem-GridColumn--phone--none aem-GridColumn--phone--12 aem-GridColumn--tablet--none aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--offset--phone--0 aem-GridColumn--offset--default--0\">\u00a0<\/div>\n<div class=\"code-block aem-GridColumn--tablet--12 aem-GridColumn--offset--tablet--0 aem-GridColumn--default--none aem-GridColumn--phone--none aem-GridColumn--phone--12 aem-GridColumn--tablet--none aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--offset--phone--0 aem-GridColumn--offset--default--0\">\n<div class=\"code-block  veeam-component__component-spacing-below--ss\" data-component=\"CodeBlockComponent\" data-initialized=\"true\">\n<ul>\n<li class=\"code-toolbar\">Start the Veeam services with: &#8222;<em><strong>Get-Service Veeam* | Start-Service<\/strong><\/em>&#8222;<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<ul>\n<li>Reattempt the Veeam Backup for Microsoft 365 install.<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<div class=\"image aem-GridColumn--tablet--12 aem-GridColumn--offset--tablet--0 aem-GridColumn--default--none aem-GridColumn--phone--none aem-GridColumn--phone--12 aem-GridColumn--tablet--none aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--offset--phone--0 aem-GridColumn--offset--default--0\">\n<div class=\"veeam-image veeam-image--align-center      veeam-component__component-spacing-below--lg\" data-component=\"VeeamImageComponent\" data-initialized=\"true\">\u00a0<\/div>\n<\/div>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just started a upgrading procedure of Veeam MS365 to the latest 8.0.2.159, but fails with error message Unable to connect to the specified server. Error: Failed to connect to: <IP>:<port>.\u00a0<\/p>\n","protected":false},"author":2,"featured_media":2120,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[90],"tags":[413,414],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Upgrade Veeam MS365 to 8.0.2.159 fails with - Unable to connect to the specified server - tomaskalabis.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Upgrade Veeam MS365 to 8.0.2.159 fails with - Unable to connect to the specified server - tomaskalabis.com\" \/>\n<meta property=\"og:description\" content=\"I just started a upgrading procedure of Veeam MS365 to the latest 8.0.2.159, but fails with error message Unable to connect to the specified server. Error: Failed to connect to: :.\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/\" \/>\n<meta property=\"og:site_name\" content=\"tomaskalabis.com\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-06T06:26:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-06T06:32:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"176\" \/>\n\t<meta property=\"og:image:height\" content=\"178\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tomas Kalabis\" \/>\n<meta name=\"twitter:label1\" content=\"Napsal(a)\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomas Kalabis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/\",\"name\":\"Upgrade Veeam MS365 to 8.0.2.159 fails with - Unable to connect to the specified server - tomaskalabis.com\",\"isPartOf\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg\",\"datePublished\":\"2024-09-06T06:26:32+00:00\",\"dateModified\":\"2024-09-06T06:32:54+00:00\",\"author\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6\"},\"breadcrumb\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#primaryimage\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg\",\"contentUrl\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg\",\"width\":176,\"height\":178},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tomaskalabis.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upgrade Veeam MS365 to 8.0.2.159 fails with &#8211; Unable to connect to the specified server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#website\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/\",\"name\":\"tomaskalabis.com\",\"description\":\"my personal blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tomaskalabis.com\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"cs\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6\",\"name\":\"Tomas Kalabis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g\",\"caption\":\"Tomas Kalabis\"},\"sameAs\":[\"https:\/\/x.com\/tomaskalabis\"],\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/author\/kalabis\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Upgrade Veeam MS365 to 8.0.2.159 fails with - Unable to connect to the specified server - tomaskalabis.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/","og_locale":"cs_CZ","og_type":"article","og_title":"Upgrade Veeam MS365 to 8.0.2.159 fails with - Unable to connect to the specified server - tomaskalabis.com","og_description":"I just started a upgrading procedure of Veeam MS365 to the latest 8.0.2.159, but fails with error message Unable to connect to the specified server. Error: Failed to connect to: :.\u00a0","og_url":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/","og_site_name":"tomaskalabis.com","article_published_time":"2024-09-06T06:26:32+00:00","article_modified_time":"2024-09-06T06:32:54+00:00","og_image":[{"width":176,"height":178,"url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg","type":"image\/jpeg"}],"author":"Tomas Kalabis","twitter_misc":{"Napsal(a)":"Tomas Kalabis","Odhadovan\u00e1 doba \u010dten\u00ed":"2 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/","url":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/","name":"Upgrade Veeam MS365 to 8.0.2.159 fails with - Unable to connect to the specified server - tomaskalabis.com","isPartOf":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#primaryimage"},"image":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#primaryimage"},"thumbnailUrl":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg","datePublished":"2024-09-06T06:26:32+00:00","dateModified":"2024-09-06T06:32:54+00:00","author":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6"},"breadcrumb":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/"]}]},{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#primaryimage","url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg","contentUrl":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg","width":176,"height":178},{"@type":"BreadcrumbList","@id":"https:\/\/tomaskalabis.com\/wordpress\/upgrade-veeam-ms365-to-8-0-2-159-fails-with-unable-to-connect-to-the-specified-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tomaskalabis.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Upgrade Veeam MS365 to 8.0.2.159 fails with &#8211; Unable to connect to the specified server"}]},{"@type":"WebSite","@id":"https:\/\/tomaskalabis.com\/wordpress\/#website","url":"https:\/\/tomaskalabis.com\/wordpress\/","name":"tomaskalabis.com","description":"my personal blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tomaskalabis.com\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"cs"},{"@type":"Person","@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6","name":"Tomas Kalabis","image":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g","caption":"Tomas Kalabis"},"sameAs":["https:\/\/x.com\/tomaskalabis"],"url":"https:\/\/tomaskalabis.com\/wordpress\/author\/kalabis\/"}]}},"jetpack_featured_media_url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/12\/icon_veeam.jpg","_links":{"self":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/7436"}],"collection":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/comments?post=7436"}],"version-history":[{"count":5,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/7436\/revisions"}],"predecessor-version":[{"id":7444,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/7436\/revisions\/7444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/media\/2120"}],"wp:attachment":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/media?parent=7436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/categories?post=7436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/tags?post=7436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}