Migration 32 bits to 64 bits

I know there has been a few topics on this, but basically, with NextCloud 25 now available, it’s important to migrate.
I have a RPI4 but unfortunately I picked the 32 bits version when I installed YNH initially. Now I could of course use a second RPI and do a migration, but I’d be more comfortable migrating the underlying debian 11 from 32 to 64 bits.

So far, all the topics here have been closed without solution…

Hi,
personally I would try:

  • backup my whole system with a snapshot/dd, what you want (to be able to come back to a working ststem very quickly)
  • backup yunohost
  • erase all and re-install 64 bits version of your OS
  • re-install yunohost
  • finish post-installation by restoring your yunohost backup.
    I did it one time without issue, so it should be fine, but I think it’s also dependant of the installed apps on your system.
5 Likes

Totally agree with polochon. I would perform a force-upgrade on apps that fail to start after restoration: yunohost app upgrade <the_app> -F, that makes sure to re-build the apps previously compiled for ARM.

2 Likes

Hi,

Just some feedback if it helps other people:

  • vaultwarden did not restart until after I ran yunohost app upgrade vaultwarden -F
  • nextcloud had an issue during the re-install which is quite weird (and unrelated to the process): my initial machine has a domain which I changed (and afterward removed the old domain name). There’s a trace of the old domain in nextcloud somewhere which ended up screwing the restoration. I had to re-add nextcloud.myolddomain to the ynh domain list, then the restoration went well!

Thanks for the advices !

1 Like

Do you have a log for that?

1 Like

Yes, I’ve opened a ticket for this as it’s quite a different topic

1 Like

Hi polochon/crowd.

Sounds quite simple, thanks.
I want to upgrade from a Pi3/32 to a Pi5/64 with a new SD card so what about the following:

  • backup yunohost
  • backup all apps
  • flash the new card with the 64 bit image
  • instead of initial configuration, restore the YNH backup
  • restore apps backup
  • run yunohost app upgrade <the_app> -F if necessary
  • be happy with a running 64 bit system

Thanks for any feedback :slight_smile:

Greetings

Should works!