I
Immich6mo ago
alice

In the mobile app, opening an album takes about a minute.

Once opened it works quickly. If you leave the album and immediately return again you have to wait about a minute. At the same time, the album opens very quickly in the browser on the same device. I have about 35 albums with 300 photos and a few short videos. Immich was installed according to the instructions, is up to date (1.120.1 build.166) and runs great, but the fact that the albums in the Immich app have to load so long every time you open it is annoying. What can I do?
82 Replies
Immich
Immich6mo ago
:wave: Hey @alice, Thanks for reaching out to us. Please follow the recommended actions below; 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 compose ps docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy Checklist 1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: I have read applicable release notes. 3. :blue_square: I have reviewed the FAQs for known issues. 4. :blue_square: I have reviewed Github for known issues. 5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting. 7. :blue_square: I have 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) If this ticket can be closed you can use the /close command, and re-open it later if needed.
CrushedAsian255
CrushedAsian2556mo ago
are you connected directly or through a proxy?
alice
aliceOP6mo ago
via a prxy > nginx proxy Cache Assets, Websockets Support (Docker), Force SSL and HSTS Enabled are activated
schuhbacca
schuhbacca6mo ago
What happens if you connect directly via IP:port?
alice
aliceOP6mo ago
IP:Port are redirected to https domain
schuhbacca
schuhbacca6mo ago
Strange. Never seen that before. I am trying to determine if it's immich or some configuration you have setup in between as we haven't seen any reports of this lately.
Alex Tran
Alex Tran6mo ago
How many photos in the albums you opened?
schuhbacca
schuhbacca6mo ago
Said 300 above. So not a crazy amount.
Zeus
Zeus6mo ago
This doesn’t make sense. What is your network setup like? I assume you have your proxy on a domain, port 443 Please connect directly to immich on a local IP, port 2283 If immich is only on the proxy network, you can temporarily expose the port 2283 to the LAN for testing Otherwise we won’t really be able to help you as it might not be an immich related issue
alice
aliceOP6mo ago
Only the proxy itself opens port 80 and 443. In the proxy the source is my domain, the destination is my internal (http)IP:2283 and certificate (SSL). It's also just the app, when I go via the browser everything is super fast.
CrushedAsian255
CrushedAsian2556mo ago
try connecting to your internal IP : 2283
alice
aliceOP6mo ago
I did that and am then immediately redirected to my domain (ssl). That's how it should be. As I said, all the connections are great, only when I open the app do the thumbnails for the albums load for about 30 seconds to 1 minute. The more albums, the longer it takes to load. Once these are loaded everything is super fast. During the loading time everything is jerky. When I connect via the browser, nothing loads, everything is there immediately and super fast.
Alex Tran
Alex Tran6mo ago
You have 30 albums and the total of 300 photos and videos, is that correct?
alice
aliceOP6mo ago
Correct
emielregis
emielregis6mo ago
When accessing immich through your lan via port 2283 it will not redirect to anything, as @Zeus pointed out. What you're saying here does not make much sense. You should try logging out on your app, then log in using your LAN IP and port 2283. i.e., your server endpoint URL would look something like http://192.168.1.xx:2283/api when you log into the app. Depending on your LAN configuration, it may also be something like http://10.0.0.xx:2283/api.
alice
aliceOP6mo ago
I did this, when I enter http://myIP:2283 and connect, I am redirected to https://myDomain.com and I am in the app. http is not possible for me, I don't want it either, everything should be https. Or do you mean that I should bypass the proxy to just test it internally?
CrushedAsian255
CrushedAsian2556mo ago
Yes, bypass the proxy HTTP is fine if you’re just connecting locally (not over the internet)
alice
aliceOP6mo ago
yes, it's better locally, that's true. But that's not my point. OK, I'll try it. Unfortunately I don't have much time at the moment so I'll get back to you later. I'll get back to you on Wednesday or Thursday. I'm going on a short vacation, thank you and see you soon Now my mother-in-law has shared 3 albums with us and my mom takes a lot of photos😩, each album contains about 600 photos and now all the albums shared with me load even slower. If I leave some albums the loading time becomes shorter again. If I close the app and reopen it, it starts loading again. I tested past the proxy (http://ip:2283) only local network, it's exactly the same. I think it's the detailed image viewer, here I only selected preview images and low quality thumbnail photos. It seems like the loading time depends on the number of albums, the more albums are shared, the longer it takes to load.
Alex Tran
Alex Tran6mo ago
what is your upload/download speed for your server? this sounds like upload speed bottle neck where you host Immich
alice
aliceOP6mo ago
100 Mbit/s down and 50Mbit/s up
Alex Tran
Alex Tran6mo ago
that sounds decent can you test with connecintg to local IP? I think it would help confirm and pinpoint where the problem might be
CrushedAsian255
CrushedAsian2556mo ago
I tested past the proxy (http://ip:2283/) only local network, it's exactly the same.
I think they have, or do you mean localhost?
Alex Tran
Alex Tran6mo ago
hm it was passed through the proxy though, probably not connecting directly to the http://ip:2283 and maybe a screen capture would be helpful some folks use split tunnel so connecting through local IP is still going through stuff like CloudFlare afaik so it would be good to doulbe check that
alice
aliceOP6mo ago
Ok, Cloudflare is just my DNS provider. Proxy and tunnel are not active on cloudflare. I only use NGINX. I also use a DNS (pihole). This constellation may not be compatible > Cloudflare > pihole > nginx Localhost😉
Questionario
Questionario6mo ago
maybe storage is a disk that spins down? or even worse, usb attached spinning disk which spins down? 😛
CrushedAsian255
CrushedAsian2556mo ago
Causally runs Immich of a RAID 0 of floppy disks (I should try that)
Questionario
Questionario6mo ago
😄 i still have a floppy drive :[
CrushedAsian255
CrushedAsian2556mo ago
Run Immich off it Loading a single image needs 2 disk swaps -_-
Questionario
Questionario6mo ago
not SATA and no pc available with IDE.... also off-topic ^^
alice
aliceOP6mo ago
Disk spin and floppy 🤣👍cannot be. If I log out and then log back in, the albums load again from the beginning. Addendum: Backups, encoded videos, library, thumbs and upload run via the cache (ssd) OK, I checked it again. The thumbnails are first saved in the cache and when I activate the mover (unraid) the thumbnails are copied from the cache (ssd) to the HDD. Do the thumbnails have to be in the cache? But my database runs in cache I split the albums, fewer photos per album, but more albums. Now the whole thing takes even longer to load. This is bad.🤮 Can't you put the thumbnails on the phone cache so that it goes faster? It's only via the mobile app, everything else works great.
emielregis
emielregis6mo ago
The mobile app should cache your thumbnails, unless you've turned on Prefer Remote Images in Settings -> Advanced on the mobile app. On the flip side, it is a known issue that some devices are very slow to access images stored in cache. In which case turning this setting on will help. Have you tried uninstalling immich altogether from your phone and starting over? Is there another phone you can test this with to determine if it's a problem with your server or your phone? You can also check if there is an issue with your app by signing into the demo instance and seeing if opening albums is slow https://immich.app/docs/developer/setup#mobile-app
alice
aliceOP6mo ago
I have all the optimal settings enabled and the thumbnail quality set to minimum. I'm now at about 20 seconds loading time > 87 albums. My users and I find it annoying because it jerks in such a short time. Once the 20 seconds are up, everything is great. Another problem is that if you close the app (don't log out) and immediately reopen it, the loading time starts all over again. Handling the app is annoying because it jerks and doesn't run smoothly. Everything is perfect in the demo app. When I log in to the app via browser everything works perfectly. If I use the app from the PlayStore, this problem occurs on my cell phone and others.
Alex Tran
Alex Tran6mo ago
This is known issue because of the album index/sync process causes the jank. We are working toward a fix for this
alice
aliceOP6mo ago
👍
Questionario
Questionario6mo ago
is that android only? i dont seem to have that issue on ios
Alex Tran
Alex Tran6mo ago
well, Android somehow very slow on reading/processing the changes. I think iPhone has better CPU so it is less noticeable
emielregis
emielregis6mo ago
Odd. I used an old Pixel 4 until a few months ago and never ran into this issue, even with albums containing 500+ assets. I assumed it was some iOS jank until I saw the message about the app being from Play Store.
emielregis
emielregis6mo ago
I suppose the Pixel 4 still holds it's own against flagship phones even after 5 years. Who woulda' thunk?
No description
Mraedis
Mraedis6mo ago
It's an issue likely introduced by an update so no wonder it wasn't noticed on your pixel 😉
Alex Tran
Alex Tran6mo ago
Btw I also found the bug that cause the albums keep syncing when open the app Now is to identify how to fix it @alice Have you had a chance to update the server and see if it helps
alice
aliceOP6mo ago
The server is already up to date, now I'm still waiting for the mobile app update, which always comes a little later. I'll test it and then report back.
Questionario
Questionario6mo ago
fix is server side only, you can test already with the same app
alice
aliceOP6mo ago
Ok, I tested it. App version and server version different, nothing has changed.
alice
aliceOP6mo ago
No description
Alex Tran
Alex Tran6mo ago
opening album still takes a long time?
alice
aliceOP6mo ago
Yes, about 80 albums > about 20 seconds, if I put the app in the background and reopen it > about 20 seconds again. After that everything is super fast and perfect.
Alex Tran
Alex Tran6mo ago
Can you clarify what is that 20 seconds mean?
alice
aliceOP6mo ago
When I open the Immich app and press albums, they load in about 20 seconds. When I then scroll through the albums everything is jerky. When the 20 seconds are up everything is smooth and chic. If I put the app down and reopen it, the albums take 20 seconds again. If I increase the number of albums it takes even longer. This happens on different devices with Android. I'm currently using a Huawei P20Pro, with Samsung Galaxy it's a bit faster but also annoying.
alice
aliceOP6mo ago
No description
Alex Tran
Alex Tran6mo ago
can you help me follow the below steps 1. Make sure that the server that the app is connecting to is on v1.121.0 2. Log out then log back in 3. Observer the Photos page to make sure that the spinning icon is gone at the bottom of the page 4. Observe the Albums page to make sure that the spinning icon is gone at the bottom of the page 5. Put the app into the background 6. Reopen the app and see if the Albums page still has spinning icon
alice
aliceOP6mo ago
Ok, that's how I wanted to do it, the server is already up to date. I'm still waiting for the PlayStore to update the app. I will then test all steps and report back. First of all, thank you very much for your effort.
Alex Tran
Alex Tran6mo ago
You can test now because the app version doesn’t make a difference for this behavior 1.120.x is fine for the app
alice
aliceOP6mo ago
Ok, I tested that way. No improvement.☹️
Alex Tran
Alex Tran6mo ago
So whenever you open the app, the albums spinner would spin for like 20 seconds until it dissapears? in the albums page, can you pull down to refresh and see how long the spinner status stays up?
alice
aliceOP6mo ago
Ok, I noticed the following: When I'm on WiFi it takes about 20 seconds. When I put the albums under it it takes a little longer. When I'm on the mobile network it takes 35 seconds and pulling down the albums takes 42 seconds. It's faster on WiFi I tested it a few times, WiFi is faster, but not under 20 seconds. PS The app is now up to date, I restarted everything and it stays that way. So far identical on two devices, Huawei P20Pro and Samsung Galaxy A7
Alex Tran
Alex Tran6mo ago
Perhaps those phones has slow cpu/storage 😅
alice
aliceOP6mo ago
No description
alice
aliceOP6mo ago
🤷‍♀️ 2,36 GHz I'll ask my users, I'm sure there are even better models in use. But I should really get a better one😆
Alex Tran
Alex Tran6mo ago
I am pretty confident that by doing so, it will solve this issue
alice
aliceOP6mo ago
🤣👍 A user has a Samsung Tab S6 Octa-Core 2.8GHz / 8GB RAM and exactly the same problem🤔
Alex Tran
Alex Tran6mo ago
Do you have more recent phones? Like S8 or S9?
alice
aliceOP6mo ago
Definitely, I'll test it and get back to you later ok, I've now tested it with a Samsung S23, it stays the same?
Alex Tran
Alex Tran6mo ago
when you reopen the app, it still take more than a few seconds to settle? or when you open an album
alice
aliceOP6mo ago
both
Alex Tran
Alex Tran6mo ago
Do you mind taking a video capture of the behavior? And are you connecting to your instance over direct IP? Can you please try that?
alice
aliceOP6mo ago
OK, the video is online. Via http://ip:2283
Alex Tran
Alex Tran6mo ago
So you have 300 albums, is that correct?
alice
aliceOP6mo ago
the test is currently running with 87 albums There are over 300 photos in 10 albums 1 album has 13 short videos m4v When I delete albums it becomes faster, when albums are added it becomes slower My server runs with 12 cores of a strong CPU and 32 GB of RAM. Server and mobile app are up to date
Alex Tran
Alex Tran6mo ago
Can you get the mobile app log and post it here? I have 85 albums and 80,000 assets on my prod instance and I cannot reproduce this behavior
schuhbacca
schuhbacca6mo ago
Not sure if was asked, is the database on an SSD?
Alex Tran
Alex Tran6mo ago
we probably need to add this in the check list
alice
aliceOP6mo ago
The PostgreSQL database runs on SSD
Alex Tran
Alex Tran6mo ago
Did you create these test albums from the Immich interface or you use some type of database client to manually copy and create new records?
alice
aliceOP6mo ago
The Immich container also runs on SSD. Photos/libraries first go to the cache (SSD) and from there to an HDD. The Immich container runs in the cache with Config/redis/machine-learning and log I'll get back to you later😩
Alex Tran
Alex Tran6mo ago
yeah something might be wrong with you instance, idk. Maybe try creating a new one
alice
aliceOP6mo ago
It's just the short loading time, otherwise everything runs great without any problems, I'm completely satisfied. Maybe I'm a bit too perfectionist😉
Alex Tran
Alex Tran6mo ago
To be fair, this should never happen
Alex Tran
Alex Tran6mo ago
Alex Tran
Alex Tran6mo ago
Here is on the prod instance with 85 albums something odds is happening with your setup, I am not sure where to look now
alice
aliceOP5mo ago
The following folders are in my cache: backups / encoded-video / library / thumbs / upload is that correct? If I'm in the albums and close the app from there or put it in the background and then open it again, it takes a while to load. When I'm in Photos and close the app and then open it again, nothing loads, everything is there immediately and super fast. I tried it several times. In short: everything from photos to albums is perfect, nothing loads, everything is super fast. Ask: If the Immich app (PlayStore) was forced to start in your own photos when you opened it, would my problem be solved PlatformDispatcher - Catch all Error: Overlay is null. Please don't use top of the widget tree context (such as Navigator or MaterialApp) or create overlay manually in MaterialApp builder. More information - https://github.com/ponnamkarthik/FlutterToast/issues/393 - https://github.com/ponnamkarthik/FlutterToast/issues/234 #0 FToast._showOverlay (package:fluttertoast/fluttertoast.dart:175) #1 FToast.showToast (package:fluttertoast/fluttertoast.dart:265) #2 ImmichToast.show (package:immich_mobile/widgets/common/immich_toast.dart:49) #3 EditImagePage._saveEditedImage (package:immich_mobile/pages/editing/edit.page.dart:81) <asynchronous suspension> Is this the cause of the long loading time?
Alex Tran
Alex Tran5mo ago
I haven't encountered it before, do you recall how do you trigger it?
alice
aliceOP5mo ago
It only affects albums that are shared, shared albums take a while to load. The loading time as an album owner with 80 albums or more is very fast. My users and I only have the loading time problem with the shared albums, as you saw in the video. It seems as if the albums are reloaded every time the app is opened. If we leave the shared albums and only use our own, the loading disappears and only the new details are loaded very quickly. There is a difference between your own and shared albums. The setup is fine and we tried it on different devices.

Did you find this page helpful?