setup gets reset when restarting pc
When I restart my PC, my whole setup gets reset. I am using docker compose on Ubuntu with nginx and I followed the Installation guide.

107 Replies
:wave: Hey @Elias,
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. :blue_square: 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:

here comes the docker status:

I'm going to need to see your docker-compose.yml and .env file
Password not necessary

Btw can you not use screenshots?
Uh, the contents 😛



Yes I know just thought I might have it in the wrong folder or something
Is your ssd actually getting mounted on boot?
I have Immich on my server pc and did not install Discord yet
How can I check this ?
Ever heard of ssh? 👀
uhmmm no whats that pls
:monakS:
Okay nvm
😠help
I mean I think that is something from cloudflare right? I am using Cloudflare
Not at all, and it's not relevant. 😅
Just to make sure: do you have backups and are you sure you want to use immich to get into self hosting?
If your SSD not being mounted at boot ist he issue, it'll probably be fixed with
sudo docker compose down && sudo docker compose up -d
Yes I am backuping via sudo crontab, both Library as well as dumpall db on my second ssd daily as well as every once a while on my HDD manually
Okay Ill try
That first part of the sentence does not make any sense lol
he just has a cron job running as sudo
probably rsync
Wait a second
Make sure rsync is going the right way
Also, incremental backups, proper backup tools, blah blah blah. Just be aware that you're dealing with (probably) your most precious memories
Yeah I got that. But you cannot "back up" with that
^^^
This

Someone needs to make a fork of raid is not a backup but rsync is not a backup
Is that not enough in terms of Backup?
Your rsync is running with --delete
It’s 100% better than nothing
But full incremental backups are way better
If you accidentally remove anything in your library folder it will totally wipe your backup
I would suggest researching restic
(Better than borg IMHO)
Uhmmm okay i will do that
If I get that to running Ill be safe?
way safer for sure
Mostly this btw
The compose up and down command does not work
Did you do it in the right folder?
okay good
Also "doesn't work" is a bit broad
the command fails? The desired outcome is not achieved?
I've been really wanting to do this lol
It restarts the Container just fine but then it still does not get me into the right screen in the Web ui
The command works yes
Maybe my Nginx is not working properly?
You didn't, at any point, mix between sudo docker and regular user docker, did you?
No, that wouldn't land you at the 'make an admin account' screen
Always used sudo docker on this install
Ok I see
Could you try
sudo docker compose logs immich_postgres
The database is not connecting and this would probably show whyYes, command does not work

sudo docker compose logs database
^
Sorry
The container names get me every time...

It’s seeming to find the db, is it failing to write to it?
Try making the admin account and then try checking logs again
Uhhh
Postgres says it’s finding a database
after Admin made

Yeah and it's also telling you to check the db/log/postgresql-xyz logfile
What's the output of
mount
and cat /etc/fstab
?I dont get it what should I provide and do
Post the output of those commands
Run the commands and send the output



Are screenshots not supported on your distribution?
Ill get discord now wait a second
You could just use the web app
Hi guys, I have the same issue. I think is for the dB location, that is pointing to .postgres. can I point it to a shared location?
You don't have your ssd in /etc/fstab, so it's not getting mounted when the system starts up, so then the files don't exist where Immich is looking for them
@Alv you probably don't have the same cause, please open a new thread
Ok!
what should i do about it?
now on pc hi guys
Configure the system to mount the disk properly
But that's just basic linux administration, so you'll be better off searching for guides
OK ill do that and write again than
thx
Is the issue maybe comming from the drives being formatted in ntfs?
Maybe? Postgres doesn't work on ntfs
But then it should refuse to run at all
So would it not be better to just reinstall everything once again... and now 1. use the standard format 2. mount on startup
Okay. I formatted to ext instead of ntfs, and got them to auto mount via youtube. Problem solved! thank you guys so much. 🙂 I hate linux
But I dont get that. Will the program as written on the website, do entire backup shots and stack them up? wont my second SSD be full after 2 days then because of multiple backup snapshots?
Linux is the best.
It's windows where the issue is 👀
it only backups changes
incremental backups usuallywork by storing the difference and providing a way to filter the difference by date, so you can always get any date's backup back
yes but it is a pain in the ass that it does not auto mount i dont get it
Because you didn't set it to automount 😛
Ahh okay
yea could be xd
Ill get into that now, looks kinda complicated tho
example: I currently have 1.5TB of backup space used, for -1.2TB of actual files, with 11 "full" backups in there
You'll note 1.5TB < 11x1.2TB
yes i know looks still kinda bloated tho, bc I have 2 1tb disks
and by the time the main one is full the second one was full already months ago
main ssd 900gb full -> second 1,3tb
but ill do restic for library and db dumps for db right?
yes
Okay thanks !
I guess you could also do restic for your db dump 🤔
O
okay ill look into that
You definitely should, I mean wherever you’re storing your Restic backup should contain all the data
It’s a different system right? 😄
No. once a day on the main system and ill do it manually every half year on a HDD which will lay in another house most of the time
2SSDs in main system and 1hdd externally
I remote remote service backup cloud Backblaze s3 b2 store
Restic
This is not a reliable backup layout
Backups should be automatic
So human factor not issue potentially
This is the way
Restic via S3 endpoint to Backblaze
Wait what - I dont quite get it
So I have to cloud safe
Do not use Backblaze b2 native s3 is more Stable in my test
Restic has encrypt backup cloud safety and privacy end to end
So I have to Have cloud backups?
No
They're just recommending things now
It’s good have backup cloud but it’s not 100%
is 2 SSDS daily backuping and one backup on HDD not safe?
Depend how important decide your data
Yea currently only safed once on my smartphone so....
It much better than nothing however failure of the hardware may cause drive issue corruption
Yes this way improve over one copy on phone
I have an appointment now where I have to go but I am reading your replys later on, thank you for your advice. Id be completely frustrated and helpless without you. TYSM 🙂
Cya have fun 😊
Also sorry bad English I am very tired right now
That’s pretty decent but it’s good to have an automatic process as well as one backup offsite. Cloud or at a friend/family
But a basic backup like you said above is good
Maybe a backup faq and guide
Hello guys. I am looking into restic rn. But it is really complicated, especially because I dont know which files exactly I should backup, as there is no real tutorial for noobs. Therefore, what do I have to keep in mind if I am just using the dumpall and rsync commands via crontab? Is it fine to just keep them, and ask an expert when it comes to restoring them?
When my first disk crashes, I can still copy the Database and the library safes from the second to a third disk, so I dont screw anything up on my normal safe i guess...
dumpall and
UPLOAD_LOCATION
are all you need yesDid you read https://immich.app/docs/administration/backup-and-restore ? It tells you what to back up
If you can't figure out Restic then there's plenty of other good backup tools, just have a look around for something that works for you
Is it fine to just keep them, and ask an expert when it comes to restoring them?This sounds to me like you want to put it on someone else to figure out the problems, which doesn't really seem fair to me I think you will be able to figure out a proper backup tool with a bit of effort. But if you really can't, maybe you should consider whether it's a good idea for you to host Immich, or whether you should start with something less important.