Thread View: linux.debian.user
6 messages
6 total messages
Started by dsk
Thu, 19 Nov 2026 07:20
hetzner server dead after debian upgrade
Author: dsk
Date: Thu, 19 Nov 2026 07:20
Date: Thu, 19 Nov 2026 07:20
63 lines
7379 bytes
7379 bytes
hi my hetzner server with debian 13 stopped responding after a regular upgrade. the terminal i was running the upgrade from is dead. cant open a new SSH session, the window just doesnt respond, does not timeout either. ``` root@dry:~# apt update && apt upgrade -y && apt autoremove && apt autoclean Hit:1 http://security.debian.org/debian-security bookworm-security InRelease Hit:2 http://deb.debian.org/debian bookworm InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 http://mirror.hetzner.de/debian/packages bookworm InRelease Hit:5 http://mirror.hetzner.de/debian/packages bookworm-updates InRelease Hit:6 http://mirror.hetzner.de/debian/security bookworm-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 1 package can be upgraded. Run 'apt list --upgradable' to see it. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed: linux-image-6.1.0-56-amd64 The following packages will be upgraded: linux-image-amd64 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 70.6 MB of archives. After this operation, 410 MB of additional disk space will be used. Get:1 http://security.debian.org/debian-security bookworm-security/main amd64 linux-image-6.1.0-56-amd64 amd64 6.1.192-2 [70.6 MB] Get:2 http://security.debian.org/debian-security bookworm-security/main amd64 linux-image-amd64 amd64 6.1.192-2 [1,480 B] Fetched 70.6 MB in 1s (115 MB/s) Selecting previously unselected package linux-image-6.1.0-56-amd64. (Reading database ... 48710 files and directories currently installed.) Preparing to unpack .../linux-image-6.1.0-56-amd64_6.1.192-2_amd64.deb ... Unpacking linux-image-6.1.0-56-amd64 (6.1.192-2) ... Preparing to unpack .../linux-image-amd64_6.1.192-2_amd64.deb ... Unpacking linux-image-amd64 (6.1.192-2) over (6.1.192-1) ... Setting up linux-image-6.1.0-56-amd64 (6.1.192-2) ... I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.1.0-55-amd64 I: /initrd.img.old is now a symlink to boot/initrd.img-6.1.0-55-amd64 I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-56-amd64 I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-56-amd64 /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-6.1.0-56-amd64 W: No zstd in /usr/bin:/sbin:/bin, using gzip Killed update-initramfs: failed for /boot/initrd.img-6.1.0-56-amd64 with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-6.1.0-56-amd64 (--configure): installed linux-image-6.1.0-56-amd64 package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-image-amd64: linux-image-amd64 depends on linux-image-6.1.0-56-amd64 (= 6.1.192-2); however: Package linux-image-6.1.0-56-amd64 is not configured yet. dpkg: error processing package linux-image-amd64 (--configure): dependency problems - leaving unconfigured Progress: [ 56%] [###################################################################################...................................................................] ```
Re: hetzner server dead after debian upgrade
Author: dsk
Date: Thu, 19 Nov 2026 07:20
Date: Thu, 19 Nov 2026 07:20
82 lines
7735 bytes
7735 bytes
my bad, that server still ran debian 12 (bookworm) On Thu, 19 Nov 2026, at 7:48 AM, dsk@fea.st wrote: > hi > > my hetzner server with debian 13 stopped responding after a regular upgrade. > > the terminal i was running the upgrade from is dead. > > cant open a new SSH session, the window just doesnt respond, does not > timeout either. > > ``` > root@dry:~# apt update && apt upgrade -y && apt autoremove && apt > autoclean > Hit:1 http://security.debian.org/debian-security bookworm-security > InRelease > Hit:2 http://deb.debian.org/debian bookworm InRelease > > Hit:3 http://deb.debian.org/debian bookworm-updates InRelease > > Hit:4 http://mirror.hetzner.de/debian/packages bookworm InRelease > > Hit:5 http://mirror.hetzner.de/debian/packages bookworm-updates > InRelease > Hit:6 http://mirror.hetzner.de/debian/security bookworm-security > InRelease > Reading package lists... Done > > Building dependency tree... Done > Reading state information... Done > 1 package can be upgraded. Run 'apt list --upgradable' to see it. > Reading package lists... Done > Building dependency tree... Done > Reading state information... Done > Calculating upgrade... Done > The following NEW packages will be installed: > linux-image-6.1.0-56-amd64 > The following packages will be upgraded: > linux-image-amd64 > 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. > Need to get 70.6 MB of archives. > After this operation, 410 MB of additional disk space will be used. > Get:1 http://security.debian.org/debian-security bookworm-security/main > amd64 linux-image-6.1.0-56-amd64 amd64 6.1.192-2 [70.6 MB] > Get:2 http://security.debian.org/debian-security bookworm-security/main > amd64 linux-image-amd64 amd64 6.1.192-2 [1,480 B] > Fetched 70.6 MB in 1s (115 MB/s) > Selecting previously unselected package linux-image-6.1.0-56-amd64. > (Reading database ... 48710 files and directories currently installed.) > Preparing to unpack .../linux-image-6.1.0-56-amd64_6.1.192-2_amd64.deb > ... > Unpacking linux-image-6.1.0-56-amd64 (6.1.192-2) ... > Preparing to unpack .../linux-image-amd64_6.1.192-2_amd64.deb ... > Unpacking linux-image-amd64 (6.1.192-2) over (6.1.192-1) ... > Setting up linux-image-6.1.0-56-amd64 (6.1.192-2) ... > I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.1.0-55-amd64 > I: /initrd.img.old is now a symlink to boot/initrd.img-6.1.0-55-amd64 > I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-56-amd64 > I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-56-amd64 > /etc/kernel/postinst.d/initramfs-tools: > update-initramfs: Generating /boot/initrd.img-6.1.0-56-amd64 > W: No zstd in /usr/bin:/sbin:/bin, using gzip > Killed > update-initramfs: failed for /boot/initrd.img-6.1.0-56-amd64 with 1. > run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return > code 1 > dpkg: error processing package linux-image-6.1.0-56-amd64 (--configure): > installed linux-image-6.1.0-56-amd64 package post-installation script > subprocess returned error exit status 1 > dpkg: dependency problems prevent configuration of linux-image-amd64: > linux-image-amd64 depends on linux-image-6.1.0-56-amd64 (= 6.1.192-2); > however: > Package linux-image-6.1.0-56-amd64 is not configured yet. > > dpkg: error processing package linux-image-amd64 (--configure): > dependency problems - leaving unconfigured > > > Progress: [ 56%] > [###################################################################################...................................................................] > ```
Re: hetzner server dead after debian upgrade
Author: Marco Moock
Date: Thu, 19 Nov 2026 10:00
Date: Thu, 19 Nov 2026 10:00
32 lines
2859 bytes
2859 bytes
Am 19.11.26 um 08:20 schrieb dsk@fea.st: > hi > > my hetzner server with debian 13 stopped responding after a regular upgrade. > > the terminal i was running the upgrade from is dead. > > cant open a new SSH session, the window just doesnt respond, does not timeout either. The default timeouts for TCP connections are very high, that explains this behavior. The only way to access it is to get VNC/RDP access to the machine. There you can check if it hangs or is still running with a faulty network connection. > /etc/kernel/postinst.d/initramfs-tools: > update-initramfs: Generating /boot/initrd.img-6.1.0-56-amd64 > W: No zstd in /usr/bin:/sbin:/bin, using gzip > Killed > update-initramfs: failed for /boot/initrd.img-6.1.0-56-amd64 with 1. Why is there no zstd? -- Gruß Marco Spam bitte an abfalleimer2001@stinkedores.dorfdsl.de
Re: hetzner server dead after debian upgrade
Author: Andy Smith
Date: Thu, 19 Nov 2026 12:50
Date: Thu, 19 Nov 2026 12:50
63 lines
4060 bytes
4060 bytes
Hi,
On Thu, Nov 19, 2026 at 07:48:05AM +0100, dsk@fea.st wrote:
> The following NEW packages will be installed:
> linux-image-6.1.0-56-amd64
You are presumably running the bad kernel (-55) that is known to hang
the system especially under decent IO load, and are trying to install
the fixed kernel (-56) from it. You might never get it done before it
hangs again.
You may need to boot into the previous kernel (i.e. before -55) but
since Hetzner "servers" lack proper out of band management, manipulating
the grub menu may be tricky.
Solutions off the top of my head:
a) Change /etc/default/grub to have
GRUB_DEFAULT=saved
and then use `grub-set-default` to pick the default next boot kertnel
(don't forget to update-grub). Hopefully it stays up long enough for
that to complete.
b) Boot into the rescue environment thing that Hetzner has, chroot into
your regular root filesystem and remove the -55 kernel. As long as
grub updates okay it should then boot into the previous kernel at
next boot. Can be a bit tricky to get the chroot set up far enough
that update-grub works.
c) Rent the KVM apparatus that I seem to recall that Hetzner offers to
temporarily attach to your machine. Use that to manipulate the grub
menu.
Once you are on a kernel that isn't going to randomly lock up you can
try to solve your next issue:
> update-initramfs: Generating /boot/initrd.img-6.1.0-56-amd64
> W: No zstd in /usr/bin:/sbin:/bin, using gzip
Not having zstd is weird but it was only a warning; it said it carried
on with gzip.
> Killed
> update-initramfs: failed for /boot/initrd.img-6.1.0-56-amd64 with 1.
> run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
It did then fail to generate the initramfs though and doesn't seem to
explain why. Perhaps it is lack of space on the filesystem, although
I'm sure it says when that is the case.
You may need to do "update-initramfs -v -u" to watch it verbosely try to
generate an initramfs.
I suppose it could also be filesystem damage from repeated lock-ups and
power cycles. You might need Hetzner's rescue thing to do fsck.
Thanks,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Re: hetzner server dead after debian upgrade
Author: dsk
Date: Thu, 19 Nov 2026 13:30
Date: Thu, 19 Nov 2026 13:30
79 lines
7078 bytes
7078 bytes
after restarting the crashed server (poweroff+reboot) everything seemed to work. a few hours later I was checking something with `apt` and I got the message "Killed" and the server froze again. again poweroff+reboot. I just ran `initramfs-update -u -v` and it went through OK. root@dry:~# uname -a Linux dry 6.1.0-56-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.192-2 (2026-11-16) x86_64 GNU/Linux thanks for the help so far. -david On Thu, 19 Nov 2026, at 1:46 PM, Andy Smith wrote: > Hi, > > On Thu, Nov 19, 2026 at 07:48:05AM +0100, dsk@fea.st wrote: >> The following NEW packages will be installed: >> linux-image-6.1.0-56-amd64 > > You are presumably running the bad kernel (-55) that is known to hang > the system especially under decent IO load, and are trying to install > the fixed kernel (-56) from it. You might never get it done before it > hangs again. > > You may need to boot into the previous kernel (i.e. before -55) but > since Hetzner "servers" lack proper out of band management, manipulating > the grub menu may be tricky. > > Solutions off the top of my head: > > a) Change /etc/default/grub to have > > GRUB_DEFAULT=saved > > and then use `grub-set-default` to pick the default next boot kertnel > (don't forget to update-grub). Hopefully it stays up long enough for > that to complete. > > b) Boot into the rescue environment thing that Hetzner has, chroot into > your regular root filesystem and remove the -55 kernel. As long as > grub updates okay it should then boot into the previous kernel at > next boot. Can be a bit tricky to get the chroot set up far enough > that update-grub works. > > c) Rent the KVM apparatus that I seem to recall that Hetzner offers to > temporarily attach to your machine. Use that to manipulate the grub > menu. > > Once you are on a kernel that isn't going to randomly lock up you can > try to solve your next issue: > >> update-initramfs: Generating /boot/initrd.img-6.1.0-56-amd64 >> W: No zstd in /usr/bin:/sbin:/bin, using gzip > > Not having zstd is weird but it was only a warning; it said it carried > on with gzip. > >> Killed >> update-initramfs: failed for /boot/initrd.img-6.1.0-56-amd64 with 1. >> run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 > > It did then fail to generate the initramfs though and doesn't seem to > explain why. Perhaps it is lack of space on the filesystem, although > I'm sure it says when that is the case. > > You may need to do "update-initramfs -v -u" to watch it verbosely try to > generate an initramfs. > > I suppose it could also be filesystem damage from repeated lock-ups and > power cycles. You might need Hetzner's rescue thing to do fsck. > > Thanks, > Andy > > -- > https://bitfolk.com/ -- No-nonsense VPS hosting
Re: hetzner server dead after debian upgrade
Author: nwe
Date: Thu, 19 Nov 2026 15:30
Date: Thu, 19 Nov 2026 15:30
26 lines
2658 bytes
2658 bytes
On 11/19/26 7:18 AM, dsk@fea.st wrote: > after restarting the crashed server (poweroff+reboot) > > everything seemed to work. a few hours later I was checking something with `apt` and I got the message "Killed" and the server froze again. > > again poweroff+reboot. > maybe check memory: free and disk space: df -hT That killed message reminds me of running out of RAM and swap space on my pc some time ago. OOM killer started chopping processes. My memory hogging terminal app got killed, I heven't done it recently, but I recall a clean restart being the best recovery from oom crashes. So the first question is: Is something eating RAM? I would open a second shell window to keep an eye on things using the likes of top htop or btop, with btop being my preference.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads