2022 Developer Survey is open! Take survey.

Questions tagged [journalctl]

Questions about journalctl - the tool used to manage, query and view logs on systemd setups.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

How to daily journalctl the status of my systemd units?

Once a day I check my units by manually typing these steps: Search my units For each unit I query journalctl --user -u unitname -n How can I See all my user units status and error if failed? Not ...
user avatar
  • 249
3 votes
1 answer
184 views

journalctl output disable colorization

I have a dark background for my console so there's quite a bit of journalctl output that is unreadable. I see lots of information about how to add color! But how do I completely disable it?
user avatar
0 votes
1 answer
51 views

journald RuntimeMaxUse is ignored, quota tied to RuntimeMaxFileSize instead

Setup Using systemd 244 (244.5+) on kernel 4.19.62. I want to set the total journal storage size to 100MB. Journald is set to volatile storage, so logs end up on /run/log/journal/... and RuntimeMaxUse ...
user avatar
0 votes
1 answer
42 views

SystemD JournalD cannot disable child process output

I am running SystemD version 249.7+ on a custom embedded Linux device with Kernel 5.10.50. I am using Podman 4.0.2 with Docker-Compose to run a few containers. The problem I have is that the 'conmon' ...
user avatar
  • 153
0 votes
0 answers
14 views

systemd unit fails to start when running journalctl system commands

System: RHEL 8.4 systemd version 239 Problem: I need to redirect journalctl system output as a user. My user is a system user (uid < 1000), and must be a system user. I also must use systemd --...
user avatar
  • 285
1 vote
1 answer
80 views

journalctl --user -u myservice "No journal files were found", for a specific user

Problem: systemd user units journalctl output display "No journal files were found." This only happens for the one sss user I am testing with, all local users seem to work fine. EDIT: sss ...
user avatar
  • 285
1 vote
1 answer
54 views

systemctl / journal distinguish if service was restarted, not stopped and started

Is there a way to check if a service was restarted? When performing a systemctl restart myunit.service or systemctl --user restart myunit.service, the logs only show that my unit was stopped and then ...
user avatar
  • 285
0 votes
0 answers
14 views

linux joournalctl read specified input file and not the local syslog

I know this is a long shot. Im missing something from the man pages I can find. I've setup remote event /system logging to a log server (syslog-ng). That works fine. It has its own log dir and each ...
user avatar
0 votes
0 answers
42 views

How to replay journald logs in real-time

Is there a way to visualize logs from journald, but replayed in "real-time", i.e. delay every log entry to match the original delay between each?
user avatar
  • 177
0 votes
0 answers
15 views

journalctl -b 0 and dmesg give infromation for previous boot but not current

I'm debugging armbian launching on mini-PC. I rebooted it at "6:36:01" and it failed to load. So, I turned on-off power at "6:43" and it loaded. But when I look into dmesg or ...
user avatar
  • 3
1 vote
0 answers
62 views

systemd-journald[304]: Journal stopped

Whenever I try to shutdown my system, it just ends up stuck on a black screen with a blinking cursor in the top left. I'm running Ubuntu 20.04 LTS. I have done a fresh install of Ubuntu twice with no ...
user avatar
  • 11
1 vote
1 answer
38 views

Logs partly lost after crash

I am trying to fix an issue with PM (suspend) on my laptop, therefore I enabled some logging for my kernel (pm_debug_messages) to look at it afterwards using journalctl. The problem is: Whenever my ...
user avatar
  • 161
0 votes
0 answers
357 views

How can I find out which device or resource is busy?

I'm looking for advice troubleshooting an issue related to 'cgroups' on Ubuntu 18.04. An application (Mullvad) gives the following error in journalctl: [mullvad_daemon][ERROR] Error: Unable to ...
user avatar
0 votes
0 answers
128 views

systemd reports: "No PIDs left to attach to the scope's control group" when launching applications with Ulauncher after upgrading to Fedora 35

I upgraded from Fedora 34 to Fedora 35 two days ago. After upgrading, I noticed Ulauncher is unable to launch any applications. Starting Ulauncher with the options --dev -v, this is what it reports ...
user avatar
  • 10.3k
0 votes
1 answer
87 views

Armbian logs for previous boots

I'm using armbian and have a problem with freezes on boot. I wanted to look into logs to understand why, but occasionaly I have only one log with current session: journalctl --list-boots returns only ...
user avatar
  • 3
0 votes
0 answers
18 views

journalctl display template suffix

I have multiple Services running with a template service file like described her https://serverfault.com/a/730339/544615 When I execute journalctl -f I see only the process name and the PID but not ...
user avatar
0 votes
0 answers
619 views

How can I redirect journalctl output from a systemctl --user service to a file?

