-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mautrix Twitter broken #1682
Comments
Okay I see that we need to manually set the |
Okay, even after setting the |
Related to #1682 Previously, when matrix-postgres was disabled, we were setting `matrix_mautrix_twitter_database_engine` to an invalid empty value. Now, we always hardcode `matrix_mautrix_twitter_database_engine: postgres`, but set/unset the database hostname and password values instead.
Perhaps you haven't defined I don't think it's enough to have the following custom configuration to reproduce the bug: matrix_mautrix_twitter_enabled: true You're probably using an external Postgres server as well ( The way
.. which should have told you to define this empty matrix-docker-ansible-deploy/roles/matrix-bridge-mautrix-twitter/tasks/validate_config.yml Lines 12 to 18 in 1bea072
Perhaps this validation check did not work well and In 8c25ade, I've reworked how these variables work a bit. You should try and see if you have more success with that. If you're using an external Postgres server, you'll need to define this additional matrix_mautrix_twitter_enabled: true
# Define your Postgres server credentials here (defaults are taken from roles/matrix-bridge-mautrix-twitter/defaults/main.yml)
matrix_mautrix_twitter_database_username: 'matrix_mautrix_twitter'
matrix_mautrix_twitter_database_password: ''
matrix_mautrix_twitter_database_hostname: ''
matrix_mautrix_twitter_database_port: 5432
matrix_mautrix_twitter_database_name: 'matrix_mautrix_twitter' |
Yes, indeed I'm using an external postgres database. I didn't think to set It is certainly a bummer to realise now using an external postgres server made already configured bridges use an sqlite database. Especially since I didn't face any issues with using an external database as it's hostname is a domain name that is very well resolvable and accessible from within a docker container. Anyways thanks for the quick reply, I guess I'll now start migrating my already setup bridges to use the postgres db from sqlite. |
For external Postgres servers, we're defaulting to SQLite for bridges that support that.. Alternatively, we:
Ideally, we'll be able to configure an external Postgres automatically just like we do it for We create the additional databases here: matrix-docker-ansible-deploy/roles/matrix-postgres/tasks/setup_postgres.yml Lines 128 to 133 in 5a4dd2b
This is a part of the If you're keen on making the
If you'd like to work on the above, that'd be great though! It'd be very useful to have the playbook work with an external Postgres server seamlessly. |
Yes, having seamless support for external postgres server would be great, however just documenting that |
I've adjusted the documentation. Thanks for reporting this! |
As for If not then is there really any point of disabling postgres for other apps/services? Since the user is anyways required to have a working postgres db server running for at least one service? |
I'm not sure I understand your question. |
Well, I'm just saying It seems setting
When its really just the last two options. |
|
Describe the bug
Enabling mautrix twitter breaks the playbook
To Reproduce
Enable mautrix twitter
I get the following error:
Expected behavior
Mautrix twitter bridge should be configured and installed.
The text was updated successfully, but these errors were encountered: