Pihole container will not install; RB5009 ROS 7.18.1

I installed this a few days ago, and it worked perfectly. I had to redo everything on another RB5009, identical, so I did a backup and restored it to the new RB5009. I moved the USB SSD over too. The Pihole container would not start. Nothing in the log (I enabled logging). It just would not start when I clicked Start. I tried assorted things with no luck.

So, I tried installing from scratch. Deleted all the container related stuff (interfaces, envs, mount etc) and reformatted the USB SSD. I followed the instructions from the wiki again exactly as before. Now I cannot even get it to install. At the pull image part:

/container/add remote-image=pihole/pihole:latest interface=veth1 root-dir=usb1/pihole mounts=dnsmasq_pihole,etc_pihole envlist=pihole_envs

I get this in the log:

[cont] not ok registry auth response: 401
was unable to import, container [long string of characters]

I’ve been over and over this many times… I cannot see what is wrong. I can ping the repository by name from the terminal, so it’s not a connectivity issue.

Auth response sounds like something with authentication. And 401 sounds like a http response (being unauthorized).
Did you do a restore of a config or a (true) backup? Are all users transfered?

Though not being your problem (or the solution), are you aware that you can use the Adlist internal service?
https://help.mikrotik.com/docs/spaces/ROS/pages/37748767/DNS#DNS-adlistAdlist

I did a true backup, with the Backup button in Files. There are only two users; admin and my usual login that I create. I’ll have a read of your link, thank you.

Seems it had something to do with the backup and restore. I did it again, with exactly the same results.

So, I tried wiping the config and pasting in the .rsc I exported from the original. Now I can pull the container as originally, but it seems half of my config is missing from doing the copy/paste method.

I might as well have just done the entire thing manually from scratch; it would have been quicker.

So much for backup and restore!!! What a waste of time.