YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 42 forks source link

Restoration failed #369

Closed Thatoo closed 1 year ago

Thatoo commented 1 year ago

After I had this issue, https://github.com/YunoHost-Apps/synapse_ynh/issues/367, due to the fact that

uname -m used to be armv7l but then, because of nextcloud v25 fear not being supported on 32 bit, I followed this tutorial https://www.sindastra.de/p/1345/switch-your-raspberry-pi-to-64-bit-kernel-raspbian and now it gives aarch64 so CPU and kernel are 64 bit but applications are still in 32 bit.

I did a full clean install and restored everything without any issue except restoring synapse. Here are the log : https://paste.yunohost.org/raw/iludusaruv

Thatoo commented 1 year ago

I saw that when it has failed, it has removed the user synapse so I tried a second time to restore and indeed, no problem with the synapse user existing. However, it fails for an other reason. Here are the new logs : https://paste.yunohost.org/raw/efocamecip

Thatoo commented 1 year ago

could it be the same as https://github.com/YunoHost-Apps/synapse_ynh/issues/242 ?

Maybe the solution would be to modify this line:

[synapse_ynh/scripts/_common.sh](https://github.com/YunoHost-Apps/synapse_ynh/blob/c0f13c31fbee7ca8c6117e94a0697529e7ea8460/scripts/_common.sh#L8)

Line 8 in [c0f13c3](https://github.com/YunoHost-Apps/synapse_ynh/commit/c0f13c31fbee7ca8c6117e94a0697529e7ea8460)
 if [ ! -e $final_path/bin/python3 ] || [ ! -e $final_path/lib/python$python_version ]; then 

And replace by this:

if true; then

In the backup archive. ?

Thatoo commented 1 year ago

except I can't find _common.sh inside my full (system and all apps) backup archive... So I switch on my raspberry pi under 32 bit system with the old sd card (I'm glad I didn't format it) to make a dedicated synapse archive.

Thatoo commented 1 year ago

I first tried to restore this dedicated archive before modification and I got the same error (which is logical) : https://paste.yunohost.org/raw/rezogatiwi Then I tried with the same archive with _common.sh modified as explained above. And IT WORKS! Synapse has been restored!

Thatoo commented 1 year ago

@Josue-T do you think this, https://github.com/YunoHost-Apps/synapse_ynh/pull/370/files , would have solved my issue?

Josue-T commented 1 year ago

No I don't think.