Problem Resolution

How to solve the "upstream prematurely closed connection" Nginx / Apache2 error

AuthorFullName__c
Patrick Russell
articleNumber
000005100
ft:sourceType
Salesforce
FirstPublishedDate
2021-12-28T22:21:43Z
lastModifiedDate
2023-01-22T11:08:34Z
VersionNumber
2
Artifactory's Apache Tomcat has a hidden timeout setting. In some circumstances, such as a long-running Docker Pull, this timeout is reached. When this happens, Tomcat closes the connection too soon. No Artifactory-side errors get printed when this happens.

By default, the Tomcat "connectionTimeout" parameter is set to 60 seconds. To solve most Docker Pull problems, increase the value to 600 seconds, or 10 minutes:
[6.X - Directly update the tomcat server.xml]
<Connector port="8081" sendReasonPhrase="true" relaxedPathChars='[]' relaxedQueryChars='[]' maxThreads="200" connectionTimeout="600000"/>

[7.X - Update the system.yaml]
artifactory:
    tomcat:
        connector:
            maxThreads: 200
            extraConfig: 'connectionTimeout="600000"'