Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to upload built JAR to S3 bucket - Logs #16

Open
martinbogaert opened this issue Nov 11, 2020 · 2 comments
Open

Failed to upload built JAR to S3 bucket - Logs #16

martinbogaert opened this issue Nov 11, 2020 · 2 comments

Comments

@martinbogaert
Copy link

The upload S3 build step is failling with :

17:09:38]E: [Step 2/3] Upload to S3 bucket: XXX (2s)
[17:09:38]E: [Upload to S3 bucket: XXX] Batch #1 - pattern ["XXX*.jar"] (1 files) (2s)
[17:09:38] : [Batch #1 - pattern ["XXX*.jar"] (1 files)] Uploading to XXX....jar
[17:09:38] : [Batch #1 - pattern ["XXX*.jar"] (1 files)] 0% completed
... (same for 3 more retries)
[17:09:40] : [Batch #1 - pattern ["XXX*.jar"] (1 files)] 0% completed
[17:09:41]E: [Batch #1 - pattern ["XXX*.jar"] (1 files)] Failed: Error occurred while transferring data. Status is: Failed
[17:08:47]E: [Batch #1 - pattern ["XXX*.jar"] (1 files)] Error occurred while transferring data. Status is: Failed
[17:09:41]E: [Batch #1 - pattern ["XXX*.jar"] (1 files)] Step Upload Pegasus Webapp Fat Jar to S3 bucket (Amazon S3 Uploader) failed

Is there a way to get more info regarding the cause of the failure ? (increasing log level, ...) ?

@dollhead
Copy link

dollhead commented Jan 5, 2021

In my case, the reason was an invalid AWS region in the build step configuration. The bucket on S3 was in the us-east-1, while in the build configuration I set another region. After fixing this, everything works fine

@martinbogaert
Copy link
Author

It is exactly this. We found the same situation. However there is an extra issue that was leading to this situation. Every time you open the configuration page on teamcity the location is reset to this default location. So without any manual intervention, you'll override the region when saving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants