Synapse
Well-known DNS entry:
❯ curl -L https://varac.net/.well-known/matrix/server
{
"m.server": "matrix.oas.varac.net:443"
}
Test server from outside using the federation tester
User management
Register new user:
Regsister user or, much easier, from within the synapse pod:
export PW=...
register_new_matrix_user -c /config/homeserver.yaml -u varac -p $PW -a http://localhost:8008
or in kubernetes:
kc -n matrix exec deploy/synapse -c synapse -- \
register_new_matrix_user -u varac -a -c /config/homeserver.yaml \
-p $(gopass show --password im/matrix/varac.net/varac/password) http://synapse:8443
Maintenance
Issues
synapse-postgresql pod
- ERROR: duplicate key value violates unique constraint "remote_media_cache_media_origin_media_id_key"
Troubleshooting
Federation
- Synapse federation troubleshooting
- Add admin API to get some information about federation status - merged
- admin API to reset federation retries for a given HS
- Admin visibility into federation status
- ways to analyze incoming federation delay issues and other problems with incoming message delays
Get psql shell in synapse-postgres pod
kc view-secret -n matrix synapse-postgresql
psql postgres -h 127.0.0.1 -d synapse
select max(stream_ordering) from events;
select * from appservice_stream_position;