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.76k stars 1.03k forks source link

matrix-bot-draupnir is still unable to start #3463

Open dementeb opened 1 month ago

dementeb commented 1 month ago

The fix https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/cb7726f4a8b3082e1fdab8949c60f07f5b6bdee7 doesn't resolve this problem. Sorry if this is a duplicate, but this is just really important for my setup, and the old report is closed as fixed.

To Reproduce My vars.yml file looks like this:


matrix_synapse_encryption_enabled_by_default_for_room_type: all
matrix_pantalaimon_enabled: true
matrix_bot_draupnir_enabled: true
matrix_bot_draupnir_pantalaimon_use: true
matrix_bot_draupnir_pantalaimon_username: "bot.name"
matrix_bot_draupnir_pantalaimon_password: "strongpass"
matrix_bot_draupnir_management_room: "!ididididid:domain.com"
matrix_bot_draupnir_configuration_extension_yaml: |
  recordIgnoredInvites: true
  pollReports: true

Matrix Server:

Additional context matrix-bot-draupnir systemd service terminates with an error:

Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]: Failed to setup mjolnir from the config /data: Error: undefined: undefined
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]: node:internal/process/promises:289
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:             triggerUncaughtException(err, true /* fromPromise */);
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:             ^
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]: MatrixError: Error during MatrixClient request POST /_matrix/client/v3/login: 500 Internal Server Error -- "Cannot connect to host >
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at /mjolnir/utils.js:278:21
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at result (/mjolnir/utils.js:397:25)
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at new Promise (<anonymous>)
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at /mjolnir/utils.js:396:40
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at respIsBuffer (/node_modules/matrix-bot-sdk/lib/http.js:66:38)
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at new Promise (<anonymous>)
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at doHttpRequest (/node_modules/matrix-bot-sdk/lib/http.js:65:41)
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at MatrixClient.doRequest (/node_modules/matrix-bot-sdk/lib/MatrixClient.js:1785:41)
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at descriptor.value (/node_modules/matrix-bot-sdk/lib/metrics/decorators.js:19:53)
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:     at MatrixAuth.passwordLogin (/node_modules/matrix-bot-sdk/lib/MatrixAuth.js:113:60) {
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:   body: 'Cannot connect to host matrix-traefik:8008 ssl:False [Name or service not known]',
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:   statusCode: 500,
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:   errcode: undefined,
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:   error: undefined,
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]:   retryAfterMs: undefined
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]: }
Jul 31 13:17:15 matrix matrix-bot-draupnir[1098416]: Node.js v20.11.1
Jul 22 17:13:35 matrix systemd[1]: matrix-bot-draupnir.service: Main process exited, code=exited, status=1/FAILURE
Jul 22 17:13:35 matrix systemd[1]: matrix-bot-draupnir.service: Failed with result 'exit-code'.
FSG-Cat commented 1 week ago

Well this seems to me to be another occurance of recent troubles with E2EE and Draupnir. Draupnir 2.0-beta.4 i think or 5 fixes native E2EE race condition that made it not work at all.

https://the-draupnir-project.github.io/draupnir-documentation/bot/encryption https://the-draupnir-project.github.io/draupnir-documentation/shared/dogfood

These links should shine a light on the problems with Pantal and Draupnir. Pantal has known issues and at times stuff like this happens.

Anyways if this situation persists your welcome to the Draupnir room for questions. Like i know that for some users Pantal and Draupnir happily co exist with the known problems.