mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-09-20 06:40:10 +00:00
Ensure the homeserver accepts matrix-bot-meowlnir's appservice token before provisioning
The homeserver only reads appservice registrations on startup, and the playbook only restarts it at the very end of a run. On the run which first enables Meowlnir, bot provisioning therefore talked to a homeserver still running without Meowlnir's registration, hitting M_UNKNOWN_TOKEN and hanging indefinitely. Provisioning now verifies the token upfront and restarts the homeserver itself when needed, so a single run completes even when Meowlnir was just enabled. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
e5957ccc63
commit
d839e45548
@@ -3426,6 +3426,12 @@ matrix_bot_meowlnir_container_additional_networks_auto: |-
|
||||
matrix_bot_meowlnir_config_homeserver_address: "{{ matrix_addons_homeserver_client_api_url }}"
|
||||
matrix_bot_meowlnir_config_homeserver_domain: "{{ matrix_domain }}"
|
||||
|
||||
# Provisioning bots (`ensure-matrix-users-created`) requires the homeserver to accept Meowlnir's appservice registration, which it only reads on startup.
|
||||
# On the run which first enables Meowlnir, the homeserver is still running without it, so the role restarts these services to load it.
|
||||
# Restarting the main service suffices even with Synapse workers, because their units declare `Requires=matrix-synapse.service` and systemd propagates the restart to them.
|
||||
# Left empty for homeserver implementations whose appservice registrations the playbook does not manage (Conduit and its forks), where registration is a manual step anyway.
|
||||
matrix_bot_meowlnir_homeserver_restart_systemd_services_list: "{{ ['matrix-' ~ matrix_homeserver_implementation ~ '.service'] if matrix_homeserver_implementation in ['synapse', 'dendrite'] else [] }}"
|
||||
|
||||
# Only consulted by bots configured with `management_room_auto_create`, and only as the
|
||||
# default for those which do not carry their own `initial_managers` list.
|
||||
# May legitimately be empty, in which case such bots fail validation and ask to be told who
|
||||
|
||||
Reference in New Issue
Block a user