spantaleev / matrix-docker-ansible-deploy

🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
GNU Affero General Public License v3.0
4.88k stars 1.04k forks source link

Bridge bots are offline. How to bring them back online? #2694

Closed mikedolx closed 1 year ago

mikedolx commented 1 year ago

Hello There 👋!

Playbook Configuration:

My vars.yml file looks like this:

matrix_domain: mydomain.de
matrix_homeserver_implementation: synapse
matrix_homeserver_generic_secret_key: ***
devture_traefik_config_entrypoint_web_secure_enabled: false
matrix_playbook_reverse_proxy_type: other-on-another-host
matrix_client_element_enabled: false
matrix_ssl_lets_encrypt_support_email: ***
devture_postgres_connection_password: ***
matrix_synapse_ext_password_provider_shared_secret_auth_enabled: true
matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret: ***
matrix_synapse_federation_enabled: true
matrix_synapse_allow_public_rooms_over_federation: true
matrix_mautrix_discord_enabled: true
matrix_mautrix_telegram_enabled: true
matrix_mautrix_telegram_api_id: ***
matrix_mautrix_telegram_api_hash: ***
matrix_mautrix_whatsapp_enabled: true
matrix_synapse_configuration_extension_yaml: "experimental_features:\n  msc2716_enabled:\
  \ true\n"
matrix_mautrix_whatsapp_configuration_extension_yaml:
  bridge:
    history_sync:
      backfill: true
matrix_mautrix_whatsapp_bridge_relay_enabled: true
matrix_mautrix_whatsapp_bridge_relay_admin_only: false
matrix_mautrix_facebook_enabled: false
matrix_mautrix_googlechat_enabled: false
matrix_mautrix_instagram_enabled: true
matrix_mautrix_twitter_enabled: false
matrix_mautrix_signal_enabled: true
matrix_beeper_linkedin_enabled: true
matrix_heisenbridge_enabled: false

Matrix Server:

Ansible: I don't have any errors, when running the ansible playbook.

Problem description: I have setup signal, whatsapp, telegram and linkedin as bridges. After the initial setup i wanted to set up some values, afterwards, by modifying the config files directly on the ansible host and restarting the docker container (not sure if this was correct). Afterwards i realized, that i can run re-run the playbook. Now, the bridge bots are all offline and none of my messages are beeing bridged. The bots do not reply to any command like ping or help. I'm not sure how i can bring the bots back online?

I can provide the following log from the systemd-unit on the host:

matrix-mautrix-whatsapp

# journalctl -fu matrix-mautrix-whatsapp
May 19 19:04:09 vm-ubuntu-beeper systemd[1]: Stopped Matrix Mautrix Whatsapp bridge.
May 19 19:04:09 vm-ubuntu-beeper systemd[1]: Starting Matrix Mautrix Whatsapp bridge...
May 19 19:04:14 vm-ubuntu-beeper systemd[1]: Started Matrix Mautrix Whatsapp bridge.
May 19 19:04:57 vm-ubuntu-beeper systemd[1]: Stopping Matrix Mautrix Whatsapp bridge...
May 19 19:04:57 vm-ubuntu-beeper matrix-mautrix-whatsapp[39341]: matrix-mautrix-whatsapp
May 19 19:04:57 vm-ubuntu-beeper systemd[1]: matrix-mautrix-whatsapp.service: Main process exited, code=exited, status=137/n/a
May 19 19:04:57 vm-ubuntu-beeper systemd[1]: matrix-mautrix-whatsapp.service: Failed with result 'exit-code'.
May 19 19:04:57 vm-ubuntu-beeper systemd[1]: Stopped Matrix Mautrix Whatsapp bridge.
May 19 19:04:58 vm-ubuntu-beeper systemd[1]: Starting Matrix Mautrix Whatsapp bridge...
May 19 19:05:03 vm-ubuntu-beeper systemd[1]: Started Matrix Mautrix Whatsapp bridge.

matrix-mautrix-signal

# journalctl -fu matrix-mautrix-signal
May 19 18:23:51 vm-ubuntu-beeper systemd[1]: Stopped Matrix Mautrix Signal server.
May 19 18:24:36 vm-ubuntu-beeper systemd[1]: Starting Matrix Mautrix Signal server...
May 19 18:24:42 vm-ubuntu-beeper systemd[1]: Started Matrix Mautrix Signal server.
May 19 19:04:57 vm-ubuntu-beeper systemd[1]: Stopping Matrix Mautrix Signal server...
May 19 19:04:58 vm-ubuntu-beeper matrix-mautrix-signal[39339]: matrix-mautrix-signal
May 19 19:04:58 vm-ubuntu-beeper systemd[1]: matrix-mautrix-signal.service: Main process exited, code=exited, status=137/n/a
May 19 19:04:58 vm-ubuntu-beeper systemd[1]: matrix-mautrix-signal.service: Failed with result 'exit-code'.
May 19 19:04:58 vm-ubuntu-beeper systemd[1]: Stopped Matrix Mautrix Signal server.
May 19 19:04:58 vm-ubuntu-beeper systemd[1]: Starting Matrix Mautrix Signal server...
May 19 19:05:03 vm-ubuntu-beeper systemd[1]: Started Matrix Mautrix Signal server.

Client (please complete the following information): I don't think this is device related

Additional context not required

mikedolx commented 1 year ago

Small update: This morning i got a message through a bridge. That means, messages are being bridged, but the bots are still offline and do not respond to commands like ping.

mikedolx commented 1 year ago

Bridge-bots are responding again to commands. Not sure what i did. As it seems the bridge-bots are not always online, which is a bit confusing.