NLnetLabs / krill

RPKI Certificate Authority and Publication Server written in Rust
https://nlnetlabs.nl/projects/routing/krill/
Mozilla Public License 2.0
294 stars 41 forks source link

Krill should not freeze if lockfiles were not deleted properly. #1171

Closed timbru closed 9 months ago

timbru commented 10 months ago

The kvx library deletes lock files on Drop, but this may not work if the server crashes.

ximon18 commented 9 months ago

This issue affects Krill versions v0.14.0-v0.14.2.

This issue manifests itself as Krill running but not responding to HTTP requests or doing anything, as internally it is blocked while waiting to acquire a lock that it cannot acquire because the related lock file is unexpectedly present.

It could also occur later while Krill was running if the lock file that was left behind (when Krill was terminated without being able to clean up) did not need to be acquired until then.