!admin debugCommands for debugging things
!admin debug echoEcho input of admin command
!admin debug get-auth-chainGet the auth_chain of a PDU
!admin debug parse-pduParse and print a PDU from a JSON
The PDU event is only checked for validity and is not added to the database.
This command needs a JSON blob provided in a Markdown code block below the command.
!admin debug get-pduRetrieve and print a PDU by EventID from the Continuwuity database
!admin debug get-short-pduRetrieve and print a PDU by PduId from the Continuwuity database
!admin debug get-remote-pduAttempts to retrieve a PDU from a remote server. Does not insert it into the database or persist it anywhere
!admin debug get-remote-pdu-listSame as get-remote-pdu but accepts a codeblock newline delimited list of PDUs and a single server to fetch from
!admin debug get-room-stateGets all the room state events for the specified room.
This is functionally equivalent to GET /_matrix/client/v3/rooms/{roomid}/state, except the admin command does not check if the sender user is allowed to see state events. This is done because it's implied that server admins here have database access and can see/get room info themselves anyways if they were malicious admins.
Of course the check is still done on the actual client API.
!admin debug get-signing-keysGet and display signing keys from local cache or remote server
!admin debug get-verify-keysGet and display signing keys from local cache or remote server
!admin debug pingSends a federation request to the remote server's /_matrix/federation/v1/version endpoint and measures the latency it took for the server to respond
!admin debug force-device-list-updatesForces device lists for all local and remote users to be updated (as having new keys available)
!admin debug change-log-levelChange tracing log level/filter on the fly
This accepts the same format as the log config option.
!admin debug verify-jsonVerify JSON signatures
This command needs a JSON blob provided in a Markdown code block below the command.
!admin debug verify-pduVerify PDU
This re-verifies a PDU existing in the database found by ID.
!admin debug first-pdu-in-roomPrints the very first PDU in the specified room (typically m.room.create)
!admin debug latest-pdu-in-roomPrints the latest ("last") PDU in the specified room (typically a message)
!admin debug force-set-room-state-from-serverForcefully replaces the room state of our local copy of the specified room, with the copy (auth chain and room state events) the specified remote server says.
A common desire for room deletion is to simply "reset" our copy of the room. While this admin command is not a replacement for that, if you know you have split/broken room state and you know another server in the room that has the best/working room state, this command can let you use their room state. Such example is your server saying users are in a room, but other servers are saying they're not in the room in question.
This command will get the latest PDU in the room we know about, and request the room state at that point in time via /_matrix/federation/v1/state/{roomId}.
!admin debug resolve-true-destinationRuns a server name through Continuwuity's true destination resolution process
Useful for debugging well-known issues
!admin debug memory-statsPrint extended memory usage
Optional argument is a character mask (a sequence of characters in any order) which enable additional extended statistics. Known characters are "abdeglmx". For convenience, a '*' will enable everything.
!admin debug runtime-metricsPrint general tokio runtime metric totals
!admin debug runtime-intervalPrint detailed tokio runtime metrics accumulated since last command invocation
!admin debug timePrint the current time
!admin debug list-dependenciesList dependencies
!admin debug database-statsGet database statistics
!admin debug trim-memoryTrim memory usage
!admin debug database-filesList database files
!admin debug testerDeveloper test stubs