Traceback (most recent call last):
File "/usr/bin/register_new_matrix_user", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.11/site-packages/synapse/_scripts/register_new_matrix_user.py", line 247, in main
server_url = _find_client_listener(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/synapse/_scripts/register_new_matrix_user.py", line 309, in _find_client_listener
return f"http://localhost:{listener['port']}"
~~~~~~~~^^^^^^^^
KeyError: 'port'
This issue has been migrated from #16390.
Description
I have configured an unix-socket as a listener in homeserver.yaml, without listening on ports, on a newly configured synapse instance.
This way,
register_new_matrix_user
crashes.Steps to reproduce
path
sudo -u synapse -- register_new_matrix_user -c [config path] --admin
Homeserver
self-hosted synapse
Synapse Version
1.92.1
Installation Method
Other (please mention below)
Database
single pgsql 15.4, fresh setup
Workers
Single process
Platform
archlinux arm
Configuration
Relevant log output
Anything else that would be useful to know?
Error Traceback: