Watch
0
0
Fork
You've already forked hyperhive
0

hive-matrix: tuwunel's database open logs RocksDB's own messages

tuwunel hands RocksDB's log to its own logger at `rocksdb_log_level = "error"`,
so the recovery and flush lines of a database open never reached the journal:
a replay that has run for hours looked the same as a wedged open. The module
sets `rocksdb_log_level = "info"` and `rocksdb_log_stderr = true`, which writes
them to stderr, past tracing's filter.

The comment on the unit's start limit said the 30 minutes bound the open.
They don't: tuwunel sends `EXTEND_TIMEOUT_USEC` every 15 s whether or not the
open advanced, so only a stop ends a wedged one. The comment and the handbook
say so.

Refs #6885
Closes #6981
This commit is contained in:
maia 2026-11-28 17:08:09 +01:00
commit 93ccd11bf3

View file

@ -44,8 +44,12 @@ Same shape as [`gateway.md::hive-forge container shape`](../../4-implementation/
job would hold the container's start for as long as tuwunel's start takes.)
tuwunel's own start, which replays the database's
write-ahead log from the beginning at every open, has its own limit of 30
minutes, and extends it while it reports progress. While it starts, the
gateway answers for the homeserver with an error, and the swarm's matrix
minutes, but that limit doesn't bound the open: tuwunel asks systemd for 30
seconds more every 15 seconds while it opens the database, whether or not it
has advanced, so only a stop ends a wedged open. RocksDB's own log goes to the
journal at `info` (`rocksdb_log_level`, `rocksdb_log_stderr`), so a replay
(`Recovering log #…`) and the flushes after it show there. While it starts,
the gateway answers for the homeserver with an error, and the swarm's matrix
clients retry.
## Identity vs API listener: `serverName` vs `gatewayHost`