#6064 (Jane doesn't send any emails)
by Luc Saffre · in Hosting (system administration) · assigned to Luc Saffre
Résumé
Concepts sous-jacents
Commentaires
- 1 année, 5 mois ago by Luc Saffre about #6064 (Jane doesn't send any emails) : When the task runner raises an exception, we do not want linod to continue running. A related question is: shouldn't we use the trstringer.com/systemd-logging-in-python/ ">systemd log server or syslog instead of running our own log server?
- 1 année, 5 mois ago by Luc Saffre about #6064 (Jane doesn't send any emails) : Oops I forgot to restart supervisord on SR, which caused a dozen error messages.
- 1 année, 5 mois ago by Luc Saffre about #6064 (Jane doesn't send any emails) : I don't understand well enough what happens in lino/modlib/linod/management/commands/linod.py
- 1 année, 5 mois ago by Luc Saffre about #6064 (Jane doesn't send any emails) : Aha, it's not the supervisor config. The problem is that when I manually run "pm linod", it logs the traceback but then continues to run. The linod process should exit when a consumer raises an exception.
- 1 année, 5 mois ago by Luc Saffre about #6064 (Jane doesn't send any emails) (1 reply) : The supervisor configs contain a line "redirect_stderr = true" for every program, and I have a feeling that this might be the reason for our problem. I'll remove them on froinde (where we have the same problem) to see what happens.
- 1 année, 6 mois ago by Luc Saffre about #6064 (Jane doesn't send any emails) : So the solution was easy: I created a user "daemon" and set linod.daemon_user to "daemon". But the underlying problem is: why did we not get notified about this? The Jane daemon hasn't been doing its work for more than a week, and nobody noticed.
- 1 année, 6 mois ago by Luc Saffre about #6064 (Jane doesn't send any emails) : It's because of line 23 in lino/modlib/linod/__init__.py, which reads:
daemon_user = "robin" # TODO: find a better solution
The following traceback is in /var/log/supervisor/jane_linod-stdout---supervisor-dmr9ds7q.log:
Started manage.py linod --force (using lino_local.jane.settings) --> PID 407... - 1 année, 6 mois ago by Luc Saffre about #6064 (Jane doesn't send any emails) : Created new Ticket #6064 (Jane doesn't send any emails).