Skip to content

Instantly share code, notes, and snippets.

@saces
Last active August 4, 2018 19:11
Show Gist options
  • Save saces/66223b77e8ec1ad2f4bd30a6ebc480e5 to your computer and use it in GitHub Desktop.
Save saces/66223b77e8ec1ad2f4bd30a6ebc480e5 to your computer and use it in GitHub Desktop.

Rules

  • Never ask Morton for the reason
  • Never ask Sybil for her ID
  • Never ask Murphy 'Will this go OK?'

The Curse

Some users seems to be cursed… Symptoms:

  • can't send to a room because "not in room"
  • can't leave the room to re-join because "Not a known room"
  • the whole network except your HS got your join event right.

Debugging

  • log live view

    To view the live log on console, use
    tail -F /var/log/matrix-synapse/homeserver.log
    You may can't read fast enougt, so grep is your friend.

Tracing the Join

Use your favorite Riot and join the room. You will see the rotating thingy, leave it alone.
Go to the console with the matrix log dir on your HS.

Grep for the room name, like it would appear in the url.
grep -F -n "%23offtopic%3Amatrix.org" The last find should be your request just taken. Look for the GET-xxx--number. grep for it.
grep -F -n "GET-number
Now you should see anything related to the join attempt.

Found a stacktrace reference? view it with less +linenumber homeserver.log

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