Skip to content

Crash at startup on dendrite with empty mjolnir state #443

Closed as not planned
@bones-was-here

Description

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

Thu, 01 Dec 2022 16:39:07 GMT [INFO] [index] Starting bot...
Thu, 01 Dec 2022 16:39:07 GMT [INFO] [index] Resolving management room...
Creating Web APIs
Thu, 01 Dec 2022 16:39:07 GMT [INFO] [index] Mjolnir is starting up. Use !mjolnir to query status.
Starting web server
Thu, 01 Dec 2022 16:39:07 GMT [INFO] [ProtectedRoomsConfig] Resolving protected rooms...
/data/home/mjolnir/mjolnir.git/lib/utils.js:32
    return input.replace(/["&<>]/g, (char) => ({
                 ^
TypeError: input.replace is not a function
    at htmlEscape (/data/home/mjolnir/mjolnir.git/lib/utils.js:32:18)
    at ManagementRoomOutput.logMessage (/data/home/mjolnir/mjolnir.git/lib/ManagementRoomOutput.js:102:56)
    at ProtectionManager.start (/data/home/mjolnir/mjolnir.git/lib/protections/ProtectionManager.js:66:51)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Mjolnir.start (/data/home/mjolnir/mjolnir.git/lib/Mjolnir.js:250:13)
    at async /data/home/mjolnir/mjolnir.git/lib/index.js:79:9

It prints a single line to the managment room before immediately crashing: Mjolnir is starting up. Use !mjolnir to query status.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions