I
Immich•7mo ago
Elias

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.
No description
107 Replies
Immich
Immich•7mo ago
: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:
Elias
EliasOP•7mo ago
No description
Elias
EliasOP•7mo ago
No description
Elias
EliasOP•7mo ago
here comes the docker status:
Elias
EliasOP•7mo ago
No description
Mraedis
Mraedis•7mo ago
I'm going to need to see your docker-compose.yml and .env file Password not necessary
Elias
EliasOP•7mo ago
No description
Daniel
Daniel•7mo ago
Btw can you not use screenshots?
Mraedis
Mraedis•7mo ago
Uh, the contents 😛
Elias
EliasOP•7mo ago
No description
No description
No description
Elias
EliasOP•7mo ago
Yes I know just thought I might have it in the wrong folder or something
bo0tzz
bo0tzz•7mo ago
Is your ssd actually getting mounted on boot?
Elias
EliasOP•7mo ago
I have Immich on my server pc and did not install Discord yet How can I check this ?
Daniel
Daniel•7mo ago
Ever heard of ssh? 👀
Elias
EliasOP•7mo ago
uhmmm no whats that pls
Daniel
Daniel•7mo ago
:monakS: Okay nvm
Elias
EliasOP•7mo ago
😭 help I mean I think that is something from cloudflare right? I am using Cloudflare
Daniel
Daniel•7mo ago
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?
Mraedis
Mraedis•7mo ago
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
Elias
EliasOP•7mo ago
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
Daniel
Daniel•7mo ago
That first part of the sentence does not make any sense lol
Mraedis
Mraedis•7mo ago
he just has a cron job running as sudo probably rsync
Elias
EliasOP•7mo ago
Wait a second
CrushedAsian255
CrushedAsian255•7mo ago
Make sure rsync is going the right way
Daniel
Daniel•7mo ago
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
CrushedAsian255
CrushedAsian255•7mo ago
^^^ This
Elias
EliasOP•7mo ago
No description
CrushedAsian255
CrushedAsian255•7mo ago
Someone needs to make a fork of raid is not a backup but rsync is not a backup
Elias
EliasOP•7mo ago
Is that not enough in terms of Backup?
Mraedis
Mraedis•7mo ago
Your rsync is running with --delete
CrushedAsian255
CrushedAsian255•7mo ago
It’s 100% better than nothing But full incremental backups are way better
Mraedis
Mraedis•7mo ago
If you accidentally remove anything in your library folder it will totally wipe your backup
CrushedAsian255
CrushedAsian255•7mo ago
I would suggest researching restic (Better than borg IMHO)
Elias
EliasOP•7mo ago
Uhmmm okay i will do that If I get that to running Ill be safe?
Mraedis
Mraedis•7mo ago
way safer for sure Mostly this btw
Elias
EliasOP•7mo ago
The compose up and down command does not work
Mraedis
Mraedis•7mo ago
Did you do it in the right folder?
Elias
EliasOP•7mo ago
okay good
Mraedis
Mraedis•7mo ago
Also "doesn't work" is a bit broad the command fails? The desired outcome is not achieved?
bo0tzz
bo0tzz•7mo ago
I've been really wanting to do this lol
Elias
EliasOP•7mo ago
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?
Mraedis
Mraedis•7mo ago
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
Elias
EliasOP•7mo ago
Always used sudo docker on this install Ok I see
Mraedis
Mraedis•7mo ago
Could you try sudo docker compose logs immich_postgres The database is not connecting and this would probably show why
Elias
EliasOP•7mo ago
Yes, command does not work
Elias
EliasOP•7mo ago
No description
Daniel
Daniel•7mo ago
sudo docker compose logs database
Mraedis
Mraedis•7mo ago
^ Sorry
Daniel
Daniel•7mo ago
The container names get me every time...
Elias
EliasOP•7mo ago
No description
CrushedAsian255
CrushedAsian255•7mo ago
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
Mraedis
Mraedis•7mo ago
Uhhh
CrushedAsian255
CrushedAsian255•7mo ago
Postgres says it’s finding a database
Elias
EliasOP•7mo ago
after Admin made
No description
Mraedis
Mraedis•7mo ago
Yeah and it's also telling you to check the db/log/postgresql-xyz logfile
bo0tzz
bo0tzz•7mo ago
What's the output of mount and cat /etc/fstab?
Elias
EliasOP•7mo ago
I dont get it what should I provide and do
bo0tzz
bo0tzz•7mo ago
Post the output of those commands
CrushedAsian255
CrushedAsian255•7mo ago
Run the commands and send the output
Elias
EliasOP•7mo ago
No description
Elias
EliasOP•7mo ago
No description
Elias
EliasOP•7mo ago
No description
CrushedAsian255
CrushedAsian255•7mo ago
Are screenshots not supported on your distribution?
Elias
EliasOP•7mo ago
Ill get discord now wait a second
CrushedAsian255
CrushedAsian255•7mo ago
You could just use the web app
Alv
Alv•7mo ago
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?
bo0tzz
bo0tzz•7mo ago
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
Alv
Alv•7mo ago
Ok!
Elias
EliasOP•7mo ago
what should i do about it? now on pc hi guys
bo0tzz
bo0tzz•7mo ago
Configure the system to mount the disk properly But that's just basic linux administration, so you'll be better off searching for guides
Elias
EliasOP•7mo ago
OK ill do that and write again than thx Is the issue maybe comming from the drives being formatted in ntfs?
bo0tzz
bo0tzz•7mo ago
Maybe? Postgres doesn't work on ntfs But then it should refuse to run at all
Elias
EliasOP•7mo ago
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?
Mraedis
Mraedis•7mo ago
Linux is the best. It's windows where the issue is 👀
CrushedAsian255
CrushedAsian255•7mo ago
it only backups changes
Mraedis
Mraedis•7mo ago
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
Elias
EliasOP•7mo ago
yes but it is a pain in the ass that it does not auto mount i dont get it
Mraedis
Mraedis•7mo ago
Because you didn't set it to automount 😛
Elias
EliasOP•7mo ago
Ahh okay yea could be xd Ill get into that now, looks kinda complicated tho
Mraedis
Mraedis•7mo ago
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
Elias
EliasOP•7mo ago
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?
Mraedis
Mraedis•7mo ago
yes
Elias
EliasOP•7mo ago
Okay thanks !
Mraedis
Mraedis•7mo ago
I guess you could also do restic for your db dump 🤔
Elias
EliasOP•7mo ago
O okay ill look into that
Zeus
Zeus•7mo ago
You definitely should, I mean wherever you’re storing your Restic backup should contain all the data It’s a different system right? 😄
Elias
EliasOP•7mo ago
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
CrushedAsian255
CrushedAsian255•7mo ago
I remote remote service backup cloud Backblaze s3 b2 store Restic
bo0tzz
bo0tzz•7mo ago
This is not a reliable backup layout
CrushedAsian255
CrushedAsian255•7mo ago
Backups should be automatic So human factor not issue potentially
Zeus
Zeus•7mo ago
This is the way Restic via S3 endpoint to Backblaze
Elias
EliasOP•7mo ago
Wait what - I dont quite get it So I have to cloud safe
CrushedAsian255
CrushedAsian255•7mo ago
Do not use Backblaze b2 native s3 is more Stable in my test Restic has encrypt backup cloud safety and privacy end to end
Elias
EliasOP•7mo ago
So I have to Have cloud backups?
Mraedis
Mraedis•7mo ago
No They're just recommending things now
CrushedAsian255
CrushedAsian255•7mo ago
It’s good have backup cloud but it’s not 100%
Elias
EliasOP•7mo ago
is 2 SSDS daily backuping and one backup on HDD not safe?
CrushedAsian255
CrushedAsian255•7mo ago
Depend how important decide your data
Elias
EliasOP•7mo ago
Yea currently only safed once on my smartphone so....
CrushedAsian255
CrushedAsian255•7mo ago
It much better than nothing however failure of the hardware may cause drive issue corruption Yes this way improve over one copy on phone
Elias
EliasOP•7mo ago
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 🙂
CrushedAsian255
CrushedAsian255•7mo ago
Cya have fun 😊 Also sorry bad English I am very tired right now
Zeus
Zeus•7mo ago
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
CrushedAsian255
CrushedAsian255•7mo ago
Maybe a backup faq and guide
Elias
EliasOP•6mo ago
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...
Mraedis
Mraedis•6mo ago
dumpall and UPLOAD_LOCATION are all you need yes
bo0tzz
bo0tzz•6mo ago
Did 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.

Did you find this page helpful?