Skip to content
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

Fix database password handling during upgrade #67

Open
MayeulC opened this issue Nov 3, 2022 · 1 comment
Open

Fix database password handling during upgrade #67

MayeulC opened this issue Nov 3, 2022 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@MayeulC
Copy link
Collaborator

MayeulC commented Nov 3, 2022

Describe the bug

Some users end up with an empty password in their bridge config file (under database:) after upgrade.

Workaround

Extract psqlpwd from /etc/yunohost/apps/mautrix_signal/settings.yml and put it in /opt/yunohost/mautrix_signal/config.yaml on line:

database: postgres://mautrix_signal:xxxxxxxxx@localhost:5432

Context

Seems like the ynh config iterated over multiple variable names:

  • mautrix_bridge_db_pwd
  • db_pwd
  • psqlpwd

Currently, the handling during migration is a bit of a mess. This should be fixed, and the ynh db cleaned up.

Same for mautrix_bridge_db_name.

Also, it looks like mautrix_version is not kept up-to-date.

@MayeulC MayeulC self-assigned this Nov 3, 2022
@MayeulC MayeulC added bug Something isn't working good first issue Good for newcomers labels Nov 3, 2022
@MayeulC
Copy link
Collaborator Author

MayeulC commented Nov 11, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant