-
Notifications
You must be signed in to change notification settings - Fork 42
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
Synapse backup/restore failed #154
Comments
Hi, I try to investigate, but it is hard to progress for me 😞 So far, I understood that the restore failed here :
Unfortunately (but I could imaging why), the script remove everything after a failed, so I don't know where to looked. Any clue ? |
Hi again, On the yunohost forum I've got some help from Aleks. He told me to look in I guess the important line was the following:
So I did try to run
Looking on the web how to solved this, I run
It seems to be the issue: the file is an ARM one. I recall that the backup was made from a raspberry, then the restore on a amd64. @Josue-T, do you know if it is something fixable ? |
Well, Yes the cross architecture restoration is NOT supported. If your are good in command line you should be able to do something. I purpose recreate a new python virtualenvironement for your new architecture. The idea is to use theses command. For the version it's written in the manifest here so actually it's the version 1.3.1 (for the testing). |
Thank you for your answer, the issue is clear now. Unfortunately, I did not understand your comment. I have updated my synapse to the testing branch on the raspberry, backup, then restore on the amd64. I have the same issue. Did you write that I should install the matrix-synapse in /opt/yunohost using the virtualenv commands you point out, then restore the app with this fresh synapse ? PS: Just in case, I should have mentioned that I am able to install synapse on the amd64. It worked well, but of course I hadn't any of the data/rooms/contacts. |
It's normal
Well, my explanation was in case of a full manual restoration (like to launch each command of this script manually). So the idea is to do the restoration manually. And after before to launch synapse you needo to recreate the venv. |
Ok, thank you. I have started tonight and made some progress. I will keep you updated when I will arrive to something. Cheers ! |
Hi, I was finally able to restore my synapse server 😃 First, I install a fresh version of synapse, then I run manually the restore script with few modifications. I start by preparing the archive :
Then I run the restore script changing the following parts. In load settings, set the app name.
In RESTORE DATA, copy-paste the old stuff in the new place.
In recreate dedicate user, the ynh_system_user_create was stopping the scripts 😮
The only remaining small issue is they is no automatic connection in riot web app... Thanks again for the help. I will close the issue. |
Hi, I have to mention that after restoring my server as describes in the previous post, I was ale to receive messages from others, but not able to send messages to others 😢 Unfortunately, if you change your architecture (from arm to amd64 in my case), there is no known way to restore/backup your synapse instance. But thanks anyway for the work on synapse ! |
Hello,
I post on the yunohost forum, but it may be more appropriate to open an issue here 😃
So I have updated my post:
Hardware: Raspberry Pi for backup create / AMD64 for backup restore
YunoHost version: 3.6.5.2 (stable)
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
Hi everyone,
I have an yunohost on a raspberry pi working fine, and I want to upgrade my hardware on a amd64 board.
The main issue is with the synapse backup / restore. The backup works with the command :
sudo yunohost backup create --apps synapse --debug
Then, when I restore the backup like this :
sudo yunohost backup restore 20191007-200134 --debug
And it failed at that moment:
Finaley, I can share the following log : sudo yunohost log display 20191007-203407-backup_restore_app-synapse
I have updated yunohost to the latest version 3.6.5.2.
In my look for a solution, I found that they mention your work on the matrix github, which I found it rather cool 😃
Cheers,
Ludovic
The text was updated successfully, but these errors were encountered: