jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

`release-bundle-create` POST request returns timeout although bundle created and retry fails

Open mariadeluna-tomtom opened this issue 1 year ago • 0 comments

Describe the bug

When executing the following command to create a release bundle:

jf ds release-bundle-create --spec XXX --sign "XXX" "${RELEASE_VERSION}"

the POST request to https://artifactory.tomtomgroup.com/distribution/api/v1/release_bundle times out although the Release Bundle has been created correctly. Then, after 40 mins in the second attempt of creating it fails with following error:

Error: 0 [Error] Distribution response: 409 Conflict
{
  "detail": "Release bundle version: XXX/0.59.0-rc01 already exists",
  "message": "Release bundle version: XXX/0.59.0-rc01 already exists",
  "status_code": 409
}

Current behavior

09:54:39 [Debug] JFrog CLI version: 2.62.2
09:54:39 [Debug] OS/Arch: darwin/arm64
09:54:39 [Debug] Trace ID for JFrog Platform logs: 29890a93c5f6d84b
09:54:39 [Debug] Usage Report: Sending info...
09:54:39 [Debug] Sending HTTP GET request to: https://artifactory.tomtomgroup.com/artifactory/api/system/version
09:54:39 [Info] Creating: sdk-spm-dev/0.[59](https://github.com/tomtom-internal/go-sdk-ios/actions/runs/10468045593/job/28988785791#step:13:60).0-rc01
09:54:39 [Debug] Sending HTTP POST request to: https://artifactory.tomtomgroup.com/distribution/api/v1/release_bundle
09:54:39 [Debug] Artifactory response: 200 
09:54:39 [Debug] JFrog Artifactory version is: 7.93.3
09:54:39 [Debug] Sending HTTP POST request to: https://artifactory.tomtomgroup.com/artifactory/api/system/usage
10:34:39 [Warn] The server response: 504 Gateway Time-out
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

10:34:39 [Warn] (Attempt 1) - Failure occurred while sending POST request to https://artifactory.tomtomgroup.com/distribution/api/v1/release_bundle
10:34:39 [Debug] Sending HTTP POST request to: https://artifactory.tomtomgroup.com/distribution/api/v1/release_bundle
10:34:40 [Info] Trace ID for JFrog Platform logs: 29890a93c5f6d84b
Error: 0 [Error] Distribution response: 409 Conflict
{
  "detail": "Release bundle version: XXX/0.59.0-rc01 already exists",
  "message": "Release bundle version: XXX/0.59.0-rc01 already exists",
  "status_code": 409
}

Reproduction steps

No response

Expected behavior

Don't timeout if bundle has been created correctly.

JFrog CLI version

2.62.2

Operating system type and version

MacOS 13

JFrog Artifactory version

No response

JFrog Xray version

No response

mariadeluna-tomtom avatar Aug 23 '24 11:08 mariadeluna-tomtom