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

Artifact upload fails consistently #1107

Open
1 of 2 tasks
rikur opened this issue Nov 21, 2022 · 5 comments
Open
1 of 2 tasks

Artifact upload fails consistently #1107

rikur opened this issue Nov 21, 2022 · 5 comments
Labels

Comments

@rikur
Copy link

rikur commented Nov 21, 2022

Expected Behavior

Artifacts should be uploaded successfully

Real Behavior

Artifact fails most of the time.

https://cirrus-ci.com/task/6607929523568640

Uploading 1 artifacts for /var/folders/v7/fs2b0v3s0lz1n57gj9y4xb5m0000gn/T/cirrus-ci-build/detox.tar
Error from upload stream: failed to upload artifact file /var/folders/v7/fs2b0v3s0lz1n57gj9y4xb5m0000gn/T/cirrus-ci-build/detox.tar: EOF
Failed to upload artifacts: failed to upload artifact file /var/folders/v7/fs2b0v3s0lz1n57gj9y4xb5m0000gn/T/cirrus-ci-build/detox.tar: EOF
Re-trying to upload artifacts...Uploading 1 artifacts for /var/folders/v7/fs2b0v3s0lz1n57gj9y4xb5m0000gn/T/cirrus-ci-build/detox.tar
Error from upload stream: failed to upload artifact file /var/folders/v7/fs2b0v3s0lz1n57gj9y4xb5m0000gn/T/cirrus-ci-build/detox.tar: EOF
Failed to upload artifacts: failed to upload artifact file /var/folders/v7/fs2b0v3s0lz1n57gj9y4xb5m0000gn/T/cirrus-ci-build/detox.tar: EOF
Re-trying to upload artifacts...
Failed to upload artifacts after multiple tries: failed to upload artifact file /var/folders/v7/fs2b0v3s0lz1n57gj9y4xb5m0000gn/T/cirrus-ci-build/detox.tar: EOF

Related Info

This is a (tick one of the following):

  • Website issue
    • Link to page:
  • Task issue
    • OS: (Docker, macOS, Windows, FreeBSD)
    • Task name:
    • Script/cache name (if applies):
@rikur rikur added the bug label Nov 21, 2022
@fkorotkov
Copy link
Contributor

@rikur, do you know how big is your archive?

@rikur
Copy link
Author

rikur commented Nov 21, 2022

I believe the .tar archive is ~50MB in size

@rikur
Copy link
Author

rikur commented Nov 21, 2022

@fkorotkov In this build, only the junit.xml artifact upload succeeded, all others fail:
https://cirrus-ci.com/task/5219494574948352

@fkorotkov
Copy link
Contributor

That's weird. I see Cancellation received from client error on the backed side for the upload. Maybe there is some network issue for large files on your persistent worker. Right now the upload is happening via a gRPC stream sequentially for every artifact file. We've been planning to re-architecture the mechanism to use pre-signed URLs for S3/GCS/etc so the agent can upload files in parallel.

It's hard to debug the issue here but we'll prioritize the re-architecture and hopefully by the end of the next week we can test with the improved architecture.

@rikur
Copy link
Author

rikur commented Nov 23, 2022

Thank you @fkorotkov. I've been cognizant of the network being a likely culprit and checked that there's no firewalls interfering with the outbound traffic. But there could still be issues upstream that I'm unable to debug at this time. The persistent worker is connected via ethernet to a 1gbps uplink, but that doesn't guarantee much :)

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

No branches or pull requests

2 participants