Unraid, failed hard disk, immich install reset..
Hi All
I had a disk failure in my unraid server a few days back, no problem I thought, the parity drive seemed to take care of everything. Anyway, went to login to my immich instance a day or two later and discovered it was showing me the new install screen. I've checked the disks and my immich data paths all seem to exists and i can view photos that way.
Im a little stumped as to why the immich instance has been affected by the disk failure and also how best to restore. I have database backups, so i can restore from those, but i dont want to just blindly import that in before i've checked everything else.
Any ideas ?
12 Replies
:wave: Hey @karmacop81,
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.Additional information: the drive failure happened due to the power supply failing. I attempted to re-install the faulty disk as I thought the issue may have been caused by a dodgy cable when i installed the new power supply as the disk was relatively new. This didnt work, so i have removed tha disk and am still running with the drive emulated in unraid.
configs attached
Did you compose down/up after this?
Yeah, tbh I did a few bits of messing about before I realised immich wasnt working so I don't really have a proper timeline of everything š©
the database is in a docker volume called
pgdata
for you
if this has been reset then I'm afraid there's nothing much you can do to save it, but there should be daily database dumps in UPLOAD_LOCATION/backups
You could use the last working one there to restore the DBYeah i have all of that, i just wanted to check beforehand incase there might be an easier option..
im just confused as to how the volume would have gone.. oh well
that's a question for docker š you could track it down in the volumes section and see if the data is inside?
yeah cant see it, oh well, restore it is!
well ive just restored the database and it all looks ok so far! š
Depending on the date of the backup, you might have some assets that were uploaded but are now untracked
yeah thats fine i can deal with that
what i cant deal with is my wife loosing her s&*t if any of the old photos arent accessible š¤£
š