ImmichI
Immich5mo ago
kroovy

Migration from /usr/src/app to /data broke something

I've been running immich on Unraid using docker-compose for a while now with no issues. I recently discovered custom locations and wanted to try it out to store some files on my cache drive. The instructions for custom locations was using /data paths but I was using /usr/src/app. I got the custom location working but now I wanted to try migrating to start using /data. This is on 1.138.1

This led me to a github thread where it was suggested to use immich-admin change-media-location to change your paths. So I did this, updated my compose file to use /data, and now immich wont boot. I get these errors:

[Nest] 7  - 08/20/2025, 6:30:43 PM     LOG [Microservices:StorageService] Successfully verified system mount folder checks
[Nest] 7  - 08/20/2025, 6:30:43 PM     LOG [Microservices:StorageService] Media location changed (from=/usr/src/app/upload, to=/data)
Error: Detected an inconsistent media location. For more information, see https://immich.app/errors#inconsistent-media-location
    at /usr/src/app/server/dist/services/storage.service.js:96:31
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async /usr/src/app/server/dist/repositories/database.repository.js:379:27
    at async /usr/src/app/server/node_modules/kysely/dist/cjs/kysely.js:535:20
    at async DefaultConnectionProvider.provideConnection (/usr/src/app/server/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)
    at async


I reverted my compose file to /usr/src/app, and immich boots, but it wont load images. I can see when I look at info on a picture my files are expected in /data/library

Any suggestions on how to fix it to stick with /data? My next step would be to revert back to /usr/src/app on change-media-location but I wanted to see how I can move forward instead.
Was this page helpful?