I need to redirect systemd output (Not the binaries stdout / stderr. I mean the actual systemd output send to journalctl) to a file for a specific user unit. I know the user can view journalctl with ...
user avatar
  • 285
0 votes
0 answers
56 views

Kubuntu 20.04 random freeze on Dell G15 with rtkit-daemon logs

Just installed kubuntu 20.04 on a Dell G15 notebook. Mouse and keyboard gets randomly completely unresponsive with a freezed screen after a few minute-hour of usage. After the freeze cooler spins up ...
user avatar
  • 1
3 votes
1 answer
5k views

Systemd Service Failing with exit-code status=203/EXEC

I am trying to create a service to run on boot. The service is a program I wrote in C++ and compiled and is located in my users home directory. The program opens some UDP sockets and sits in an ...
user avatar
0 votes
0 answers
63 views

What is this repeated yellow error showing up in my journalctl -xe?

When I do journalctl -xe, I see rows of this. Aug 04 13:21:03 Ulysses kernel: RTW: Turbo EDCA =0xa42b Aug 04 13:21:03 Ulysses kernel: RTW: rtw_set_ps_mode(wlxb44bd626de5f) Leave 802.11 power save - ...
user avatar
  • 11
1 vote
1 answer
156 views

How is journalctl able to add the line with the "-- Reboot --" log message?

I've noticed, on machines where the journalctl logs are saved on disk, that on a reboot, I get a line between the message before and after the reboot happened like so: blah blah blah -- Reboot -- blah ...
user avatar
  • 2,305
1 vote
1 answer
65 views

Can I migrate ubuntu journald logs?

I have an app registered as a service in Ubuntu 16.04 If I type: journalctl -u myapp.service I can see the logs for my app. I am moving my app to a new VM where the same service will be in place. Is ...
user avatar
  • 113
7 votes
1 answer
10k views

How do you go to the end of the file in journalctl?

If I type sudo journalctl I get the system journal in some kind of a reader. Pressing j and k works like in Vi but G does not go to the end of the file. In fact, if press G, the stream freezes and I ...
user avatar
  • 5,331
0 votes
0 answers
43 views

How can I change format of journald log lines?

When I call journalctl -u myservice, per each line of output I get duplicate lines, which are not interesting for me, how can I remove them? Can I do this permanently in some config file?
user avatar
  • 1,161
0 votes
0 answers
230 views

Why does my bluetooth disconnect after ~3 mins?

This wasn't a problem until about a month ago. Now, whenever I connect to any bluetooth speaker, it'll disconnect after about 3 mins, usually when idle, but sometimes not. Here's the output of ...
user avatar
1 vote
1 answer
352 views

Kernel error: systemd-backlight@backlight:acpi_video0.service

I am always getting this error at boot. Is there anything major, and if it is, how could be fixed? I get that it has something to do with my AMD GPU. Here is the setup I have: Cpu: AMD A9-9420 RADEON ...
user avatar
  • 289
2 votes
1 answer
62 views

journal files quite big, hidden content?

I'm running Ubuntu 20.04 on a server. Currently my /var/log/journal folder grows rapidly (about 1Gb in a week) and I don't understand why. If I check the logs with journalctl I cannot see any major ...
user avatar
0 votes
1 answer
46 views

How to find the uptime of the listed boots?

The sudo journalctl -k -b < hash> lists the logs of the specific boot session. Is there a way to find the uptime of that session?. I want to find the uptime of a reboot session due to power ...
user avatar
1 vote
2 answers
699 views

tracker-extract repeatedly core dumping and crashing

I was doing the recommended maintenance work as advised here. I ran the command sudo journalctl -p 3 -xb, I see that tracker-extract is repeatedly crashing and dumping core. I am not sure what to do. ...
user avatar
0 votes
1 answer
454 views

error bootmessages. PAM unable to load. PAM adding faulty module

