Closed CodeShakingSheep closed 5 months ago
Hello @CodeShakingSheep , thank you for the report. Do you confirm that #102 allows you to upgrade from 0.4.3?
I'll try to have a look in a few hours.
Similar error message on a NUC X86.
Error message: Mai 29 21:28:51 systemd[1]: Started Matrix Signal Bridge. Mai 29 21:28:51 mautrix-signal[1490532]: Failed to initialize logger: failed to parse config for writer #2: can't open new logfile: open /var/log/mautrix_signal/mautrix_signal.log: permission denied Mai 29 21:28:51 systemd[1]: mautrix_signal.service: Main process exited, code=exited, status=12/n/a Mai 29 21:28:51 systemd[1]: mautrix_signal.service: Failed with result 'exit-code'.
I am on Synapse version 1.107.0~ynh1 and Mautrix signal bridge version 0.6.1~ynh1
For me upgrade seems to work and I assume changing ownership should do the trick
Describe the bug
After upgrading Mautrix signal app the bridge service doesn't start up successfully.
Log 1 I could fix the error message in Log 1 by running
chown -R mautrix_signal:mautrix_signal mautrix_signal/
from/var/log
. This worked. Previously the folder was owned byroot:root
.Log 2 It states that I need to upgrade from version 0.4.2 to version 0.4.3 first before I can upgrade to version 0.6.1. I would have wished for a pre-upgrade warning about this. So, this means I need to restore the old version and then upgrade to this commit 53823e7d92a678c5c27f62f64f7e914bd7096d0d . Is there a way to do that with the yunohost upgrade command? Thanks.
Restore Edit: Restore doesn't work either :-| So, now I'm left without a signal bridge at all. Here is the log: https://paste.yunohost.org/raw/layocikeje The problem seems to be that database "matrix_synapse" doesn't exist. I checked this on my server and it's true. There's only a postgre SQL database "synapse" available. How can I fix that in the restore script? Edit 2: This seems to be the change in synapse app which isn't reflected in mautrix_signal restore script: https://github.com/YunoHost-Apps/synapse_ynh/blob/master/scripts/upgrade#L194
Adopt restore script in backup Edit 3: I could successfully restore the app by changing this line https://github.com/YunoHost-Apps/mautrix_signal_ynh/blob/76a4622e4a2226953d9811ec6b9d2a77bf71cd34/scripts/restore#L43 from
synapse_db_name="matrix_$synapse_instance"
tosynapse_db_name="$synapse_instance"
in the backup. Afterwards the restore was successful.However, afterwards the service stopped again with another error
PermissionError: [Errno 13] Permission denied: 'config.yaml'
. I could solve this by runningchown mautrix_signal:mautrix_signal config.yaml
from/opt/yunohost/mautrix_signal
. Previously the folder was owned byroot:root
.Upgrade to version 0.4.3~ynh2 With command
sudo yunohost app upgrade mautrix_signal -u https://github.com/YunoHost-Apps/mautrix_signal_ynh/tree/53823e7d92a678c5c27f62f64f7e914bd7096d0d --debug
I could successfully upgrade to version 0.4.3. However, afterwards the error from log 1 was present again which could be solved withchown
again. Messages get sent successfully but no messages are received.Upgrade from version 0.4.3~ynh2 to version 0.6.1~ynh1 After upgrading again to the latest version, I receive the same error as in Log 2
FTL Failed to initialize database error="failed to run upgrade v11->v12: please upgrade to mautrix-signal v0.4.3 before upgrading to a newer version" db_section=main
although this is exactly what I did?!? Seems to come from here https://github.com/mautrix/signal/blob/main/database/upgrades/upgrades.go#L34 .So, I'm stuck now with version 0.4.3~ynh2. Can anybody help at this point? Any way I can trigger the DB upgrade manually?
Context
Steps to reproduce
I just hit the upgrade button in the webadmin. Although it says the upgrade has been successfull, a couple of seconds afterwards, the service stops.
Expected behavior
Mautrix signal bridge should start up successfully after upgrade.
Logs
Log 1:
Log 2:
Log from restore https://paste.yunohost.org/raw/layocikeje
Log after restoring 0.4.2~ynh1: