You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the many edits, I can't get code-blocks to parse properly...
Docker is running on my NAS and I have 2 storage pools;
RAID6 - generic storage
2TB SSD - high speed docker, vm, etc.
I have immich running on pool 2, as a result all mobile immich uploads end up in ./library/uploads. However, I want to move these uploads to my other storage pool. I've searched the internet and this forum, and I found workarounds, but no real solution imho. I tried different setting in both docker_compose and the .env file, but I cannot for the life of me get this to work. Sorry, I'm pretty new to this .env impact. In my compose file I have:
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/data
< more data here >
As the comment states, I cannot change that particular line, so I edited the .env file:
# The location where your uploaded files are stored
UPLOAD_LOCATION=/volume1/media/uploads
This errors out as follows:
immich_server | /usr/src/app/server/dist/services/storage.service.js:130
immich_server | throw new misc_1.ImmichStartupError(`Failed to read: "${externalPath} (${internalPath}) - ${docsMessage}"`);
immich_server | ^
immich_server |
immich_server | ImmichStartupError: Failed to read: "<UPLOAD_LOCATION>/encoded-video/.immich (/data/encoded-video/.immich) - Please see https://docs.immich.app/administration/system-integrity#folder-checks for more information."
immich_server | at StorageService.verifyReadAccess (/usr/src/app/server/dist/services/storage.service.js:130:19)
immich_server | at async /usr/src/app/server/dist/services/storage.service.js:57:21
immich_server | at async /usr/src/app/server/dist/repositories/database.repository.js:392:27
immich_server | at async /usr/src/app/server/node_modules/.pnpm/kysely@0.28.11/node_modules/kysely/dist/cjs/kysely.js:541:20
immich_server | at async DefaultConnectionProvider.provideConnection (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.11/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)
immich_server | at async /usr/src/app/server/dist/repositories/database.repository.js:389:13
immich_server |
immich_server | Node.js v24.14.1
immich_server | api worker exited with code 1```
I also tried to mount an additional path in the compose as follows:
- /volume1/Media:/MyUploads
/volume1/Media is obviously accessible by my NAS.
And then use the .env-file to set the UPLOAD_LOCATION variable to:
./MyUploads
Redeploy this bunch, leads to the same error.
I then tried to create the mentioned folder 'encoded-video' in the NAS mounted location, but this doesn't change a thing to the error.
Changing the UPLOAD_LOCATION to the local folder, ./library instantly fixes the error, but then again, I'm back at square one; uploaded files are placed on my wrong storage pool.
Really looking to understand why docker volumes aren't working as expected, and obviously some help to get this to work?
Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Sorry for the many edits, I can't get code-blocks to parse properly...
Docker is running on my NAS and I have 2 storage pools;
I have immich running on pool 2, as a result all mobile immich uploads end up in ./library/uploads. However, I want to move these uploads to my other storage pool. I've searched the internet and this forum, and I found workarounds, but no real solution imho. I tried different setting in both docker_compose and the .env file, but I cannot for the life of me get this to work. Sorry, I'm pretty new to this .env impact. In my compose file I have:
As the comment states, I cannot change that particular line, so I edited the .env file:
This errors out as follows:
Beta Was this translation helpful? Give feedback.
All reactions