You are not logged in.

#1 2025-03-12 20:57:28

redshoe
Member
Registered: 2015-12-16
Posts: 250

Random shutdown and reboot how to see logs?

I have been experiencing random shutdown/reboot. I wasn't able to experience it while I was using the computer until like 20 mins ago. I am trying to see the journalctl output, and I am not able to see any messages that happened before current boot session. How do I do this? Thanks.

Last edited by redshoe (2025-03-12 21:00:53)

Offline

#2 2025-03-12 21:16:13

Xephon
Member
Registered: 2024-12-22
Posts: 36

Re: Random shutdown and reboot how to see logs?

Offline

#3 2025-03-12 21:36:29

loqs
Member
Registered: 2014-03-06
Posts: 18,361

Re: Random shutdown and reboot how to see logs?

Other possibilities for the missing journal would be persistent journal logging has been disabled on the system or the journal being corrupted so `journalctl` refuses to show it.

Offline

#4 2025-03-12 22:20:11

redshoe
Member
Registered: 2015-12-16
Posts: 250

Re: Random shutdown and reboot how to see logs?

I was using something like

# journalctl --since "20 min ago"

which would reach far back before the event, and it would only show me anything logged after the recent boot..

Offline

#5 2025-03-12 22:32:49

loqs
Member
Registered: 2014-03-06
Posts: 18,361

Re: Random shutdown and reboot how to see logs?

Is the random shutdown recorded at the end of the previous boot?

journalctl -b -1 -e

Offline

#6 2025-03-12 22:49:10

redshoe
Member
Registered: 2015-12-16
Posts: 250

Re: Random shutdown and reboot how to see logs?

Output of