So when booting my Mint 20.1 I always see a short error. With journalctl -bI can see the following suspecious logs Feb 16 15:28:43 username-home kernel: ACPI Error: Needed type [Reference], found [...
user avatar
2 votes
1 answer
53 views

What will a boot look like in the systemd journal (journalctl)?

What should I look for in the systemd journal to find when the latest boot happened?
user avatar
2 votes
0 answers
89 views

Can you set a capture filter on journald?

I have a service that runs in the background. It's controlled by systemd. Any output is captured by journald. Most of the time, it has very little output. Sometimes though, it runs into a particular ...
user avatar
  • 193
0 votes
1 answer
549 views

How to read these journal entries after failed boot?

My system failed to boot several times today. After completely disconnecting it from power, I managed to get it back on, luckily, but I'd like to comprehend what has happened. From a user's point of ...
user avatar
  • 192
0 votes
2 answers
815 views

Suspend laptop when closing lid

My laptop does not suspend when I close the lid. I have the default settings in /etc/systemd/logind.conf, i.e. everything is commented out (uncommenting does not have an effect, as expected): $ grep -...
user avatar
  • 5,122
10 votes
2 answers
4k views

Arch linux randomly freezes after updating to kernel 5.10

last three days I am experiencing random freezes. If i am looking on youtube when this happens Audio keeps playing but screen is froze and keyboard or cursor do not do anything. I trying to look in ...
user avatar
5 votes
0 answers
603 views

rtkit: list threads it is "supervising"?

rtkit obviously knows which threads it is "supervising", since it spams syslog with messages like rtkit-daemon[1277]: Supervising 3 threads of 2 processes of 1 users. However, the nefarious ...
user avatar
  • 413
0 votes
0 answers
156 views

Systemd service not restarting on error despite restart=always

After noticing the error using journalctl -u raspotify --since=yesterday | grep ERROR Dec 26 22:50:11 raspberrypi librespot[3024]: [2020-12-26T21:50:11Z ERROR librespot] Could not connect to server: ...
user avatar
  • 249
0 votes
1 answer
375 views

journalctl log way too big?

I was perplexed to find that, when running for instance journalctl -f showed my logs to stop on Apr 20th, 8 months ago. I piped to less, journalctl | less and pressed G to go to the end, same thing. ...
user avatar
  • 90
1 vote
1 answer
2k views

How to detect and clean up junk journal files?

One of our Ubuntu 18.04 hosts was caught with 12 GB of *.journal files, far more than intended. Attempting to find out if they were worth keeping, I ran journalctl --file $f on each file older than ...
user avatar
1 vote
1 answer
98 views

journalctl - clear low priority messages

Is there a way to clear systemd/journal messages manually only keeping high priority messages? I have a system with very limited storage and would like to keep the journal compact while still keeping ...
user avatar
  • 13
0 votes
2 answers
121 views

Is there a way to log program specific behavior?

Edited: Since the initial question was too general I will focus on only one program. I am running the command libinput-gestures-setup start, which comes bundled with libinput-gestures and it seems to ...
user avatar
0 votes
1 answer
1k views

How to make journalctl show the apache2 error.log?

Specific: I know I can use cat /var/log/apache2/error.log, but journalctl is now the "official" log viewer, so it has to show all logs. I hate using 2 tools for a task that one tool should ...
user avatar
0 votes
2 answers
329 views

journalctl search case insensitive

When I search in journalctl with / the search is case sensitive unless I switch to case insensitive with -i first. How can I configure journalctl so that searches are case insensitive by default?
user avatar
  • 4,841
1 vote
0 answers
958 views

How to analyze system errors when journalctl fails?

One of my KVM servers (2 Xeon E5-2680 v2, 1 AMD Vega 10 GPU, Ubuntu 20.04.1 LTS) became unresponsive last night. Of the 5 VMs running on the server, only one could be reached. The server itself ...
user avatar
  • 1,822
3 votes
2 answers
737 views

'tail -F *.log' but with systemd

With normal syslog I can go to /var/log and run tail -F *log if I am not sure which log something is logged in. Is there an equivalent for systemd? Background I am trying to debug a server. It crashes ...
user avatar
  • 29.7k
0 votes
1 answer
149 views

journalctl fails when run

> journalctl -b: -c: line 0: unexpected EOF while looking for matching `"' -b: -c: line 1: syntax error: unexpected end of file > systemctl status docker.service -b: -c: line 0: unexpected ...
user avatar
  • 101
0 votes
1 answer
364 views

journalctl: what does "New USB device found" mean?

Aug 17 02:16:44 <hostname> kernel: usb 1-2: new high-speed USB device number 13 using xhci_hcd Aug 17 02:16:45 <hostname> kernel: usb 1-2: New USB device found, idVendor=05c6, idProduct=...
user avatar
2 votes
0 answers
92 views

Why does journalctl --user asks for password and says “— no entries --”?

I'm trying to find why one of my Systemd user units is failing. This unit is stored in /etc/systemd/user (I know I can also put it in .config/systemd/user) and fails to start. I tried to run ...
user avatar
  • 227
2 votes
0 answers
302 views

SystemD-JournalD Loses Track of Previous Boot Persistent Log Data

I am running SystemD JournalD version 244.3 on a custom Embedded Linux board. root@board:/var/log/journal# journalctl --version systemd 244 (244.3+) -PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +...
user avatar
  • 153
5 votes
4 answers
2k views

systemd-journald persistent logs do not work with bind mount /var/log

I am using Yocto to produce a custom image for a small embedded Linux system with SystemD Version 241. The root file system is Read-Only. I am using bind mounts and overlayfs to make the /var/log/...
user avatar
  • 153