Project

General

Profile

Actions

Bug #19216

open

we don't log to journald and that's confusing

Added by Peter Amstutz about 2 months ago. Updated 5 days ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

I have arvados-controller installed but failing to start.

If you check journalctl, there is no logs.

It turns out it logs to /var/log/syslog

But that's not very obvious. We should either log to both (although, I think one of the reasons it logs to syslog is that journalctl was getting overwhelmed by logging volume) or at least see if we can log a message to journalctl that tells you where to look.

Actions #1

Updated by Peter Amstutz about 2 months ago

  • Description updated (diff)
Actions #2

Updated by Peter Amstutz about 2 months ago

  • Subject changed from Controller not logging to journalctl? to we don't log to journalctl and that's confusing
Actions #3

Updated by Peter Amstutz about 2 months ago

  • Description updated (diff)
Actions #4

Updated by Peter Amstutz about 2 months ago

  • Subject changed from we don't log to journalctl and that's confusing to we don't log to journald and that's confusing
Actions #5

Updated by Peter Amstutz about 2 months ago

  • Target version changed from 2022-07-06 to 2022-07-20
Actions #6

Updated by Peter Amstutz about 1 month ago

  • Target version changed from 2022-07-20 to 2022-08-03 Sprint
Actions #7

Updated by Tom Clegg about 1 month ago

afaik packaged services do log to journald (except rails and nginx). 9tee4 has a /etc/systemd/system/arvados-controller.service.d/override.conf to bypass journald:

[Service]
Type=simple
ExecStart=
ExecStart=/bin/bash -ce "exec /usr/bin/arvados-controller 2>&1 | /usr/bin/rotatelogs -f /var/log/arvados/%%Y%%m%%d-arvados-controller 86400" 
Actions #8

Updated by Peter Amstutz about 1 month ago

Except that in practice they don't, at least on the nodes I was testing on, the only logs I could find were in syslog, not journald, unless I'm doing it wrong.

Actions #9

Updated by Peter Amstutz 28 days ago

  • Target version changed from 2022-08-03 Sprint to 2022-08-17 sprint
Actions #10

Updated by Peter Amstutz 15 days ago

  • Target version changed from 2022-08-17 sprint to 2022-08-31 sprint
Actions #11

Updated by Peter Amstutz 5 days ago

  • Target version deleted (2022-08-31 sprint)
Actions

Also available in: Atom PDF