Hardware: VPS bought online YunoHost version: 11.2.11.2 I have access to my server : Through SSH & through the webadmin Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : I did tweak a setting in synapse a long time ago, described here: The synapse user password is no longer the yunohost user password - #4 by pyrignis
app name and version: synapse 1.104.0~ynh1
Description of my issue
The upgrade of synapse 1.98.0~ynh1 to 104.0~ynh1 removed the synapse app from my server.
The folder /home/yunohost.app/matrix-synapse is now gone which prevents the automatic backup from getting restored.
I have a /home/yunohost.app/synapse folder with a owner with numerical value. I am not sure if this indeed the new /home/yunohost.app/matrix-synapse and if new permission need to be applied.
Hardware: small server at home YunoHost version: 11.2.11.2 I have access to my server : Through SSH & through the webadmin Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? No as far as I know
I faced the same problem. During the upgrade of synapse 1.98.0~ynh1 to 104.0~ynh1 Synapse was removed. And the backup made during the upgrade was even not possible to install again.
Hopefully, I had an not too old synapse backup to restore…
Thank you very much for the fix. If I understand correctly this will fix future upgrades in our case. As for the situation I find myself in, is there a relatively easy fix or should I give up on the last few day’s history and roll back to a previous snapshot?
Ok, my /home partition is backed up separately from the rest of the system (I know I should handeled it but the auto snapshot option won’t let me schedule it ) and has been altered by the update so the rollback to a snapshot won’t cut it.
If anyone has an idea how to save my setup i’d love to hear from you, I’ve got all the snapshots from after the issue so I can try quite a few risky move.
Otherwise I guess I’ll have to put an end to 5 years of continuous history on my matrix server and start anew (With a proper backup setup).
The most simple solution is yes to rollback, but yes there are also some other solution. I don’t know exactly the current state of your install. If the backup before update was restored or the app is as it is just after the crashed update.
So maybe if you can give more details about the history of what happen on the failed upgrade and what is the current state, I could give you more advice.
Ok, I’ll switch to French since it seems we both speak it and my personnal case is less helpful for English readers. I’ll try and summarise the solution in English if we can find one.
rename the /home/yunohost.app/synapse directory to /home/yunohost.app/matrix-synapse
change owner of the new /home/yunohost.app/matrix-synapse directory to the owner matrix-synapse
remove the synapse app
restore the synapse app from the backup
I still have issues with upgrading synapse to a new version but I guess I cans wait for a yunohost minor upgrade to get my yunohost version number bumped up.
The question is why do you have folder matrix-synapse and synapse which one have the data. The upgrade script expect to have only one. Ether you have the legacy folder matrix-synapse and it will be moved to synapse or the data was already migrated and in this case you shouldn’t have a folder matrix-synapse
Well, I think you probably have an issue about your Yunohost update as synapse just require the last Yunohost version available on stable so you should be able to update.
I think I do have the latest stable version as that’s what apt-cache policy yunohost says but yunohost --version gives an incorrect answer and I don’t really know where it looks.
[...]
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
All looks fine, just a value that wasn’t update with the rollback process
Thank you for pointing the fact that 2 directory seems to be currently used by Synapse.
How can I ensure only one is used, and only one contains all data from my server?
I have not made any modification to my synapse install. I had to reinstall fully from backup 2 or 3 times, but I never touched any path of the official config.
You can see the two path seems in used if i look at