Migrate from Raspberry Pi 3 to Pi 4

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 11.2.8
How are you able to access your server: SSH

Describe your issue

After plugging in my SD card into a Pi 4, the device does not boot at all.
Is there a way to get it working or do I have to install ynh from scratch?

Share relevant logs or error messages

none available

I would rather investigate why it does not boot at all by plugging in a monitor and keyboard.

1 Like

I did this. Nothing is happening: screen remains black.
Same SD card in Pi 3B boots without issues.

It is quite possible you need to upgrade things in the /boot partition, which is a tad complicated. I would advise you to:

  1. Backup your system on the RPi 3 and export the backup files on your computer
  2. Preferably use another SD card to flash the YunoHost 11.2.8 image (Index of /images/) and plug it in your RPI 4
  3. Let it boot, and make sure you can SSH into it
  4. Do not perform the postinstall, transfer the backup to the server and restore it

Thank you. I did it as suggested.
Restoring the system worked well: server is booting and running, even Dyndns is working.
Restoring the apps failed for most apps (e.g. lstu: errorlog).

So I am trying to update and install apps manually.
Do you have and suggestion to that error with sources.list?

# yunohost tools update
Info: Fetching available upgrades for system packages...
Warning: W: GPG error: https://packages.sury.org/php bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
Warning: E: The repository 'https://packages.sury.org/php bullseye InRelease' is not signed.
Error: Unable to update the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines: 
sources.list:deb http://deb.debian.org/debian bullseye main contrib non-free
sources.list:deb http://security.debian.org/debian-security bullseye-security main contrib non-free
sources.list:deb http://deb.debian.org/debian bullseye-updates main contrib non-free
sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ bullseye main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-archive-keyring.gpg] http://forge.yunohost.org/debian/ bullseye stable
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ bullseye main
# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

I tried to regenerate the sources.list, but no list file was updated.
sudo yunohost tools regen-conf apt -f

Now update is working. I do not know why (I did not change sources.list) but it works.

Having to install all the apps again, I think the only advantage of the migration (compared to an ordinary new installation on Pi 4) is that Dyndns was working out of the box.

It is quite possible lstu is actually missing a dependency (libjson-xs-perl) in its package.

Can you share the other apps’ restoration logs?

I do not know why but there are no log files from my initial attempt to restore the apps.
Having migrated to ynh 12.0.6 in the meantime and reinstalled most apps (eg. nextcloud, wallabag) I cannot try the restore again.