<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Share can't connect to Repository, but curl can... in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/share-can-t-connect-to-repository-but-curl-can/m-p/115553#M32063</link>
    <description>&lt;P&gt;BTW, I just realized my block diagram has an error. The ports HAProxy listens to are 9080 and 9443, not 10080 and 10443 as shown in the block diagram...&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 11:44:08 GMT</pubDate>
    <dc:creator>fabrice7</dc:creator>
    <dc:date>2020-12-03T11:44:08Z</dc:date>
    <item>
      <title>Share can't connect to Repository, but curl can...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-can-t-connect-to-repository-but-curl-can/m-p/115551#M32061</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am using Alfresco 6.2 CE using Docker containers and my setup is the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Network architecture" style="width: 674px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/923i026F3E930ECAD1A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Network architecture&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Share can't connect to Repository and gives me this:&lt;/P&gt;&lt;PRE&gt;acs-share_1             | 2020-12-01 15:12:10,982  INFO  [webscripts.connector.RemoteClient] [http-nio-8080-exec-3] Exception calling (GET) https://ark-haproxy:9443/alfresco/s/api/admin/restrictions?guest=true
acs-share_1             |  org.apache.http.NoHttpResponseException: ark-haproxy:9443 failed to respond&lt;/PRE&gt;&lt;P&gt;Please note I configure Share to connect to Respository through the HAProxy.&lt;/P&gt;&lt;P&gt;If I exec into the Share container and run curl, no problem:&lt;/P&gt;&lt;PRE&gt;$ curl -kv 'https://ark-haproxy:9443/alfresco/s/api/admin/restrictions?guest=true'
* About to connect() to ark-haproxy port 9443 (#0)
*   Trying 172.24.0.8...
* Connected to ark-haproxy (172.24.0.8) port 9443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate:
*     subject: CN=ark-haproxy
*     start date: Dec 01 08:10:08 2020 GMT
*     expire date: Jul 23 08:10:08 2045 GMT
*     common name: ark-haproxy
*     issuer: CN=Local Alfresco CA
&amp;gt; GET /alfresco/s/api/admin/restrictions?guest=true HTTP/1.1
&amp;gt; User-Agent: curl/7.29.0
&amp;gt; Host: ark-haproxy:9443
&amp;gt; Accept: */*
&amp;gt; 
&amp;lt; HTTP/1.1 200 
&amp;lt; server: nginx/1.19.5
&amp;lt; date: Tue, 01 Dec 2020 15:14:09 GMT
&amp;lt; content-type: application/json;charset=UTF-8
&amp;lt; transfer-encoding: chunked
&amp;lt; cache-control: no-cache
&amp;lt; expires: Thu, 01 Jan 1970 00:00:00 GMT
&amp;lt; pragma: no-cache
&amp;lt; 
{
   "lastUpdate" : null,
   "users" : null,
   "documents" : null,
   "licenseMode" : "UNKNOWN",
   "readOnly" : false,
   "updated" : false,
   "licenseValidUntil" : null,
   "licenseHolder" : "",
   "level" : 0,
   "warnings": [],
   "errors": []
}
* Connection #0 to host ark-haproxy left intact&lt;/PRE&gt;&lt;P&gt;The JAVA_OPTS for Share is:&lt;/P&gt;&lt;PRE&gt;        -Xms500m
        -Xmx500m
        -Dshare.host=ark-haproxy
        -Dshare.port=9443
        -Dshare.protocol=https
        -Dalfresco.context=alfresco
        -Dhttp.proxyHost=ark-haproxy
        -Dhttp.proxyPort=9080
        -Dhttps.proxyHost=ark-haproxy
        -Dhttps.proxyPort=9443
        -Dalfresco.host=ark-haproxy
        -Dalfresco.port=9443
        -Dalfresco.protocol=https&lt;/PRE&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for any help!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 16:14:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-can-t-connect-to-repository-but-curl-can/m-p/115551#M32061</guid>
      <dc:creator>fabrice7</dc:creator>
      <dc:date>2020-12-01T16:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Share can't connect to Repository, but curl can...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-can-t-connect-to-repository-but-curl-can/m-p/115552#M32062</link>
      <description>&lt;P&gt;Anyone has any idea on what is going on?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 08:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-can-t-connect-to-repository-but-curl-can/m-p/115552#M32062</guid>
      <dc:creator>fabrice7</dc:creator>
      <dc:date>2020-12-03T08:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Share can't connect to Repository, but curl can...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-can-t-connect-to-repository-but-curl-can/m-p/115553#M32063</link>
      <description>&lt;P&gt;BTW, I just realized my block diagram has an error. The ports HAProxy listens to are 9080 and 9443, not 10080 and 10443 as shown in the block diagram...&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 11:44:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-can-t-connect-to-repository-but-curl-can/m-p/115553#M32063</guid>
      <dc:creator>fabrice7</dc:creator>
      <dc:date>2020-12-03T11:44:08Z</dc:date>
    </item>
  </channel>
</rss>

