[GH-ISSUE #1507] jenkins master mount s3fs, jenkins slave run job task and archiveArtifacts artifacts error #790

Closed
opened 2026-03-04 01:48:50 +03:00 by kerem · 0 comments
Owner

Originally created by @guoqingdeng on GitHub (Dec 30, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1507

My computer is an Ubuntu16.04 system, and install s3fs by the document way.

The following scene:
On my Jenkins master server, aws s3 is mounted through s3fs, and it can be mounted successfully.
Configure a Jenkins slave node server, run Jenkins job in the slave node server, and finally archive product,through the product archiving instructions in the Jenkins pipeline ,eg: archiveArtifacts artifacts.But in the archived product, an error is reported,by checking the error message, I learned that the spliced ​​s3 http url is wrong and lacks bucket.

Error information:
ERROR: Failed to upload /home/jenkins/workspace/test_patches/src/test_interface/build/libs/test-interface-1.0.1.44.jar to https://s3.cn-northwest-1.amazonaws.com.cn/test_interface/44/artifacts/src/test_interface/build/libs/test-interface-1.0.1.44.jar?…, response: 404 Not Found, body:
NoSuchBucketThe specified bucket does not existtest_patches9354EE4114171E59JDHCVei34KruXsXztoP52YY1NKJPfyJXl9OM+mn7OXsHb8Ucfzz+YWe0fiPF8uvtrjvZC3TBiYc=

Error path:
https://s3.cn-northwest-1.amazonaws.com.cn/test_interface/44/artifacts/src/test_interface/build/libs/test-interface-1.0.1.44.jar

S3 Document:
https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#virtual-hosted-style-access

The rest api methods supported by s3 are as follows:
1.Path-Style Requests (Update (September 23, 2020)-We decided to postpone the deprecation of path-based URLs)
https://s3.Region.amazonaws.com/bucket-name/key name
2.Virtual Hosted-Style Requests
https://bucket-name.s3.Region.amazonaws.com/key name

So, the s3 rest http url generated by s3fs splicing is wrong,and how can i fix it?

Originally created by @guoqingdeng on GitHub (Dec 30, 2020). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1507 My computer is an Ubuntu16.04 system, and install s3fs by the document way. The following scene: On my Jenkins master server, aws s3 is mounted through s3fs, and it can be mounted successfully. Configure a Jenkins slave node server, run Jenkins job in the slave node server, and finally archive product,through the product archiving instructions in the Jenkins pipeline ,eg: archiveArtifacts artifacts.But in the archived product, an error is reported,by checking the error message, I learned that the spliced ​​s3 http url is wrong and lacks bucket. Error information: ERROR: Failed to upload /home/jenkins/workspace/test_patches/src/test_interface/build/libs/test-interface-1.0.1.44.jar to https://s3.cn-northwest-1.amazonaws.com.cn/test_interface/44/artifacts/src/test_interface/build/libs/test-interface-1.0.1.44.jar?…, response: 404 Not Found, body: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist</Message><BucketName>test_patches</BucketName><RequestId>9354EE4114171E59</RequestId><HostId>JDHCVei34KruXsXztoP52YY1NKJPfyJXl9OM+mn7OXsHb8Ucfzz+YWe0fiPF8uvtrjvZC3TBiYc=</HostId></Error> Error path: https://s3.cn-northwest-1.amazonaws.com.cn/test_interface/44/artifacts/src/test_interface/build/libs/test-interface-1.0.1.44.jar S3 Document: https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#virtual-hosted-style-access The rest api methods supported by s3 are as follows: 1.Path-Style Requests (Update (September 23, 2020)-We decided to postpone the deprecation of path-based URLs) https://s3.Region.amazonaws.com/bucket-name/key name 2.Virtual Hosted-Style Requests https://bucket-name.s3.Region.amazonaws.com/key name So, the s3 rest http url generated by s3fs splicing is wrong,and how can i fix it?
kerem closed this issue 2026-03-04 01:48:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#790
No description provided.