# I think an update broke my system: kernel panic and broken LDAP/slapd

**URL:** https://forum.yunohost.org/t/i-think-an-update-broke-my-system-kernel-panic-and-broken-ldap-slapd/36458
**Category:** Support
**Tags:** yunohost, english
**Created:** [April 13, 2025, 6:03pm UTC](https://forum.yunohost.org/t/i-think-an-update-broke-my-system-kernel-panic-and-broken-ldap-slapd/36458 "2025-04-13T18:03:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![dankerthrone](https://forum.yunohost.org/user_avatar/forum.yunohost.org/dankerthrone/32/10196_2.png) [@dankerthrone](https://forum.yunohost.org/u/dankerthrone)
#### Post date: [April 13, 2025, 6:03pm UTC](https://forum.yunohost.org/t/i-think-an-update-broke-my-system-kernel-panic-and-broken-ldap-slapd/36458/1 "2025-04-13T18:03:51Z")

</div>

**What type of hardware are you using** : VPS bought online  
**What YunoHost version are you running** : 12.04.14  
**How are you able to access your server** : SSH  
Other(?)

### Describe your issue

For unknown reasons, my VPS with Debian 12 no longer boots. It contains a virtual BTRFS partition as rootfs and also boot. This virtual disk is composed of two drives (merged from /dev/vda1 and /dev/vdb1). When booting, I receive the following error messages:

> error: no embedding supported  
> loading initial ramdisk …  
> error: you need to load the kernel first.

Then I end up back in GRUB and can choose which kernel I want to boot. If I take an older one, for example 6.1.0-30, I get the following error message:

`Kernel panic - not syncing: VFS: unable to mount root fs on unknown block(0,0)`

If I start kernel 6.1.0-28, I get the following error messages:

> mount: mounting /dev on /root/dev/ failed: no such file or directory  
> mount: mounting /run on /root/dev failed: no such file or directory  
> run-nit: can’t execute /sbin/init: no such file or directory  
> Target filesystem doesn’t have requested /sbin/init  
> run-init: can’t execute /bin/sh: no such file or directory  
> no init found. Try passing init=bootarg.

And then I end up in a BusyBox with an initramfs prompt.

Since I have no idea what to do with that, I booted into the live rescue GRML linux provided by hoster Netcup and tried my luck here, aided by Mistral and Claude.

**What I’ve tried so far**

Since I suspected a failed update (maybe one I recently initiated via webadmin?), it stood to reason that `dpkg --configure -a` would fix it. So I `chroot`ed into the system, having to jump through a few hoops with mount-binding all necessary partitions. I finally managed to do that. However, the system as it is right now will not accept any kind of update since whenever I try to install anything or update anything a variation of the following occurs:

> root@:/# dpkg --configure -a  
> Setting up yunohost (12.0.14) …  
> Regenerating configuration, this might take a while…  
> Warning: The LDAP service is down, attempt to restart it…  
> Running in chroot, ignoring command ‘restart’  
> Error: Service slapd is not running but is required to perform this action … You can try to investigate what’s happening with ‘systemctl status slapd’  
> dpkg: error processing package yunohost (–configure):  
> installed yunohost package post-installation script subprocess returned error exit status 1  
> Errors were encountered while processing:  
> yunohost

Output of `systemctl status slapd` is of course not super helpful:  
`Running in chroot, ignoring command 'status'`

So anyway, apparently since slapd is down and I can’t get it to start again, every time I try to install something the system checks whether chroot is allowed to do that and the answer is “I don’t know since LDAP is down” and so … I don’t know what to do.

Forcing something to happen unfortunately does not work:

> root@:/# dpkg --configure -a --force-all  
> Setting up yunohost (12.0.14) …  
> Regenerating configuration, this might take a while…  
> Warning: The LDAP service is down, attempt to restart it…  
> Running in chroot, ignoring command ‘restart’  
> Error: Service slapd is not running but is required to perform this action … You can try to investigate what’s happening with ‘systemctl status slapd’  
> dpkg: error processing package yunohost (–configure):  
> installed yunohost package post-installation script subprocess returned error exit status 1  
> Errors were encountered while processing:  
> yunohost

I’ve tried a bunch of things to temporarily disable LDAP/slapd in order to fix broken/missing packages, but nothing works and I’m running out of ideas.

**If you have any, I’m really curious to hear them and if all else fails: how do I backup and export my data**?

Because yunohost commands also fail :-/

> root@:/# yunohost backup create  
> Warning: WARNING The LDAP service is down, attempt to restart it…  
> Warning: Running in chroot, ignoring command ‘restart’  
> Warning: ERROR Service slapd is not running but is required to perform this action … You can try to investigate what’s happening with ‘systemctl status slapd’  
> Error: Could not run script: /usr/share/yunohost/hooks/backup/50-conf\_manually\_modified\_files  
> Error: Could not backup the ‘conf\_manually\_modified\_files’ system part  
> Info: Collecting files to be backed up for onlyoffice…  
> Info: Declaring files to be backed up…  
> Info: Backing up the PostgreSQL database…  
> Warning: sudo: unable to resolve host v2202411237932297310: Name or service not known  
> Warning: pg\_dump: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: No such file or directory  
> Warning: Is the server running locally and accepting connections on that socket?  
> Error: Could not back up onlyoffice  
> Info: Collecting files to be backed up for calibreweb…  
> Info: Declaring files to be backed up…  
> Info: Backup script completed for calibreweb. (YunoHost will then actually copy those files to the archive).  
> Warning: The LDAP service is down, attempt to restart it…  
> Running in chroot, ignoring command ‘restart’  
> Error: Could not back up calibreweb  
> Info: Collecting files to be backed up for wordpress…  
> Info: Declaring files to be backed up…  
> Info: Backing up the MySQL database…  
> Warning: ERROR 2002 (HY000): Can’t connect to local server through socket ‘/run/mysqld/mysqld.sock’ (2)  
> Warning: mysqldump: Character set ‘’ is not a compiled character set and is not specified in the ‘/usr/share/mysql/charsets/Index.xml’ file  
> Error: Could not back up wordpress  
> Info: Collecting files to be backed up for linkwarden…  
> Info: Backing up the PostgreSQL database…  
> Warning: sudo: unable to resolve host v2202411237932297310: Name or service not known  
> Warning: pg\_dump: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: No such file or directory  
> Warning: Is the server running locally and accepting connections on that socket?  
> Error: Could not back up linkwarden  
> Info: Collecting files to be backed up for nextcloud…  
> Info: Declaring files to be backed up…  
> Info: Backing up the MySQL database…  
> Warning: ERROR 2002 (HY000): Can’t connect to local server through socket ‘/run/mysqld/mysqld.sock’ (2)  
> Warning: mysqldump: Character set ‘’ is not a compiled character set and is not specified in the ‘/usr/share/mysql/charsets/Index.xml’ file  
> Error: Could not back up nextcloud  
> Info: Creating a backup archive from the collected files…  
> Info: The archive will contain about 360.4MB of data.  
> Warning: The LDAP service is down, attempt to restart it…  
> Running in chroot, ignoring command ‘restart’  
> Warning: The LDAP service is down, attempt to restart it…  
> Running in chroot, ignoring command ‘restart’  
> Success! Backup created: 20250413-171253  
> name: 20250413-171253  
> results:  
> apps:  
> calibreweb: Error  
> linkwarden: Error  
> nextcloud: Error  
> onlyoffice: Error  
> wordpress: Error  
> system:  
> conf\_ldap: Success  
> conf\_manually\_modified\_files: Error  
> conf\_ynh\_certs: Success  
> conf\_ynh\_settings: Success  
> data\_home: Success  
> data\_mail: Success  
> data\_multimedia: Success  
> size: 377913748

At this point, I’d like to restore the system, but I’ll settle for getting my Nextcloud data out in a way that’ll make it easy to restore it after nuke and rebuild the system.

### Share relevant logs or error messages

```auto
Info: Fetching available upgrades for system packages…
Info: Updating application catalog…
Success! The application catalog has been updated!
Warning: The LDAP service is down, attempt to restart it…
Running in chroot, ignoring command 'restart'
Error: Failed to read info for calibreweb : Service slapd is not running but is required to perform this action ... You can try to investigate what's happening with 'systemctl status slapd'
Warning: The LDAP service is down, attempt to restart it…
Running in chroot, ignoring command 'restart'
Error: Failed to read info for linkwarden : Service slapd is not running but is required to perform this action ... You can try to investigate what's happening with 'systemctl status slapd'
Warning: The LDAP service is down, attempt to restart it…
Running in chroot, ignoring command 'restart'
Error: Failed to read info for nextcloud : Service slapd is not running but is required to perform this action ... You can try to investigate what's happening with 'systemctl status slapd'
Warning: The LDAP service is down, attempt to restart it…
Running in chroot, ignoring command 'restart'
Error: Failed to read info for onlyoffice : Service slapd is not running but is required to perform this action ... You can try to investigate what's happening with 'systemctl status slapd'
Warning: The LDAP service is down, attempt to restart it…
Running in chroot, ignoring command 'restart'
Error: Failed to read info for wordpress : Service slapd is not running but is required to perform this action ... You can try to investigate what's happening with 'systemctl status slapd'
Info: Nothing to do. Everything is already up-to-date.
apps:
important_yunohost_upgrade: False
pending_migrations:
system:
```

---

<div class="post-metadata">

### Author: ![dankerthrone](https://forum.yunohost.org/user_avatar/forum.yunohost.org/dankerthrone/32/10196_2.png) [@dankerthrone](https://forum.yunohost.org/u/dankerthrone)
#### Post date: [April 13, 2025, 6:23pm UTC](https://forum.yunohost.org/t/i-think-an-update-broke-my-system-kernel-panic-and-broken-ldap-slapd/36458/2 "2025-04-13T18:23:02Z")

</div>

Log of failed “yunohost backup create --apps nextcloud” here: [https://paste.yunohost.org/raw/ibahepasem](https://paste.yunohost.org/raw/ibahepasem)

---

<div class="post-metadata">

### Author: ![dankerthrone](https://forum.yunohost.org/user_avatar/forum.yunohost.org/dankerthrone/32/10196_2.png) [@dankerthrone](https://forum.yunohost.org/u/dankerthrone)
#### Post date: [April 21, 2025, 6:36pm UTC](https://forum.yunohost.org/t/i-think-an-update-broke-my-system-kernel-panic-and-broken-ldap-slapd/36458/3 "2025-04-21T18:36:24Z")

</div>

So after a couple of hours troubleshooting the system with the help of Mistral and Claude, I finally managed to get to a place where I could fix and repair broken and missing packages.

That allowed me to fix the GRUB boot entries.  
That in turn let me actually boot into the system proper (after having a minor shock again because the first grub boot entry was still broken, but the second one with the right kernel worked).

Now I’ll actually do some backups and then probably nuke and rebuild the server 😃

---

<div class="post-metadata">

### Author: ![Beeblebrox](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/b/d9b06d/32.png) [@Beeblebrox](https://forum.yunohost.org/u/Beeblebrox)
#### Post date: [April 25, 2025, 3:24pm UTC](https://forum.yunohost.org/t/i-think-an-update-broke-my-system-kernel-panic-and-broken-ldap-slapd/36458/4 "2025-04-25T15:24:31Z")

</div>

Fresh Install may not work at the moment

> [@Slapd fails to start (Address already in use) - Fresh Install on ZFS Root](https://forum.yunohost.org/t/slapd-fails-to-start-address-already-in-use-fresh-install-on-zfs-root/36639):
>
> What type of hardware are you using: Old laptop or computer What YunoHost version are you running: 12.0.14 How are you able to access your server: SSH Direct access via physical keyboard/screen Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: Root on ZFS, used Install script convert Debian-12 to Yunohost Describe your issue Fresh install of Yunohost from install script on Debian-12 with ZFS Root. While running ‘yunohost tools postinstall’ I got…

---

<div class="post-metadata">

### Author: ![dankerthrone](https://forum.yunohost.org/user_avatar/forum.yunohost.org/dankerthrone/32/10196_2.png) [@dankerthrone](https://forum.yunohost.org/u/dankerthrone)
#### Post date: [April 26, 2025, 2:34pm UTC](https://forum.yunohost.org/t/i-think-an-update-broke-my-system-kernel-panic-and-broken-ldap-slapd/36458/5 "2025-04-26T14:34:50Z")

</div>

thanks for the heads-up! I’ll try on a staging system first.

---

<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: [May 26, 2025, 2:35pm UTC](https://forum.yunohost.org/t/i-think-an-update-broke-my-system-kernel-panic-and-broken-ldap-slapd/36458/6 "2025-05-26T14:35:07Z")

</div>

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