this post was submitted on 24 Jan 2025
21 points (100.0% liked)

Linux

49244 readers
775 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have a server running Debian 12. It seems to hang up and freeze sometime between 12 hours and like 2-3 days. I really want to see what's happening, but I can't access my containers with the web UIs, can SSH, and adding a monitor shows the DE completely frozen. Rebooting fixes it for a while, but it locks up again after some time.

I had the same issue with 10 year old hardware so I threw together a "new" machine with some spare parts and it still happens I also tried rocky Linux and the same thing happened on both machines.

Any help and direction would be greatly appreciated!

you are viewing a single comment's thread
view the rest of the comments
[–] Gayhitler@lemmy.ml 4 points 1 day ago (1 children)

Someone already linked to journalctl, but if you just quickly want to look, the command journalctl and the flag —since will get you going.

Journalctls output can be piped, so if you know what you’re looking for you can grep it easily.

[–] Nednarb44@lemmy.world 1 points 1 day ago (1 children)

Yeah I really don't know that I'm looking for unfortunately. I was something would jump out at me. I'm pretty new to Linux altogether so I'm kind of winging a lot

[–] Gayhitler@lemmy.ml 3 points 1 day ago* (last edited 1 day ago) (1 children)

So go ahead and take a look at your journalctl output. The left hand side should be timestamps, so you can immediately figure out if it’s starting a million years in the past or sometime you know you had the problem.

If it is a million years in the past, use the —since flag and specify the time you want to start at as enumerated in the manual file (man journalctl).

Once you’re looking at the logs in journalctl from a day you know the problem happened, go ahead and use arrow keys and pgup/pgdn to find a reboot. You’ll know when you find a reboot because it’ll look different. The messages will be about figuring out what hardware is attached and changing runlevels and whatnot.

Once you found where the reboot is, go backwards to find something weird happening in the logs.

E: By default the parser (program used to handle text) of journalctls output is “less”. If you want to get out of it, press “q”, and if you want to know more “man less”.

[–] Nednarb44@lemmy.world 1 points 1 day ago

I greatly appreciate the additional info. I'll finally be able to take a look in the morning. Hopefully I find something obvious and easy to fix lol