You are not logged in.

#1 2015-03-15 05:22:40

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,229
Website

[SOLVED] journald ignoring local config file

I have SystemMaxUse set in a local configuration file:

# cat /etc/systemd/journald.conf.d/local.conf 
SystemMaxUse=32M
SystemMaxFileSize=4M
MaxRetentionSec=4week

But the journald status says that max allowed is 1.5G, which is significantly more than 32M sad

# systemctl status systemd-journald
● systemd-journald.service - Journal Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static; vendor preset: disabled)
   Active: active (running) since Sun 2015-03-15 16:18:27 AEDT; 1min 19s ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
 Main PID: 17292 (systemd-journal)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-journald.service
           └─17292 /usr/lib/systemd/systemd-journald

Mar 15 16:18:27 apoc.localdomain systemd-journal[17292]: Permanent journal is using 1.1G (max allowed 1.5G, trying to leave 2.3G free of 7.8G available → current limit 1.5G).
Mar 15 16:18:27 apoc.localdomain systemd-journal[17292]: Journal started

And my journal files are getting huge -- mainly an issue because it also makes journalctl slooowwww:

# journalctl --disk-usage
Archived and active journals take up 1.1G on disk.

What am I missing here?

EDIT: putting the config directly in /etc/systemd/journald.conf and restarting journal works perfectly, so it just seems the include directory is being ignored?

Last edited by fukawi2 (2015-03-15 22:02:56)

Offline

#2 2015-03-15 11:51:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] journald ignoring local config file

I'm using /etc/systemd/journald.conf and it works.
I don't have /etc/systemd/journald.conf.d/ .

Offline

#3 2015-03-15 13:22:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] journald ignoring local config file

journald.conf(5) wrote:

All options are configured in the "[Journal]" section

so your conf.d snippet needs [Journal] at the top too.

Offline

#4 2015-03-15 17:09:41

snakeroot
Member
Registered: 2012-10-06
Posts: 168

Re: [SOLVED] journald ignoring local config file

I have been able to reproduce this (annoying) problem and have submitted a bug report to they systemd bugzilla:

https://bugs.freedesktop.org/show_bug.cgi?id=89581

Regards,

Offline

#5 2015-03-15 22:02:32

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,229
Website

Re: [SOLVED] journald ignoring local config file

tomk wrote:

so your conf.d snippet needs [Journal] at the top too.

Well that's frustrating -- thanks, all good now smile

Offline

#6 2015-03-15 22:06:22

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,229
Website

Re: [SOLVED] journald ignoring local config file

Thanks, I can confirm that adding the [Journald] "header" does make this work. (I don't have an account on their BT so can't comment)

Offline

#7 2015-03-16 01:18:13

snakeroot
Member
Registered: 2012-10-06
Posts: 168

Re: [SOLVED] journald ignoring local config file

I asked that bug be closed.

Offline

Board footer

Powered by FluxBB