-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Pushing large amount of data via git-lfs results in HTTP 413 after some time #2930
Comments
This maybe a reverse proxy upload size setting problem? |
I am not sure. I have played around with different upload size limitations in my reverse proxy, and finally disabled it completely (
The first of the 4 Git LFS lines was the output of the push command, which stalled after some time. The other 3 lines are the result of repeatedly pressing the Enter key. I entered the command on 09:08, now it's 09:54, and i am seeing no progress. |
Please note that i have another project with LFS data which sums up to about 10MB. This is working perfectly fine with gitea. |
I am experiencing same issue. I have over 10GB repository and pushing it over ssh fails exactly the same way. I managed to push about 1GB leaving process run over night restarting git push command when it fails. Oddly enough i changed remote to use https and now it has pushed over 800MB without a single error. Could the issue be in ssh? P.S. @simonszu |
I copied my git repository into docker container and tried to push it to gitea without any proxies in the middle. This what happens:
Curious thing is that remote is set to |
I added this in nginx configure file
But, I still got
I used gitea-docker version ca30698 |
I can replicate similar bug with sqlite. I got server side error |
Hi Is there any resolution on this? I'm trying to push a test repository containing ~400MB of LFS files and it fails with authorization error. c:\temp\Test>git push -u origin master |
Was it fixed by #4035 ? |
I need to wait for the next release. I like bleeding edge, but compiling from HEAD isn't always a great idea. ;) |
I tried running the master branch and it fixed a similar problem for me: My issue looked like this: Gitea Bootlog:
Nginx reverse Proxy log:
Git output during upload:
Git output after upload:
I am pushing a commit with a tag (1.0.0) to an existing repo on gitea via SSH and LFS. I have set the new LFS_HTTP_AUTH_EXPIRY_MINUTES value to 3220 (~2 days) as introduced by #4035 and now the 178MB file uploads just fine. As opposed to the Error 401 I got previously. OP had an Error 413 though so I dont know if it is exactly the same issue. |
I think #4035 fixes this issue, reopen if issue still persists |
Actually, I have the same problem (HTTP 413), set size limit on server side to 0, no improvement. 4.7 GB here. Updated to newest Gitlab CE version today, no change. |
In my case increasing size of post data on reverse proxy helped.
…On April 4, 2019 18:23:40 Gerhard ***@***.***> wrote:
Actually, I have the same problem (HTTP 413), set size limit on server side
to 0, no improvement. 4.7 GB here. Updated to newest Gitlab CE version
today, no change.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Could you guide me please a bit to where do what - I'm not directly an expert in these details (I'm glad that Gitlab is working at all...)? I have the Gitlab standard omnibus installation with default webserver. |
@innoreq This is Gitea, not Gitlab, by the way. |
oh, sorry - I was lead here by some googling for git and lfs... however, the problems seem pretty similar ;-) |
This is very setup-dependent. I run nginx reverse proxy that redirects traffic to gitea running inside docker container. nginx max post size can be adjusted by setting it up in nginx.conf: https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size. Edit: I forgot to mention that post size should be that of max size of single file that will be pushed to repository. |
Thanks a lot - I figured out where the (gitlab)-nginx was sitting, and I found the size limit setting. Now, it behaves differently - still uploading, but no error up to now. |
Fixed it. Thanks, @liu-kan ! |
I'm having the same issue: after ~60sec of uploading to LFS it fails.
I am using Kubernetes with nginx ingress (installed from Helm), and playing with |
60s seems to be the default timeout of nginx. You can try to adjust them (like proxy_read_timeout). http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_next_upstream_timeout |
@sapk thanks for suggestions! I tried everything :)
Actually I don't think the timeout is a problem, as underneath git CLI issues a lot of individual uploads which take ~15s at max. I even tried the direct connection to k8s service using Gitea pod logs say nothing about a bunch of 413's I see after executing
To add even more details, I am uploading ~1.5 Gb of data which are large jpegs of 5-100mb. UPDATE by looking at
UPDATE 2 wasting a bit more time I figured out that this issue is related to http->https redirect. Even the direct connection (Gitea server) returns |
@ZitRos Maybe you should try to add all the typical That said, an ingress is technically just a fancy word for a reverse proxy. So you can edit it like a typical reverse proxy. |
UPDATE 3 pushing via HTTP is not successful either, however, now it seems not to push because of the size of the objects (~>48mb). |
Damn, it turned to be just a strange ingress issue. I drilled down the Nginx ingress controller and for some reason, it was ignoring any new annotations I was adding to the ingress spec. Deleting the ingress and bringing it back solved the issue! Thanks @theAkito and @sapk for your quick feedback! UPDATE Still, it doesn't work over https however now the problem is |
UPDATE2: YAY! Turns out it's git-lfs problem, which doesn't handle 308 redirects properly which results in "file already closed" errors. The latest git-lfs binary (which is not yet released!) works flawlessly! |
@ZitRos That is good to know, especially for future readers of this issue. |
I am experiencing this same bug. Has this issue been fixed? I am using |
Update. I was able to fix this issue with |
gitea v1.11.5, even set nginx client_max_body_size=0, still occurs, my repo size is about 30m. please reopen it @simonszu |
@bthulu Perhaps you should open a new issue. It is working for most people, as far as I have seen (including myself). Maybe you have a different root issue. |
[x]
):The try-instance seems to use git-lfs (if enabled) via https and does not accept my login credentials
Description
I have problems pushing a very large repository (1.8GB) with git lfs to my gitea instance. git pushes the first 80MB, after that, the counter of already uploaded data jumps between weird values (e.g. it increases, decreases, increases again, and so on), and after some time, i get lots of LFS client errors, which are HTTP 413 status codes reported back from gitea. The last few lines say that there is an authorization error for
info/lfs/objects/batch
and the push process stops.This is reproducible for several push attempts. I tried setting the log level to
Debug
, but the log file stays quite empty.So i'm asking for help for how to set up Debug logging (i cannot find a list of proper log level options), and i want to notice for this issue in general.
I have configured a Bitbucket Repository as a second remote, and it accepts the big push without problems, so i think it is a server related issue.
The text was updated successfully, but these errors were encountered: