-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error code: Out of memory when loading /photos page #15749
Comments
Immich runs on port 2283, not 3001. |
Sorry, typo. That's the immich-power-tools, which is actually working.. my bad on that typo. I do connect to http://immich_server:2283 (and also my web address) which loads the page but gets stuck. But all the other pages such as /albums work. |
looks like you have one bucket with several thousands photos? Can you post the output of
|
Sure, here you go...
|
Yes, that is correct. That is Cross County and Football season plus my sister's wedding so I have a ton of photos from that month. With that being said, I've never had a problem with loading my /photos page before updating to v1.125.6. In thi case, I am storing .raw and the .jps files for just the wedding (which I normally don't save that much). I'm surpised that 2024-07-01 doesn't have more. I imported a Facebook backup and all of those dates are sitting on one particular day. I've been slowly going through and adding the correct date, but it is taking me time. Any advice to fix this issue? Or am I just SOL on accessing the /photos page for a while? |
yeah, let me see if we can do something about it sooner |
No worries. I appreciate it. It was working on v1.25.2 and all the versions before it. Just broke now when updating to v.1.125.6. With that being said, I have never been really able to scroll down to July and September because it would just take forever to load those months. But if I was going to go that far, I would have just accessed the album. But in the meantime, it will be a pain in the butt to get the most recent photos I have taken to add them to albums or tag or whatever. I probably can get away with searching for them on the certain date as a workaround. |
Can you roll back and see if it actually works here? |
If I may ask, how do I do that? |
Nevermind, I changed |
Update: I mispoke. My previous version was actually v1.124.2. I waited a while to update to v1.1.25.x because I saw there was a lot of new versions going out relativly quickly so I figured it was unstable for a bit. With that being said, it is working on v1.124.2 just fine. No issues right now. I can load the /photos page with no issues. |
@mertalev any thoughts on why it works pre-kysely? |
Can you compare the network response of the first time bucket on 1.124.2 and then on 1.125.6? How many kb/mb is it? If it isn't significantly different, my guess would be that it's because post-Kysely is able to respond more quickly for multiple time bucket requests, meaning the peak RAM usage can be higher. |
Any idea why my bucket requests are significantly slower? v1.124.2: v1.125.6: |
It being so slow is weird for so few assets. My guess is either that Postgres is using a bad query plan or there's something about your environment that's very suboptimal.
|
|
Likewise, mine is... |
Can you run this SQL query: I want to rule out DB cruft before considering other possibilities. |
May I ask how I go about this within my Docker environment? Edit: Nevermind, I found out how to do it at https://immich.app/docs/guides/database-queries. |
I have ran this command and ran it on v1.125.7 and I am having the same out of memory error. |
I ran this query and now the response time is 200ms on average. Very good, nice work |
It won't help with that, no. This command just affects the internal DB performance, not the actual data. |
The bug
When going to my Immich /photos page (after logging in), it will attempt to load but will eventually go to the "Aw, Snap! Something went wrong with dispalying this webpage. Eorr code: Out of Memory" page. This is occuring right after I updated to v1.125.6 (from v1.125.2).
The OS that Immich Server is running on
Ubuntu 24.04.1 LTS
Version of Immich Server
v1.125.6
Version of Immich Mobile App
N/A
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
...
Relevant log output
https://drive.google.com/file/d/1Sq58_4QElk2YQlfVo5cJIpf-7Zvgar1j/view?usp=sharing
Additional information
No response
The text was updated successfully, but these errors were encountered: