{"id":242,"date":"2022-01-07T10:49:09","date_gmt":"2022-01-07T08:49:09","guid":{"rendered":"https:\/\/my-virt.alfadir.net\/?p=242"},"modified":"2022-01-07T10:50:46","modified_gmt":"2022-01-07T08:50:46","slug":"app-volumes-4-5-error-failed-to-connect-manager-service-when-registering-additional-app-volume-manager-servers","status":"publish","type":"post","link":"https:\/\/my-virt.alfadir.net\/index.php\/2022\/01\/07\/app-volumes-4-5-error-failed-to-connect-manager-service-when-registering-additional-app-volume-manager-servers\/","title":{"rendered":"App Volumes 4.5 &#8211; Error &#8220;Failed to connect Manager Service..&#8221; when registering additional App Volume Manager servers"},"content":{"rendered":"\n<p>During the installation of App Volume 2111 (4.5), if you try to register additional App Volumes Managers, you would certainly failed with the following error message :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"515\" height=\"292\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2022\/01\/image-1.png\" alt=\"\" class=\"wp-image-244\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2022\/01\/image-1.png 515w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2022\/01\/image-1-300x170.png 300w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/figure>\n\n\n\n<p>And if you look at in the nginx.log, you  would see the following error :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2021\/12\/06 22:15:08 &#91;info] 5200#5264: *72 client sent plain HTTP request to HTTPS port while reading client request headers, client: 192.168.0.67, server: 0.0.0.0, request: \"POST \/cv_api\/sessions HTTP\/1.1\", host: \"appvol4mgr01.domain.dom:443\"<\/code><\/pre>\n\n\n\n<!--more-->\n\n\n\n<p>The issue seems to be due to an http request instead of an https, so to solve this it will depend of where you are in the installation process:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Case #1 &#8211; You didn&#8217;t install any App Volumes server <\/strong><\/p>\n\n\n\n<p>Then during the installation of the first App Volumes Manager, check you want also http connection and when you register the additional App Volumes Manager server then specify : <strong><span class=\"has-inline-color has-vivid-red-color\">http<\/span><\/strong>:\/\/&lt;appvol_fqdn<strong>:<span class=\"has-inline-color has-vivid-red-color\">80<\/span><\/strong>  as target<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Case #2 &#8211; You already installed the first App Volumes Server<\/p>\n\n\n\n<p>In this case, edit the nginx.conf file,  add the following lines and restart App Volumes Service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> server {\n       server_name  0.0.0.0;\n        listen       80;\n        listen       &#91;::]:80;\n        root   ..\/public;\n        rewrite ^\/(.*)\/$ \/$1 permanent;\n        access_log  logs\/access_http.log  main;\n        error_log   logs\/error_http.log  info;\n        charset utf-8;\n        override_charset on;\n        gzip on;\n        gzip_types application\/json application\/javascript;\n        error_page  404              \/404.html;\n        error_page  502              \/502.html;\n        #error_page   500 502 503 504  \/500.html;\n        # updated by clock.rb\n        location ~* ^.+\\.(jpg|jpeg|gif|png|ico|zip|woff|woff2|eot|svg|ttf)$ {\n            expires max;\n            break;\n        }\n        location ~* ^.+\\.(css|js|htm|html|json)$ {\n            #expires 0; # expire immediately\n            expires 5m;\n            break;\n        }\n        include location\/api_redirect_location.conf;\n        location \/ {\n          try_files \/index.html @manager;\n        }\n        location @manager {\n            proxy_connect_timeout 10;\n            #proxy_next_upstream off;\n            proxy_next_upstream timeout;\n            proxy_read_timeout 600;\n            proxy_send_timeout 30;\n            send_timeout 30;\n            proxy_redirect off;\n            server_name_in_redirect off;\n            proxy_pass_header Cookie;\n            proxy_pass_header Set-Cookie;\n            proxy_pass_header X-Accel-Redirect;\n            proxy_set_header Host $host:80;\n            proxy_set_header X-Real-IP $remote_addr;\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n            add_header X-Backend $upstream_addr;\n            add_header X-Frame-Options SAMEORIGIN;\n            add_header X-Content-Type-Options nosniff;\n            add_header X-XSS-Protection \"1; mode=block\";\n            proxy_pass http:\/\/manager;\n        }\n    }<\/code><\/pre>\n\n\n\n<p>Once the service is restarted,  register the additional App Volumes Manager server then specify : <strong><span class=\"has-inline-color has-vivid-red-color\">http<\/span><\/strong>:\/\/&lt;appvol_fqdn<strong>:<span class=\"has-inline-color has-vivid-red-color\">80<\/span><\/strong>  as target <\/p>\n","protected":false},"excerpt":{"rendered":"<p>During the installation of App Volume 2111 (4.5), if you try to register additional App Volumes Managers, you would certainly failed with the following error message&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-app-volumes"],"_links":{"self":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":2,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}