Bug 1262743

Summary: user systemd-journal-upload should be in systemd-journal group
Product: [Fedora] Fedora Reporter: Yu Watanabe <watanabe.yu+redhat.bugzilla>
Component: systemdAssignee: systemd-maint
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: johannbg, jsynacek, kxra, lnykryn, msekleta, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 222-4.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-23 04:08:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
patch for systemd.spec (rawhide) none

Description Yu Watanabe 2015-09-14 08:56:21 UTC
Description of problem:

As specified in systemd-journal-upload.service unit file, systemd-journal-upload command is run in user systemd-journal-upload. The default journal files can be read by users who belogs to wheel, adm, or systemd-journal. So, to success systemd-journal-upload.service unit, the user systemd-journal-upload should belong one of them. I think that the group systemd-journal is proper one, in this case.

Version-Release number of selected component (if applicable):

How reproducible:
Always by stepping as follows.

Steps to Reproduce:
1. Install systemd-journal-gateway. 
2. Specify the server in journal-upload.conf
3. systemd start systemd-journal-upload.service

Actual results:

The service fail due to the daemon cannot read the journal files.

Expected results:

The service can read journal files and update it to a remote server.

Additional info:

I confirm that the service can success after I run the following command:
usermod -a -G systemd-journal systemd-journal-upload

Comment 1 Yu Watanabe 2015-09-14 09:01:45 UTC
Created attachment 1073134 [details]
patch for systemd.spec (rawhide)

I expect the patch can be also applied for f21-23.

Comment 2 Fedora Update System 2015-09-18 14:46:14 UTC
systemd-222-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16165

Comment 3 Fedora Update System 2015-09-19 00:20:37 UTC
systemd-222-4.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update systemd'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16165

Comment 4 Yu Watanabe 2015-09-21 23:44:54 UTC
Thaks! I will test them.

Comment 5 Yu Watanabe 2015-09-22 00:15:26 UTC
I confirm the problem is fixed. Thank you.

Comment 6 Fedora Update System 2015-09-23 04:08:09 UTC
systemd-222-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.