User Tools

Site Tools


diary:2024-02:2024-02-03_debian_machine_shuts_down_after_some_time

today | 2024-02-03

Issue:

My Debian desktop is shutting down after a while.

System information:

% lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

today | 2024-02-03

https://serverfault.com/questions/386985/how-to-investigate-unexpected-linux-server-shut-down suggests to take a looks at /var/log/syslog and /var/log/kern.log .

/var/log/syslog is full of these

2024-02-03T19:24:39.762840-05:00 hogwarts ntpd[858]: DNS: dns_probe: 3.debian.pool.ntp.org, cast_flags:8, flags:101
2024-02-03T19:24:39.943991-05:00 hogwarts ntpd[858]: DNS: dns_check: processing 3.debian.pool.ntp.org, 8, 101 
2024-02-03T19:24:39.944067-05:00 hogwarts ntpd[858]: DNS: dns_check: DNS error: -3, Temporary failure in name resolution
2024-02-03T19:24:39.944130-05:00 hogwarts ntpd[858]: DNS: dns_take_status: 3.debian.pool.ntp.org=>temp, 3

Are any ntpd processes currently running?

rajulocal@hogwarts /var/log % ps -ef | grep ntpd
ntpsec       860       1  0 19:26 ?        00:00:00 /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec
rajuloc+    3655    3441  0 19:40 pts/2    00:00:00 grep ntpd

Which package contains this binary?

rajulocal@hogwarts /var/log % apt-file search /usr/sbin/ntpd
ntpsec: /usr/sbin/ntpd
...

What version am I running?

rajulocal@hogwarts /var/log % dpkg -l ntpsec | grep ^ii
ii  ntpsec         1.2.2+dfsg1-1+deb12u1 amd64        Network Time Protocol daemon and utility programs

Why was it installed in the first place?

rajulocal@hogwarts /var/log % aptitude why ntpsec
i   ntp Depends ntpsec
rajulocal@hogwarts /var/log % aptitude why ntp   
i   gnome-system-tools Suggests ntp

Remove it

rajulocal@hogwarts /var/log % sudo apt-get remove --purge ntpsec

today | 2024-10-12 The machine rebooted again unexpectedly. The /var/log/kern.log shows

2024-10-12T19:20:34.777583-04:00 hogwarts kernel: [ 4568.756357] nouveau 0000:02:00.0: msvld: init failed, -19
2024-10-12T19:20:36.657547-04:00 hogwarts kernel: [ 4570.638966] nouveau 0000:02:00.0: firmware: failed to load nouveau/nv98_fuc084 (-2)
2024-10-12T19:20:36.661546-04:00 hogwarts kernel: [ 4570.639457] nouveau 0000:02:00.0: firmware: failed to load nouveau/nv98_fuc084 (-2)
2024-10-12T19:20:36.661556-04:00 hogwarts kernel: [ 4570.639462] nouveau 0000:02:00.0: Direct firmware load for nouveau/nv98_fuc084 failed with error -2
2024-10-12T19:20:36.661559-04:00 hogwarts kernel: [ 4570.639476] nouveau 0000:02:00.0: firmware: failed to load nouveau/nv98_fuc084d (-2)
2024-10-12T19:20:36.661560-04:00 hogwarts kernel: [ 4570.639486] nouveau 0000:02:00.0: firmware: failed to load nouveau/nv98_fuc084d (-2)
2024-10-12T19:20:36.661561-04:00 hogwarts kernel: [ 4570.639489] nouveau 0000:02:00.0: Direct firmware load for nouveau/nv98_fuc084d failed with error -2

How to fix this error?

diary/2024-02/2024-02-03_debian_machine_shuts_down_after_some_time.txt · Last modified: 2024/10/12 23:36 by raju