From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] journald refuses to put log files in /var/log/journal/
Date: Mon, 22 Sep 2014 22:50:46 -0500 [thread overview]
Message-ID: <CADPrc82-JKwy5ieSrdxa8+q=fQf9rvtauEOj2VoqMMTVEwkhhw@mail.gmail.com> (raw)
In-Reply-To: <lvqfk1$157$1@ger.gmane.org>
On Mon, Sep 22, 2014 at 7:41 PM, walt <w41ter@gmail.com> wrote:
> My main desktop machine is obviously having a brain fart :(
>
> systemd-journald is allegedly obligated to write its journal files
> to /var/log/journal/ *if* that directory exists, right?
>
> Well, on my three other gentoo ~amd64 machines, that's exactly what
> journald does.
>
> But not on my everyday work machine, oh no. I'd be daft to expect
> my one main everyday machine to obey the rules, right?
>
> On this machine (the one I'm using now) journald is writing its
> files to /run/log/journal/ instead of /var/log/journal/
>
> # ls -l /var/log/journal/
> total 4
> drwxr-sr-x 2 root systemd-journal-remote 4096 Sep 22 14:39 remote
>
> #ls -l /var/log/journal/remote/
> total 0
>
>
> The *.conf files in /etc/systemd/ are the same on all machines:
> all of the config items are commented out, as sys-apps/systemd
> installed them.
>
> So, why is this particular machine not behaving like the others?
Hi Walt; the relevant documentation is from man 8 systemd-journald:
"By default, the journal stores log data in /run/log/journal/. Since
/run/ is volatile, log data is lost at reboot. To make the data
persistent, it is sufficient to create /var/log/journal/ where
systemd-journald will then store the data."
So, in the failing machine the journal is not flushing its volatile
data to /var. I would suspect a permissions issue. Could you please
post the output from:
# ls -ld /var/log/journal
In my main machine, this is:
drwxr-sr-x 3 root systemd-journal 4096 Oct 28 2012 /var/log/journal
So its 2755; all permissions for root, read and execution (with SETGID
bit on), and read and execution for everyone else. The directory is
owned by root, and it's on the systemd-journal group.
Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México
next prev parent reply other threads:[~2014-09-23 3:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 0:41 [gentoo-user] journald refuses to put log files in /var/log/journal/ walt
2014-09-23 0:52 ` Rich Freeman
2014-09-23 3:50 ` Canek Peláez Valdés [this message]
2014-09-23 14:27 ` [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [SOLVED] walt
2014-09-23 14:46 ` Rich Freeman
2014-09-23 17:40 ` [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [NOT SOLVED] walt
2014-09-23 18:28 ` Mike Gilbert
2014-09-23 18:42 ` Rich Freeman
2014-09-23 21:55 ` [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [REALLY SOLVED] walt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADPrc82-JKwy5ieSrdxa8+q=fQf9rvtauEOj2VoqMMTVEwkhhw@mail.gmail.com' \
--to=caneko@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox