I
Immichβ€’6mo ago
Xiaosong Wen

how to move immich to different folder?

I am using windows 11. Recently I added a new hard drive to my PC and am planning to move both db and upload folder to new disk. After some research here is what I have done: 1. docker-compose down the original app. 2. copied two folder to new drive: 3. updated the .env file with
UPLOAD_LOCATION=D:\Apps\immich-app\upload
DB_DATA_LOCATION=D:\Apps\immich-app\db
UPLOAD_LOCATION=D:\Apps\immich-app\upload
DB_DATA_LOCATION=D:\Apps\immich-app\db
4. run docker-compose up -d However, it seems it started a new empty immich, but not overwriting the new upload and db folder under D. I am wondering which step I am missing? any help appreciated πŸ™‚
9 Replies
Immich
Immichβ€’6mo ago
:wave: Hey @Xiaosong Wen, 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:
jgarcia
jgarciaβ€’6mo ago
I just tried and it worked, but you need to run docker compose up --remove-orphans -d
Xiaosong Wen
Xiaosong WenOPβ€’6mo ago
I think the problem is
immich_postgres | initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
immich_postgres | fixing permissions on existing directory /var/lib/postgresql/data ...
immich_postgres | initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
immich_postgres | fixing permissions on existing directory /var/lib/postgresql/data ...
looks like and it dont have correct permission to folder in D drive.
Zeus
Zeusβ€’6mo ago
You cannot use NTFS for Postgres
Xiaosong Wen
Xiaosong WenOPβ€’6mo ago
wow never thought about that, In this case, I will try to host the db in C Actually even I mount the db folder in C drive, it is having a similar issue in immich-server
[Nest] 7 - 11/28/2024, 11:51:26 PM ERROR [Microservices:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich'
[Nest] 7 - 11/28/2024, 11:51:26 PM ERROR [Microservices:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich'
I think the problem still is dont have permissing to create file in D drive Not sure how to set the permission
Zeus
Zeusβ€’6mo ago
1) the C drive is still NTFS 2) this error is different, you have changed your UPLOAD_LOCATION and now you are missing files from that first location
Xiaosong Wen
Xiaosong WenOPβ€’6mo ago
1. I can start the immich app in C drive
UPLOAD_LOCATION=C:\Apps\immich-app\upload
DB_DATA_LOCATION=C:\Apps\immich-app\db
UPLOAD_LOCATION=C:\Apps\immich-app\upload
DB_DATA_LOCATION=C:\Apps\immich-app\db
. So I think NTFS should not be an issue. I think main problem is with
UPLOAD_LOCATION=D:\Apps\immich-app\upload
DB_DATA_LOCATION=D:\Apps\immich-app\db
UPLOAD_LOCATION=D:\Apps\immich-app\upload
DB_DATA_LOCATION=D:\Apps\immich-app\db
immich app dont have certain permission to create / edit file. under the mounted folder. But I dont know how to fix this
Zeus
Zeusβ€’6mo ago
Got it, well that would be something you need to fix on the windows / docker side As immich can’t control that
Xiaosong Wen
Xiaosong WenOPβ€’6mo ago
Thanks anyway

Did you find this page helpful?