[SOLVED] Baikal problems since 0.9.3-ynh3 upgrade

Hello,
If it’s really urgent to get back your baikal while waiting on the fix to come, I found a way to retore it from 0.9.3 ynh2 (I think it’s what you meant?) :
all is done in bash ssh to your server:

summary : change the php version from 8.2 down to 8.0 in the apps/baikal/settings/scripts/_common.sh file in the backup and restore from it

  • ssh to your server and create a working folder :
    mkdir tempWork
  • get the backup from your archive folder :
    cp /home/yunohost.backup/archive/baikal-pre-upgradeX.tar /home/your_user/tempWork | where X is the latest one from before the update
  • make an extra folder and cd into it :
    mkdir tempExtract then cd tempExtract
  • extract the tar folder :
    tar -x ../baikal-pre-upgradeX.tar
  • edit the file _common.sh in apps/baikal/settings/scripts/ with your fav editor :
    sudo vim apps/baikal/settings/scripts/_common.sh
  • change the php version to 8.0 (in place of 8.2). Save and quit
  • repack the tar with a different name :
    sudo tar -cf baikal-pre-upgradeX-mod.tar *
  • copy it to the archive folder :
    sudo cp /home/your_user/tempWork/tempExtract/baikal-pre-upgradeX-mod.tar /home/yunohost.backup/archive/
  • copy the json from the other archive :
    sudo cp /home/yunohost.backup/archive/baikal-pre-upgradeX.info.json /home/yunohost.backup/archive/baikal-pre-upgradeX-mod.info.json
  • restore the archive : sudo yunohost backup restore baikal-pre-upgradeX-mod --app

This forces the use of phpfpm 8.0, That worked for me, hope it can be usefull

1 Like