Failed to get all albums (500)

Hello, I am on v1.121.0 and getting this error when trying to view the Albums page. All the other pages seem fine. Interestingly, I don't get the error on the iOS app, however, the photos never load and stay blurry. If it matters, I've been using the folder album creator (github.com/Salvoxia/immich-folder-album-creator?tab=readme-ov-file) to create albums. But I've been able to access the Albums page just fine until a few days ago. Here's what I copied when I got the error:
Error: Error: 500
at Object.st [as ok] (http://10.0.0.94:2283/_app/immutable/chunks/fetch-client.BBjLa0zr.js:1:7295)
at async dt (http://10.0.0.94:2283/_app/immutable/nodes/5.CI667KRw.js:1:1328)
at async Ue (http://10.0.0.94:2283/_app/immutable/chunks/entry.BtypCO2L.js:1:15770)
Error: Error: 500
at Object.st [as ok] (http://10.0.0.94:2283/_app/immutable/chunks/fetch-client.BBjLa0zr.js:1:7295)
at async dt (http://10.0.0.94:2283/_app/immutable/nodes/5.CI667KRw.js:1:1328)
at async Ue (http://10.0.0.94:2283/_app/immutable/chunks/entry.BtypCO2L.js:1:15770)
I'd greatly appreciate any help. Thanks!
14 Replies
Immich
Immich6mo ago
:wave: Hey @yukisoma, 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. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: I have read applicable release notes. 3. :ballot_box_with_check: I have reviewed the FAQs for known issues. 4. :ballot_box_with_check: I have reviewed Github for known issues. 5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting. 7. :ballot_box_with_check: 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. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
bo0tzz
bo0tzz6mo ago
You haven't posted any of the requested info
yuki_soma_
yuki_soma_OP6mo ago
@bo0tzz Sorry, I thought those logs would suffice. Logs after click on the Albums button and getting the error:
[Nest] 7 - 11/26/2024, 7:31:53 PM LOG [Microservices:Bootstrap] Immich Microservices is running [v1.121.0] [production]
[Nest] 34 - 11/26/2024, 7:31:55 PM LOG [Api:EventRepository] Websocket Connect: J6_vNUZEghseBXFhAAAB
[Nest] 34 - 11/26/2024, 7:46:20 PM LOG [Api:EventRepository] Websocket Disconnect: J6_vNUZEghseBXFhAAAB
[Nest] 34 - 11/26/2024, 7:47:22 PM ERROR [Api:ErrorInterceptor~5xgb8oe7] Unknown error: Error: timeout exceeded when trying to connect
Error: timeout exceeded when trying to connect
at Timeout._onTimeout (/usr/src/app/node_modules/pg-pool/index.js:205:27)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
[Nest] 34 - 11/26/2024, 7:47:22 PM LOG [Api:EventRepository] Websocket Connect: ZIyjoOYDTMf86kfgAAAD
[Nest] 7 - 11/26/2024, 7:31:53 PM LOG [Microservices:Bootstrap] Immich Microservices is running [v1.121.0] [production]
[Nest] 34 - 11/26/2024, 7:31:55 PM LOG [Api:EventRepository] Websocket Connect: J6_vNUZEghseBXFhAAAB
[Nest] 34 - 11/26/2024, 7:46:20 PM LOG [Api:EventRepository] Websocket Disconnect: J6_vNUZEghseBXFhAAAB
[Nest] 34 - 11/26/2024, 7:47:22 PM ERROR [Api:ErrorInterceptor~5xgb8oe7] Unknown error: Error: timeout exceeded when trying to connect
Error: timeout exceeded when trying to connect
at Timeout._onTimeout (/usr/src/app/node_modules/pg-pool/index.js:205:27)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
[Nest] 34 - 11/26/2024, 7:47:22 PM LOG [Api:EventRepository] Websocket Connect: ZIyjoOYDTMf86kfgAAAD
docker-compose.yml: https://pastebin.com/djnPRbJa .env:
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

UPLOAD_LOCATION=/Volumes/ExtHDD/PHOTOS
THUMBS_LOCATION=/Volumes/ExtHDD/PHOTOS/thumbs
EXTERNAL_PATH="/Volumes/ExtHDD/PHOTOS/Shared Photos"

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD="redacted"

# Where the database is located
DB_DATA_LOCATION=/Users/admin/Docker/immich/pgdata

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

UPLOAD_LOCATION=/Volumes/ExtHDD/PHOTOS
THUMBS_LOCATION=/Volumes/ExtHDD/PHOTOS/thumbs
EXTERNAL_PATH="/Volumes/ExtHDD/PHOTOS/Shared Photos"

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD="redacted"

# Where the database is located
DB_DATA_LOCATION=/Users/admin/Docker/immich/pgdata

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis
I tried accessing the Albums page using a user that doesn't use the folder album creator, and should have only 1 album, but I get the same error.
Pastebin
WARNING: Make sure to use the docker-compose.yml of the current ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
bo0tzz
bo0tzz6mo ago
Can you set the log level to verbose and try again, then post the full logs of both immich-server and postgres?
yuki_soma_
yuki_soma_OP6mo ago
Pastebin
Initializing Immich v1.121.0Detected CPU Cores: 4Starting api worke...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
2024-11-26 19:30:45.253 UTC [1] LOG: starting PostgreSQL 14.10 (De...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
yuki_soma_
yuki_soma_OP6mo ago
I should mention that I did try it earlier and it worked on one of the users that uses the folder album creator. But all other times since then, it hasn't worked. Wondering if it's a resource problem. I've set limits I think on every container. If that's the case, I'm definitely open to suggestions.
Zeus
Zeus6mo ago
Your database is getting crash loop/restarted multiple times. What are your system specs and OS, and do you have any resource limits set for PG?
yuki_soma_
yuki_soma_OP6mo ago
It's an M1 Mac Mini, 8 cores, 8 GB RAM, MacOS Sonoma 14.5. The resource limits for PG are:
deploy:
resources:
limits:
cpus: '0.50'
memory: 1000M
deploy:
resources:
limits:
cpus: '0.50'
memory: 1000M
Zeus
Zeus6mo ago
Try with a full core and 2GB. Either way it’s likely been crashed a bunch of times by now
yuki_soma_
yuki_soma_OP6mo ago
I'll try that, thanks. Is it a concern that it may have crashed a lot by now?
Zeus
Zeus6mo ago
It says it’s getting a SIGKILL, so something on your system is forcing it to shutdown/kill processes Yeah it could have corruption. Hard to say If it starts up cleanly it should be fine in theory
yuki_soma_
yuki_soma_OP6mo ago
Still getting the error...if I restore from a backup, it would still be corrupted, right? I think I'm just gonna start from scratch and go from there. Thank you both for your help! @Zeus @bo0tzz
Zeus
Zeus6mo ago
my point is there is no reason that PG should be crashing like this and it's probably an issue with your system/resources so I don't suspect that a reinstall will fix anything
yuki_soma_
yuki_soma_OP6mo ago
Oh yeah I know, I'll adjust the resources accordingly and do a fresh install. Thanks again

Did you find this page helpful?