LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2021, 04:20 AM   #1
beje
LQ Newbie
 
Registered: May 2018
Location: Austria
Distribution: EndeavourOS
Posts: 23

Rep: Reputation: Disabled
Unhappy Debian: where to look in logs for the culprit of random restarts/freezes


Hi there! I have a AMD based machine which is experiencing random restarts/freezes and I do not know how I can identify the culprit.

Machine is running debian 10 and open media vault 5. It is an AMD based machine. Until now I have tried with different MoBo, CPU, CPU cooler, PSU but the random restarts are persisting.

CPUs are AMD Ryzen 5 1600 and AMD Ryzen 7 1700 on 2 B450I MoBos one from Asus and one from Gigabyte with Noctua and stock CPU cooler. PSUs are one Silverstone Flex ATX (miserable, but fitting a micro-ITX case) and a BeQuiet Pure Power 11 400W (which should be decent at least).

What I have not changed (so far) is the RAM (memtest with 10 passthrough runs now in the background), the SSD (WD Blue M.2 Nvme which is new, but one never know) and the OS.

My question is if I can dig somewhere in the logs to find the culprit of these restarts.

Thanks!
 
Old 10-25-2021, 10:21 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,294

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
One problem with crashes is that they may prevent logging. Check "last" to see what it says for the failed session. If there is no stack trace shown on the console, and the system just restarts, then I would suspect power issues. Mine will show two "still running" lines in the event of a sudden power outage, like:
Code:
reboot   system boot  5.14.12-200.fc34 Mon Oct 25 10:14   still running
reboot   system boot  5.14.12-200.fc34 Mon Oct 25 10:11   still running
reboot   system boot  5.14.12-200.fc34 Thu Oct 21 13:02 - 15:38  (02:35)
No reason is shown for the 10:11 boot this morning because I accidentally disconnected power after starting the system. The Oct 21 session shows the line for a normal shutdown.
 
Old 10-26-2021, 12:10 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by beje View Post
My question is if I can dig somewhere in the logs to find the culprit of these restarts.
First you will probably have to enable persistent logging, then, after a freeze/restart, issue
Code:
journalctl -b -1
 
Old 10-29-2021, 03:27 AM   #4
beje
LQ Newbie
 
Registered: May 2018
Location: Austria
Distribution: EndeavourOS
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
One problem with crashes is that they may prevent logging. Check "last" to see what it says for the failed session. If there is no stack trace shown on the console, and the system just restarts, then I would suspect power issues. Mine will show two "still running" lines in the event of a sudden power outage, like:
Code:
reboot   system boot  5.14.12-200.fc34 Mon Oct 25 10:14   still running
reboot   system boot  5.14.12-200.fc34 Mon Oct 25 10:11   still running
reboot   system boot  5.14.12-200.fc34 Thu Oct 21 13:02 - 15:38  (02:35)
No reason is shown for the 10:11 boot this morning because I accidentally disconnected power after starting the system. The Oct 21 session shows the line for a normal shutdown.
Code:
root     pts/2        10.0.0.29        Fri Oct 29 10:03   still logged in
root     pts/1        10.0.0.29        Fri Oct 29 10:01   still logged in
root     pts/0        10.0.0.16        Fri Oct 29 08:15   still logged in
reboot   system boot  4.19.0-18-amd64  Thu Oct 28 20:41   still running
root     pts/0        10.0.0.16        Mon Oct 25 19:34 - 21:45  (02:11)
reboot   system boot  4.19.0-18-amd64  Mon Oct 25 19:33   still running
root     pts/0        10.0.0.16        Mon Oct 25 19:26 - down   (00:06)
root     tty1                          Mon Oct 25 19:23 - down   (00:10)
reboot   system boot  4.19.0-18-amd64  Mon Oct 25 19:23 - 19:33  (00:10)
reboot   system boot  4.19.0-18-amd64  Mon Oct 25 19:13 - 19:15  (00:02)
It seems that I have the same: the one from 19:33 is the faulty one and system restarted on 28 Oct 20:41... should I suspect then power issues? on the PSU or from the grid?

