# systemctl status systemd-journal-remote
● systemd-journal-remote.service - Journal Remote Sink Service
Loaded: loaded (/usr/lib64/systemd/system/systemd-journal-remote.service; indirect; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2016-01-24 21:03:24 UTC; 32s ago
Process: 15760 ExecStart=/usr/lib/systemd/systemd-journal-remote --listen-https=-3 --output=/var/log/journal/remote/ (code=exited, status=1/FAILURE)
Main PID: 15760 (code=exited, status=1/FAILURE)
Jan 24 21:03:24 srv-03 systemd[1]: Started Journal Remote Sink Service.
Jan 24 21:03:24 srv-03 systemd-journal-remote[15760]: Failed to start µhttp daemon
Jan 24 21:03:24 srv-03 systemd-journal-remote[15760]: Failed to register socket (fd:3): Invalid argument
The socket seems to be okay from what I can gather:
# systemctl status systemd-journal-remote.socket
● systemd-journal-remote.socket - Journal Remote Sink Socket
Loaded: loaded (/usr/lib64/systemd/system/systemd-journal-remote.socket; enabled; vendor preset: disabled)
Active: active (listening) since Sun 2016-01-24 21:02:52 UTC; 58s ago
Listen: [::]:19532 (Stream)
Jan 24 21:02:52 srv-03 systemd[1]: Listening on Journal Remote Sink Socket.
Similar error when I try the command line:
# /usr/lib/systemd/systemd-journal-remote --listen-https=19532 --output=/var/log/journal/remote/ --cert=/etc/ssl/private/journal-remote.pem
Failed to start µhttp daemon
In addition, if I reboot the computer, it loses the permissions on /etc/ssl/private folder, so the service then fails with permission denied:
# ls -la /etc/ssl/private
drwx-----x 2 root root 4096 Jan 24 20:14 .
drwxr-xr-x 6 root root 4096 Jan 24 20:11 ..
-rw-r--r-- 1 root root 798 Jan 24 20:14 journal-remote.pem
# reboot now
...
# ls -la /etc/ssl/private/
drwx------ 2 root root 4096 Jan 24 20:14 .
This leads to the service failing to start with a permission denied error:
● systemd-journal-remote.service - Journal Remote Sink Service
Loaded: loaded (/usr/lib64/systemd/system/systemd-journal-remote.service; indirect; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2016-01-24 21:26:22 UTC; 2s ago
Process: 1008 ExecStart=/usr/lib/systemd/systemd-journal-remote --listen-https=-3 --output=/var/log/journal/remote/ (code=exited, status=1/FAILURE)
Main PID: 1008 (code=exited, status=1/FAILURE)
Jan 24 21:26:22 srv-03 systemd[1]: Started Journal Remote Sink Service.
Jan 24 21:26:22 srv-03 systemd-journal-remote[1008]: Failed to read key from file '/etc/ssl/private/journal-remote.pem': Permission denied
I've googled a bit, and there are a few confusing discussions on the bug tracker; it is unclear to me from the conversations there whether this has all been resolved and tested or not.
Has anyone gotten this service working on CoreOS?
Thanks,
Jonathan