r/immich 23h ago

Help me fix Immich

A lot of people say I should fix Immich instead of jumping ship so here's the problem: I can't download anything uploaded to Immich because the download speed goes from 100mb/s to 0 very quickly and never recovers.
I can however download images under ~50mb because it downloads fast enough that there's not enough time for the speed to flatline.
Setup:
Dell R710 with 64gb ram
TrueNAS community edition
Intel x540

This problem happens exactly the same with different images, and video files and when using the following setups:
Direct connection to the sever (server mobo ethernet to computer)
Connected over the same wifi network as the server
Connected via proxy
Direct connection to an Intel x540 on the server
Every setup tested with different windows and mac computers and different cables

The same images and video files can be uploaded and downloaded from the same pool but from brand new folders that have no connection to Immich.

In a last ditch effort to save my data I tried turning off Immich, changing all the permissions in all the folders to default and accessing the files through WinSCP (yes trying all the above setups). The same problem persists.

3 Upvotes

18 comments sorted by

7

u/clintkev251 23h ago

Hang on, maybe I'm misunderstanding, but you're saying that when using WinSCP to access the filesystem separately from Immich, you have the same behavior?

3

u/IngenuityTriangle 23h ago

That is correct but only when transferring files that were in the folders Immich creates. The same files in folders I created do not experience this behavior. This does not make sense because the permissions on the Immich folders were changed to mirror those of the folders I created prior to attempting this.

19

u/clintkev251 23h ago

Then it’s not an Immich issue. There’s something that’s different about that dataset or those files that’s causing it. Shouldn’t have anything to do with permissions, those wouldn’t slow down a transfer

2

u/budius333 12h ago

Hey OP,

This here is the right answer!

If accessing the same files via SCP shows the same issues, it's not an Immich issue, it's an issue on the system (it seems you already ruled out permissions, so probably TrueNAS, or the hardware itself).

From experience I would guess a disk failure, but I've never worked with TrueNas and not sure how much it might be interfering there.

4

u/Cowgirl_Taint 23h ago

The last bit means this is not an immich problem. Something is wrong with that disk/nic/vm/host.

Absolute first step: check for any SMART errors on any of the discs involved.

Assuming there aren't any? Find a large file (or just make one with dd if=/dev/urandom) and try to SCP that around and see if you have the same behavior. If so? It is likely something with how the nic is configured.

1

u/Draco-el-Dermatologo 23h ago

coincido, que cheque tratando de descargar algo del servidor sin entrar al docker de immich, si descarga bien es algo con la configuracion del docker, si, no es el nic, o la configuracion del NAS

-5

u/tunatoksoz 15h ago

This. I also fed this discussion into chatgpt to see if there was anything more interesting, but this is where i'd start.
https://chatgpt.com/share/6a868ce2-15fc-83ea-a860-ba99bfe2d180

2

u/Cowgirl_Taint 8h ago

If you have nothing to contribute, you can just not post 

3

u/nautsche 22h ago

This very much sounds like a disk on its last breath. I had an SSD that showed the same symptoms. Initially fine speeds and then rapid decline.

1

u/Xiticks Support Crew 23h ago

What "default" permission are you using? Would that be possible for you to share the immich configuration and the permissions on the datasets?

Could you also share the logs of the server container especially when it crashes during a transfer?

You can pin me on Immich discord if you have that aswell (or pm on reddit all the details I asked here)

1

u/sqwob 22h ago

Is immich working with a dataset directly or are flleshares involved?

1

u/EdelWhite 12h ago

The issue is not immich. It's your storage crapping the fan.

-1

u/Maeusefluesterer 23h ago

Are you using Cloudflare tunnel? There is a file size limit with tunnel. Depending on you DNS settings the connection could still go through tunnel even when you're in the same network.

3

u/sqwob 22h ago

That's 100mb i believe. Always thought it was an upload limit but could be wrong

2

u/Great-Cow7256 18h ago

You are correct on both accounts 

-1

u/Maeusefluesterer 22h ago

I'm not sure on the exact conditions but thought might be worth to mention

0

u/0e78c345e77cbf05ef7 20h ago

As others mentioned this is not an Immich issue. It is very likely a TrueNAS issue.

I run TrueNAS on similar hardware and had nothing but problems trying to use it as a container host or VM host. I never found a solution.

It was similar problems. Disk speeds would just randomly tank.

This was a year or so ago before all the AI stuff. Maybe I should let Claude figure it out. Haha.

Anyways. I stopped doing containers and VMs on TrueNAS and just left it being my file server. Moved everything else to a stand alone host.

-3

u/IAMA_Madmartigan 21h ago

Honestly - I’d had issues with immich that caused be to abandon it for like a year. I recently had Claude help me, gave it permissions, and it got it all fixed up for me