What app is this about, and its version: Immich 2.6.3~ynh1
What YunoHost version are you running: Yunohost 12.1.39 stable
What type of hardware are you using: Old laptop or computer
Describe your issue
Immich failing to start because of dependency problems.
The odd thing about this is that Immich was running fine and I’d had no indication of problems. I stopped the immich service from the Yunohost web admin to run a fsarchiver backup of the /home/yunohost.app/immich directory as I’ve done many times before. The backup ran fine (about 1.1TB of compressed data).
After it was done, I re-started the Immich services from the web admin, and it looked like it started normally. A while later, I tried to get into Immich via the browser, and it showed an http error 502.
I checked the Yunohost web admin services status and saw that the service wasn’t running. I tried to re-start it and it wouldn’t start. In the snippet of the log I saw, it looked like there was a dependency problem. Something about npm and sharp.
I took the actions that it suggested in the log, but it didn’t make any difference. The service still wouldn’t start.
At this point I decided to remove Immich via the web interface, leaving the data, and then re-install it, and finally, restore the latest automatic database backup from the night before. That worked, and then Immich seemed to be back to normal.
It ran fine until I needed to reboot the server (for unrelated reasons). The Yunohost server came back up normally, except Immich didn’t start again. It reported exactly the same dependency issue that it did before I removed and restored it. So I went ahead and captured the logs in it’s broken state (that’s the log attached here), removed Immich again, and re-installed it, restored the database as before, and it’s back up and running normally again.
The problem is, I’m pretty sure if I stop or reboot the server again (as I will have to at some point), it will likely fail again, and I’m afraid that one of these times I may not be able to so easily get it going again.
Thanks for any suggestions.
Share relevant logs or error messages
Here’s The log output from when Immich wouldn’t start.