From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D7A6813838B for ; Tue, 23 Sep 2014 14:27:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 405CCE09DA; Tue, 23 Sep 2014 14:27:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 26390E09B9 for ; Tue, 23 Sep 2014 14:27:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 0AF2633FF5E for ; Tue, 23 Sep 2014 14:27:36 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.617 X-Spam-Level: X-Spam-Status: No, score=-1.617 tagged_above=-999 required=5.5 tests=[AWL=-1.414, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.703, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no Received: from smtp.gentoo.org ([IPv6:::ffff:127.0.0.1]) by localhost (smtp.gentoo.org [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kh0_Y7MPi-yk for ; Tue, 23 Sep 2014 14:27:29 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9756D33FCF3 for ; Tue, 23 Sep 2014 14:27:29 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XWR3t-0002eo-KO for gentoo-user@gentoo.org; Tue, 23 Sep 2014 16:27:25 +0200 Received: from adsl-69-234-180-5.dsl.irvnca.pacbell.net ([69.234.180.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2014 16:27:25 +0200 Received: from w41ter by adsl-69-234-180-5.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2014 16:27:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: walt Subject: [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [SOLVED] Date: Tue, 23 Sep 2014 07:27:06 -0700 Message-ID: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-180-5.dsl.irvnca.pacbell.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: X-Archives-Salt: 3f5fc5ac-6e70-4b88-b057-e3b901885dc6 X-Archives-Hash: 876bdb0db53447c9765d91ae13bc9800 On 09/22/2014 08:50 PM, Canek Peláez Valdés wrote: > On Mon, Sep 22, 2014 at 7:41 PM, walt 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. Thanks, Rich and Canek. I fixed the problem by accident while trying to debug it. I used systemctl to stop and restart systemd-journald, thinking I might see some useful error messages. But when systemd-journal started up again the journal file was back in /var/log/journal where I want it :) No idea why rebooting the machine didn't do the same thing. Thanks.