gonzadocarmo / teamcity-s3-plugin

Apache License 2.0
17 stars 8 forks source link

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

Open martinbogaert opened 3 years ago

martinbogaert commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.