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

matrix-appservice-discord fails to start #1014

Closed ragregory42 closed 3 years ago

ragregory42 commented 3 years ago

I am running this playbook on a debian 10.9 vm with an external postgresql server and external nginx proxy (I have the matrix-nginx-proxy service disbaled but it also attempts to start and fails if that is relevant). I'm not really sure how to track down the issue here. I have tried changing the quotes format for the bot_id and token in the vars.yaml file to no avail. I would appreciate any assistance.

My output for "journalctl -fu matrix-appservice-discord.service" is below.

Started Matrix Appservice Discord bridge.
Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]: Apr-21 16:05:50.573 [bot-sdkMatrixLiteClient (REQ-1)] error: [

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:   '<html>\r\n' +

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     '<head><title>405 Not Allowed</title></head>\r\n' +

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     '<body>\r\n' +

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     '<center><h1>405 Not Allowed</h1></center>\r\n' +

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     '<hr><center>nginx/1.18.0</center>\r\n' +

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     '</body>\r\n' +

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     '</html>\r\n'

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]: ]

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]: Apr-21 16:05:50.578 [DiscordAS] error: A fatal error 
occurred during startup: SyntaxError: Unexpected token < in JSON at position 0

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     at JSON.parse (<anonymous>)

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     at Intent.<anonymous> (/node_modules/matrix-bot-sdk/lib/appservice/Intent.js:193:41)

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     at Generator.throw (<anonymous>)

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     at rejected (/node_modules/matrix-bot-sdk/lib/appservice/Intent.js:15:65)

Apr 21 11:05:50 debian-synapse-host-vm matrix-appservice-discord[11152]:     at processTicksAndRejections (internal/process/task_queues.js:93:5)

Apr 21 11:05:50 debian-synapse-host-vm systemd[1]: matrix-appservice-discord.service: Main process exited, code=exited, status=1/FAILURE
Apr 21 11:05:50 debian-synapse-host-vm systemd[1]: matrix-appservice-discord.service: Failed with result 'exit-code'.
ragregory42 commented 3 years ago

Was duplicated issue.