Scheduled Maintenance: Scheduled Forum update, upgrade, maintenance planned: 1800 UTC - May 28. viewtopic.php?t=159297

 

 

 

[Software] New Installation frequently crashes.

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
dodgerts
Posts: 5
Joined: 2024-05-04 17:53

[Software] New Installation frequently crashes.

#1 Post by dodgerts »

Hello,

I am running a, typically headless, server at home for several years now, that provides several services for our house (Home Assistant, Mosquitto, etc) as docker containers. So far it has been running on the Dietpie distribution (which to my knowledge is debian based).

A couple of days ago, I changed to Debian 12 and my system is quite unstable since then. Unstable in the sense that the system suddenly freezes. I have connected an external screen to be able to see the corresponding messeges upin freezing. Unfortunately, I fail to make much sense out of them.
Maybe someone on this forum can hint me into the right direction?
IMG_2842b.jpg

User avatar
ruwolf
Posts: 669
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 48 times
Been thanked: 30 times

Re: [Software] New Installation frequently crashes.

#2 Post by ruwolf »

Hello. :-)

I am not expert, but for me it seems to be Linux kernel crash after calling program:
linux/fs/binfmt_elf.c wrote:

Code: Select all

/**
 * load_elf_phdrs() - load ELF program headers
 * @elf_ex:   ELF header of the binary whose program headers should be loaded
 * @elf_file: the opened ELF binary file
 *
 * Loads ELF program headers from the binary file elf_file, which has the ELF
 * header pointed to by elf_ex, into a newly allocated array. The caller is
 * responsible for freeing the allocated data. Returns NULL upon failure.
 */
Do you have all used file-systems of your disks clean?

dodgerts
Posts: 5
Joined: 2024-05-04 17:53

Re: [Software] New Installation frequently crashes.

#3 Post by dodgerts »

Hi,

thanks for the reply!

I hope I understood your question correctly:
Actually yes, it was a clean re-install with /, /home, /boot and swap partitions being re-partitioned and formatted.

Maybe I just reinstall again...
Last edited by dodgerts on 2024-05-07 06:24, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 3132
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 78 times
Been thanked: 419 times

Re: [Software] New Installation frequently crashes.

#4 Post by Aki »

Hello,
dodgerts wrote: 2024-05-04 18:21 [..] it has been running on the Dietpie distribution (which to my knowledge is debian based). A couple of days ago, I changed to Debian 12 and my system is quite unstable since then.
How did you install Debian 12 ?
Did you do a complete fresh clean install or upgrade from the dietpie distribution?
dodgerts wrote: 2024-05-04 18:21 Unstable in the sense that the system suddenly freezes. I have connected an external screen to be able to see the corresponding messeges upin freezing. Unfortunately, I fail to make much sense out of them.
Maybe someone on this forum can hint me into the right direction?
The program that causes the kernel error is "containerd-shim" from the "containerd" package [1]. The crash is probably caused by an attempt by the kernel to access protected memory on behalf of "containerd-shim".

----
[1] https://packages.debian.org/bookworm/containerd
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

dodgerts
Posts: 5
Joined: 2024-05-04 17:53

Re: [Software] New Installation frequently crashes.

#5 Post by dodgerts »

Aki wrote: 2024-05-07 06:22 How did you install Debian 12 ?
Did you do a complete fresh clean install or upgrade from the dietpie distribution?
Yes, clean install. Only took docker container directories with configs and data (manual copy after installation) from the old system.

Aki
Global Moderator
Global Moderator
Posts: 3132
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 78 times
Been thanked: 419 times

Re: [Software] New Installation frequently crashes.

#6 Post by Aki »

dodgerts wrote: 2024-05-07 06:27 Yes, clean install. Only took docker container directories with configs and data (manual copy after installation) from the old system.
Just a guess: perhaps you may investigate what the Docker documentation advises in the case of container migration between different servers running different versions of Docker.

Please change the subject of the first post from "[Software] New Installation frequently crashes" to "[Software] Migrated Docker containers often crash".
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

dodgerts
Posts: 5
Joined: 2024-05-04 17:53

Re: [Software] New Installation frequently crashes.

#7 Post by dodgerts »

Sorry, I might have expressed myself not precise enough.

All that was migrated were the docker-compose file, as well as local mounted volumes containing the configurations and data for the corresponding container.
e.g. postgres config files and data for postgres container.

Since I considered it a major change (dietpi bullseye to debian bookworm), everything was tested on a secondary computer first. Here everything ran smoothely during test periods, but not as a production environment.

Aki
Global Moderator
Global Moderator
Posts: 3132
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 78 times
Been thanked: 419 times

Re: [Software] New Installation frequently crashes.

#8 Post by Aki »

Hello,

You may consider to install and configure kdump-tools [1] to get automatic log recordings about the crashes and analyze system logs about clues.

Hope this helps.

---
[1] https://packages.debian.org/kdump-tools
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

dodgerts
Posts: 5
Joined: 2024-05-04 17:53

Re: [Software] New Installation frequently crashes.

#9 Post by dodgerts »

Thanks for the hint. I actually did not know this tool.

Just installed it...

Post Reply