Closed CodeShakingSheep closed 3 months ago
For anybody else stumbling into this, I could solve this by manually setting the values:
source /usr/share/yunohost/helpers && ynh_app_setting_set --app="mautrix_signal" --key="botadmin" --value="@<MY_USERNAME>:<MY_SYNAPSE_DOMAIN>" && ynh_app_setting_set --app="mautrix_signal" --key="botusers" --value="<MY_SYNAPSE_DOMAIN>"
Describe the bug
After upgrade to version 0.6.2~ynh1 my messages weren't bridged anymore. While investigating I saw that the following permissions were written to
config.yaml
which was the root cause.I found that the
config.yaml
template attempts to dynamically set these values based onBOTSUERS
andBOTADMIN
. See https://github.com/YunoHost-Apps/mautrix_signal_ynh/blob/master/conf/config.yaml#L283 . Inmanifest.toml
the defined default values are the exact values in myconfig.yaml
(domain
andYour main Matrix account
). See https://github.com/YunoHost-Apps/mautrix_signal_ynh/blob/master/manifest.toml#L65 .I could fix it by stopping mautrix_signal systemd service, altering
config.yaml
and starting mautrix_signal systemd service. Afterwards everything was working fine again.Note that after the upgrade to version 0.6.1~ynh1 I also had to manually adopt those values.
Context
Steps to reproduce
I just hit the upgrade button in webadmin to upgrade from version 0.6.1~ynh to 0.6.2~ynh1.
Expected behavior
I believe that the install questions in
manifest.toml
have been introduced recently and apparently they aren't set in my app. I think introducting a config_panel where I could set these values would solve the issue long-term. Any other short-term solutions so that these values aren't overwritten after each upgrade?Logs
A bunch of error messages related to the bridge permission issue such as