I
Immich•2y ago
Park Ranger

Assets failing to load in Immich 1.67.1

Container: Immich all-in-one: https://immich.app/docs/install/all-in-one Docker Compose:
---
version: "2.1"
services:
immich:
image: ghcr.io/imagegenius/immich:latest
container_name: immich
environment:
- PUID=1024
- PGID=100
- TZ=Etc/UTC
- DB_HOSTNAME=192.168.1.155
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_DATABASE_NAME=immich
- REDIS_HOSTNAME=192.168.1.155
- DISABLE_MACHINE_LEARNING=false #optional
- DISABLE_TYPESENSE=false #optional
- DB_PORT=5433 #optional
- REDIS_PORT=6379 #optional
- REDIS_PASSWORD= #optional
- CUDA_ACCELERATION=false #optional
volumes:
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/.config/immich/config:/config
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/Media/Raw:/existing-photos
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/Media/Raw/Immich:/photos
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/.config/immich/machine-learning:/config/machine-learning #optional
ports:
- 8085:8080
deploy:
resources:
limits:
memory: 3G
restart: unless-stopped
# This container requires an external application to be run separately to be run separately.
# Redis:
immich-redis:
image: redis
ports:
- 6379:6379
container_name: immich-redis
restart: unless-stopped
# PostgreSQL 14:
immich-postgres:
image: postgres:14
ports:
- 5433:5432
container_name: immich-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: immich
restart: unless-stopped
volumes:
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/.config/immich/data:/var/lib/postgresql/data
---
version: "2.1"
services:
immich:
image: ghcr.io/imagegenius/immich:latest
container_name: immich
environment:
- PUID=1024
- PGID=100
- TZ=Etc/UTC
- DB_HOSTNAME=192.168.1.155
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_DATABASE_NAME=immich
- REDIS_HOSTNAME=192.168.1.155
- DISABLE_MACHINE_LEARNING=false #optional
- DISABLE_TYPESENSE=false #optional
- DB_PORT=5433 #optional
- REDIS_PORT=6379 #optional
- REDIS_PASSWORD= #optional
- CUDA_ACCELERATION=false #optional
volumes:
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/.config/immich/config:/config
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/Media/Raw:/existing-photos
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/Media/Raw/Immich:/photos
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/.config/immich/machine-learning:/config/machine-learning #optional
ports:
- 8085:8080
deploy:
resources:
limits:
memory: 3G
restart: unless-stopped
# This container requires an external application to be run separately to be run separately.
# Redis:
immich-redis:
image: redis
ports:
- 6379:6379
container_name: immich-redis
restart: unless-stopped
# PostgreSQL 14:
immich-postgres:
image: postgres:14
ports:
- 5433:5432
container_name: immich-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: immich
restart: unless-stopped
volumes:
- /srv/dev-disk-by-uuid-a57de696-00f9-4d1c-9875-095adccf71ba/Stuff/.config/immich/data:/var/lib/postgresql/data
All-In-One [Community] | Immich
This is a community contribution and not officially supported by the Immich team, but included here for convenience.
No description
17 Replies
PhilBro
PhilBro•2y ago
Post the issue to the All-in-One github, it is not managed by this team.
Park Ranger
Park RangerOP•2y ago
immich=# SELECT * FROM assets LIMIT 1;
-[ RECORD 1 ]----+------------------------------------------------------------------------------------------------
id | bafb28e9-8d21-4bbd-9361-7b5531a545a3
deviceAssetId | 38104
ownerId | 514c4723-55a3-4be1-b339-2bc3c1e749e7
deviceId | 087caf646f440d4592f551c918808720acf74637f2c998d1711efb148f0e5a73
type | IMAGE
originalPath | /photos/library/514c4723-55a3-4be1-b339-2bc3c1e749e7/2023/2023-07-07/PXL_20230707_230325520.jpg
resizePath | /photos/thumbs/514c4723-55a3-4be1-b339-2bc3c1e749e7/bafb28e9-8d21-4bbd-9361-7b5531a545a3.jpeg
fileCreatedAt | 2023-07-07 13:03:26+00
fileModifiedAt | 2023-07-07 23:03:33+00
isFavorite | f
duration | 0:00:00.000000
webpPath | /photos/thumbs/514c4723-55a3-4be1-b339-2bc3c1e749e7/bafb28e9-8d21-4bbd-9361-7b5531a545a3.webp
encodedVideoPath |
checksum | \x035a9859c2b2ca5f8370eab4c060cc6f01f03162
isVisible | t
livePhotoVideoId |
updatedAt | 2023-07-08 05:45:40.66352+00
createdAt | 2023-07-08 05:34:20.507245+00
isArchived | f
originalFileName | PXL_20230707_230325520
sidecarPath |
isReadOnly | f
thumbhash | \x96180a0d82de7a770898986c77a7a979bf240707b2
immich=# SELECT * FROM assets LIMIT 1;
-[ RECORD 1 ]----+------------------------------------------------------------------------------------------------
id | bafb28e9-8d21-4bbd-9361-7b5531a545a3
deviceAssetId | 38104
ownerId | 514c4723-55a3-4be1-b339-2bc3c1e749e7
deviceId | 087caf646f440d4592f551c918808720acf74637f2c998d1711efb148f0e5a73
type | IMAGE
originalPath | /photos/library/514c4723-55a3-4be1-b339-2bc3c1e749e7/2023/2023-07-07/PXL_20230707_230325520.jpg
resizePath | /photos/thumbs/514c4723-55a3-4be1-b339-2bc3c1e749e7/bafb28e9-8d21-4bbd-9361-7b5531a545a3.jpeg
fileCreatedAt | 2023-07-07 13:03:26+00
fileModifiedAt | 2023-07-07 23:03:33+00
isFavorite | f
duration | 0:00:00.000000
webpPath | /photos/thumbs/514c4723-55a3-4be1-b339-2bc3c1e749e7/bafb28e9-8d21-4bbd-9361-7b5531a545a3.webp
encodedVideoPath |
checksum | \x035a9859c2b2ca5f8370eab4c060cc6f01f03162
isVisible | t
livePhotoVideoId |
updatedAt | 2023-07-08 05:45:40.66352+00
createdAt | 2023-07-08 05:34:20.507245+00
isArchived | f
originalFileName | PXL_20230707_230325520
sidecarPath |
isReadOnly | f
thumbhash | \x96180a0d82de7a770898986c77a7a979bf240707b2
I don't have GH
PhilBro
PhilBro•2y ago
I guess it's a good time to sign up, help out the projects you enjoy using.
Alex Tran
Alex Tran•2y ago
@jin_yang I think you might have this same issue
jin_yang
jin_yang•2y ago
yeah, i get the exact same error, with that same exact app/immich/server/photos/thumbs path that i've never seen before. That's not my normal path, so not sure where that's come from. my immich instance is pretty much dead, i see a bunch of blurry images, and if you click anything, nothing happens, just a loading bar at the top that gets like 3/4 and then does nothing.
Alex Tran
Alex Tran•2y ago
@jrasm91 might have a fix for this I am not sure if this is related to the All-in-one image yet
jrasm91
jrasm91•2y ago
The resizePath in the database entry above is an absolute path start at /photos Is that the correct location of your thumbnails?
jin_yang
jin_yang•2y ago
i use that docker image called the monolithic docker setup for immich: https://github.com/imagegenius/docker-immich
Alex Tran
Alex Tran•2y ago
Pinging @martabal FYI
jin_yang
jin_yang•2y ago
i map to /photos in the docker-compose, and then the thumbs lives in this directory highlighted:
No description
jrasm91
jrasm91•2y ago
I see it uses:
IMMICH_MEDIA_LOCATION="/photos" \
IMMICH_MEDIA_LOCATION="/photos" \
And that's probably conflicting with
res.sendFile(filepath, { root: process.cwd() }, (error: Error) => {
res.sendFile(filepath, { root: process.cwd() }, (error: Error) => {
Verified I get the same error locally when using an absolute path in the database:
ENOENT: no such file or directory, stat 'upload/thumbs/179c2bac-8313-483c-b3a6-ee37a737d9c7/994418f8-4fb9-4d83-90fa-6f576e76e6c4.jpeg'
ENOENT: no such file or directory, stat 'upload/thumbs/179c2bac-8313-483c-b3a6-ee37a737d9c7/994418f8-4fb9-4d83-90fa-6f576e76e6c4.jpeg'
The change in https://github.com/immich-app/immich/pull/3265 fixed the issue for me.
jin_yang
jin_yang•2y ago
any idea when a release will happen with that fix?
Alex Tran
Alex Tran•2y ago
probably in a few hours when I got a chance 🙂 but the AIO image need to get released as well
jin_yang
jin_yang•2y ago
no worries, i will await the new release, whenever you get round to it.
martabal
martabal•2y ago
Sorry for the delay, indeed we use IMMICH_MEDIA_LOCATION 😄 The 1.67.2 image is currently being built, it will be released in a few tens of minutes https://ci.imagegenius.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-immich/detail/main/285/pipeline It's out ! you should be good
Park Ranger
Park RangerOP•2y ago
Thanks, we're up and running again
No description

Did you find this page helpful?