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

Some bot users are deactivated in the DB making the services not start with Synapse >= 1.85 #2729

Open davidegirardi opened 1 year ago

davidegirardi commented 1 year ago

Describe the bug Some of the bot users (mautrix-facebook, mautrix-telegram but not mautrix-discord in my case) are disabled in the DB and the new Synapse does not accept their logins.

To Reproduce

  1. Deploy mautrix-telegram and/or mautrix-facebook with the commit ddbbd42718b15172cdf409f2c1050362d42c3151.
  2. Upgrade to the latest version (ba868ba6c6d84c6ee1bf7e120bcce90ad6151d3b at the time or writing)
  3. matrix-mautrix-telegram.service and matrix-mautrix-facebook.service fail with the following error in the logs: mautrix.errors.request.MUserDeactivated: This account has been deactivated

Expected behavior The services running.

Matrix Server:

Workaround solution

As written in the room, I think the issue is with the new checks that Synapse does with regards to deactivated users. My workaround has been to just enable them in the DB before running the playbook at the last commit.

update users set deactivated = 0 where name = '@yourbotsname:...';
Jaffex commented 1 year ago

Same issue here - reverting to ddbbd42718b15172cdf409f2c1050362d42c3151 until further notice. Thank you for this issue and your workaround!

davidegirardi commented 1 year ago

You can run the latest version(s) with no issues if you run the workaround before running the playbook (or restart Synapse after running the queries).