Commit 944e4f25f5

944e4f25f5693080d4beb744effda950a8678ebc

parent: da31ced299

Unsigned

Darafei Praliaskouski <me@komzpa.net> · 2026-07-26 09:07 UTC
committer: <strk@kbt.io>

docs: add troubleshooting for state and shutdown issues

Layout: unified · split

README.md +20
@@ -219,6 +219,26 @@ The plugin keeps Matrix state and encryption data in
219219If the cache grows or causes too much disk I/O, disconnect WeeChat and remove
220220only the `-cache` directory. Do not remove the main server directory unless you
221221want to reset stored Matrix state.
222
223# Troubleshooting
224
225If startup or login fails with a Matrix SDK state-store decode error, first make
226sure the plugin was built from current sources and try starting WeeChat again so
227SDK migrations can run. If the same error still stops login, disconnect WeeChat
228and move `$WEECHAT_HOME/matrix-rust/<server>/` aside before reconnecting. This
229resets the stored Matrix state for that server, including encryption/session
230data, so keep the old directory until the new login is verified.
231
232For crashes, aborts, or a blocked WeeChat UI during startup or `/quit`, collect
233a full thread backtrace from another shell while the process is still stopped or
234blocked:
235
236 gdb -p $(pidof weechat) -batch -ex 'thread apply all bt'
237
238A short `bt` from the crashing thread is often not enough to tell whether the
239Matrix plugin, WeeChat itself, another plugin, or shutdown cleanup owns the
240block.
241
222242Nick prefix colors for Matrix power levels can be changed with:
223243
224244 /set matrix-rust.color.nick_prefix_admin lightgreen