[Bug 1256695] Re: cannot create log files in /var/log
Akshay Moghe
akshay.moghe at gmail.com
Wed Apr 30 07:32:33 UTC 2014
I'm running into this as well.
On:
---
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
Running:
-------
rsyslog 7.4.4-1ubuntu2
/var/log permissions are:
---------------------------
drwxrwxr-x 6 root root 4096 Apr 30 07:11 log
Running rsyslog in the foreground with debugging flags results in this
sequence of messages:
2009.061284547:7f7636f81780: cnf:global:cfsysline: $PrivDropToUser syslog
2009.061356413:7f7636f81780: uid 101 obtained for user 'syslog'
2009.061373099:7f7636f81780: cnf:global:cfsysline: $PrivDropToGroup syslog
2009.061464895:7f7636f81780: gid 103 obtained for group 'syslog'
...
2009.173401545:7f763387f700: file '/var/log/syslog' opened as #-1 with mode 416
2009.173429557:7f763387f700: strm 0x7f762c000b70: open error 13, file '/var/log/syslog': Permission denied
As mentioned in other comments, possible workarounds are:
0. Touch (and ensure syslog:adm perm) on the file before the daemon starts
1. Make /var/log permissions more permissive (allowing adm to write to it).
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rsyslog in Ubuntu.
https://bugs.launchpad.net/bugs/1256695
Title:
cannot create log files in /var/log
Status in “rsyslog” package in Ubuntu:
Fix Released
Status in “rsyslog” source package in Trusty:
Fix Released
Bug description:
With the latest rsyslog upgrade (to 7.4.4-1ubuntu1) in trusty the
desktop installer syslogs are no more copied to /var/log/installer/
The issue is visible from 20131129 , seen in both amd64 and i386
images and break smoke tests during VM provisioning.
Steps to reproduce:
1. Install a trusty desktop vm.
2. Once the installation is over, it could be noticed that the installer syslog is not copied to /var/log/installer/
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: rsyslog 7.4.4-1ubuntu1
ProcVersionSignature: Ubuntu 3.12.0-4.12-generic 3.12.1
Uname: Linux 3.12.0-4-generic x86_64
ApportVersion: 2.12.7-0ubuntu1
Architecture: amd64
Date: Sun Dec 1 19:42:13 2013
InstallationDate: Installed on 2013-12-01 (0 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20131201)
SourcePackage: rsyslog
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/1256695/+subscriptions
More information about the foundations-bugs
mailing list