matrix-org / rust-synapse-compress-state

A tool to compress some state in a Synapse instance's database
https://pypi.org/project/synapse-auto-compressor/
Apache License 2.0
142 stars 32 forks source link

How to fix synapse_auto_compressor panic? #87

Closed mytbk closed 2 years ago

mytbk commented 2 years ago

I got the following panic when trying to run synapse_auto_compressor. I once had a full disk that make postgresql crashes, so maybe the data is in an inconsistent state. How can I fix this?

[2022-03-20T13:27:07Z INFO  synapse_auto_compressor] synapse_auto_compressor started
[2022-03-20T13:27:07Z INFO  synapse_auto_compressor::manager] Running compressor on room !hYueEvaBrsbfKxjshs:libera.chat with chunk size 10000
[2022-03-20T13:27:08Z ERROR panic] thread 'main' panicked at 'Missing 53843103': src/lib.rs:666
mytbk commented 2 years ago

It looks good after dropping state_compressor_state, state_compressor_progress and state_compressor_total_progress.