Hi,
I am facing an issue when running a bitbucket pipeline on self.hosted linux docker runner, during the tear down step when it is trying to upload artefacts.
I have before faced issues with tls-connection to bitbucket, and fixed that by importing needed ca-certificates in the docker-container.
Configuration is using the default template bitbucket-pipelines.yml:
runner.log:
[2025-08-13 12:28:19,491] Updating step progress to UPLOADING_ARTIFACTS.
[2025-08-13 12:28:19,693] {"traceId":"689c84e3ad76058367e6b39f23cfa4e6","id":"67e6b39f23cfa4e6","kind":"CLIENT","name":"POST","timestamp":1755088099493637,"duration":199877,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"POST","http.path":"/ex/bitbucket-pipelines/rest/1.0/accounts/{8311d81f-8977-49db-a0eb-9236beb5a53c}/repositories/{511181b7-5e43-44ea-8464-8d533392a078}/pipelines/{efbc9b8c-408b-4584-8707-956b31fc753b}/steps/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/progressUpdate"}}
[2025-08-13 12:28:19,890] {"traceId":"689c84c44697813ab22b92b32b82991a","parentId":"683a504f029c6539","id":"e373779d620af0bc","kind":"CLIENT","name":"POST","timestamp":1755088099222403,"duration":667663,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"POST","http.path":"/ex/bitbucket-pipelines/rest/internal/accounts/{8311d81f-8977-49db-a0eb-9236beb5a53c}/repositories/{511181b7-5e43-44ea-8464-8d533392a078}/pipelines/{efbc9b8c-408b-4584-8707-956b31fc753b}/steps/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/log"}}
[2025-08-13 12:28:20,003] {"traceId":"689c84e300762a6b813859aae3facef7","id":"813859aae3facef7","kind":"CLIENT","name":"POST","timestamp":1755088099758512,"duration":244572,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"POST","http.path":"/ex/bitbucket-pipelines/rest/internal/accounts/{8311d81f-8977-49db-a0eb-9236beb5a53c}/repositories/{511181b7-5e43-44ea-8464-8d533392a078}/pipelines/{efbc9b8c-408b-4584-8707-956b31fc753b}/artifacts/initiate"}}
[2025-08-13 12:28:20,191] {"traceId":"689c84c44697813ab22b92b32b82991a","parentId":"683a504f029c6539","id":"44d494d1bdbae851","kind":"CLIENT","name":"POST","timestamp":1755088099963091,"duration":228260,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"POST","http.path":"/ex/bitbucket-pipelines/rest/internal/accounts/{8311d81f-8977-49db-a0eb-9236beb5a53c}/repositories/{511181b7-5e43-44ea-8464-8d533392a078}/pipelines/{efbc9b8c-408b-4584-8707-956b31fc753b}/steps/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/log"}}
[2025-08-13 12:28:20,230] {"traceId":"689c84e4f226bbf5b72a7d2d8588843b","id":"b72a7d2d8588843b","kind":"CLIENT","name":"GET","timestamp":1755088100029469,"duration":200905,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"GET","http.path":"/ex/bitbucket-pipelines/rest/internal/accounts/{8311d81f-8977-49db-a0eb-9236beb5a53c}/repositories/{511181b7-5e43-44ea-8464-8d533392a078}/pipelines/{efbc9b8c-408b-4584-8707-956b31fc753b}/artifacts/{f444f9e6-b2b8-5932-987d-1e6caaec4b46}/s3-presigned-url"}}
[2025-08-13 12:28:20,296] Updating runner state to "ONLINE".
[2025-08-13 12:28:20,501] {"traceId":"689c84c44697813ab22b92b32b82991a","parentId":"b22b92b32b82991a","id":"e03123d17a0469ba","kind":"CLIENT","name":"PUT","timestamp":1755088100298764,"duration":202780,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"PUT","http.path":"/ex/bitbucket-pipelines/rest/internal/accounts/{8311d81f-8977-49db-a0eb-9236beb5a53c}/repositories/{511181b7-5e43-44ea-8464-8d533392a078}/runners/{dd78eaf5-c7e7-5e28-a8c6-3b605f3f29d6}/state"}}
[2025-08-13 12:28:20,989] {"traceId":"689c84e4d4f70a168df6a93e54e7921d","id":"8df6a93e54e7921d","kind":"CLIENT","name":"PUT","timestamp":1755088100272566,"duration":717103,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"PUT","http.path":"/artifact/{511181b7-5e43-44ea-8464-8d533392a078}/{efbc9b8c-408b-4584-8707-956b31fc753b}/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/artifact_{f444f9e6-b2b8-5932-987d-1e6caaec4b46}.tar.gz","http.status_code":"303"}}
[2025-08-13 12:28:23,395] {"traceId":"689c84e6963a8cc225306495f11980f3","id":"25306495f11980f3","kind":"CLIENT","name":"PUT","timestamp":1755088103000313,"duration":394572,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"PUT","http.path":"/artifact/{511181b7-5e43-44ea-8464-8d533392a078}/{efbc9b8c-408b-4584-8707-956b31fc753b}/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/artifact_{f444f9e6-b2b8-5932-987d-1e6caaec4b46}.tar.gz","http.status_code":"303"}}
[2025-08-13 12:28:24,372] {"traceId":"689c84c44697813ab22b92b32b82991a","parentId":"683a504f029c6539","id":"d1de5a9e6ccd6cdb","kind":"CLIENT","name":"POST","timestamp":1755088103966388,"duration":405733,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"POST","http.path":"/ex/bitbucket-pipelines/rest/internal/accounts/{8311d81f-8977-49db-a0eb-9236beb5a53c}/repositories/{511181b7-5e43-44ea-8464-8d533392a078}/pipelines/{efbc9b8c-408b-4584-8707-956b31fc753b}/steps/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/logs/{2c54866d-bf53-44ac-b598-3f7e018f383d}"}}
[2025-08-13 12:28:27,790] {"traceId":"689c84eb8b51f64424f77e75bab6b561","id":"24f77e75bab6b561","kind":"CLIENT","name":"PUT","timestamp":1755088107398983,"duration":391765,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"PUT","http.path":"/artifact/{511181b7-5e43-44ea-8464-8d533392a078}/{efbc9b8c-408b-4584-8707-956b31fc753b}/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/artifact_{f444f9e6-b2b8-5932-987d-1e6caaec4b46}.tar.gz","http.status_code":"303"}}
[2025-08-13 12:28:30,227] {"traceId":"689c84c44697813ab22b92b32b82991a","parentId":"683a504f029c6539","id":"5b96b479e95335b3","kind":"CLIENT","name":"POST","timestamp":1755088109961859,"duration":265336,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"POST","http.path":"/ex/bitbucket-pipelines/rest/internal/accounts/{8311d81f-8977-49db-a0eb-9236beb5a53c}/repositories/{511181b7-5e43-44ea-8464-8d533392a078}/pipelines/{efbc9b8c-408b-4584-8707-956b31fc753b}/steps/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/log"}}
[2025-08-13 12:28:36,190] {"traceId":"689c84f3380063f0d8cdbeb3300ecbf3","id":"d8cdbeb3300ecbf3","kind":"CLIENT","name":"PUT","timestamp":1755088115794314,"duration":395761,"localEndpoint":{"serviceName":"runner","ipv4":"172.17.0.3"},"tags":{"http.method":"PUT","http.path":"/artifact/{511181b7-5e43-44ea-8464-8d533392a078}/{efbc9b8c-408b-4584-8707-956b31fc753b}/{5f63b1ce-9666-4f89-b2ec-810143ff808c}/artifact_{f444f9e6-b2b8-5932-987d-1e6caaec4b46}.tar.gz","http.status_code":"303"}}
[2025-08-13 12:28:36,192] Error while uploading file to s3
com.atlassian.pipelines.runner.core.exception.S3UploadException: ETag not present on header
at com.atlassian.pipelines.runner.core.util.file.upload.S3MultiPartUploaderImpl.toEtag(S3MultiPartUploaderImpl.java:172)
at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:57)
... 13 common frames omitted