I am trying to register a device on mender HostedServer, but despite the fact that it seems properly communicated together, my device never popup on HostedMender GUI.
I am using Mender v1.2.1 on my device , it was build againt buildroot and not Yocto.
Here is the mender.conf file on device, and logs from mender execution which is showing a correct communication with server (double check via wireshark).
Following this stage, I was expecting hosted mender GUI to propose this device in the pending list, but, I am still waiting .... no success for the moment....
#
#
# cat /etc/mender/mender.conf
{
"ClientProtocol": "http",
"HttpsClient": {
"SkipVerify": true
},
"RootfsPartA": "/dev/mmcblk0p8",
"RootfsPartB": "/dev/mmcblk0p9",
"UpdatePollIntervalSeconds": 100,
"InventoryPollIntervalSeconds": 800,
"RetryPollIntervalSeconds": 30,
"ServerCertificate": "/etc/mender/server.crt"
}
#
#
# /usr/share/mender/identity/mender-device-identity
using interface /sys/class/net/eth0
mac=e6:30:7b:26:5f:ab
#
#
#
# /usr/share/mender/inventory/mender-inventory-hostinfo
kernel=Linux version 4.4.35_hi3796mv200 (sdtv@sdtv-OptiPlex-9020) (gcc version 4.9.4 20151028 (prerelease) (gcc-linaro-4.9-2016.02 + glibc-2.25 (Build by czyong) Thu Feb 23 17:07:45 CST 2017) ) #1 SMP Tue Mar 6 11:08:51 CET 2018
mem_total_kB=1993460
hostname=buildroot
#
#
#
# /usr/share/mender/inventory/mender-inventory-network
mac_dummy0=62:26:4f:b6:f3:e2
network_interfaces=dummy0
mac_eth0=e6:30:7b:26:5f:ab
network_interfaces=eth0
ipv6_eth0=2a01:e35:2ec8:c8f0:e430:7bff:fe26:5fab/64
ipv6_eth0=fe80::e430:7bff:fe26:5fab/64
#
#
#
# mender -daemon --debug
DEBU[0000] Reading Mender configuration from file /etc/mender/mender.conf module=config
DEBU[0000] block type: RSA PRIVATE KEY module=keystore
WARN[0000] certificate verification skipped.. module=client
INFO[0000] State transition: init [none] -> init [none] module=mender
DEBU[0000] no state data stored module=state
INFO[0000] State transition: init [none] -> idle [Idle] module=mender
DEBU[0000] statescript: timeout for executing scripts is not defined; using default of 60 seconds module=executor
INFO[0000] State transition: idle [Idle] -> authorize [Sync] module=mender
DEBU[0000] statescript: timeout for executing scripts is not defined; using default of 60 seconds module=executor
DEBU[0000] statescript: timeout for executing scripts is not defined; using default of 60 seconds module=executor
DEBU[0000] handle authorize state module=state
DEBU[0000] tenant token: authtentoken module=auth
DEBU[0000] authorization data: {{"mac":"e6:30:7b:26:5f:ab"} authtentoken -----BEGIN PUBLIC KEY-----
MIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA1pQvmQvRjN1jFXe9eXnJ
4+sXxQv+b3zw8NflmBoKIjgSAIEbjpKu7tOBKO+g/fTffhGcOPtduSQqEj7zzoM9
<...snip...>
z1DcWR44ngqgLnnnFYiAcEE4pjR8H9VkOFjCs75Opra4vt2DSEwoIW0hNsV9KPdv
5nkyWZAZPxQ7Z/BbeUpD/0967AaEO4SpdRka1Zxks6UVAgMBAAE=
-----END PUBLIC KEY-----
} module=auth
DEBU[0000] making authorization request to server https://hosted.mender.io with req: &{POST https://hosted.mender.io/api/devices/v1/authentication/auth_requests HTTP/1.1 %!s(int=1) %!s(int=1) map[Content-Type:[application/json] Authorization:[Bearer authtentoken] X-Men-Signature:[QCXrquN1NCIW5Kb5Ty+UfTce6y8KA3TCS++uBW+gbWbU+qp9wD/8HWk+/LvyUOCGY1xbwha3OHTv2B1lpHLtigPXxQrs9JRl0UNTBPB/dUR5461q0AS0AjbUZ36GoqS0N0JWf4oAQmMiu6LdR/e1FkmPhpd8dOcctn6vbGfl4PL+LURyUgXXDkVvlzmOlHoqGdCCGfpAsl4aGsc78SPniIis30CJOkSyV5gVd6JsgCYIC2nxLvJ+PSURs/ZDC+LodRH6yAHuDCwMnagb34VZO4NOsljZq8ZaIU9Ii5bcw3XHU4+ZZkKY9XDEqQK9KtaMQwpWn2cCixnmfv/+XJu7FTALqmSUVaXKchJ8O7rUTJeFnPF0rj1Aus7ErE8SKKFAy2dJ4PfOlEjFnQLaTN63RVQsvjHpPWxl2GbuJ7RsdXo79US5SSJNU+ucv0NiNbQPBIyctw+XDh+DUWOsIGkN4/5+csPcDifT9Ng0FxXJd5wbZTdhBeD5fRuWoIYC09ku]] {{"id_data":"{\"mac\":\"e6:30:7b:26:5f:ab\"}","tenant_token":"authtentoken","pubkey":"-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhk <...snip...> gMBAAE=\n-----END PUBLIC KEY-----\n"} } %!s(func() (io.ReadCloser, error)=0x1ddd94) %!s(int64=724) [] %!s(bool=false) hosted.mender.io map[] map[] %!s(*multipart.Form=<nil>) map[] %!s(*tls.ConnectionState=<nil>) %!s(<-chan struct {}=<nil>) %!s(*http.Response=<nil>) <nil>} module=client_auth DEBU[0001] got response: &{401 Unauthorized 401 HTTP/2.0 2 0 map[Server:[openresty/1.13.6.1] Vary:[Accept-Encoding] X-Men-Requestid:[a1db6c02-ce3a-4c02-bc98-889d6f345ecd] Access-Control-Allow-Origin:[*] Date:[Thu, 08 Mar 2018 12:33:22 GMT] Content-Type:[application/json; charset=utf-8] X-Authentication-Version:[master_475a2ac76bc5492f27f53feaf2743f4d4fae7b30]] 0x10f0c010 -1 [] false false map[] 0x10f90400 0x1120faa0} module=client_auth ERRO[0001] authorize failed: transient error: authorization request failed: authentication request rejected module=state
INFO[0001] State transition: authorize [Sync] -> authorize-wait [Idle] module=mender
DEBU[0001] statescript: timeout for executing scripts is not defined; using default of 60 seconds module=executor
DEBU[0001] statescript: timeout for executing scripts is not defined; using default of 60 seconds module=executor
DEBU[0001] handle authorize wait state module=state
DEBU[0001] wait 30s before next authorization attempt module=state
....and so on.... device never appears in the pending list on hosted.mender gui ...
....
I was looking for a way to get some informaiton from server, but no idea how to do so.