# Update fails because device cant report

**URL:** <https://hub.mender.io/t/update-fails-because-device-cant-report/6406>\
**Category:** General Discussions\
**Tags:** buildroot, mender-client, update\
**Created:** [December 7, 2023, 9:59am UTC](https://hub.mender.io/t/update-fails-because-device-cant-report/6406 "2023-12-07T09:59:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mister\_kanister](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mister\_kanister](https://hub.mender.io/u/mister_kanister)\
**Post date:** [December 7, 2023, 9:59am UTC](https://hub.mender.io/t/update-fails-because-device-cant-report/6406/1 "2023-12-07T09:59:42Z")

</div>

Good Day Friends!

We have an issue where an update is considered failed if the device can not report back. This one testdevice is in a restrictive network and report needs several attempts. If the report fails, a rollback is triggered and resulting in `INCONSISTENT`.

Is there a way to decouple this behaviour? Making report to backend as optional.

```auto
2023-12-06 13:58:55 +0000 UTC info: Device unauthorized; attempting reauthorization
2023-12-06 13:59:06 +0000 UTC error: Failure occurred while executing authorization request: Method: Post, URL: https://mender.<url>.com/api/devices/v1/authentication/auth_requests
2023-12-06 13:59:06 +0000 UTC error: Failed to authorize with "https://mender.<url>com": Unknown url.Error type: dial tcp: lookup mender.<url>.com on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable
2023-12-06 13:59:06 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed
2023-12-06 13:59:06 +0000 UTC error: Failed to report status: transient error: authorization request failed
2023-12-06 13:59:06 +0000 UTC error: error reporting update status: reporting status failed: transient error: authorization request failed
2023-12-06 13:59:06 +0000 UTC error: Failed to send status report to server: transient error: reporting status failed: transient error: authorization request failed
2023-12-06 13:59:06 +0000 UTC info: State transition: update-commit [ArtifactCommit_Enter] -> update-pre-commit-status-report-retry [ArtifactCommit_Enter]
2023-12-06 13:59:36 +0000 UTC info: State transition: update-pre-commit-status-report-retry [ArtifactCommit_Enter] -> update-commit [ArtifactCommit_Enter]
2023-12-06 13:59:36 +0000 UTC info: Device unauthorized; attempting reauthorization
2023-12-06 13:59:29 +0000 UTC info: Running Mender client version: 3.4.0
2023-12-06 13:59:29 +0000 UTC error: Mender shut down in state: update-commit
2023-12-06 13:59:29 +0000 UTC info: State transition: init [none] -> update-error [ArtifactFailure]
2023-12-06 13:59:29 +0000 UTC info: Output (stdout) from command "/usr/share/mender/modules/v3/install-wifi-bridge": ArtifactFailure: restore old binary
2023-12-06 13:59:30 +0000 UTC info: State transition: update-error [ArtifactFailure] -> cleanup [Error]
2023-12-06 13:59:30 +0000 UTC info: State transition: cleanup [Error] -> update-status-report [none]
2023-12-06 13:59:30 +0000 UTC info: Device unauthorized; attempting reauthorization
2023-12-06 13:59:30 +0000 UTC error: Failure occurred while executing authorization request: Method: Post, URL: https://mender.<url>.com/api/devices/v1/authentication/auth_requests
2023-12-06 13:59:30 +0000 UTC error: Failed to authorize with "https://mender.<url>.com": Unknown url.Error type: dial tcp: lookup mender.<url>.com on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable
2023-12-06 13:59:30 +0000 UTC warning: Reauthorization failed with error: transient error: authorization request failed
2023-12-06 13:59:30 +0000 UTC error: Failed to report status: transient error: authorization request failed
2023-12-06 13:59:30 +0000 UTC error: error reporting update status: reporting status failed: transient error: authorization request failed
2023-12-06 13:59:30 +0000 UTC error: Failed to send status to server: transient error: reporting status failed: transient error: authorization request failed
2023-12-06 13:59:30 +0000 UTC info: State transition: update-status-report [none] -> update-retry-report [none]
2023-12-06 14:00:25 +0000 UTC info: State transition: update-retry-report [none] -> update-status-report [none]
2023-12-06 14:00:25 +0000 UTC info: Device unauthorized; attempting reauthorization
2023-12-06 14:00:26 +0000 UTC info: successfully received new authorization data from server https://mender.<url>.com
2023-12-06 14:00:26 +0000 UTC info: Local proxy started
2023-12-06 14:00:26 +0000 UTC info: Reauthorization successful

```

On demand I will publish the whole deployment log.

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [December 8, 2023, 7:13am UTC](https://hub.mender.io/t/update-fails-because-device-cant-report/6406/2 "2023-12-08T07:13:15Z")

</div>

There was some talk about adding a `AllowCommitWithoutContactingServer` configuration option, but this is [still on the backlog](https://northerntech.atlassian.net/browse/ME-92) (private customer ticket), and it hasn’t seen a lot of activity lately. It would make sense though.

---

<div class="post-metadata">

**Author:** ![mister\_kanister](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mister\_kanister](https://hub.mender.io/u/mister_kanister)\
**Post date:** [February 16, 2024, 11:48am UTC](https://hub.mender.io/t/update-fails-because-device-cant-report/6406/3 "2024-02-16T11:48:30Z")

</div>

It comes to my attention when poll intervals are high enough, that this is no longer a problem:

```auto
mender setup \
--device-type $DEVICE_TYPE \
--server-url $SERVER_URL \
--server-cert /etc/mender/server.crt \
--config /mnt/mender/mender.conf \
--data /mnt/mender \
--update-poll 120 \
--inventory-poll 120 \
--retry-poll 30

```

So if `--update-poll 120 --inventory-poll 120 --retry-poll 30` are high enough, that the reporting is working as expected.

Considered resolved from my side.
