Migrating to new Docker installation: Asking to onboard

Hello,

I used to run my Home Assistant on Raspberry Pi 3 using docker with docker-compose. The used image was: image: homeassistant/home-assistant:stable. As I recently bought an RPi 4 to replace the 3, I want to move the installation over.

I use basically the same docker-compose file, only the image: homeassistant/raspberrypi4-homeassistant:stable which seems to be the recommend one for RPi 4. I copyied the config-directory over and adapted the mount point.

However, each time I start the container and try to login, I am greeted with the onboarding assistant, asking me to create a user. Creating a user of the same name, gives an InvalidUser exception in the log. Also, the log gives messages about integrations, I set up on the old installation. So, basically the takeover seems to be successful, but it still asks me to onboard.

I tried to delete home-assistant_v2.db* as I read somewhere, but that changed nothing. Also, I read about a procedure to first start a vanilla container, stop it and copy the old config-directory over. Tried that, same result.

What is the correct procedure to migrate from one installation to a new one and taking the configuration with me?

Thanks!

Copying the config directory over is enough. However, I think you forgot the hidden files and directories.

Ah, got it. The problem was that I copied over from the backup to the target as normal users. Some files, most notably the authentication related were not readable by the user and were left out. I didn’t give enough attention to the copy process…

Best!

I had simply taken my SD card and clone it. Then I took the cloned SD card and put it into the Pi-400 and did the updates there to the Pi-400 Raspbian.

Worked well for Pi 3 and Pi4 to Pi 400 migrations and therefore it should be the same for Pi3 to Pi4