Update fails with 'Failed to set new authentication data on HTTP request'

I am deploying a system update to a raspberry pi device that I have already deployed to successfully. I have deployed the same system update to 2 other devices successfully, but for some reason this device is failing. I have tried it twice now with the same result.

I think it may have something to do with the timestamp. From the logs it looks like when it reboots it looses a month. What would cause this? Is there a way to force it to get an updated timestamp from a server before mender client is run? Would an out of date timestamp cause this error?

Here is the log;

2025-12-11 17:28:52.907 +0000 UTC info: Running Mender client 5.0.1
2025-12-11 17:28:52.909 +0000 UTC info: Deployment with ID 97b7631a-5a5d-4bc1-b172-be45633810c7 started.
2025-12-11 17:28:52.91 +0000 UTC info: Sending status update to server
2025-12-11 17:28:56.017 +0000 UTC info: Installing artifact…
2025-12-11 17:51:36.923 +0000 UTC info: Update Module output (stdout): ================ STATISTICS ================
2025-12-11 17:51:36.926 +0000 UTC info: Update Module output (stdout): Blocks written: 33
2025-12-11 17:51:36.926 +0000 UTC info: Update Module output (stdout): Blocks omitted: 8635
2025-12-11 17:51:36.926 +0000 UTC info: Update Module output (stdout): Bytes written: 34603008
2025-12-11 17:51:36.926 +0000 UTC info: Update Module output (stdout): ============================================
2025-12-11 17:51:38.05 +0000 UTC info: Sending status update to server
2025-12-11 17:51:41.356 +0000 UTC info: Sending status update to server
2025-12-11 17:51:44.287 +0000 UTC info: Calling `reboot` command and waiting for system to restart.
2025-12-11 17:51:44.491 +0000 UTC info: Termination signal received, shutting down gracefully
2025-11-10 10:13:27.677 +0000 UTC info: Running Mender client 5.0.1
2025-11-10 10:13:27.705 +0000 UTC info: The update client daemon is now ready to handle incoming deployments
2025-11-10 10:13:28.073 +0000 UTC info: Sending status update to server
2025-11-10 10:13:28.328 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:13:28.328 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:13:28.328 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:13:28.328 +0000 UTC info: Retrying status update after 60 seconds
2025-11-10 10:14:28.328 +0000 UTC info: Sending status update to server
2025-11-10 10:14:28.461 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:14:28.462 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:14:28.462 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:14:28.462 +0000 UTC info: Retrying status update after 60 seconds
2025-11-10 10:15:28.462 +0000 UTC info: Sending status update to server
2025-11-10 10:15:28.598 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:15:28.599 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:15:28.599 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:15:28.599 +0000 UTC info: Retrying status update after 60 seconds
2025-11-10 10:16:28.599 +0000 UTC info: Sending status update to server
2025-11-10 10:16:28.732 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:16:28.733 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:16:28.733 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:16:28.733 +0000 UTC info: Retrying status update after 120 seconds
2025-11-10 10:18:28.733 +0000 UTC info: Sending status update to server
2025-11-10 10:18:28.867 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:18:28.867 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:18:28.867 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:18:28.867 +0000 UTC info: Retrying status update after 120 seconds
2025-11-10 10:20:28.868 +0000 UTC info: Sending status update to server
2025-11-10 10:20:29.001 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:20:29.001 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:20:29.001 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:20:29.002 +0000 UTC info: Retrying status update after 120 seconds
2025-11-10 10:22:29.002 +0000 UTC info: Sending status update to server
2025-11-10 10:22:29.135 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:22:29.135 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:22:29.136 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:22:29.136 +0000 UTC info: Retrying status update after 240 seconds
2025-11-10 10:26:29.136 +0000 UTC info: Sending status update to server
2025-11-10 10:26:29.269 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:26:29.27 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:26:29.27 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:26:29.27 +0000 UTC info: Retrying status update after 240 seconds
2025-11-10 10:30:29.27 +0000 UTC info: Sending status update to server
2025-11-10 10:30:29.404 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:30:29.404 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:30:29.404 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:30:29.405 +0000 UTC info: Retrying status update after 240 seconds
2025-11-10 10:34:29.405 +0000 UTC info: Sending status update to server
2025-11-10 10:34:29.54 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:34:29.54 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:34:29.54 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:34:29.541 +0000 UTC info: Retrying status update after 300 seconds
2025-11-10 10:39:29.541 +0000 UTC info: Sending status update to server
2025-11-10 10:39:29.674 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:39:29.674 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:39:29.674 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:39:29.675 +0000 UTC info: Retrying status update after 300 seconds
2025-11-10 10:44:29.675 +0000 UTC info: Sending status update to server
2025-11-10 10:44:29.809 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:44:29.809 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:44:29.81 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:44:29.81 +0000 UTC info: Retrying status update after 300 seconds
2025-11-10 10:49:29.81 +0000 UTC info: Sending status update to server
2025-11-10 10:49:29.943 +0000 UTC error: Failed to set new authentication data on HTTP request
2025-11-10 10:49:29.944 +0000 UTC error: Request to push status data failed: Cannot submit API request
2025-11-10 10:49:29.944 +0000 UTC error: Could not send deployment status: Unauthorized error: Cannot submit API request
2025-11-10 10:49:29.944 +0000 UTC error: Giving up on sending status updates to server: Tried maximum number of times: Exponential backoff
2025-11-10 10:49:31.56 +0000 UTC info: Calling `reboot` command and waiting for system to restart.
2025-11-10 10:49:31.806 +0000 UTC info: Termination signal received, shutting down gracefully
2025-12-11 17:52:00.86 +0000 UTC info: Running Mender client 5.0.1
2025-12-11 17:52:00.893 +0000 UTC info: The update client daemon is now ready to handle incoming deployments
2025-12-11 17:52:01.327 +0000 UTC info: Sending status update to server

I think I might have worked it out: The device is connected to Wifi, but the config gets wiped when it reboots, so has no internet connection. This must be pretty common when deploying system updates, is there a recommended fix for this? Like a script in the boot directory that copies config over on boot.

Hi @paul.m,

What do you exactly mean by “the config gets wiped”? If that means that the configuration for your WiFi connection are located on the root filesystem which is updated, then thats the problem.

Relocate those configuration files to persistent storage, usually /data and symlink them to the respective places in /etc. This usually requires a form of “first boot” logic to populate the files if they don’t already exist.

This is essentially a common best practice, as in a product context you also don’t want people to have to re-configure their network connectivity upon every update.

Greetz,
Josef