Raspberry Pi 4 Model B Authorize failed

Hi

When I deploy according to the documentation(docs.mender.io), an error occurs,I don’t see my device in pending,
My device is Raspberry Pi 4 Model B

The error is as follows:

pi@raspberrypi:~ $ journalctl -fu mender-client
-- Logs begin at Wed 2021-02-03 02:17:01 GMT. --
Feb 03 02:36:31 raspberrypi mender[555]: time="2021-02-03T02:36:31Z" level=info msg="State transition: init 	[none] -> idle [Idle]"
Feb 03 02:36:31 raspberrypi mender[555]: time="2021-02-03T02:36:31Z" level=info msg="State transition: idle 	[Idle] -> authorize-wait [Idle]"
Feb 03 02:36:31 raspberrypi mender[555]: time="2021-02-03T02:36:31Z" level=info msg="State transition: authorize-wait [Idle] -> authorize [Sync]"
Feb 03 02:36:32 raspberrypi mender[555]: time="2021-02-03T02:36:32Z" level=error msg="Authorize failed: transient error: authorization request failed: transient error: authorization request failed: (request_id: ): authentication request rejected server error message: dev auth: unauthorized"

I need your help, thank you.

Hi @cppcoder3 this message is normal for devices that go into the pending state. My guess is that you have a typo in the tenant token since you cannot see this device in pending. The other possibility is that the device is in the rejected tab.
Drew

Hi, I checked my tenant token and rejected tab, there is no problem,Is there any other reason for this。

Well it seems to be talking to a Mender server somewhere and getting an appropriate API response. What server are you using? What is the value of ServerURL?

Drew

“ServerUrl”: “https://hosted.mender.io”, I am using the Raspberry Pi OS demo mode, and I want to understand the mender.

Hmm. That all looks correct to me. @peter can you help any further? Can we check the backend logs to see if this device is connecting?
Drew

The deviceauth service logs would be handy I think :slight_smile: