a1ex4 / ownfoil

Lightweight and customizable Tinfoil Shop manager, with automatic saves backup.
BSD 3-Clause "New" or "Revised" License
311 stars 32 forks source link

Transfer stops in the middle #31

Open mobihen opened 11 months ago

mobihen commented 11 months ago

Hi :),

First, great work!!! thank you very much! I will try to contribute to this great work very soon (I'm an android dev)

So, I'm running the shop and everything is great, I can see the games, I can see "New Games", "DLC" sections, (I can't see UPDATE section yet, but maybe it's my issue related..) When I'm trying to install a game, xci or other, it's stops in the middle of the downloading and I can't install it because it's not fully downloading it. there is no logs for that container on that operation. First, I though it was cutting 2GB+ but it occures also for 16GB files somewhere in the middle of it.

Is there anything I can do in order to solve this?

Thanks !

velvetpants1975 commented 9 months ago

I am also having the same issue. Files will stop transferring halfway through if they are larger than 1gb. It appears as though an error msg is thrown but it disappears too quickly. This was the error codes from the console.

image

a1ex4 commented 9 months ago

Are you running / accessing Ownfoil through a reverse proxy? If so it could be a configured limit of max file size, see #33.

Else it should be fixed in the rewrite of Ownfoil v2, see #43, it should not happen anymore.

velvetpants1975 commented 9 months ago

Are you running / accessing Ownfoil through a reverse proxy? If so it could be a configured limit of max file size, see #33.

Else it should be fixed in the rewrite of Ownfoil v2, see #43, it should not happen anymore.

Yes, I am running a reverse proxy through Cloudflare and Nginx! In that #33, the solution has me add that block to the Ownfoil compose file or to the Nginx one? Thanks!

a1ex4 commented 9 months ago

It's not related directly to Ownfoil, but depending on how you run Nginx settings can be in different places. You should add those lines to the nginx.conf that's used by Nginx.

velvetpants1975 commented 9 months ago

Got it, thanks for the help! Looking forward to giving v2 a go.

FourEyedPanda commented 8 months ago

@velvetpants1975 btw, I had the same issue. It wasn't an issue with file size setting for me though it did happen only for bigger files.

What clued me in was checking my NextCloud configuration. Add this to your ownfoil configuration in nginx:

proxy_buffering off;

velvetpants1975 commented 8 months ago

@velvetpants1975 btw, I had the same issue. It wasn't an issue with file size setting for me though it did happen only for bigger files.

What clued me in was checking my NextCloud configuration. Add this to your ownfoil configuration in nginx:

proxy_buffering off;

Thanks! Ill give this a go as well. I added these settings referenced in #33 and it seems to have solved it...

proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_max_temp_file_size 0; client_max_body_size 0;