-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash at startup on dendrite with empty mjolnir state #443
Comments
In 1.6.4 the line numbers changed but the crash is otherwise the same. |
Apparently, it's crashing while attempting to display an error message, which is not very nice. |
I won't have time to work on this but if you do, could you try replacing |
I don't normally use languages that don't have a compiler, but
I havn't told it to do anything, but logging to the management room and |
Ok, I think I see the problem, it's in your configuration rather than Mjölnir, although Mjölnir should probably be more defensive when reading that. Generally, instead of setting a configuration key to |
My understanding is it's impossible to delete matrix state events, so after previously having issues with mjolnir and wanting a "clean slate" to test newer versions, I just set them all to empty content, eg
Is there a better option? I also have in yaml config
Which was suggested in chat by Gnuxie. IMO it should be possible to run without any "hard coded" protected rooms, so that people who are moderators but aren't sysadmins can disable the protection on any given room if they need to. |
Yeah, that would absolutely be better. |
I have a prototype solution in #468. I probably won't have time to finish and merge it, though. |
I'm presuming this is fixed. If not, a new issue with more detail (including more logs) is best. |
After having tried to run mjolnir previously #305 I set all of the following state events to have empty content {} to get a "fresh start":
org.matrix.mjolnir.protected_rooms
org.matrix.mjolnir.enabled_protections
org.matrix.mjolnir.watched_lists
org.matrix.mjolnir.default_list
The homeserver is dendrite 0.10.8
The result is
It prints a single line to the managment room before immediately crashing:
Mjolnir is starting up. Use !mjolnir to query status.
The text was updated successfully, but these errors were encountered: