Pausing when loading photos, videos or menus.
When I use a local connection 192.168...etc and port number, then the photos, videos and menus load fine. However, when I access through its domain then after 2 or so requests the photos, videos and menus take 30+ seconds to load. I use cloudflare and have not applied zero trust to this sub domain. Has this been seen before and is there something I can do to correct this behavior?
38 Replies
:wave: Hey @FSUNate,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJAChecklist
I have...
1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like
fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.GitHub
immich-app immich · Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
FAQ | Immich
User
GitHub
Issues · immich-app/immich
High performance self-hosted photo and video management solution. - Issues · immich-app/immich
How fast is your home internet?
900 mbits down and 800 mbits up. I dont' have these issues in jellyfin or photoprism. I'm wanting to stop using photoprism because I like the immich features better.

Immich works fine when proxied. More likely to be a cloudflare issue
Maybe you have rate limiting or something setup
I thought about that, but I'd see the same behavior in the other apps if there was.
Not necessarily. Depends on how they’re loaded and at what rate / coding style / etc
For most people, immich over proxy is exactly the same as local. So the issue here is probably with the proxy layer somehow
I'm not sure what I can do, I only create a tunnel from cloudflare to the cloudflared docker. All of my apps run through it.
You can test exposing locally instead of the CloudFlare dependency , nginx for example
Or test with a VPN to assess the network
if you happen to think of anything else, please let me know. I haven't done anything different in the setup of this tunnel than any other app I use.
does immich use websockets?
Yes
checked cloudflare, those options are enabled, that wasn't the issue
looks like the issue stems from me not using nginx. Any environment variables for buffering that need to be configured if you don't use nginx?
These 2 seemed to have helped.

or maybe not, it's delayed again
so, it looks like if I don't move over a video file to not allow it to request a preview then I don't have issues, but if I mouse over a couple of videos and then click a video then the delay happens
That sounds a bit like something is limiting concurrent requests or such
I'm using out of box settings
I'm not sure what the issue is tbh, I turned off video preview on mouse over. I still have issues if I move too quickly through videos. I don't have this issue locally, only when I go through cloudflare. I also added nginx to test and have a proxy host set for immich. This didn't help either, same issue.
When you tested nginx did you turn off all cloudflare settings? No tunnel, no proxy (orange cloud turned off)
can't say that I did, but right now I'm having other issues
I have deleted the DB folder completely, deleted all of the folders containing the .immich files, cleared the cache in the web browser. Set everything back up in cloudflare and removed nginx completely and deleted its folder. Now when I deploy the immich stack and get it running, I connect externally through cloudflare, it gets me to the Admin Registration page, I fill out the info and click sign up, it just sits there, but if I click it again it will says the admin account already exists.
This sounds like a cloudflare issue again where it’s registering the first time you signup and then not forwarding to the next page
It wouldn’t show the welcome screen if the account existed
using local ip it goes to login instead of admin registration
looking to purge cache in cloudflare
I'm a bit frustrated too, I just wanted to start over and get some folders and things organized. It's proving to be not so easy.
1 problem down, it's showing the login. Next issue, I create an external library, but it doesn't show up, I can see it if I use a local connection though.
wow, I put myself in this pain
I had set a page rule in cloudflare when I was trying to fix the weird loading, had it set to cache everything....... my memory at this age....not so good

I don't think I turned off cloudflare proxy when I was using nginx, I will attempt that this go around
That would help
I think this delay might be the best I can do. I want to keep using cloudflared as the tunnel to reduce my exposure and risk. I would have to open a port on my router if I wasn't to use the cloudflared tunnel for nginx
Makes sense. It’s a trade off
it seems like Immich isn't stopping the downloading of videos if I exit them. Another odd behavior I've noticed, I have play preview on mouse over turned off, is that when I click on a video to watch and the delay happens, then Immich begins playing the preview of some other video I haven't selected on the screen.
Hi, we can assist with issues that can be replicated on local IP/port 2283
Otherwise these are proxy issues
I would tend to agree if there was network consumption, but there isn't, it stays at 0 until the delay stops, in fact I can't even do a web search while the delay is happening
it stops everything
is there any way to find out if someone has successfully used nginx with cloudflare?
also, I would tend to agree if photoprism and jellyfin didn't serve the same files through cloudflare without issue
Yes, people use nginx with CF. I don’t see what network consumption has to do with it
If it works locally, and not when using a proxy, in my mind the issue is pretty clear
Immich actually has relatively straightforward HTTP traffic, nothing fancy
meaning when the delay happens, the process stops other network traffic as well, can't navigate menus in immich as it is stuck, can't do internet searches from other tabs until the delay stops. To add to that, I have no issues with any other program doing the same thing immich does with my video files.
Immich, through a reverse proxy, has no ability to shut down your internet …
It sounds like your browser is freezing on something added or being served by CF
crazy as it might seem, but that is what immich is doing when it delays
It’s not immich
no other program doing the same thing has any issue though
Especially if it works fine over local IP, as I said
Either way I don’t see the point of going back and forth
jellyfin works fine serving the same videos as well as photoprism, through cloudflare
Lots of people use CF and nginx, CF and immich, nginx and immich, all working fine
I’m going to hop off here, good luck