Hello team,
I am facing a deploy issue from hawkbit for one particular target. I have success with 3 targets. Upload of the image does not reach this particular target at all. My target is using swupdate service for deploy purpose. My target is not getting registered/created automatically by DDI instead If I create target manually with admin/admin privilege also my image does not reach the target and Device will be in pending state always until I abort .
Below are the logs from my target
RACE] : SWUPDATE running : [server_get_deployment_info] : No pending action on server.
Jul 12 14:19:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [start_suricatta] : No pending action to process.
Jul 12 14:19:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [suricatta_wait] : Sleeping for 180 seconds.
Jul 12 14:19:04 swupdate[97746]: RUN [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:19:04 swupdate[97746]: RUN [channel_get] : Channel operation returned HTTP status code 200.
Jul 12 14:19:04 swupdate[97746]: RUN [channel_get] : Get JSON: {"config":{"polling":{"sleep":"00:03:00"}}}
Jul 12 14:19:04 swupdate[97746]: RUN [server_set_polling_interval_json] : Set polling interval to 180s as announced by server.
Jul 12 14:19:04 swupdate[97746]: RUN [server_get_deployment_info] : No pending action on server.
Jul 12 14:19:04 swupdate[97746]: RUN [start_suricatta] : No pending action to process.
Jul 12 14:19:04 swupdate[97746]: RUN [suricatta_wait] : Sleeping for 180 seconds.
Jul 12 14:22:04 swupdate[97753]: * STATE: INIT => CONNECT handle 0x55f9139ece80; line 1646 (connection #-5000)
Jul 12 14:22:04 swupdate[97746]: [TRACE] : SWUPDATE running : [start_suricatta] : Suricatta awakened.
Jul 12 14:22:04 swupdate[97746]: RUN [start_suricatta] : Suricatta awakened.
Jul 12 14:22:04 swupdate[97753]: * Too old connection (180 seconds), disconnect it
Jul 12 14:22:04 swupdate[97753]: * Connection 8 seems to be dead!
Jul 12 14:22:04 swupdate[97753]: * The cache now contains 0 members
Jul 12 14:22:04 swupdate[97753]: * Closing connection 8
Jul 12 14:22:04 swupdate[97746]: RUN [server_get_device_info] : Getting information for device ''
Jul 12 14:22:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [server_get_device_info] : Getting information for device ''
Jul 12 14:22:04 swupdate[97746]: RUN [channel_set_options] : cURL's low download speed timeout is disabled, this is most probably not what you want. Adapted it to 300s instead.
Jul 12 14:22:04 swupdate[97753]: * Added connection 9. The cache now contains 1 members
Jul 12 14:22:04 swupdate[97753]: * Hostname in DNS cache was stale, zapped
Jul 12 14:22:04 swupdate[97746]: RUN [channel_get] : Trying to GET http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:22:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [channel_set_options] : cURL's low download speed timeout is disabled, this is most probably not what you want. Adapted it to 300s instead.
Jul 12 14:22:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [channel_get] : Trying to GET http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:22:04 swupdate[97753]: * STATE: CONNECT => WAITRESOLVE handle 0x55f9139ece80; line 1692 (connection #9)
Jul 12 14:22:04 swupdate[97753]: * family0 == v4, family1 == v6
Jul 12 14:22:04 swupdate[97753]: * Trying <hwk_server_ip>:9001...
Jul 12 14:22:04 swupdate[97753]: * STATE: WAITRESOLVE => WAITCONNECT handle 0x55f9139ece80; line 1774 (connection #9)
Jul 12 14:22:04 swupdate[97753]: * Connected to <hwk_server_ip> (<hwk_server_ip>) port 9001 (#9)
Jul 12 14:22:04 swupdate[97753]: * STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x55f9139ece80; line 1837 (connection #9)
Jul 12 14:22:04 swupdate[97753]: * STATE: SENDPROTOCONNECT => DO handle 0x55f9139ece80; line 1861 (connection #9)
Jul 12 14:22:04 swupdate[97753]: > GET /default/controller/v1/ HTTP/1.1
Jul 12 14:22:04 swupdate[97753]: Host: <hwk_server_ip>:9001
Jul 12 14:22:04 swupdate[97753]: User-Agent: libcurl-agent/1.0
Jul 12 14:22:04 swupdate[97753]: Content-Type: application/json
Jul 12 14:22:04 swupdate[97753]: Accept: application/json
Jul 12 14:22:04 swupdate[97753]: charsets: utf-8
Jul 12 14:22:04 swupdate[97753]:
Jul 12 14:22:04 swupdate[97753]: * STATE: DO => DO_DONE handle 0x55f9139ece80; line 1935 (connection #9)
Jul 12 14:22:04 swupdate[97753]: * STATE: DO_DONE => PERFORM handle 0x55f9139ece80; line 2056 (connection #9)
Jul 12 14:22:04 swupdate[97753]: * Mark bundle as not supporting multiuse
Jul 12 14:22:04 swupdate[97753]: * HTTP 1.1 or later with persistent connection
Jul 12 14:22:04 swupdate[97753]: < HTTP/1.1 200 OK
Jul 12 14:22:04 swupdate[97753]: < Date: Mon, 12 Jul 2021 12:22:02 GMT
Jul 12 14:22:04 swupdate[97753]: < X-Application-Context: application:mysql
Jul 12 14:22:04 swupdate[97753]: < Content-Type: application/json;charset=UTF-8
Jul 12 14:22:04 swupdate[97753]: < ETag: "027bd672b1a3c5ebfb7fb7a7e0e3a9a3d"
Jul 12 14:22:04 swupdate[97753]: < X-Content-Type-Options: nosniff
Jul 12 14:22:04 swupdate[97753]: < X-XSS-Protection: 1; mode=block
Jul 12 14:22:04 swupdate[97753]: < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Jul 12 14:22:04 swupdate[97753]: < Pragma: no-cache
Jul 12 14:22:04 swupdate[97753]: < Expires: 0
Jul 12 14:22:04 swupdate[97753]: < X-Frame-Options: DENY
Jul 12 14:22:04 swupdate[97753]: < Content-Length: 43
Jul 12 14:22:04 swupdate[97753]: <
Jul 12 14:22:04 swupdate[97753]: * STATE: PERFORM => DONE handle 0x55f9139ece80; line 2254 (connection #9)
Jul 12 14:22:04 swupdate[97753]: * multi_done
Jul 12 14:22:04 swupdate[97753]: * Connection #9 to host <hwk_server_ip> left intact
Jul 12 14:22:04 swupdate[97753]: * Expire cleared (transfer 0x55f9139ece80)
Jul 12 14:22:04 swupdate[97746]: UNKNOWN {"percent": 100, "msg":"Received 43B of 43B"}
Jul 12 14:22:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:22:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_get] : Channel operation returned HTTP status code 200.
Jul 12 14:22:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_get] : Get JSON: {"config":{"polling":{"sleep":"00:03:00"}}}
Jul 12 14:22:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [server_set_polling_interval_json] : Set polling interval to 180s as announced by server.
Jul 12 14:22:04 swupdate[97746]: [TRACE] : SWUPDATE running : [server_get_deployment_info] : No pending action on server.
Jul 12 14:22:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [start_suricatta] : No pending action to process.
Jul 12 14:22:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [suricatta_wait] : Sleeping for 180 seconds.
Jul 12 14:22:04 swupdate[97746]: RUN [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:22:04 swupdate[97746]: RUN [channel_get] : Channel operation returned HTTP status code 200.
Jul 12 14:22:04 swupdate[97746]: RUN [channel_get] : Get JSON: {"config":{"polling":{"sleep":"00:03:00"}}}
Jul 12 14:22:04 swupdate[97746]: RUN [server_set_polling_interval_json] : Set polling interval to 180s as announced by server.
Jul 12 14:22:04 swupdate[97746]: RUN [server_get_deployment_info] : No pending action on server.
Jul 12 14:22:04 swupdate[97746]: RUN [start_suricatta] : No pending action to process.
Jul 12 14:22:04 swupdate[97746]: RUN [suricatta_wait] : Sleeping for 180 seconds.
Jul 12 14:25:04 swupdate[97753]: * STATE: INIT => CONNECT handle 0x55f9139ece80; line 1646 (connection #-5000)
Jul 12 14:25:04 swupdate[97753]: * Too old connection (180 seconds), disconnect it
Jul 12 14:25:04 swupdate[97753]: * Connection 9 seems to be dead!
Jul 12 14:25:04 swupdate[97753]: * The cache now contains 0 members
Jul 12 14:25:04 swupdate[97753]: * Closing connection 9
Jul 12 14:25:04 swupdate[97753]: * Added connection 10. The cache now contains 1 members
Jul 12 14:25:04 swupdate[97753]: * Hostname in DNS cache was stale, zapped
Jul 12 14:25:04 swupdate[97753]: * STATE: CONNECT => WAITRESOLVE handle 0x55f9139ece80; line 1692 (connection #10)
Jul 12 14:25:04 swupdate[97746]: RUN [start_suricatta] : Suricatta awakened.
Jul 12 14:25:04 swupdate[97746]: [TRACE] : SWUPDATE running : [start_suricatta] : Suricatta awakened.
Jul 12 14:25:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [server_get_device_info] : Getting information for device ''
Jul 12 14:25:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [channel_set_options] : cURL's low download speed timeout is disabled, this is most probably not what you want. Adapted it to 300s instead.
Jul 12 14:25:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [channel_get] : Trying to GET http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:25:04 swupdate[97746]: RUN [server_get_device_info] : Getting information for device ''
Jul 12 14:25:04 swupdate[97746]: RUN [channel_set_options] : cURL's low download speed timeout is disabled, this is most probably not what you want. Adapted it to 300s instead.
Jul 12 14:25:04 swupdate[97753]: * family0 == v4, family1 == v6
Jul 12 14:25:04 swupdate[97753]: * Trying <hwk_server_ip>:9001...
Jul 12 14:25:04 swupdate[97753]: * STATE: WAITRESOLVE => WAITCONNECT handle 0x55f9139ece80; line 1774 (connection #10)
Jul 12 14:25:04 swupdate[97746]: RUN [channel_get] : Trying to GET http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:25:04 swupdate[97753]: * Connected to <hwk_server_ip> (<hwk_server_ip>) port 9001 (#10)
Jul 12 14:25:04 swupdate[97753]: * STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x55f9139ece80; line 1837 (connection #10)
Jul 12 14:25:04 swupdate[97753]: * STATE: SENDPROTOCONNECT => DO handle 0x55f9139ece80; line 1861 (connection #10)
Jul 12 14:25:04 swupdate[97753]: > GET /default/controller/v1/ HTTP/1.1
Jul 12 14:25:04 swupdate[97753]: Host: <hwk_server_ip>:9001
Jul 12 14:25:04 swupdate[97753]: User-Agent: libcurl-agent/1.0
Jul 12 14:25:04 swupdate[97753]: Content-Type: application/json
Jul 12 14:25:04 swupdate[97753]: Accept: application/json
Jul 12 14:25:04 swupdate[97753]: charsets: utf-8
Jul 12 14:25:04 swupdate[97753]:
Jul 12 14:25:04 swupdate[97753]: * STATE: DO => DO_DONE handle 0x55f9139ece80; line 1935 (connection #10)
Jul 12 14:25:04 swupdate[97753]: * STATE: DO_DONE => PERFORM handle 0x55f9139ece80; line 2056 (connection #10)
Jul 12 14:25:04 swupdate[97753]: * Mark bundle as not supporting multiuse
Jul 12 14:25:04 swupdate[97753]: * HTTP 1.1 or later with persistent connection
Jul 12 14:25:04 swupdate[97753]: < HTTP/1.1 200 OK
Jul 12 14:25:04 swupdate[97753]: < Date: Mon, 12 Jul 2021 12:25:02 GMT
Jul 12 14:25:04 swupdate[97753]: < X-Application-Context: application:mysql
Jul 12 14:25:04 swupdate[97753]: < Content-Type: application/json;charset=UTF-8
Jul 12 14:25:04 swupdate[97753]: < ETag: "027bd672b1a3c5ebfb7fb7a7e0e3a9a3d"
Jul 12 14:25:04 swupdate[97753]: < X-Content-Type-Options: nosniff
Jul 12 14:25:04 swupdate[97753]: < X-XSS-Protection: 1; mode=block
Jul 12 14:25:04 swupdate[97753]: < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Jul 12 14:25:04 swupdate[97753]: < Pragma: no-cache
Jul 12 14:25:04 swupdate[97753]: < Expires: 0
Jul 12 14:25:04 swupdate[97753]: < X-Frame-Options: DENY
Jul 12 14:25:04 swupdate[97753]: < Content-Length: 43
Jul 12 14:25:04 swupdate[97753]: <
Jul 12 14:25:04 swupdate[97753]: * STATE: PERFORM => DONE handle 0x55f9139ece80; line 2254 (connection #10)
Jul 12 14:25:04 swupdate[97753]: * multi_done
Jul 12 14:25:04 swupdate[97753]: * Connection #10 to host <hwk_server_ip> left intact
Jul 12 14:25:04 swupdate[97753]: * Expire cleared (transfer 0x55f9139ece80)
Jul 12 14:25:04 swupdate[97746]: UNKNOWN {"percent": 100, "msg":"Received 43B of 43B"}
Jul 12 14:25:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:25:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_get] : Channel operation returned HTTP status code 200.
Jul 12 14:25:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_get] : Get JSON: {"config":{"polling":{"sleep":"00:03:00"}}}
Jul 12 14:25:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [server_set_polling_interval_json] : Set polling interval to 180s as announced by server.
Jul 12 14:25:04 swupdate[97746]: [TRACE] : SWUPDATE running : [server_get_deployment_info] : No pending action on server.
Jul 12 14:25:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [start_suricatta] : No pending action to process.
Jul 12 14:25:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [suricatta_wait] : Sleeping for 180 seconds.
Jul 12 14:25:04 swupdate[97746]: RUN [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:25:04 swupdate[97746]: RUN [channel_get] : Channel operation returned HTTP status code 200.
Jul 12 14:25:04 swupdate[97746]: RUN [channel_get] : Get JSON: {"config":{"polling":{"sleep":"00:03:00"}}}
Jul 12 14:25:04 swupdate[97746]: RUN [server_set_polling_interval_json] : Set polling interval to 180s as announced by server.
Jul 12 14:25:04 swupdate[97746]: RUN [server_get_deployment_info] : No pending action on server.
Jul 12 14:25:04 swupdate[97746]: RUN [start_suricatta] : No pending action to process.
Jul 12 14:25:04 swupdate[97746]: RUN [suricatta_wait] : Sleeping for 180 seconds.
Jul 12 14:28:04 swupdate[97753]: * STATE: INIT => CONNECT handle 0x55f9139ece80; line 1646 (connection #-5000)
Jul 12 14:28:04 swupdate[97746]: [TRACE] : SWUPDATE running : [start_suricatta] : Suricatta awakened.
Jul 12 14:28:04 swupdate[97746]: RUN [start_suricatta] : Suricatta awakened.
Jul 12 14:28:04 swupdate[97753]: * Too old connection (180 seconds), disconnect it
Jul 12 14:28:04 swupdate[97753]: * Connection 10 seems to be dead!
Jul 12 14:28:04 swupdate[97753]: * The cache now contains 0 members
Jul 12 14:28:04 swupdate[97753]: * Closing connection 10
Jul 12 14:28:04 swupdate[97746]: RUN [server_get_device_info] : Getting information for device ''
Jul 12 14:28:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [server_get_device_info] : Getting information for device ''
Jul 12 14:28:04 swupdate[97746]: RUN [channel_set_options] : cURL's low download speed timeout is disabled, this is most probably not what you want. Adapted it to 300s instead.
Jul 12 14:28:04 swupdate[97753]: * Added connection 11. The cache now contains 1 members
Jul 12 14:28:04 swupdate[97753]: * Hostname in DNS cache was stale, zapped
Jul 12 14:28:04 swupdate[97746]: RUN [channel_get] : Trying to GET http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:28:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [channel_set_options] : cURL's low download speed timeout is disabled, this is most probably not what you want. Adapted it to 300s instead.
Jul 12 14:28:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [channel_get] : Trying to GET http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:28:04 swupdate[97753]: * STATE: CONNECT => WAITRESOLVE handle 0x55f9139ece80; line 1692 (connection #11)
Jul 12 14:28:04 swupdate[97753]: * family0 == v4, family1 == v6
Jul 12 14:28:04 swupdate[97753]: * Trying <hwk_server_ip>:9001...
Jul 12 14:28:04 swupdate[97753]: * STATE: WAITRESOLVE => WAITCONNECT handle 0x55f9139ece80; line 1774 (connection #11)
Jul 12 14:28:04 swupdate[97753]: * Connected to <hwk_server_ip> (<hwk_server_ip>) port 9001 (#11)
Jul 12 14:28:04 swupdate[97753]: * STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x55f9139ece80; line 1837 (connection #11)
Jul 12 14:28:04 swupdate[97753]: * STATE: SENDPROTOCONNECT => DO handle 0x55f9139ece80; line 1861 (connection #11)
Jul 12 14:28:04 swupdate[97753]: > GET /default/controller/v1/ HTTP/1.1
Jul 12 14:28:04 swupdate[97753]: Host: <hwk_server_ip>:9001
Jul 12 14:28:04 swupdate[97753]: User-Agent: libcurl-agent/1.0
Jul 12 14:28:04 swupdate[97753]: Content-Type: application/json
Jul 12 14:28:04 swupdate[97753]: Accept: application/json
Jul 12 14:28:04 swupdate[97753]: charsets: utf-8
Jul 12 14:28:04 swupdate[97753]:
Jul 12 14:28:04 swupdate[97753]: * STATE: DO => DO_DONE handle 0x55f9139ece80; line 1935 (connection #11)
Jul 12 14:28:04 swupdate[97753]: * STATE: DO_DONE => PERFORM handle 0x55f9139ece80; line 2056 (connection #11)
Jul 12 14:28:04 swupdate[97753]: * Mark bundle as not supporting multiuse
Jul 12 14:28:04 swupdate[97753]: * HTTP 1.1 or later with persistent connection
Jul 12 14:28:04 swupdate[97753]: < HTTP/1.1 200 OK
Jul 12 14:28:04 swupdate[97753]: < Date: Mon, 12 Jul 2021 12:28:02 GMT
Jul 12 14:28:04 swupdate[97753]: < X-Application-Context: application:mysql
Jul 12 14:28:04 swupdate[97753]: < Content-Type: application/json;charset=UTF-8
Jul 12 14:28:04 swupdate[97753]: < ETag: "027bd672b1a3c5ebfb7fb7a7e0e3a9a3d"
Jul 12 14:28:04 swupdate[97753]: < X-Content-Type-Options: nosniff
Jul 12 14:28:04 swupdate[97753]: < X-XSS-Protection: 1; mode=block
Jul 12 14:28:04 swupdate[97753]: < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Jul 12 14:28:04 swupdate[97753]: < Pragma: no-cache
Jul 12 14:28:04 swupdate[97753]: < Expires: 0
Jul 12 14:28:04 swupdate[97753]: < X-Frame-Options: DENY
Jul 12 14:28:04 swupdate[97753]: < Content-Length: 43
Jul 12 14:28:04 swupdate[97753]: <
Jul 12 14:28:04 swupdate[97753]: * STATE: PERFORM => DONE handle 0x55f9139ece80; line 2254 (connection #11)
Jul 12 14:28:04 swupdate[97753]: * multi_done
Jul 12 14:28:04 swupdate[97753]: * Connection #11 to host <hwk_server_ip> left intact
Jul 12 14:28:04 swupdate[97753]: * Expire cleared (transfer 0x55f9139ece80)
Jul 12 14:28:04 swupdate[97746]: UNKNOWN {"percent": 100, "msg":"Received 43B of 43B"}
Jul 12 14:28:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:28:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_get] : Channel operation returned HTTP status code 200.
Jul 12 14:28:04 swupdate[97746]: [TRACE] : SWUPDATE running : [channel_get] : Get JSON: {"config":{"polling":{"sleep":"00:03:00"}}}
Jul 12 14:28:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [server_set_polling_interval_json] : Set polling interval to 180s as announced by server.
Jul 12 14:28:04 swupdate[97746]: [TRACE] : SWUPDATE running : [server_get_deployment_info] : No pending action on server.
Jul 12 14:28:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [start_suricatta] : No pending action to process.
Jul 12 14:28:04 swupdate[97746]: [DEBUG] : SWUPDATE running : [suricatta_wait] : Sleeping for 180 seconds.
Jul 12 14:28:04 swupdate[97746]: RUN [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:9001/default/controller/v1/
Jul 12 14:28:04 swupdate[97746]: RUN [channel_get] : Channel operation returned HTTP status code 200.
Jul 12 14:28:04 swupdate[97746]: RUN [channel_get] : Get JSON: {"config":{"polling":{"sleep":"00:03:00"}}}
Jul 12 14:28:04 swupdate[97746]: RUN [server_set_polling_interval_json] : Set polling interval to 180s as announced by server.
Jul 12 14:28:04 swupdate[97746]: RUN [server_get_deployment_info] : No pending action on server.
Jul 12 14:28:04 swupdate[97746]: RUN [start_suricatta] : No pending action to process.
Jul 12 14:28:04 swupdate[97746]: RUN [suricatta_wait] : Sleeping for 180 seconds.
My swupdate.conf file looks like this:
globals :
{
verbose = true;
loglevel = 5;
syslog = true;
public-key-file = "/etc/ca-certificates/swu.pub.pem";
};
download :
{
retries = 3;
timeout = 1800;
};
identify : (
{ name = "xxxx"; value = "1.0.0"; }
);
suricatta :
{
tenant = "default";
id = "xxxx";
confirm = 0;
url = "<hawkbit_server:port>";
polldelay = 180;
nocheckcert = true;
retry = 4;
retrywait = 180;
loglevel = 10;
userid = 0;
groupid = 0;
max_artifacts = 1;
};
webserver :
{
document_root = "/www";
userid = 0;
groupid = 0;
run-postupdate = false;
};
Kindly provide your inputs on the same
Hi @Jyothi-K , Hawkbit provides a server side of a software update and your issue is definitely related to the client side. Thus I would suggest posting this issue/contacting SWUpdate agent team. The only thing I can spot from your logs is that the client tries to poll the DDI API via http://<hwk_server_ip>:9001/default/controller/v1/, however the correct endpoint would be http://<hwk_server_ip>:9001/default/controller/v1/{controller_id}, so the controller id is missing. However, logs could not reflect the actual request being performed, as mentioned before, please contact SWUpdate agent team.
Hi @bogdan-bondar Thanks for your inputs. Actually I recently migrated hawkbit to a new server only there am facing problem. In the old server I do not have any issues and the image deploys well. So here am not sure what is causing the issue/or anything missing in the new server. By the way I have used the correct endpoint. According to me swupdate is trying to send correct data but the device is neither getting created nor registered in hawkbit. Not sure what is missing here . Below are the swupdate logs
SWUPDATE running : [server_send_target_data] : URL=http://<hwk_server_ip>:port/default/controller/v1/controller_id/configData JSON={ "id": "", "time": "20210715T121102", "status": { "result": { "finished": "success" }, "execution": "closed", "details" : [ "" ] }, "data" : { "hwversion": "1.0.0" } }
Jul 15 12:11:02 controller_id swupdate[242159]: RUN [server_send_target_data] : KEYVALUE= "hwversion": "1.0.0" hwversion 1.0.0
Jul 15 12:11:02 controller_id swupdate[242159]: RUN [server_send_target_data] : CONFIGDATA= "hwversion": "1.0.0"
Jul 15 12:11:02 controller_id swupdate[242159]: RUN [server_send_target_data] : URL=http://<hwk_server_ip>:port/default/controller/v1/controller_id/configData JSON={ "id": "", "time": "20210715T121102", "status": { "result": { "finished": "success" }, "execution": "closed", "details" : [ "" ] }, "data" : { "hwversion": "1.0.0" } }
Jul 15 12:11:02 controller_id swupdate[242159]: [TRACE] : SWUPDATE running : [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:port/default/controller/v1/controller_id/configData
Jul 15 12:11:02 controller_id swupdate[242159]: RUN [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:port/default/controller/v1/controller_id/configData
Jul 15 12:11:02 controller_id swupdate[242159]: [TRACE] : SWUPDATE running : [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:port/default/controller/v1/controller_id
Jul 15 12:11:02 controller_id swupdate[242159]: RUN [channel_log_effective_url] : Channel's effective URL resolved to http://<hwk_server_ip>:port/default/controller/v1/controller_id
Jul 15 12:11:02 controller_id swupdate[242159]: RUN [server_get_deployment_info] : No pending action on server.
Jul 15 12:11:02 controller_id swupdate[242159]: [TRACE] : SWUPDATE running : [server_get_deployment_info] : No pending action on server.
As you mentioned I will also post the same in swupdate team as well.