Quote:
Originally Posted by ondoho View Post

First you will probably have to enable persistent logging, then, after a freeze/restart, issue
Code:
journalctl -b -1
I have enable it now, and I will have a look after next restart...

Thank you both.
 
Old 10-30-2021, 09:52 PM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,425
Blog Entries: 1

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
Those power supply brands don't sound top notch quality. Is either under warranty? If not, open up to inspect for leaky or swollen electrolytic capacitors. Visit http://badcaps.net/ to know what to look for. If you find any, you have your answer. Power supplies are notorious sources of random lockups.
 
Old 10-31-2021, 07:31 AM   #6
beje
LQ Newbie
 
Registered: May 2018
Location: Austria
Distribution: EndeavourOS
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
Those power supply brands don't sound top notch quality. Is either under warranty? If not, open up to inspect for leaky or swollen electrolytic capacitors. Visit http://badcaps.net/ to know what to look for. If you find any, you have your answer. Power supplies are notorious sources of random lockups.
Silverstone is an entry level PSU but was the only Flex-ATX that I have found on the market. Be Quiet! is a pretty well established brand here in Europe. Both of them are new and under warranty.
 
Old 11-12-2021, 11:51 PM   #7
Crippled
Member
 
Registered: Sep 2015
Distribution: MX Linux 21.3 Xfce
Posts: 596

Rep: Reputation: Disabled
@beje ,the problem with looking at logs because of hard freezes and reboots is when what ever is the cause of it will not show in the logs because all writing stops. I have experienced the same issues you are experiencing. I tried memory tests, replaced the power supply, replaced the video card. This all started after 11 months of my computer build. After another two months of trying to figure out what was causing it the culprit showed itself when my computer would no longer boot up. In my case it turned out to be the motherboard failed which ASUS only had a 12 month warranty. Apparently ASUS quality is not what it once was. I replaced it with a MSI motherboard that ended up dying after two months. I now have a Gigabyte motherboard that has been great so far which is 1 year and 8 months. I would recommend you check in the BIOS for the CPU settings so it doesn't idle because that setting can cause the exact problem you are experiencing with Ryzen CPUs if they idle. Also, make sure you are running Linux kernel 5.3 or higher because earlier kernels can cause those problems with Ryzen CPUs.
 
Old 11-13-2021, 04:43 AM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,425
Blog Entries: 1

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
If using DDR4 RAM I recommend thorough/overnight testing with memtest86, not memtest86+.
 
Old 11-15-2021, 02:33 AM   #9
beje
LQ Newbie
 
Registered: May 2018
Location: Austria
Distribution: EndeavourOS
Posts: 23

Original Poster
Rep: Reputation: Disabled
I have done it: 10 cycles and nothing :-)

The last suspect is a (cheap) wattmeter that I have used to measure power consumption. Moved it away and could not reproduce the symptoms and getting 10 days of uptime. Now the respective HW was repurposed... new ideas, new things to do.

Thank you all.
 
Old 11-15-2021, 02:50 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,005

Rep: Reputation: 7891Reputation: 7891Reputation: 7891Reputation: 7891Reputation: 7891Reputation: 7891Reputation: 7891Reputation: 7891Reputation: 7891Reputation: 7891Reputation: 7891
Good news! In that case you might want to mark the thread solved.
 
  


Reply

Tags
debian 10 buster, log files, random, restarts


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Back up logs file and create a script showing the backed up logs and the running logs Billy_6052 Programming 5 12-13-2014 02:32 AM
Computer restarts after syslogd restarts birdseye Linux - General 2 03-05-2006 04:27 AM
Random restarts with 2005 LE and Geforce 6600gt PCI-Express TravisOSF Mandriva 2 05-04-2005 07:17 PM
Still X Random restarts redhatnoob Linux - General 2 02-17-2004 04:25 PM
Random X restarts on new install tomser Linux - Hardware 6 09-07-2003 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration