# Immich working, but fails to re-start after being stopped or server reboot

**URL:** <https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983>\
**Category:** Support apps\
**Tags:** immich, english\
**Created:** [April 4, 2026, 3:38am UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983 "2026-04-04T03:38:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paradroyd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/paradroyd/32/11324_2.png) [@Paradroyd](https://forum.yunohost.org/u/Paradroyd)\
**Post date:** [April 4, 2026, 3:38am UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/1 "2026-04-04T03:38:46Z")

</div>

**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.

> **[hastebin](https://paste.yunohost.org/waciqipebi)**

---

<div class="post-metadata">

**Author:** ![ewilly](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ewilly/32/12681_2.png) [@ewilly](https://forum.yunohost.org/u/ewilly)\
**Post date:** [April 4, 2026, 4:05pm UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/2 "2026-04-04T16:05:56Z")

</div>

that line is not normal: `ERR_DLOPEN_FAILED: libcgif.so.0: cannot open shared object file: No such file or directory`  
could you post the output of:

- `sudo apt-cache policy libcgif0`
- `sudo apt-cache rdepends --no-{suggests,conflicts,breaks,replaces,enhances} --installed --recurse libcgif0`

---

<div class="post-metadata">

**Author:** ![Paradroyd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/paradroyd/32/11324_2.png) [@Paradroyd](https://forum.yunohost.org/u/Paradroyd)\
**Post date:** [April 4, 2026, 5:31pm UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/3 "2026-04-04T17:31:45Z")

</div>

Thanks for the reply.

Here’s the output of **sudo apt-cache policy libcgif0** :

```auto
libcgif0:
  Installed: 0.3.0-1
  Candidate: 0.3.0-1
  Version table:
 *** 0.3.0-1 500
        500 http://ftp.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status

```

and here’s the output of **sudo apt-cache rdepends --no-{suggests,conflicts,breaks,replaces,enhances} --installed --recurse libcgif0** :

```auto
libcgif0
Reverse Depends:

```

(Not much there on the second one).

It might be worth noting, these are the responses while Immich is running normally. It’s possible that they might change if I stop, and then attempt to restart Immich (basically, intentionally temporarily breaking it). If it would help, I could do that. If you think it won’t matter, I won’t, since it’s working right now.

---

<div class="post-metadata">

**Author:** ![Paradroyd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/paradroyd/32/11324_2.png) [@Paradroyd](https://forum.yunohost.org/u/Paradroyd)\
**Post date:** [April 4, 2026, 6:01pm UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/4 "2026-04-04T18:01:56Z")

</div>

This may or may not be relevant.. if I do a s **udo apt update** , then **sudo apt upgrade** , I get:

```auto
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  jellyfin-ffmpeg7 libcgif0 libexif12
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

```

---

<div class="post-metadata">

**Author:** ![ewilly](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ewilly/32/12681_2.png) [@ewilly](https://forum.yunohost.org/u/ewilly)\
**Post date:** [April 5, 2026, 8:16am UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/5 "2026-04-05T08:16:44Z")

</div>

that’s relevant because those package are some dependencies of the immich meta package.  
what’s the output of: `sudo dpkg-query --show --showformat='${Depends}' immich-ynh-deps`

---

<div class="post-metadata">

**Author:** ![Paradroyd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/paradroyd/32/11324_2.png) [@Paradroyd](https://forum.yunohost.org/u/Paradroyd)\
**Post date:** [April 5, 2026, 3:07pm UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/6 "2026-04-05T15:07:28Z")

</div>

> [@ewilly](#):
>
> sudo dpkg-query --show --showformat=‘${Depends}’ immich-ynh-deps

It is:

```auto
libpq5, libpq-dev, postgresql-17, postgresql-17-pgvector, postgresql-client-17, postgresql-17-vchord

```

---

<div class="post-metadata">

**Author:** ![TweakFR](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tweakfr/32/10630_2.png) [@TweakFR](https://forum.yunohost.org/u/TweakFR)\
**Post date:** [April 5, 2026, 7:24pm UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/7 "2026-04-05T19:24:55Z")

</div>

Same issue for me

---

<div class="post-metadata">

**Author:** ![ewilly](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ewilly/32/12681_2.png) [@ewilly](https://forum.yunohost.org/u/ewilly)\
**Post date:** [April 6, 2026, 8:43am UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/8 "2026-04-06T08:43:08Z")

</div>

> [@ewilly](#):
>
> sudo dpkg-query --show --showformat=‘${Depends}’ immich-ynh-deps

ok find the root cause, should be fixed with upcoming `2.6.3~ynh2`

---

<div class="post-metadata">

**Author:** ![Paradroyd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/paradroyd/32/11324_2.png) [@Paradroyd](https://forum.yunohost.org/u/Paradroyd)\
**Post date:** [April 6, 2026, 5:08pm UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/9 "2026-04-06T17:08:09Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [April 21, 2026, 5:09pm UTC](https://forum.yunohost.org/t/immich-working-but-fails-to-re-start-after-being-stopped-or-server-reboot/41983/10 "2026-04-21T17:09:04Z")

</div>

Closed on April 21, 2026, 5:09pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