journalctl -b -1 -e
Mar 10 10:34:44 archlinux systemd[823]: Queued start job for default target Main User Target.
Mar 10 10:34:44 archlinux systemd[823]: Created slice User Application Slice.
Mar 10 10:34:44 archlinux systemd[823]: Reached target Paths.
Mar 10 10:34:44 archlinux systemd[823]: Reached target Timers.
Mar 10 10:34:44 archlinux systemd[823]: Starting D-Bus User Message Bus Socket...
Mar 10 10:34:44 archlinux systemd[823]: Listening on GnuPG network certificate management daemon.
Mar 10 10:34:44 archlinux systemd[823]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 10 10:34:44 archlinux systemd[823]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Mar 10 10:34:44 archlinux systemd[823]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Mar 10 10:34:44 archlinux systemd[823]: Listening on GnuPG cryptographic agent and passphrase cache.
Mar 10 10:34:44 archlinux systemd[823]: Listening on GnuPG public key management service.
Mar 10 10:34:44 archlinux systemd[823]: Listening on p11-kit server.
Mar 10 10:34:44 archlinux systemd[823]: Listening on PipeWire Multimedia System Sockets.
Mar 10 10:34:44 archlinux systemd[823]: Listening on Sound System.
Mar 10 10:34:44 archlinux systemd[823]: Listening on D-Bus User Message Bus Socket.
Mar 10 10:34:44 archlinux systemd[823]: Reached target Sockets.
Mar 10 10:34:44 archlinux systemd[823]: Reached target Basic System.
Mar 10 10:34:44 archlinux systemd[823]: Starting Update XDG user dir configuration...
Mar 10 10:34:44 archlinux systemd[823]: Finished Update XDG user dir configuration.
Mar 10 10:34:44 archlinux systemd[823]: Reached target Main User Target.
Mar 10 10:34:44 archlinux systemd[823]: Startup finished in 119ms.
Mar 10 10:34:44 archlinux systemd[823]: Created slice User Core Session Slice.
Mar 10 10:34:44 archlinux systemd[823]: Starting D-Bus User Message Bus...
Mar 10 10:34:45 archlinux dbus-broker-launch[894]: Service file '/usr/share/dbus-1/services/org.jackaudio.service' is not named after the D-Bus name 'org.jackaudio.service'.
Mar 10 10:34:45 archlinux systemd[823]: Started D-Bus User Message Bus.
Mar 10 10:34:45 archlinux dbus-broker-launch[894]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +31: Eavesdropping is deprecated and ignored
Mar 10 10:34:45 archlinux dbus-broker-launch[894]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +33: Eavesdropping is deprecated and ignored
Mar 10 10:34:45 archlinux dbus-broker-launch[894]: Ready
Mar 10 10:34:45 archlinux systemd[823]: Created slice Slice /app/dbus-:1.2-org.freedesktop.portal.IBus.
Mar 10 10:34:45 archlinux systemd[823]: Started dbus-:1.2-org.freedesktop.portal.IBus@0.service.
Mar 10 10:34:45 archlinux systemd[823]: Starting Sound Service...
Mar 10 10:34:45 archlinux systemd[823]: Starting Accessibility services bus...
Mar 10 10:34:45 archlinux systemd[823]: Started Accessibility services bus.
Mar 10 10:34:45 archlinux dbus-broker-launch[956]: Ready
Mar 10 10:34:45 archlinux systemd[823]: Created slice Slice /app/dbus-:1.11-org.a11y.atspi.Registry.
Mar 10 10:34:45 archlinux systemd[823]: Started dbus-:1.11-org.a11y.atspi.Registry@0.service.
Mar 10 10:34:45 archlinux systemd[823]: Starting Portal service...
Mar 10 10:34:45 archlinux pulseaudio[934]: Failed to find a working profile.
Mar 10 10:34:45 archlinux pulseaudio[934]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
Mar 10 10:34:45 archlinux at-spi2-registryd[971]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Mar 10 10:34:45 archlinux systemd[823]: Starting sandboxed app permission store...
Mar 10 10:34:45 archlinux systemd[823]: Started sandboxed app permission store.
Mar 10 10:34:45 archlinux systemd[823]: Starting flatpak document portal service...
Mar 10 10:34:45 archlinux systemd[823]: Started flatpak document portal service.
Mar 10 10:34:45 archlinux systemd[823]: Started Portal service.
Mar 10 10:34:46 archlinux systemd[823]: Reached target Bluetooth.
Mar 10 10:34:47 archlinux systemd[823]: Started Sound Service.
Mar 10 10:34:47 archlinux pulseaudio[934]: Get() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Mar 10 10:39:57 archlinux systemd[823]: Starting User preferences database...
Mar 10 10:39:57 archlinux systemd[823]: Started User preferences database.
Mar 10 10:58:35 archlinux systemd[823]: Starting Xfce configuration service...
Mar 10 10:58:35 archlinux systemd[823]: Started Xfce configuration service.
Mar 10 11:03:37 archlinux systemd[823]: Starting Xfce configuration service...
Mar 10 11:03:37 archlinux systemd[823]: Started Xfce configuration service.
Mar 10 11:06:24 archlinux sshd-session[4543]: Received disconnect from 74.78.239.191 port 52795:11: Normal Shutdown
Mar 10 11:06:24 archlinux sshd-session[4543]: Disconnected from user rangke 74.78.239.191 port 52795
Mar 10 12:41:41 archlinux systemd[823]: Starting Xfce configuration service...
Mar 10 12:41:41 archlinux systemd[823]: Started Xfce configuration service.
Mar 10 13:00:55 archlinux systemd[823]: Starting Xfce configuration service...
Mar 10 13:00:55 archlinux systemd[823]: Started Xfce configuration service.
Mar 10 13:23:55 archlinux systemd[823]: Starting Xfce configuration service...
Mar 10 13:23:55 archlinux systemd[823]: Started Xfce configuration service.
Mar 10 15:24:54 archlinux sshd-session[33698]: Received disconnect from 74.78.239.191 port 52817:11: Normal Shutdown
Mar 10 15:24:54 archlinux sshd-session[33698]: Disconnected from user rangke 74.78.239.191 port 52817
Mar 10 17:27:10 archlinux systemd[42930]: Queued start job for default target Main User Target.
Mar 10 17:27:10 archlinux systemd[42930]: Created slice User Application Slice.
Mar 10 17:27:10 archlinux systemd[42930]: Reached target Paths.
Mar 10 17:27:10 archlinux systemd[42930]: Reached target Timers.
Mar 10 17:27:10 archlinux systemd[42930]: Starting D-Bus User Message Bus Socket...
Mar 10 17:27:10 archlinux systemd[42930]: Listening on GnuPG network certificate management daemon.
Mar 10 17:27:10 archlinux systemd[42930]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 10 17:27:10 archlinux systemd[42930]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Mar 10 17:27:10 archlinux systemd[42930]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Mar 10 17:27:10 archlinux systemd[42930]: Listening on GnuPG cryptographic agent and passphrase cache.
Mar 10 17:27:10 archlinux systemd[42930]: Listening on GnuPG public key management service.
Mar 10 17:27:10 archlinux systemd[42930]: Listening on p11-kit server.
Mar 10 17:27:10 archlinux systemd[42930]: Listening on PipeWire Multimedia System Sockets.
Mar 10 17:27:10 archlinux systemd[42930]: Listening on Sound System.
Mar 10 17:27:10 archlinux systemd[42930]: Listening on D-Bus User Message Bus Socket.
Mar 10 17:27:10 archlinux systemd[42930]: Reached target Sockets.
Mar 10 17:27:10 archlinux systemd[42930]: Reached target Basic System.
Mar 10 17:27:10 archlinux systemd[42930]: Starting Update XDG user dir configuration...
Mar 10 17:27:10 archlinux systemd[42930]: Finished Update XDG user dir configuration.
Mar 10 17:27:10 archlinux systemd[42930]: Reached target Main User Target.
Mar 10 17:27:10 archlinux systemd[42930]: Startup finished in 132ms.
Mar 10 17:29:02 archlinux sshd-session[42941]: Connection closed by 50.108.197.136 port 57968
Mar 10 17:29:12 archlinux systemd[42930]: Activating special unit Exit the Session...
Mar 10 17:29:12 archlinux systemd[42930]: Stopped target Main User Target.
Mar 10 17:29:12 archlinux systemd[42930]: Stopped target Basic System.
Mar 10 17:29:12 archlinux systemd[42930]: Stopped target Paths.
Mar 10 17:29:12 archlinux systemd[42930]: Stopped target Sockets.
Mar 10 17:29:12 archlinux systemd[42930]: Stopped target Timers.
Mar 10 17:29:12 archlinux systemd[42930]: Closed D-Bus User Message Bus Socket.
Mar 10 17:29:12 archlinux systemd[42930]: Closed GnuPG network certificate management daemon.
Mar 10 17:29:12 archlinux systemd[42930]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 10 17:29:12 archlinux systemd[42930]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Mar 10 17:29:12 archlinux systemd[42930]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Mar 10 17:29:12 archlinux systemd[42930]: Closed GnuPG cryptographic agent and passphrase cache.
Mar 10 17:29:12 archlinux systemd[42930]: Closed GnuPG public key management service.
Mar 10 17:29:12 archlinux systemd[42930]: Closed p11-kit server.
Mar 10 17:29:12 archlinux systemd[42930]: Closed PipeWire Multimedia System Sockets.
Mar 10 17:29:12 archlinux systemd[42930]: Closed Sound System.
Mar 10 17:29:12 archlinux systemd[42930]: Removed slice User Application Slice.
Mar 10 17:29:12 archlinux systemd[42930]: Reached target Shutdown.
Mar 10 17:29:12 archlinux systemd[42930]: Finished Exit the Session.
Mar 10 17:29:12 archlinux systemd[42930]: Reached target Exit the Session.
Mar 10 17:29:12 archlinux (sd-pam)[42932]: pam_unix(systemd-user:session): session closed for user guest
Mar 10 23:19:57 archlinux systemd[823]: Started tmux child pane 71990 launched by process 71989.
Mar 11 00:04:29 archlinux systemd[823]: Started tmux child pane 76745 launched by process 71989.
Mar 11 08:40:36 archlinux systemd[823]: tmux-spawn-b859d33e-6b0b-4556-b35e-afa3e142591d.scope: Consumed 6h 47min 51.843s CPU time, 13.5G memory peak.
Mar 11 08:40:48 archlinux systemd[823]: tmux-spawn-6b05ae61-f8db-4ff2-a5a5-177065b44676.scope: Consumed 7h 9min 48.818s CPU time, 17.6G memory peak.
Mar 11 08:40:50 archlinux sshd-session[83945]: Received disconnect from 74.78.239.191 port 52833:11: Normal Shutdown
Mar 11 08:40:50 archlinux sshd-session[83945]: Disconnected from user rangke 74.78.239.191 port 52833
Mar 11 13:48:16 archlinux systemd[823]: Started tmux child pane 104029 launched by process 104028.
Mar 11 13:48:49 archlinux systemd[823]: Started tmux child pane 104085 launched by process 104028.
Mar 11 17:58:55 archlinux pulseaudio[934]: ALSA woke us up to write new data to the device, but there was actually nothing to write.
Mar 11 17:58:55 archlinux pulseaudio[934]: Most likely this is a bug in the ALSA driver 'snd_usb_audio'. Please report this issue to the ALSA developers.
Mar 11 17:58:55 archlinux pulseaudio[934]: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
Mar 11 21:19:23 archlinux systemd[158678]: Queued start job for default target Main User Target.
Mar 11 21:19:24 archlinux systemd[158678]: Created slice User Application Slice.
Mar 11 21:19:24 archlinux systemd[158678]: Reached target Paths.
Mar 11 21:19:24 archlinux systemd[158678]: Reached target Timers.
Mar 11 21:19:24 archlinux systemd[158678]: Starting D-Bus User Message Bus Socket...
Mar 11 21:19:24 archlinux systemd[158678]: Listening on GnuPG network certificate management daemon.
Mar 11 21:19:24 archlinux systemd[158678]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 11 21:19:24 archlinux systemd[158678]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Mar 11 21:19:24 archlinux systemd[158678]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Mar 11 21:19:24 archlinux systemd[158678]: Listening on GnuPG cryptographic agent and passphrase cache.
Mar 11 21:19:24 archlinux systemd[158678]: Listening on GnuPG public key management service.
Mar 11 21:19:24 archlinux systemd[158678]: Listening on p11-kit server.
Mar 11 21:19:24 archlinux systemd[158678]: Listening on PipeWire Multimedia System Sockets.
Mar 11 21:19:24 archlinux systemd[158678]: Listening on Sound System.
Mar 11 21:19:24 archlinux systemd[158678]: Listening on D-Bus User Message Bus Socket.
Mar 11 21:19:24 archlinux systemd[158678]: Reached target Sockets.
Mar 11 21:19:24 archlinux systemd[158678]: Reached target Basic System.
Mar 11 21:19:24 archlinux systemd[158678]: Starting Update XDG user dir configuration...
Mar 11 21:19:24 archlinux systemd[158678]: Finished Update XDG user dir configuration.
Mar 11 21:19:24 archlinux systemd[158678]: Reached target Main User Target.
Mar 11 21:19:24 archlinux systemd[158678]: Startup finished in 171ms.
Mar 11 21:27:28 archlinux systemd[823]: tmux-spawn-465b3d8a-af28-4dfc-b09e-2c8615bc83c4.scope: Consumed 7h 25min 14.977s CPU time, 18.4G memory peak.
Mar 11 21:29:32 archlinux systemd[823]: tmux-spawn-879b2783-d199-416d-8ed6-20270a4d7380.scope: Consumed 7h 34min 48.597s CPU time, 17.8G memory peak.
Mar 11 21:31:01 archlinux systemd[823]: Started tmux child pane 159339 launched by process 159338.
Mar 11 21:31:35 archlinux systemd[823]: Started tmux child pane 159393 launched by process 159338.
Mar 11 21:35:17 archlinux sshd-session[158689]: Read error from remote host 184.153.194.54 port 58558: Connection reset by peer
Mar 11 21:35:28 archlinux systemd[158678]: Activating special unit Exit the Session...
Mar 11 21:35:28 archlinux systemd[158678]: Stopped target Main User Target.
Mar 11 21:35:28 archlinux systemd[158678]: Stopped target Basic System.
Mar 11 21:35:28 archlinux systemd[158678]: Stopped target Paths.
Mar 11 21:35:28 archlinux systemd[158678]: Stopped target Sockets.
Mar 11 21:35:28 archlinux systemd[158678]: Stopped target Timers.
Mar 11 21:35:28 archlinux systemd[158678]: Closed D-Bus User Message Bus Socket.
Mar 11 21:35:28 archlinux systemd[158678]: Closed GnuPG network certificate management daemon.
Mar 11 21:35:28 archlinux systemd[158678]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 11 21:35:28 archlinux systemd[158678]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Mar 11 21:35:28 archlinux systemd[158678]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Mar 11 21:35:28 archlinux systemd[158678]: Closed GnuPG cryptographic agent and passphrase cache.
Mar 11 21:35:28 archlinux systemd[158678]: Closed GnuPG public key management service.
Mar 11 21:35:28 archlinux systemd[158678]: Closed p11-kit server.
Mar 11 21:35:28 archlinux systemd[158678]: Closed PipeWire Multimedia System Sockets.
Mar 11 21:35:28 archlinux systemd[158678]: Closed Sound System.
Mar 11 21:35:28 archlinux systemd[158678]: Removed slice User Application Slice.
Mar 11 21:35:28 archlinux systemd[158678]: Reached target Shutdown.
Mar 11 21:35:28 archlinux systemd[158678]: Finished Exit the Session.
Mar 11 21:35:28 archlinux systemd[158678]: Reached target Exit the Session.
Mar 11 21:35:28 archlinux (sd-pam)[158681]: pam_unix(systemd-user:session): session closed for user guest
Mar 11 22:24:08 archlinux systemd[823]: Started tmux child pane 161505 launched by process 159338.
Mar 12 10:25:26 archlinux systemd[823]: tmux-spawn-5ce31ad1-c23b-4ba1-9c79-920abdd7fa75.scope: Consumed 8h 32min 11.270s CPU time, 13.9G memory peak.
Mar 12 10:25:29 archlinux systemd[823]: tmux-spawn-3969cd94-2a32-49b7-aaba-1b91ef9e0d80.scope: Consumed 8h 21min 4.724s CPU time, 16.8G memory peak.
Mar 12 10:25:32 archlinux systemd[823]: tmux-spawn-021c6fce-e342-493e-8ebe-83c329364fa6.scope: Consumed 8h 49min 42.138s CPU time, 15.4G memory peak.
Mar 12 16:11:34 archlinux sudo[188049]: pam_unix(sudo:auth): authentication failure; logname=rangke uid=1000 euid=0 tty=/dev/pts/3 ruser=rangke rhost=  user=rangke
Mar 12 16:11:37 archlinux sudo[188049]:   rangke : TTY=pts/3 ; PWD=/home/rangke ; USER=root ; COMMAND=/usr/bin/mount /dev/mmcblk0 mnt0
Mar 12 16:11:37 archlinux sudo[188049]: pam_unix(sudo:session): session opened for user root(uid=0) by rangke(uid=1000)
Mar 12 16:11:37 archlinux sudo[188049]: pam_unix(sudo:session): session closed for user root
Mar 12 16:20:55 archlinux sshd-session[188090]: Connection closed by 74.78.239.191 port 52890

I am not sure it it is recorded. And it happened around Mar 12 16:40 - Mar 12 16:44.

Offline

#7 2025-03-13 12:31:33

seth
Member
Registered: 2012-09-03
Posts: 61,711

Re: Random shutdown and reboot how to see logs?

Don't filter for errors.
If this is a regular (just undesired) shutdown, it won't show up as error and if it's a cold reboot, the reboot won't show up at all.

Ryzen?
https://wiki.archlinux.org/title/Ryzen#Random_reboots

Offline

Board footer

Powered by FluxBB