Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd-journald can not create new system journal #241

Closed
StefanWutz opened this issue Jun 22, 2021 · 1 comment
Closed

systemd-journald can not create new system journal #241

StefanWutz opened this issue Jun 22, 2021 · 1 comment

Comments

@StefanWutz
Copy link

StefanWutz commented Jun 22, 2021

I see this error message using dmesg command running on bionic 1.10:

[10161.668320] systemd-journald[353]: Failed to create new system journal: No such file or directory

Creating manually the directory /var/log/journal and restarting the systemd-journald by

sudo systemctl restart systemd-journald.service

works as expected and new journal directories will be created.

I would expect that the journal directory will also be created when setting up the log directory structure[1].

[1] https://github.com/cloudfoundry/bosh-agent/blob/master/platform/linux_platform.go#L972

@StefanWutz StefanWutz added this to To do in community-stemcell via automation Jun 22, 2021
@StefanWutz
Copy link
Author

Closing ticket. The current behavior is fine.

Systemd-journald storage mode is set to "auto" which means if the directory /var/log/journal does not exist it behave as volatile storage and stores messages in temporary directory /run/log/journal.

The behavior will change in Ubuntu Focal as storage is by default set to persistent by consuming newer versions of systemd (244.1-2). Adding the directory /var/log/journal by the bosh-agent has to be revised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant