Artifacts Not Transferred, Jobs Fail with 302 HTTP Status

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

  1. Shared artifacts are not always successfully transferred and, as such, plans cannot complete with the following error message being logged:

    1 java.io.IOException: Unexpected HTTP status code: 302 Moved Temporarily
  2. Remote agent fail to download artifact with the following error message:

    1 java.lang.RuntimeException: Unexpected HTTP status code: HTTP/1.1 302 Found

Cause

  1. The option Wait for jobs to complete isn't selected in the Scheduled Backup settings.

  2. Remote agent configured with HTTP URL that will be auto redirected to HTTPS URL.

Resolution

  1. Select the option Wait for jobs to complete in the Scheduled Backup settings.

  2. Configured remote agent wrapper.conf file to use HTTPS URL.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.