I
Immich•2mo ago
teh g

Migrate from imagegenius to docker compose on Unraid

Hello! I am looking to move from the imagegenius app on Unraid to the docker compose method. Since imagegenius has the IMMICH_MEDIA_LOCATION set, I wanted to confirm what environment variables I should set. I noticed my folder structure from the imagegenius app ended up like:
/photos/backups
/photos/encoded-video
/photos/library
/photos/profile
/photos/thumbs
/photos/uploads
/library
/photos/backups
/photos/encoded-video
/photos/library
/photos/profile
/photos/thumbs
/photos/uploads
/library
To help with using my cache instead of the array for things, I have the mapping like this:
/mnt/user/immich/photos/backups/:/photos/backups
/mnt/user/immich-cache/encoded-video/:/photos/encoded-video
/mnt/user/immich/photos/library/:/photos/library
/mnt/user/immich-cache/profile/:/photos/profile
/mnt/user/immich-cache/thumbs/:/photos/thumbs
/mnt/user/immich/photos/upload/:/photos/upload
/mnt/user/immich/libraries/:/libraries
/mnt/user/immich/photos/backups/:/photos/backups
/mnt/user/immich-cache/encoded-video/:/photos/encoded-video
/mnt/user/immich/photos/library/:/photos/library
/mnt/user/immich-cache/profile/:/photos/profile
/mnt/user/immich-cache/thumbs/:/photos/thumbs
/mnt/user/immich/photos/upload/:/photos/upload
/mnt/user/immich/libraries/:/libraries

New files are being uploaded into /photos/uploads. Would I want to specify the UPLOAD_LOCATION to the root of my unraid folder like /mnt/user/immich/photos/ and the IMMICH_MEDIA_LOCATION to /photos still? I mainly am not sure if Immich is trying to use the UPLOAD_LOCATION environment variable elsewhere (as in the literal upload location that should map to /photos/upload in my case). Two random notes /photos/library is empty. Not sure what it is for but I have I mapped anyway since the folder existed. I think /libraries is mounted in case I wanted external libraries, which I am not using.
6 Replies
Immich
Immich•2mo ago
:wave: Hey @teh g, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. 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 ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: 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) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) 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:
F4mouZSt4r
F4mouZSt4r•2mo ago
Imagegenius seems to set a specific location for each folder which is totally fine. https://immich.app/docs/guides/custom-locations You should be able to add the folders to the .env as you want it to be, like: UPLOAD_LOCATION = /mnt/xxx/immich/library ENCODED_VIDEO = /mnt/xxx/immich/encoded-video and so on the UPLOAD_LOCATION is used to the first uploads, when you dont use a filename template, all files will be stored inside the UPLOAD_LOCATION, otherwise in /mnt/xxx/immich/library/library/<user_name>/
teh g
teh gOP•2mo ago
Cool, that is what I thought as well. Glad I am not toooo crazy What is weird is that the folder in immich /photo/upload has a folder for each user (the uuid it looks like). So is that the current UPLOAD_LOCATION? Or is library the temporary holding ground until immich processes it, then it moves it to the upload folder? Assuming I want to keep using `/photo/upload', I think the answer is that I'd define all the environment variables like this:
IMMICH_MEDIA_LOCATION=/photos

UPLOAD_LOCATION=/mnt/user/immich/photos/upload
THUMB_LOCATION=/mnt/user/immich/photos/thumbs
ENCODED_VIDEO_LOCATION=/mnt/user/immich/photos/encoded-video
PROFILE_LOCATION=/mnt/user/immich/photos/profile
BACKUP_LOCATION=/mnt/user/immich/photos/backups
IMMICH_MEDIA_LOCATION=/photos

UPLOAD_LOCATION=/mnt/user/immich/photos/upload
THUMB_LOCATION=/mnt/user/immich/photos/thumbs
ENCODED_VIDEO_LOCATION=/mnt/user/immich/photos/encoded-video
PROFILE_LOCATION=/mnt/user/immich/photos/profile
BACKUP_LOCATION=/mnt/user/immich/photos/backups
Then I'd set the volumes matching what I have in the OP
F4mouZSt4r
F4mouZSt4r•2mo ago
Yea the /photo/upload is just a "temporary" folder, when you are NOT using the filename template, otherwise all files are stored there.
teh g
teh gOP•2mo ago
Thanks so much for the info! I don't want to break my setup 😄 I am not using the filename template, so that makes sense. I am going to get the env setup and cross my fingers!
Immich
Immich•2mo ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?