From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-158884-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 2164013838B
	for <garchives@archives.gentoo.org>; Tue, 23 Sep 2014 03:51:16 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id AFE73E09A8;
	Tue, 23 Sep 2014 03:51:10 +0000 (UTC)
Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9FD96E0967
	for <gentoo-user@lists.gentoo.org>; Tue, 23 Sep 2014 03:51:09 +0000 (UTC)
Received: by mail-ig0-f173.google.com with SMTP id l13so3942366iga.0
        for <gentoo-user@lists.gentoo.org>; Mon, 22 Sep 2014 20:51:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type:content-transfer-encoding;
        bh=tj+x+0X8G2rNNW7nCRsW1JEZiSRQKoRQ660gGpVb+Rw=;
        b=W9f/GiEtlbxvVBqmkJBSdbi+Lq6e115fyrWtiLd/FHsNU/vj20V1KmYnWZF1f0UVVj
         6a20TAUSqdiqC/QPxqlL22yhHSlucR77eXjpLDScWHbRr698aEPJQQJirYKvc1Y96Is3
         w0ATqomekSVnBs0GqBEisrguYi2wS57XKhHFXyMMAvYHrLrrzkpt9Un+rD5WONE7RXKH
         5Fy2KhPx8jaDBNRCYdtggqt35LdITi2mCmzImE8E7MmPUb22XpRSkvKZm1EK+O0Kpfa8
         6pz1XWGasxImDD3VtqaaJ4ofSG6oyBE/DCFvcZlc2xLreLfS+dBY5xRK6V9xmyNeDP0q
         gp+g==
X-Received: by 10.50.79.232 with SMTP id m8mr3952896igx.0.1411444266722; Mon,
 22 Sep 2014 20:51:06 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.107.11.141 with HTTP; Mon, 22 Sep 2014 20:50:46 -0700 (PDT)
In-Reply-To: <lvqfk1$157$1@ger.gmane.org>
References: <lvqfk1$157$1@ger.gmane.org>
From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= <caneko@gmail.com>
Date: Mon, 22 Sep 2014 22:50:46 -0500
Message-ID: <CADPrc82-JKwy5ieSrdxa8+q=fQf9rvtauEOj2VoqMMTVEwkhhw@mail.gmail.com>
Subject: Re: [gentoo-user] journald refuses to put log files in /var/log/journal/
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 5bf13b13-147d-4f76-a866-59200a9222e0
X-Archives-Hash: 55af006ebb7f6110c3ffd9d07698cd03

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.
--=20
Canek Pel=C3=A1ez Vald=C3=A9s
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Aut=C3=B3noma de M=C3=A9xico