-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Large uploads fail in web client #31017
Comments
What is your nginx setting with respect to payload? |
Check your |
As an aside, I tried testing this on try.gitea.io again, but trying to register an account returns a 500. I'll try again a different day. |
There are some guesses for this problem:
For the first case, you could try to double-check your config/environment. For the second case, could you provide a reproducible setup with detailed steps? eg: a docker compose file, and the steps to reproduce. If it could be reproduced on a developer's machine, then it could be fixed soon. |
I am planning on putting aside some time in two weeks to see if I can create a reproducible setup. |
I was able to test this locally with a docker installation on 1.21.11 as well as on the demo site (which is on 1.23.0+dev-197-gab1948d4a3), and was unable to reproduce it. I mistakenly assumed that if it worked with cURL that it would be a problem with Gitea, but it is clear to me now that is an issue with how the forward proxy is configured. |
Description
I'm trying to upload large release binaries (~300MB) to a tagged release Gitea.
The following curl request works and attaches the upload to the release as expected:
However, uploading the same attachment through the web interface will hang when the upload progress bar fills up. In my case, Gitea is running in a Docker container behind nginx, so eventually nginx times out. Gitea reports the nginx response as an error and the upload fails to be attached to the release.
I tried to test what would happen if I did the same upload on try.gitea.io but it appears to be down at the moment. I'll try to update this issue later when I'm able to test it there. Unfortunately, I couldn't figure out how to run my Gitea without nginx, since logging in doesn't seem to work.
I found an issue that might be related (#11906), but the fix for it appears to still exist.
Gitea Version
1.21.11
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/exodrifter/2ee2aee15835ea0e4e8f7e007c89b0af
Screenshots
Here's what the web interface looks like when the upload fails:
The error in plaintext:
Git Version
2.34.1
Operating System
Ubuntu 22.04.4 LTS
How are you running Gitea?
We are running Gitea from docker, which is behind an nginx reverse proxy which is being run in a SWAG container.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: