How to resolve when you see “Unable to reach JFrog Artifactory” error while browsing Artifacts?

You may encounter an issue that Artifactory UI is slow to response and times out then you may receive the following error:

 

"Unable to reach JFrog Artifactory"

 

 

You may use Chrome browser to capture the error when the issue happens at Chrome Browser=> Tools => More Tools => Developer Tools => Network (See here for more details).

 

<If the Chrome Network tool shows status 504>

 

For example, you may see a HTTP response like:

response: 

status: 504,

statusText: "Gateway Time-out",

httpVersion: "HTTP/1.1",

 

When this issue happens, please ensure that your proxy is not timing out before Artifactory finishes querying for the contents to browse on. If the result shows that the browse failed with status 504, it may mean that your proxy timed out before Artifactory finished displaying the content

 

 

  • For Nginx as Proxy for Artifactory server, please try adding these variables (in seconds) to nginx.conf file:

proxy_connect_timeout 600;

proxy_send_timeout 600;

proxy_read_timeout 600;

send_timeout 600;

        • For Apache as Proxy for Artifactory server, please try adding these variables (in seconds) to httpd.conf file:

        # Timeout: The number of seconds before receives and sends time out.

        Timeout 600

         

        <If the Chrome Network tool shows status ERR_BLOCKED_BY_CLIENT>

         

        For example, you may see a HTTP response like:

           "response": {

                  "status": 0,

                  "statusText": "",

                  "httpVersion": "unknown",

                  "headers": [],

                  "cookies": [],

                  "content": {

                    "size": 0,

                    "mimeType": "x-unknown"

                  },

                  "redirectURL": "",

                  "headersSize": -1,

                  "bodySize": -1,

                  "_transferSize": 0,

                  "_error": "net::ERR_BLOCKED_BY_CLIENT"

                }

         

        According to research, this can be caused by Adblocker or other Ad blocking extension (see this 3rd party site for more details). Please see if disabling Adblocker or white-listing Artifactory resolve the issue. Ad blocking browser extensions will detect a key word in the URI like "ad" and block it. 

         

        <Further Troubleshooting>

         

        If the solution above does not resolve the issue, then please collect following items and send them to JFrog Support for investigation.

         

        • Detailed steps to reproduce the issue
        • Capture the error when the issue happens at Chrome Browser=> Tools => More Tools => Developer Tools => Network (See here for more details then save (using this instruction) and send us the saved HAR file.

        • Version number of Artifactory
        • Version number of proxy

        • Artifactory logs
        • Proxy (e.g. NGINX or APACHE) logs
        • Proxy (e.g. NGINX or APACHE) configuration files