I
Immichβ€’3mo ago
NunoM

Problem to do Restore with Docker

Hello everyone, I'm trying to do a restore but I can't do it on my own. I'm not a Docker expert. I had some problems with immich_postgres, and I couldn't solve it, I looked for some alternatives, and when I saw on the Immich website talking about Backup. I checked to see if it had a folder with the name backup, yes I do, and with the last backup on February 8th . I have my photos and videos on my HDD and the backup is there as well. But I've tried everything it says on the immich site (Backup and Restore) still the same. i can't do it, give me error or the server immich_postgres can't start. Can anyone help me do a proper restore?
18 Replies
Immich
Immichβ€’3mo ago
:wave: Hey @NunoM, 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.
NunoM
NunoMOPβ€’3mo ago
I have this problem also : bash: syntax error near unexpected token `newline'
bo0tzz
bo0tzzβ€’3mo ago
Like the bot requested, you'll need to post more detail for us to be able to help you
NunoM
NunoMOPβ€’3mo ago
I'm doing this
No description
NunoM
NunoMOPβ€’3mo ago
No description
Zeus
Zeusβ€’3mo ago
You have to fill in your db username etc It’s not just copy paste
Mraedis
Mraedisβ€’3mo ago
I think on windows, depending on which terminal you use, the \ multiline doesn't actually work and you'll need to put it all on one line
NunoM
NunoMOPβ€’3mo ago
Still the same. i appreciate your help. But i tried what you told me. different ways. Same error. I'm missing some step. I'm doing some detail wrong. Probably i will start from zero and upload the photos again. Thanks
Mraedis
Mraedisβ€’3mo ago
Feel free to screenshot the command and I could point you to the error
NunoM
NunoMOPβ€’3mo ago
after that, i can go forward to next step (docker compose pull) or i need to change something before do this step
No description
Mraedis
Mraedisβ€’3mo ago
That is the first step in restore so I don't really understand the question
NunoM
NunoMOPβ€’3mo ago
I already made the backup. But the immich_server doesn't start.
NunoM
NunoMOPβ€’3mo ago
Can anyone help me ?
No description
NunoM
NunoMOPβ€’3mo ago
Someone can help please?
bo0tzz
bo0tzzβ€’3mo ago
Seems like the database credentials in your .env aren't right
Noryb πŸ€“
Noryb πŸ€“β€’3mo ago
You have to add the container for your database and restore the database as described there: https://immich.app/docs/administration/backup-and-restore/ Also, you need to fill in your db name and password in your .env file as described here: https://immich.app/docs/install/docker-compose The log shows that immich can't connect to your database. Also note that you will need to restore your backup in your database container before spinning up the other containers. Otherwise Immich is missing all the database content
NunoM
NunoMOPβ€’3mo ago
it's work. Many thanks πŸ™‚
Immich
Immichβ€’3mo ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?