Device will not register

I’ve gone throughthe tutorial to try and connect my RPi 4 to mnder hosted server but it won’t show up. I’ve followed each step exactly. After pasting the supplied command line text to run on the device, it finishes with the following error:
image

I also run mender-setup as requested, but still it doesn’t connect.

Very lost, there seems to be no way to connect my device following the supplied procedure.

Turns out I had to restart my device. This step was not mentioned in the tutorial. Perhaps is should be

1 Like

Hi @keithrobinson67,

glad to hear the problem is (almost) solved. Just so I understand correctly, you ran the copy-pasteable command that your Hosted Mender dashboard gave you for adding a Raspberry Pi, and the above error was shown? Essentially:

JWT_TOKEN="..."
wget -O- https://get.mender.io | sudo bash -s -- --demo --commercial --jwt-token $JWT_TOKEN --force-mender-client4 -- --quiet --device-type "raspberrypi4" --tenant-token $TENANT_TOKEN --retry-poll 300 --update-poll 1800 --inventory-poll 28800 --server-url https://hosted.mender.io --server-cert=""

I think that the reboot is actually not necessary, but the polling interval is maybe unexpectedly long. Thanks for raising this!

Greetz,
Josef

Yes, this is exactly what I did. It may that my reboot was coincidental, but it appeared on the host almost immediately that the device rebooted.