mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-22 09:32:36 -05:00
[GH-ISSUE #92] File transfer limit #1282
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ItsSK on GitHub (Jan 21, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/92
I wanted to replace my Cloudflare Tunnel with Pangolin since Cloudflare has a 100MB limit. I noticed that Pangolin has a similar limit at around 370MB, is it possible to remove the limit?
@oschwartz10612 commented on GitHub (Jan 22, 2025):
Hi,
I am not sure what limit you are referring to? We should have no baked in data transfer limits.
What is happening when you get to 370? What service are you proxying that fails? Nextcloud?
@ItsSK commented on GitHub (Jan 22, 2025):
Heyy, I did some testing with multiple docker applications, the test was preformed on the same application with Pangolin & NginxProxyManager being the only difference, Just sharing my findings
File: 1.16GB GoPro video
Pangolin:
Nextcloud: Uploaded successfully and playback works
Immich: fails to upload (Error in Immich log: [39m [33mRequest error while uploading file, cleaning up[39m)
Synology Photos: says uploaded but file is nowhere to be found.
Nginx Proxy Manager:
Nextcloud: Uploaded successfully and playback works
Immich: Uploaded successfully and playback works
Synology Photos: Uploaded successfully and playback works
@netxer commented on GitHub (Jan 22, 2025):
I had issue with synology photo as well, tried to upload new pic failed half way.
@oschwartz10612 commented on GitHub (Jan 23, 2025):
This is all very interesting thanks for the feedback. I just want to confirm: are you running the latest version of gerbil and newt? Should be
beta.3andbeta.4respectively. I fixed many issues around MTU, MSS, and the TCP proxy.@ItsSK commented on GitHub (Jan 23, 2025):
For gerbil I'm running
beta.3and for newt all I show isfosrl/newt:latest@netxer commented on GitHub (Jan 23, 2025):
did try again today, it seemed to work fine as long long the speed bandwidth is above 100kb as sec( was testing yesterday on 4g phone connection)
@oschwartz10612 commented on GitHub (Jan 23, 2025):
Just to be 100% sure have you docker pulled the latest container if you are using the latest tag? Not sure when you set it up...
@dhanadhan commented on GitHub (Jan 23, 2025):
I am also experiencing the same issue uploading bigger files/videos to Immich. Running all containers with the latest tag.
@oschwartz10612 commented on GitHub (Jan 24, 2025):
One thing you could try but I would not expect to instantly solve the issue is the MTU. I set it pretty low by default on the latest builds at 1280 to try to support all kinds of networks. You can use the
--mtuor theMTUenv var to set it higher to something like 1420 on BOTH gerbil and newt and see if it helps.At the least it should speed it up a bit.
@dhanadhan commented on GitHub (Jan 24, 2025):
Just tried with MTU 1420 and 1400 set on gerbil and newt, nothing changed. Upload still failed after about 370 MB.
@oschwartz10612 commented on GitHub (Jan 25, 2025):
I am currently investigating if we need some Traefik config to resolve this. I am looking at a comment in this thread: https://community.traefik.io/t/increase-maximum-body-size-without-buffering/15928/6
I will do some experimentation on my side, but in the meantime could anyone here try to reproduce and see if there is any output in the Traefik logs? You might want to turn on DEBUG for the log level in
traefik_config.yml@dhanadhan commented on GitHub (Jan 26, 2025):
Not sure if I am reading the right logs. I changed traefik config to add DEBUG under logs. Then watched for traefik container logs while uploading. This is what it showed when it failed to upload.
@dhanadhan commented on GitHub (Jan 26, 2025):
Made the change mentioned in the above link, and upload was Successful!
@oschwartz10612 commented on GitHub (Jan 26, 2025):
@dhanadhan Fantastic!
IDK if anyone else can confirm if this helps them. I will put this into the Traefik config for the next release.
@ItsSK commented on GitHub (Jan 26, 2025):
What was the exact change?
@dhanadhan commented on GitHub (Jan 26, 2025):
Check the below link and look in the last comment for formatting. Update that in traefik_config.yml. Then reboot the stack.
https://community.traefik.io/t/increase-maximum-body-size-without-buffering/15928/6
@oschwartz10612 commented on GitHub (Jan 26, 2025):
Bummer! Just checking you did restart Traefik right? Does the upload fail at the same point?
@ItsSK commented on GitHub (Jan 26, 2025):
Sorry I spoke too soon, I did restart Traefik and the fix did work. I tested both Immich Web and Mobile app.
websecure: address: ":443" transport: respondingTimeouts: readTimeout: 30m@oschwartz10612 commented on GitHub (Jan 26, 2025):
Great! I will include this in the next release and close this when it is out. Thanks for testing guys!
@ItsSK commented on GitHub (Jan 26, 2025):
I tested Synology photos as well and it did upload successfully, though the progress bar was not showing and then jumped from 0 to 100...
@miloschwartz commented on GitHub (Jan 30, 2025):
Added
readTimeoutin beta.9!@Cantello commented on GitHub (Feb 22, 2025):
Would this fix be present just by updating to the the latest version or do I need to edit traefik_config.yaml as well? I checked and
readTimeout: 30mis already present. However, I am the one with the problem mentioned above with pdfding and uploading files larger than ~100MB. Setting traefik logging to DEBUG does not show anything unusual after the error message.Any idea if this could be caused by pangolin/traefik?
@TuncTaylan commented on GitHub (Apr 10, 2025):
I also have this problem, even with the readTimeout set to 30m.
Edit: With enough RAM I'm gettings following log:
crowdsec | time="2025-04-10T16:28:59Z" level=warning msg="Disrupting transaction with body size above the configured limit (Action Reject)" band=inband chain_rule_id=3231508716 name=myAppSecComponent runner_uuid=1111e24a-bc7f-4862-9709-b69e66382a5a tx_id=ed578e15-f17c-4166-9172-75816b4dff66 type=appsecThe question is, where is that configuration?
@TuncTaylan commented on GitHub (Apr 11, 2025):
I solved this (my issue at least), check these out: