Can anybody help with Immich setup on ubuntu (docker-cmopose)?
I've got an issue with adding the storage.
I have ubuntu with 2 mounted disks. 1 for 10gb for system and one for 700 for photos.
Both mounted. When I add path for big one in env file Immich anyway shows me 10gb storage 😦
Tried everything, any help?
20 Replies
:wave: Hey @Port2all,
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.can you share your compose file and env ?
also a could be useful
Fwiw 10g for system is pretty cramped, that's likely to fill up quickly and cause problems
I've played with env too long so edited compose file to be:
df -h is here:


Errors I have from logs (now it's not even starts)
immich_server | [Nest] 7 - 05/02/2025, 9:43:58 PM ERROR [Microservices:StorageService] Failed to read upload/upload/.immich: Error: ENOENT: no such file or directory, open 'upload/upload/.immich'
chmod for folder

if anyone can help and it will be faster to share my screen and show\try anything you think can help - I'm ready to join any channel where it's possible
Restored original compose and env files. Got this one:
[Nest] 7 - 05/02/2025, 9:50:37 PM ERROR [Microservices:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich'
immich_server | microservices worker error: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information.", stack: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information."
you are supposed to define UPLOAD_LOCATION
I've got working app with this .env:

but it is relative path and my server shows

(which means it use ubuntu's disk)
it won't start if I'll put the same without . (absolute path)
Yes because you've already started it up once, and now it expects the files to be in place
Do you want to also have the database on the disk @Port2all ?
not rally care about db. Planning to size up ubuntu's disk anyway to 20 or 30gb
but want to have separate mounted one for media
Either:
1. delete the files in the ./postgres directory to start fresh, and use your correct mount
2. move the files from the relative directory to the right directory
immich has succesfully started up now so it expects the
.immich
files in your UPLOAD_LOCATION. This won't change unless you wipe the databasewill it work with absolute path like this?

Of course
you're the best, @Mraedis
As I'm starting from scratch, any another things you can recommend?
(maybe DB folder is better to be moved along with files aswell? But I was thinking to have separate backups for DB, but not for files)

The DB should not grow too big, mine is now 1.5GiB for 700GiB/200k files
the database backups are dumped into UPLOAD_LOCATION/backups so no worries about space issues there
Huge thanks.
One more small question, is there a recommended way to import stuff from google photo?
https://www.youtube.com/watch?v=rf25QQaFj0M saw this one, is it fine?
ChuckBuilds
YouTube
Migrate Existing Google Photos to Immich using ImmichGo and Google ...
I've recently installed Immich as a self-hosted alternative to Google Photos. It's been pretty great so far but I found myself still opening Google Photos to find my old photos. As a result, I searched and found several scripts to move my Google Photo's to Immich but the specific one ImmichGo hit the right balance of ease, features, and performa...
immich-go is very good, yes