Hi,
I tested with the latest raspbian (2019-09-26). It builds and is being configured as expected. I also checked the mender configuration which seems alright including token and endpoint. Unfortunately, the device does not show up in my mender account. The device client continuously says:
That error message is the normal first response when a device tries to connect. The normal behavior is that the device will show up in the pending tab and require an operator to admit the device to the fleet. Do you have any devices listed in the pending tab?
Hi @drewmoseley
Thanks for the quick reply. I was guessing so from the error message. Unfortunately, the device did not turn up in the pending tab after waiting for more than an hour or so.
Marius
MENDER_SERVER_URI='https://hosted.mender.io'
# Fill these in with your account information
MENDER_SERVER_USER=''
MENDER_SERVER_USER_PASSWORD=''
JWT=$(curl -X POST -u $MENDER_SERVER_USER:$MENDER_SERVER_USER_PASSWORD $MENDER_SERVER_URI/api/management/v1/useradm/auth/login)
curl \
-H "Authorization: Bearer $JWT" \
-H "Content-Type: application/json" \
-X GET \
${MENDER_SERVER_URI}/api/management/v2/devauth/devices?status=pending | jq -r
I went a little more into the details regarding identity and turned out that my testing device was assigned the same Device ID on each flash (inferred from the MAC address?) and I just had to decommission / override the acceptance of this device! Sorry for the confusion and thanks for your very fast replies!