openbmc / phosphor-rest-server

REST server that transposes dbus interfaces to REST
Apache License 2.0
4 stars 11 forks source link

Resetting of journal causes phosphor-gevent to stop working #26

Open geissonator opened 5 years ago

geissonator commented 5 years ago

Our automation does this to hard reset the journal at the end of a run:

systemctl stop systemd-journald.service && rm -rf /var/log/journal && systemctl start systemd-journald.service

When this is run, phosphor-gevent stops responding to REST queries. My guess is some race condition with the new code that logs REST calls to the journal.

A workaround is to just run "systemctl restart phosphor-gevent"