Questions tagged [systemd-journald]
For the logging service on systemd systems and the journalctl command used to view journald logs
82
questions
0
votes
0
answers
19
views
journalctl doesn't show logs of a snap
When I run a snap application in the terminal like this:
/usr/bin/snap run shadowsocks-rust.ssserver -c /etc/shadowsocks-rust/config.json
I see the logs:
2023-05-14T18:55:11.714373725+03:00 INFO ...
0
votes
1
answer
24
views
find (mmin) gives unexpected results
I originally wanted to find which files have been modified in the last week (before the unexpected results led me onto the quest I describe in this question), so I ran this following command (10080 ...
0
votes
1
answer
81
views
Setting the color for warnings from journalctl output
The journalctl command will color-code its messages. From its manual page:
When outputting to a tty, lines are colored according to priority: lines of level ERROR and higher are colored red; lines of ...
2
votes
1
answer
93
views
Telling journalctl to show all but a certain facility
I'm trying to get rid of dhcpd spam in my journal.
Using rsyslog.conf and dhcpd.conf I have been able to keep it out of /var/log/syslog and put it in /var/log/dhcpd.log which is great.
However, ...
7
votes
1
answer
353
views
journalctl -u sshd.service command returns 'no entries'
I am currently working on Ubuntu 20.04 machine. When I am running the command journalctl -u sshd.service, I am getting the below response.
-- Logs begin at Wed 2022-12-21 13:01:52 UTC, end at Fri 2023-...
1
vote
0
answers
538
views
Warning messages about gvc_mixer_card
My system logs in journalctl are filled with warning messages regarding the 'gvc_mixer_card'. From google, it seems this has something to do with volume control. I've included a sampling of the ...
0
votes
0
answers
216
views
How to route isc-dhcp-server logs to their own file
The logging in systemd's journal is getting spammed by logging from dhcpd.
I am running isc-dhcp-server and would like to prevent the log ending up in the journal, and instead go to its own file.
I ...
0
votes
0
answers
136
views
How do we do autorestart for a freezing python daemon?
I have a Python daemon running on my Ubuntu 20.04 server. The daemon performs as a telegram bot which sends requests to the telegram server every the other second in a loop.
My daemon configuration ...
1
vote
0
answers
42
views
limit log size for snap application (VLC)
vlc has a bug due to which it can generate gigabytes of logs in syslog and journalctl (12GB and 4GB). And because of the nature of journalctl, there is no way to clear the log of such garbage. But ...
0
votes
1
answer
31
views
Journal entries are filled with nemo: connect() failed [duplicate]
My journalctl entries are filled with nemo[50830]: connect() failed.
$ journalctl -r
Nov 09 16:38:45 iMac nemo[50830]: connect() failed
Nov 09 16:38:45 iMac nemo-desktop[2887]: connect() failed
Nov 09 ...
-1
votes
1
answer
318
views
On Ubuntu 18.04, how is `/var/log/journal` created?
On my Ubuntu 18.04, I see /var/log/journal is created but I can't figure out what created it in the first place. Could somebody help me? I'll provide more details below.
This is not an XY problem. I'm ...
0
votes
1
answer
220
views
mtd device must be supplied (device name is empty) on old xeon server, You are in emergency mode
I got an old server running windows server 2003 with a xeon x3380 and three 1tb disk drives. The drives have been replaced and the server was used until 2018. After receiving it I wanted to wipe it so ...
0
votes
2
answers
66
views
Emergency Boot Mode Error
I'm on Ubuntu 22.04.01 LTS.
There are similar questions, but the poster was already much further along before posting and I don't know how to get to their initial step.
What's happening?
When I turn ...
2
votes
3
answers
330
views
How to disable journald for vlc player
My system is constantly crashing because of systemd-journald going into overdrive and bogging down the CPU (and probably the disk as well) when I watch videos with VLC. I notice this behavior getting ...
2
votes
1
answer
644
views
How to find out which "unit" is logging to journalctl
I am working with usbmount and have finally got it working. One of the reasons it took me so long to get it working is that I thought the newest version of it (built from source) was not correctly ...
0
votes
1
answer
4k
views
How to disable logging to /var/log/syslog and use only systemd logs
My last question What are the options to manage the size of /var/log/syslog of an embedded system was not answered so I am asking this question to see if it is possible to stop using /var/log/syslog ...
1
vote
0
answers
333
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 ...
1
vote
1
answer
862
views
Big /var/log/journal
I have a problem with my ubuntu 20.04 My /vat/log/journal grows to 195G. When I execute the command $tail -f /var/log/syslog I see a log repeated and I think this is my problem.
Sep 20 19:45:11 ...
1
vote
0
answers
2k
views
Why does journald use so much space to store so little data, and how can I reduce or compress the journal logs?
I use journald with memory only logging limited to 55MB. But somehow this equates to less than a days worth of logging.
Config:
$ grep -v '^#' /etc/systemd/journald.conf
[Journal]
Storage=volatile
...
1
vote
0
answers
573
views
Ubuntu 20.04 screen keeps on refreshing automatically
I am using Ubuntu 20.04 and suddenly the whole screen turns purple, the same color on the login screen for 2 seconds, and refreshes automatically. There is no effect on the running tasks but it occurs ...
1
vote
1
answer
13k
views
Failed to start Journal Service (ubuntu doesn't start)
I have Ubuntu 20.04. I decided to enable SELinux. I done only 3 strings successfully and reboot my pc:
1. sudo apt install policycoreutils selinux-utils selinux-basics
2. sudo selinux-activate
3. sudo ...
1
vote
0
answers
2k
views
ext4magic does not recognize directory
Situation
I deleted a great number of files with Ranger and now I am trying to use ext4magic to recover them. I am on Ubuntu 20.04, and I am not a power user. :)
I have a single drive with two ...
2
votes
2
answers
2k
views
Watchdog: BUG: soft lockup - on Ryzen 9 3950X CPU
We recently built a machine equipped with:
Specifications
CPU
AMD Ryzen 9 3950X
RAM
128GB DDR4 3000MHz
SSD
1TB + 2xHHD 6TB
GPU
NVIDIA GEFORCE RTX 3090 24GB
OS
Ubuntu 20.04 LTS
PSU
850W ...
0
votes
0
answers
76
views
My ubuntu keeps crashing and its really annoying
I installed ubuntu on an external samsung SSD t5 such that when i plug in the ssd my laptop boots from ubuntu and otherwise boots windows.
However when I am working on ubuntu it regularly will crash ...
1
vote
0
answers
251
views
/var/log/journal created automatically when using systemd?
Is /var/log/journal created automatically if you are using systemd services? After reading the man page on journal, I noticed that you need to specifically enable persistent storage by editing the ....
0
votes
1
answer
210
views
Ubuntu 18.04 fails to boot every 15 to 20 boots
I have a Dell Edge 5000 gateway that has Ubuntu 18.04 installed on it. It runs fine, but it fails to boot every 15 to 20 boots. There are several error messages that are displayed that all seem ...
1
vote
2
answers
2k
views
Where is the XServer log file located in 18.04 and later
I know the answer to this question, I've been looking there for years and its here too: Where is Xserver log file located?
Only it isn't - it's December 2020 and I'm logged into the desktop, but there ...
3
votes
0
answers
302
views
How to understand what's happening when seeing this: jbd2/nvme0n1p2- in iotop?
I'm running this:
iotop -ao
and see this at the top of the list, with excessive writes:
855 be/3 root 0.00 B 101.82 M 0.00 % 1.65 % [jbd2/nvme1n1p1-]
611 be/3 root 0.00 B ...
0
votes
0
answers
403
views
How to fix periodic filling of /var/log folder?
It's for second time this month that /var/log has two files kernlog and syslog each 12GB. It is caused by journald's over 100% CPU. I have deleted these files manually again, and set journalctl vaccum ...
2
votes
0
answers
291
views
journalctl missing cron entries that show up in syslog
I have cron set up to log start (CMD) and end (END) of all cron jobs along with the process number (setting up cron to use -L 11 option). All entries are showing up in /var/log/syslog, such as:
Aug 26 ...
3
votes
0
answers
1k
views
Ubuntu 18.04 crashes with EXT4-fs error and systemd-journald
Oct 22 Update:
I changed my SSD two weeks ago from LITEON CV3-8D256 to Samsung 970 Evo Plus, and the problem described below hasn't happened since then. I suspect the problem was due to the ...
5
votes
1
answer
2k
views
journal compression not working
It seems the journal files in my Ubuntu 18 LTS server are not compressed despite compression is enabled by default (I did not change it in /etc/systemd/journald.conf) and journalctl claims to see ...
0
votes
1
answer
2k
views
journalctl chops lines longer then screen
How to disable the chopping of long lines when invoking
journalctl -b
in order to see the whole journal message ?
E.g. the line get truncated:
Jul 09 20:47:57 myubuntu org.kde.kglobalaccel[1452]: ...
2
votes
1
answer
2k
views
Why does the output of journalctl sometimes include 'skipping...'
For example :
journalctl -r
-- Logs begin at Thu 2020-04-23 18:53:52 PDT, end at Thu 2020-07-02 10:40:23 PDT. --
lines removed by me for this post
Jul 01 16:15:55 asus at-spi-bus-launcher[2801]: ...
0
votes
1
answer
61
views
3 processes start taking up all the CPU, computer overheats. How do I shut them off?
I have an old computer with Ubuntu 16.
When I'm working on it, I'm not signed in as Admin. A few days ago I did an update and since then, it's happened twice that after several hours of working, I ...
0
votes
1
answer
1k
views
Systemd Journald accessing wrong location - fails to open /run/log/journal file
I was playing with BPF tools today (from Brendan Gregg's BPF Book) and ran the command sudo opensnoop-bpfcc -x -U and noticed many traces like this:
0 403 systemd-journal -1 2 /run/log/...
2
votes
0
answers
133
views
Ubuntu 18.04 taking atleast 4 min to boot up and show blank screen while boot up
I tried to look at critical chain and I managed to fix some but couldn't find more on this. I also tried to remove snap packages and their dependencies. Earlier systemd-journal-flush was also making ...
257
votes
4
answers
146k
views
Big /var/log/journal?
I don't understand why the /var/log/journal/ folder is so big.
For example, by executing the command systemctl -f, i see the fill.
If I click on an email on Thunderbird, it generates dozens of lines ...
3
votes
2
answers
1k
views
Journalctl filling up with Gnome shell errors
As of early this morning, the journalctl log is filling up with literally millions of errors, each of the form:
mei 07 08:04:47 Ophelia gnome-shell[2197]: JS ERROR: TypeError: null has no properties
...
0
votes
1
answer
1k
views
Xubuntu 20.04, systemd-journald high CPU usage
I'm not sure if this is the same issue as here systemd-journald high CPU usage
because I was using Ubuntu 18.04 for these 2 years and everything was fine.
Yesterday, I've installed Xubuntu 20.04 (...
0
votes
2
answers
2k
views
journalctl is full of "audit" messages but there is no auditd
I have several 18.04 servers which began life as 14.04 machines. Most (not all interestingly) have their journalctl logs full of "audit" messages. auditd is not installed. There is a libaudit1 and a ...
0
votes
1
answer
2k
views
18.04 low disk space - using 640GB and more in /var/log/syslog.1 [duplicate]
I've noticed several posts about this same topic, but found no reasonable solution. This post suggests deleting the files, but I want to avoid that since I'm using apache and that same post says that ...
4
votes
1
answer
2k
views
journalctl giving "unsupported feature" error
A simple journalctl command is now giving me this error
Journal file /var/log/journal/ad9213e031ec2a16399a42515988884e/user-1001@ae426ac82df44a8489f745ad63e8c9ea-000000000000215f-0005848bb1ab0334....
0
votes
2
answers
4k
views
Ubuntu freezes and shows errors
My ubuntu freezes and then shows a black screen with looping error texts:
systemd-journald: failed to write entry, ignoring: read-only file system
ext4-fs error device nvme0n1p2 ext4_find_entry:1454:...
2
votes
0
answers
63
views
Pop up bubble messages for boot related issues
I was looking at one of my apps today and wondered if it actually worked to get today's sunrise and sunset times. Conky displays them as 8:46am and 4:36pm respectively but they could be yesterday's ...
5
votes
1
answer
5k
views
Avoid systemd unit (service) to be logged in journal
To produce metrics on some disks I have setup a systemd.timer + systemd.service
That timer spins up every 10 seconds, and I would like to avoid my journal be spammed every time this small script get ...
10
votes
1
answer
6k
views
Where do log messages go with journald and rsyslog
On Ubuntu 18.04 both journald and rsyslog are installed. Both serve the same purpose of collecting log messages and storing them. So we have two programs doing the same work here.
What I could find ...
1
vote
1
answer
65
views
Howto avoid journald entry for one program?
On my Ubuntu-MATE Clevo laptop there is the program N151ZU-fan-controller that logging a message 2 times by second.
I filtered it in rsyslog configuration in /etc/rsyslog.d/10-N151ZU-fan-controller....
1
vote
1
answer
600
views
How to stop follow command on journalctl log file without ctrl+c and save the output to a file
I am running the following command and saving the output to a file:
sudo journalctl -u iotedge -f >> sub.txt
the problem is ,i have to stop the operation of the command with ctrl+c otherwise ...
2
votes
2
answers
913
views
journalctl json output breaking python's json parser
ubuntu 19.04
python 3.7
Create a json file:
journalctl -ojson -r > a.json
Now read it in :
with open('a.json') as infile :
data = json.load(infile)
Traceback (most recent call last):
File ...