Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#44702 - [systemd] file permission changes needed for systemd-journal-upload

Attached to Project: Arch Linux
Opened by kdjy67s (dontdieych) - Thursday, 23 April 2015, 15:31 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 12 June 2016, 19:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Thomas Bächler (brain0)
Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

systemd-jounald-upload needs file permissions for,

- write permission for /var/lib/systemd/journal-upload. Default '--save-state' option needs this.
- read permission for /var/log/journal/.../system.journal .

Additional info:
* package version(s)
- core/systemd 219-5
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 12 June 2016, 19:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  Somewhere between 219 and 230
Comment by kdjy67s (dontdieych) - Sunday, 26 April 2015, 12:26 GMT
One more thing,

2755 root:systemd-journal-remote /var/log/journal/remote/

systemd-journal-remote service needs write permission to that directory. So I changed to 2775, but still said not enough permission.

Apr 26 02:42:04 msi-cr630 systemd-journal-remote[32765]: Failed to open output journal /var/log/journal/remote//remote-::ffff:10.8.0.2.j
Apr 26 02:42:04 msi-cr630 systemd-journal-remote[32765]: Failed to get writer for source ::ffff:10.8.0.2: Permission denied
Apr 26 02:45:20 msi-cr630 systemd-journal-remote[32765]: Failed to open output journal /var/log/journal/remote//remote-::ffff:10.8.0.2.j
Apr 26 02:45:20 msi-cr630 systemd-journal-remote[32765]: Failed to get writer for source ::ffff:10.8.0.2: Permission denied

I did chown to systemd-journal-remote then it worked.
Comment by Dave Reisner (falconindy) - Sunday, 12 June 2016, 19:12 GMT
Seems like this is fixed... journal-upload is owned by the systemd-journal-upload user, and /var/log/systemd/remote is owned by systemd-journal-remote.

Loading...