Closed yswtrue closed 2 years ago
I had the same error but in another context.
Dendrite was running fine, then I stopped it, stopped the bridges and stopped postgres. Then I moved the postgresql data files to another disk, changed postgres config and restarted all services. After that I began to have the same errors as @yswtrue , but I could see that the db was fine, dendrite didn't complain for the db, and it did start. Reverting to using db in its first location did remove the errors.
This implies that rooms in the rooms table https://github.com/matrix-org/dendrite/blob/802f1c96f804f7a146e4e12e25b20c980a6af870/roomserver/storage/shared/storage.go#L1020 are not present in... the rooms table.
The error is coming from https://github.com/matrix-org/dendrite/blob/master/roomserver/storage/shared/storage.go#L846
The notable thing here is the presence of IsStub
- https://github.com/matrix-org/dendrite/blob/2c581377a5f6b243300445947fd0fd38a919873d/roomserver/storage/postgres/rooms_table.go#L155 - stub rooms can happen when you're invited to a room but not yet accepted it. We shouldn't be failing GetStateEvent
calls for that.
Background information
go version
: k8s v1.21.2-eks-06eac09 with containerd://1.4.6Description
I have deployed a dendrite and a Synapse server for federation comminute, when I restart dendrite room server, room server get this log.
Steps to reproduce
here is the logs, and room server not start to listen.