nar-bridge doesn't close redb cleanly on shutdown
#425
Opened by mic92 at
After a reboot redb reports that the file backend wasn't shutdown cleanly:
Nov 18 20:25:37 tvix-cache systemd[1]: Stopping NAR Bridge... Nov 18 20:25:38 tvix-cache systemd[1]: nar-bridge.service: Deactivated successfully. Nov 18 20:25:38 tvix-cache systemd[1]: Stopped NAR Bridge. Nov 18 20:25:38 tvix-cache systemd[1]: nar-bridge.service: Consumed 51min 33.719s CPU time, 15.1G memory peak, 5.2G read from disk, 19.8G written to disk, 24.6G incoming IP traffic, 2.7G outgoing IP traffic. Nov 18 20:25:43 tvix-cache systemd[1]: Started NAR Bridge. Nov 18 20:25:43 tvix-cache nar-bridge[568816]: 2024-11-18T20:25:43.886383Z INFO redb::db: Opening database "FileBackend { file: File { fd: 10, path: \"/var/lib/nar-bridge/directories.redb\", read: true, write: true } }" Nov 18 20:25:43 tvix-cache nar-bridge[568816]: 2024-11-18T20:25:43.947161Z WARN redb::db: Database "FileBackend { file: File { fd: 10, path: \"/var/lib/nar-bridge/directories.redb\", read: true, write: true } }" not shutdown cleanly. Repairing ```
- mic92 updated the body of this issue at 2024-11-18T20·29+00