Cannot connect to mender-server from mender-client

I have managed to get as far as trying to connect to the server, but it seems not to be able to find the URL, but I might be mistaken. Here are the logs.

Jan 30 15:29:50 xxxxxxxxxxx systemd[1]: Started Mender OTA update service.
Jan 30 15:29:51 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:51Z" level=info msg="Loaded configuration file: /var/lib/mender/mender.conf"
Jan 30 15:29:51 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:51Z" level=info msg="Loaded configuration file: /etc/mender/mender.conf"
Jan 30 15:29:51 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:51Z" level=info msg="'UpdateControlMapExpirationTimeSeconds' is not set in the Mender configuration file. Falling back to the default of 2*UpdatePollIntervalSeconds"
Jan 30 15:29:51 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:51Z" level=info msg="'UpdateControlMapBootExpirationTimeSeconds' is not set in the Mender configuration file. Falling back to the default of 600 seconds"
Jan 30 15:29:52 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:52Z" level=info msg="Mender running on partition: /dev/mmcblk0p2"
Jan 30 15:29:52 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:52Z" level=info msg="State transition: init [none] -> init [none]"
Jan 30 15:29:52 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:52Z" level=info msg="State transition: init [none] -> idle [Idle]"
Jan 30 15:29:52 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:52Z" level=info msg="State transition: idle [Idle] -> check-wait [Idle]"
Jan 30 15:29:52 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:52Z" level=info msg="State transition: check-wait [Idle] -> inventory-update [Sync]"
Jan 30 15:29:52 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:52Z" level=info msg="Output (stderr) from command \"/usr/share/mender/inventory/mender-inventory-geo\": /usr/share/mender/inventory/mender-inventory-geo: Unable to get IP info from ipinfo.io"
Jan 30 15:29:52 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:52Z" level=warning msg="Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 2"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=info msg="Device unauthorized; attempting reauthorization"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=info msg="Output (stderr) from command \"/usr/share/mender/identity/mender-device-identity\": using interface /sys/class/net/eth0"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=error msg="Failure occurred while executing authorization request: Method: Post, URL: https://xxx-xxxxxx.yyyyyy-yyyyy.co.uk/api/devices/v1/authentication/auth_requests"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=error msg="Failed to authorize with \"https://xxx-xxxxxx.yyyyyy-yyyyy.co.uk\": Unknown url.Error type: dial tcp: lookup xxx-xxxxxx.yyyyyy-yyyyy.co.uk on 127.0.0.1:53: server misbehaving"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=warning msg="Reauthorization failed with error: transient error: authorization request failed"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=error msg="Failed to submit inventory data: transient error: authorization request failed"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=error msg="inventory submit failed: transient error: authorization request failed"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=warning msg="Failed to refresh inventory: failed to submit inventory data: inventory submit failed: transient error: authorization request failed"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=info msg="State transition: inventory-update [Sync] -> inventory-update-retry-wait [Sync]"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=info msg="Handle update inventory retry state try: 0"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=info msg="Output (stderr) from command \"/usr/share/mender/inventory/mender-inventory-geo\": /usr/share/mender/inventory/mender-inventory-geo: Unable to get IP info from ipinfo.io"
Jan 30 15:29:53 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:53Z" level=warning msg="Inventory tool /usr/share/mender/inventory/mender-inventory-geo wait failed: exit status 2"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=info msg="Device unauthorized; attempting reauthorization"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=info msg="Output (stderr) from command \"/usr/share/mender/identity/mender-device-identity\": using interface /sys/class/net/eth0"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=error msg="Failure occurred while executing authorization request: Method: Post, URL: https://xxx-xxxxxx.yyyyyy-yyyyy.co.uk/api/devices/v1/authentication/auth_requests"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=error msg="Failed to authorize with \"https://xxx-xxxxxx.yyyyyy-yyyyy.co.uk\": Unknown url.Error type: dial tcp: lookup xxx-xxxxxx.yyyyyy-yyyyy.co.uk on 127.0.0.1:53: server misbehaving"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=warning msg="Reauthorization failed with error: transient error: authorization request failed"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=error msg="Failed to submit inventory data: transient error: authorization request failed"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=error msg="inventory submit failed: transient error: authorization request failed"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=warning msg="Failed to refresh inventory: failed to submit inventory data: inventory submit failed: transient error: authorization request failed"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=warning msg="RetryPollIntervalSeconds is not defined"
Jan 30 15:29:54 xxxxxxxxxxx mender[422]: time="2024-01-30T15:29:54Z" level=info msg="Wait 1m0s before next inventory update attempt in 59.999954241s"

Hi @jjsteele,

First thing to check obviously is if the device is accepted on the server. Next thing would probably be to check the server logs if there is anything visible.

Greets,
Josef

Hi @TheYoctoJester

Everything working perfectly now. Modified the prod.yml to accept Letsencrypt certificates and connecting fine and accepted a small path on all test devices!

Next step production of 10,000 SD cards:-)

Manky thanks for all your help!

John

1 Like