-
Notifications
You must be signed in to change notification settings - Fork 43
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
Error: Network connection lost. #69
Comments
Hello! Thank you for the issue. I am curious to see how are you pushing layers? Docker push? Whats your container image like? |
I found out the issue, the layer you are trying to push is more than 5gib, which goes against the R2 limits as we try to do a copy to change the path of the object. I will try to have some fix for this. |
Sure @gabivlj |
we are using the index.ts inside push folder to push |
@gabivlj any chance you have been able to look into this? |
Hi @pierre818181, I looked into this, I think I know a possible solution, just haven't gotten to implementing yet! Sorry for the issue, will get to this when I get some time. |
Hi @pierre818181, can you check if #78 works for you? |
Hi @gabivlj I just tried and see the same issue on the cloudflare logs. Here are the upload logs:
From the logs we can see that once you get to 6334927308 bytes left, it goes back to uploading everything again because the chunk upload failed? Here are the cloudflare logs:
Previously it used to fail once all the bytes have been uploaded. Now its failing much earlier - not sure what the reason is. |
Hello @pierre818181, in that same branch I added a WIP commit that I tested that has retry logic. Is this transient issue still occurring after that? Where is this image being pushed from? |
I just noticed that the Worker might throw a Workers CPU exception when calculating the digest; I will try another approach later. |
Hello. I added another commit that should allow you to circumvent this issue (sorry for all the debugging in this issue!) |
Hello @gabivlj |
I get this error once all the PATCH requests are done and the finishUpload is called. I can consistently reproduce this at the same stage during push.
Is this something to do with my Cloudflare plan?
Stack:
This is the object that is there when it errors:
Is it because the size is too big?
The text was updated successfully, but these errors were encountered: