Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Rebooting on its own
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Tue Jun 04, 2024 12:34 pm    Post subject: Rebooting on its own Reply with quote

My Gentoo system has started rebooting on its own, frequently. There doesn't seem to be anything interesting in /var/log/messages. How should I look into this?
Back to top
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 207
Location: Ancient Rome

PostPosted: Tue Jun 04, 2024 2:19 pm    Post subject: Reply with quote

It is summer now (at least in the northern hemisphere); your PC might just overheat, so check temperatures. Also, try to run LiveGUI USB to make sure it isn't your system's fault.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Tue Jun 04, 2024 2:39 pm    Post subject: Reply with quote

I moved the SSD to another system and the behavior is the same unfortunately. Both systems are quite cool to the touch.
Back to top
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 207
Location: Ancient Rome

PostPosted: Tue Jun 04, 2024 2:46 pm    Post subject: Reply with quote

It looks like there might be a problem with the system or the SSD.
Cold to the touch might also mean overheating if there is a poor connection between a CPU and a heatsink, but since both machines are cool, it probably isn't.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Tue Jun 04, 2024 3:54 pm    Post subject: Reply with quote

This started happening after a fairly large emerge world update the other day so at this point I'm certain it's software. There must be some way to track it down? I would try a newer kernel but the system won't even stay up long enough to compile it.
Back to top
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 207
Location: Ancient Rome

PostPosted: Tue Jun 04, 2024 4:09 pm    Post subject: Reply with quote

I had a "few times" similar issue when something broke after a system update, and I didn't know which package caused that. Run genlop -l and check what has been updated since the last time your system was working flawlessly, and mask them. Downgrade everything Portage wants. Now, make sure your system is stable, then start unmasking and updating packages and testing if your system is stable. After updating some packages, it might be necessary to reboot your machine.
This method always worked for me. If by change this "fairly large emerge world update" was emerge --emptytree @world after changing profile, I think it would be better to restore the system from backup and do emerge --emptytree @world a few packages at the time.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22598

PostPosted: Tue Jun 04, 2024 4:44 pm    Post subject: Reply with quote

Did that recent large update include a new kernel? If so, start by dropping back to the kernel from before the update.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1711
Location: Germany

PostPosted: Tue Jun 04, 2024 5:20 pm    Post subject: Reply with quote

To make sure it is not a temperature thing: Try at least something like https://wiki.gentoo.org/wiki/Lm_sensors and have a look at the temperatures
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Wed Aug 07, 2024 5:45 pm    Post subject: Reply with quote

I'm still having this problem unfortunately.

I set up lm-sensors and everything is between 22C and 35C including the NVME sensor. Is there a bash one-liner that will dump 'sensors' to a file every 10 seconds so I can check the most recent readings after it reboots?

There must be a way to gather more info on why a system rebooted?
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Wed Aug 07, 2024 8:16 pm    Post subject: Reply with quote

After more testing I think this may be due to a USB network adapter overheating and freezing/rebooting the system. Still testing...
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1099

PostPosted: Wed Aug 07, 2024 10:05 pm    Post subject: Reply with quote

I tried disabling power save mode on the USB adapter like this but it still reboots:
Code:
echo "on" > "/sys/class/net/eth0/power/control"
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1711
Location: Germany

PostPosted: Thu Aug 08, 2024 6:07 am    Post subject: Reply with quote

Did you check for loose connections or broken connectors?
What happens if you do not use the USB network adapter?
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
AprilGrimoire
n00b
n00b


Joined: 05 Jun 2020
Posts: 57

PostPosted: Wed Aug 14, 2024 7:08 pm    Post subject: Re: Rebooting on its own Reply with quote

grant123 wrote:
My Gentoo system has started rebooting on its own, frequently. There doesn't seem to be anything interesting in /var/log/messages. How should I look into this?


Is it a Gentoo-specific bug, or does it occur on every distrio or even Windows? I had a similar issue with Archlinux recently, and initially I thought it was an Arch issue. However, later it happened more and more frequently and I finally couldn't bear it anymore. I had a test environment Ubuntu installation on a portable HDD, and run stress tests from there. Eventually I found that this issue happened on every Linux distrio, even WSL, and even native Windows applications some times. If you don't have extra disc space, you can use a portable live image to rule out the possibility of a hardware issue.

BTW in my case the issue could be reproduced (randomly, not every time) by plugging and unplugging the charging cable repeatedly when the battery has less than half the charge and cpu is under stress.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum