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

Big uploads seem to fail. #141

Open
MGlolenstine opened this issue Jun 15, 2024 · 6 comments
Open

Big uploads seem to fail. #141

MGlolenstine opened this issue Jun 15, 2024 · 6 comments

Comments

@MGlolenstine
Copy link

Whenever I try to upload larger files that have been added to the /nix/store (I need to package a proprietary project for our projects, so I'm unable to redistribute), which I add by manually downloading and then running nix store add-file ~/Downloads/<file>, the file weighs about 980MB.

I tried pushing it using attic push work /nix/store/<path>, but it fails to upload (with SQLite, it failed at 10MB, with PostgreSQL it fails at 250MB).

Log:

⚙️ Pushing 1 paths to "work" on "cache" (0 already cached, 0 in upstream)...
❌ pks4344w4p8syzafh5bys05dn2pj6k9s-en.st-stm32cubeide_1.15.1_21094_20240412_1041_amd64.deb_bundle.sh.zip: request or response body error: error reading a body from connection: stream error received: not a result of an error
Error: request or response body error: error reading a body from connection: stream error received: not a result of an error

Caused by:
    0: error reading a body from connection: stream error received: not a result of an error
    1: stream error received: not a result of an error

I can see that the database is getting spammed with the insert and update requests, so I guess that's where the difference between SQLite and PostgreSQL comes in.

I'm wondering if there's something else I could do to improve the performance and allow this to be uploaded.

@Nebucatnetzer
Copy link

Looks like it is the same issue as this one: #24

@MGlolenstine
Copy link
Author

While it does look similar at the first glance, they seem to get errors inside of attic logs, where I don't get any and the error, while occurring in both issues, seem to differ a bit.

@gmacon
Copy link

gmacon commented Jul 26, 2024

The "not a result of an error" is a symptom of hyperium/hyper#2500. I noticed this error with an attic instance deployed in a kubernetes cluster and behind the nginx ingress since nginx sends a GOAWAY after handling a certain number of requests.

@Nebucatnetzer
Copy link

Does it work with Caddy?
I don’t have the possibility to test it myself for the next few days but I will if no one else does.

@gmacon
Copy link

gmacon commented Jul 29, 2024

I don't actually control this kubernetes cluster, so I don't have an easy way to test it myself. I would say "This behavior is within-spec, and attic should handle it." except that that it looks to me like reqwest doesn't expose sufficient detail to make that happen, and handling it today would require using hyper directly.

@Svenum
Copy link

Svenum commented Oct 24, 2024

Maybe the same as:
#170

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

No branches or pull requests

4 participants