Description

DISTRIBUTION: How to resolve the error “Default exception mapper caught: java.net.SocketTimeoutException: Read timed out” when creating a Release Bundle

AuthorFullName__c
Ino Choi
articleNumber
000005447
ft:sourceType
Salesforce
FirstPublishedDate
2022-10-28T10:37:34Z
lastModifiedDate
2022-10-28
VersionNumber
2
When creating Release Bundles, there are two important requests Distribution sends to Artifactory.

When creating Release Bundles, there are two important requests Distribution sends to Artifactory.
  1. Gather artifacts request. It uses the AQL provided to calculate the relevant artifacts for the Release Bundle.
  2. Store request. It sends a request to copy all required artifacts to a storing repository for immutability.

When creating a large Release Bundle (e.g. >300 package), you may run into the following error as with the default timeout setting (120 seconds), it might not be enough to gather all the data.
Default exception mapper caught: java.net.SocketTimeoutException: Read timed out

To overcome this issue, you can make the following change to increase the timeout value:

1. Copy the distribution.config.latest.yml file under the $JFROG_HOME/distribution/var/etc/distribution/ directory and rename it to distribution.config.import.yml file.

2. Open the file and edit the following property,
artifactory-client:
  client-long-socket-timeout: 120000 # default value in ms
3. Save and restart Distribution.