how to change where my photos are being stored?
I would like to change the default photo storage location of Immich. I am running immich in HAos and there is a setting in the Configuration section for: library_location which I have set to: /192.168.1.80/HD8TB/immich
I have tried all combinations for data_location, library_location and localdisks, but all fail to work.
These are the errors I get and the local disk mounting successfully:
[08:07:16] WARNING: Library folder in /share/immich/library already exists, is a real folder, and is not empty. Moving to /share/immich/library_old
[Nest] 1314 - 04/28/2025, 8:08:06 AM ERROR [Api:StorageService] Failed to read /share/immich/library/.immich: Error: ENOENT: no such file or directory, open '/share/immich/library/.immich'
[Nest] 1641 - 04/28/2025, 9:11:18 AM ERROR [Api:StorageService] Failed to read /192.168.1.80/HD8TB/immich/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/192.168.1.80/HD8TB/immich/encoded-video/.immich'
[Nest] 1641 - 04/28/2025, 9:11:18 AM LOG [Api:StorageService] Verifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}}
api worker exited with code 1
Starting api worker
[09:09:29] INFO: Available Disks for mounting :
NAME LABEL SIZE FSTYPE RO
├─sda2 24M squashfs 0
├─sda3 256M erofs 0
├─sda4 24M squashfs 0
├─sda5 256M erofs 0
└─sdb1 HD8TB 7.3T ext4 0
└─sdc1 HD3TB 2.7T ext4 0
---------------------------------------------------
Supported fs : ext3 ext2 ext4 squashfs vfat msdos iso9660 erofs ntfs3 exfat btrfs
Inspired from : github.com/dianlight
---------------------------------------------------
Local Disks mounting...
... HD8TB is a device by label
[09:09:29] INFO: Mounting HD8TB of type ext4
[09:09:29] INFO: Success! HD8TB mounted to /mnt/HD8TB
7 Replies
:wave: Hey @Akore,
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. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: 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.You need to move the files over to the new location
Thank you, I take it you mean the entire immich folder directory? I tried that and still get the same errors. I think maybe the Path that is used is incorrect since it is now a local drive? Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /addon_configs/db21ed7f_immich/immich.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
/etc/cont-init.d/01-migrate.sh: executing
/etc/cont-init.d/20-folders.sh: executing
[10:37:02] INFO: Setting data location
... check /HD8TB/immich folder exists
... setting permissions
... correcting official script
[10:37:02] INFO: Setting library location to /HD8TB/immich. This will not move any of your files, you'll need to do this manually
/etc/cont-init.d/99-run.sh: executing
[10:37:02] INFO: Exporting addon options from /data/options.json
I copied everything from the /share/immich folder over to the /HD8TB/immich folder and I have the following set for data_location: /HD8TB/immich, library_location: /HD8TB/immich, and localdisks: /192.168.1.80/HD8TB error I still get is: [Nest] 2676 - 04/28/2025, 10:53:43 AM ERROR [Api:StorageService] Failed to read /HD8TB/immich/encoded-video/.immich: Error: ENOENT: no such file or directory, open '/HD8TB/immich/encoded-video/.immich'
You should probably reach out to whoever made this script
None of this init or entry stuff is from immich. It looks like it’s renaming folders on startup
It is all original scripts from the HAos Add-on immich and the manditory Postgres 15 that is needed to support it. Only thing I have changed is the Configuration settings in the HAos Add-on to try and move the default location off the internal SSD.
Right so you should reach out to the HAOS addon creators. We do not maintain that
Will do. Thank you.