rust-synapse-compress-state: synapse_auto_compressor panics on start after using the history delete api to remove remote events
Describe the bug
Nov 25 00:25:08 nordgedanken.dev systemd[1]: Starting State Compress Synapse...
Nov 25 00:25:08 nordgedanken.dev synapse_auto_compressor[3600348]: [2021-11-24T23:25:08Z INFO synapse_auto_compressor] synapse_auto_compressor started
Nov 25 00:25:08 nordgedanken.dev synapse_auto_compressor[3600348]: [2021-11-24T23:25:08Z INFO synapse_auto_compressor::manager] Running compressor on room !OGEhHVWSdvArJzumhm:matrix.org with chunk size 1000
Nov 25 00:25:10 nordgedanken.dev synapse_auto_compressor[3600348]: [2021-11-24T23:25:10Z ERROR panic] thread 'main' panicked at 'Missing 13719240': src/lib.rs:666
Nov 25 00:25:10 nordgedanken.dev systemd[1]: synapse-state-compress.service: Main process exited, code=exited, status=101/n/a
Nov 25 00:25:10 nordgedanken.dev systemd[1]: synapse-state-compress.service: Failed with result 'exit-code'.
Nov 25 00:25:10 nordgedanken.dev systemd[1]: Failed to start State Compress Synapse.
To Reproduce Steps to reproduce the behavior:
- Run
purge_history
on a room - start synapse_auto_compressor
Expected behavior It runs or atleast ignores the invalid rooms
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 9
- Comments: 15 (2 by maintainers)
Commits related to this issue
- synapse-compress: auto-compress all rooms and workaround matrix-org/rust-synapse-compress-state#78 — committed to luki-ev/synod-misc by csett86 2 years ago
- Remove autocompressor due to issues Eg https://github.com/matrix-org/synapse/issues/11521 and https://github.com/matrix-org/rust-synapse-compress-state/issues/78 — committed to luki-ev/synod-misc by csett86 2 years ago
I’m always calling the following script in preparation of a compressor run:
I’m not sure if this is helpful, but deleting the relevant room entries into state_compressor_state and state_compressor_progress. At least made the auto compressor resume working for me.
Thanks for trying that—I wonder what’s happened there?