Skip to content
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

IMMICH- photos not loading after changing file location #1663

Open
samiibnjamil opened this issue Dec 10, 2024 · 3 comments
Open

IMMICH- photos not loading after changing file location #1663

samiibnjamil opened this issue Dec 10, 2024 · 3 comments
Labels
prevent stale Prevents stale being applied

Comments

@samiibnjamil
Copy link

HI i love your Immich addon. thank you for your contribution, but Recently I changed me backup location from /media/Backup/immich to /media/4TB_BACKUP/immich now I cant access my photos anymore. when i CLick on it it still tries to load from /media/Backup/immich . I did change the data_location in config but still same. The Server shows online .

here is the of the log :
`[Nest] 1116 - 12/10/2024, 2:22:42 PM ERROR [Api:GlobalExceptionFilternpw5xgvd] Unknown error: Error: ENOENT: no such file or directory, access '/media/Backup/immich/thumbs/fdb4b3f4-e974-4ca4-b9e7-23b9ec384998/9a/86/9a867d8c-78ad-417a-aa66-8531507f047f-thumbnail.webp'
Error: ENOENT: no such file or directory, access '/media/Backup/immich/thumbs/fdb4b3f4-e974-4ca4-b9e7-23b9ec384998/9a/86/9a867d8c-78ad-417a-aa66-8531507f047f-thumbnail.webp'
at async access (node:internal/fs/promises:606:10)
at async sendFile (/app/immich/server/dist/utils/file.js:54:9)
at async AssetMediaController.viewAsset (/app/immich/server/dist/controllers/asset-media.controller.js:58:9)
[Nest] 1116 - 12/10/2024, 2:22:42 PM ERROR [Api:LoggerRepository
cq0as57i] Unable to send file: Error

@samiibnjamil samiibnjamil added the prevent stale Prevents stale being applied label Dec 10, 2024
@alexbelgium
Copy link
Owner

Mmh that's normal alas if you change the files location then the database can't find them anymore. You should check in the immich documentation how to do that I'm sorry that I can't help from the add-on point of view

@samiibnjamil
Copy link
Author

samiibnjamil commented Dec 10, 2024

Hey, thanks for your reply. I did check the documenttation , over there it said :
These are the steps I'm planning on taking:

stop the entire stack
mount the new drive
copy over the entire folder specified in UPLOAD_LOCATION
change the UPLOAD_LOCATION env variable to the new directory
start the immich stack again with docker-compose up -d --force-recreate
check whether all the images are still available via the web interface
delete the original folder

but how do i do these since this is a addon? how do i docker-compose?
any suggestion>?

@samiibnjamil samiibnjamil changed the title IMMICH IMMICH- photos not loading after changing file location Dec 10, 2024
@alexbelgium
Copy link
Owner

Mmh the best is probably to use portainer to get console access within the add-on and execute the immich commands from within the add-on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prevent stale Prevents stale being applied
Projects
None yet
Development

No branches or pull requests

2 participants