Azure / iotedge

The IoT Edge OSS project
MIT License
1.46k stars 459 forks source link

edgeAgent module fails with: "Error calling SignAsync: Module not found, StatusCode: 404" #4027

Closed mschwan-phytec closed 3 years ago

mschwan-phytec commented 3 years ago

Expected Behavior

The edgeAgent module should run without error and an edgeHub module should be created. The IoT Edge modules should report their status successfully.

Current Behavior

The edgeAgent module runs (does not exit with an error) but fails with Error creating a device-to-cloud connection and Error calling SignAsync: Module not found, StatusCode: 404, as well as Empty edge agent config was received. (see full logs below). As a result, the edgeHub module is not being created and the status of the Edge device is not being reported to the Azure service.

Steps to Reproduce

Provide a detailed set of steps to reproduce the bug.

  1. Build for ARM64 on Yocto with meta-iotedge (zeus, iotedge 1.0.9.4).
  2. Configure a new Azure IoT Hub service and add an IoT Edge device.
  3. Create a module deployment.
  4. Configure the target device with the corresponding credentials (symmetric keys in this case, for testing).
  5. Start iotedge systemd service.

Context (Environment)

Output of iotedge check

Click here ``` root@myhostname:~# iotedge check Configuration checks -------------------- √ config.yaml is well-formed - OK √ config.yaml has well-formed connection string - OK √ container engine is installed and functional - OK √ config.yaml has correct hostname - OK √ config.yaml has correct URIs for daemon mgmt endpoint - OK ‼ latest security daemon - Warning Installed IoT Edge daemon has version 1.0.9.4 but 1.0.10.2 is the latest stable version available. Please see https://aka.ms/iotedge-update-runtime for update instructions. √ host time is close to real time - OK √ container time is close to host time - OK ‼ DNS server - Warning Container engine is not configured with DNS server setting, which may impact connectivity to IoT Hub. Please see https://aka.ms/iotedge-prod-checklist-dns for best practices. You can ignore this warning if you are setting DNS server per module in the Edge deployment. ‼ production readiness: certificates - Warning The Edge device is using self-signed automatically-generated development certificates. They will expire in 89 days (at 2021-02-24 14:45:45 UTC) causing module-to-module and downstream device communication to fail on an active deployment. After the certs have expired, restarting the IoT Edge daemon will trigger it to generate new development certs. Please consider using production certificates instead. See https://aka.ms/iotedge-prod-checklist-certs for best practices. ‼ production readiness: container engine - Warning Device is not using a production-supported container engine (moby-engine). Please see https://aka.ms/iotedge-prod-checklist-moby for details. ‼ production readiness: logs policy - Warning Container engine is not configured to rotate module logs which may cause it run out of disk space. Please see https://aka.ms/iotedge-prod-checklist-logs for best practices. You can ignore this warning if you are setting log policy per module in the Edge deployment. ‼ production readiness: Edge Agent's storage directory is persisted on the host filesystem - Warning The edgeAgent module is not configured to persist its /tmp/edgeAgent directory on the host filesystem. Data might be lost if the module is deleted or updated. Please see https://aka.ms/iotedge-storage-host for best practices. × production readiness: Edge Hub's storage directory is persisted on the host filesystem - Error Could not check current state of edgeHub container Connectivity checks ------------------- √ host can connect to and perform TLS handshake with IoT Hub AMQP port - OK √ host can connect to and perform TLS handshake with IoT Hub HTTPS / WebSockets port - OK √ host can connect to and perform TLS handshake with IoT Hub MQTT port - OK √ container on the default network can connect to IoT Hub AMQP port - OK √ container on the default network can connect to IoT Hub HTTPS / WebSockets port - OK √ container on the default network can connect to IoT Hub MQTT port - OK √ container on the IoT Edge module network can connect to IoT Hub AMQP port - OK √ container on the IoT Edge module network can connect to IoT Hub HTTPS / WebSockets port - OK √ container on the IoT Edge module network can connect to IoT Hub MQTT port - OK 16 check(s) succeeded. 6 check(s) raised warnings. Re-run with --verbose for more details. 1 check(s) raised errors. Re-run with --verbose for more details. ```

Device Information

Runtime Versions

Client:
 Version:           19.03.2-ce
 API version:       1.40
 Go version:        go1.12.9
 Git commit:        6a30dfca03
 Built:             Thu Nov 26 10:15:57 2020
 OS/Arch:           linux/arm64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.2-ce
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.9
  Git commit:       6a30dfca03664a0b6bf0646a7d389ee7d0318e6e
  Built:            Thu Nov 26 10:15:42 2020
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          v1.2.7-11-gfd103cb71.m
  GitCommit:        fd103cb716352c7e19768e4fed057f71d68902a0.m
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f-dirty
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683-dirty

Logs

iotedged logs ``` -- Logs begin at Fri 2020-11-27 11:03:33 UTC. -- Nov 27 11:03:58 myhostname iotedged[520]: 2020-11-27T11:03:58Z [INFO] - Listening on fd://iotedge.socket/ with 1 thread for workload API. Nov 27 11:03:58 myhostname iotedged[520]: 2020-11-27T11:03:58Z [INFO] - Checking edge runtime status Nov 27 11:03:58 myhostname iotedged[520]: 2020-11-27T11:03:58Z [INFO] - Edge runtime status is stopped, starting module now... Nov 27 11:03:58 myhostname iotedged[520]: 2020-11-27T11:03:58Z [INFO] - Starting module edgeAgent... Nov 27 11:03:59 myhostname iotedged[520]: 2020-11-27T11:03:59Z [INFO] - Successfully started module edgeAgent Nov 27 11:04:02 myhostname iotedged[520]: 2020-11-27T11:04:02Z [INFO] - [work] - - - [2020-11-27 11:04:02.966011151 UTC] "GET /trust-bundle?api-version=2019-01-30 HTTP/1.1" 200 OK 1944 "-" "-" auth_id(-) Nov 27 11:04:04 myhostname iotedged[520]: 2020-11-27T11:04:04Z [INFO] - Querying system info... Nov 27 11:04:04 myhostname iotedged[520]: 2020-11-27T11:04:04Z [INFO] - Successfully queried system info Nov 27 11:04:04 myhostname iotedged[520]: 2020-11-27T11:04:04Z [INFO] - [mgmt] - - - [2020-11-27 11:04:04.980611526 UTC] "GET /systeminfo?api-version=2019-11-05 HTTP/1.1" 200 OK 63 "-" "-" auth_id(-) Nov 27 11:04:09 myhostname iotedged[520]: 2020-11-27T11:04:09Z [INFO] - [work] - - - [2020-11-27 11:04:09.528707026 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:04:10 myhostname iotedged[520]: 2020-11-27T11:04:10Z [INFO] - Querying system info... Nov 27 11:04:10 myhostname iotedged[520]: 2020-11-27T11:04:10Z [INFO] - Successfully queried system info Nov 27 11:04:10 myhostname iotedged[520]: 2020-11-27T11:04:10Z [INFO] - [mgmt] - - - [2020-11-27 11:04:10.842426026 UTC] "GET /systeminfo?api-version=2019-11-05 HTTP/1.1" 200 OK 63 "-" "-" auth_id(-) Nov 27 11:04:11 myhostname iotedged[520]: 2020-11-27T11:04:11Z [INFO] - [work] - - - [2020-11-27 11:04:11.355282526 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:04:11 myhostname iotedged[520]: 2020-11-27T11:04:11Z [INFO] - [mgmt] - - - [2020-11-27 11:04:11.688949776 UTC] "GET /modules?api-version=2019-11-05 HTTP/1.1" 200 OK 530 "-" "-" auth_id(-) Nov 27 11:04:12 myhostname iotedged[520]: 2020-11-27T11:04:12Z [INFO] - [work] - - - [2020-11-27 11:04:12.281000901 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:04:12 myhostname iotedged[520]: 2020-11-27T11:04:12Z [INFO] - [work] - - - [2020-11-27 11:04:12.658453776 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:04:19 myhostname iotedged[520]: 2020-11-27T11:04:19Z [INFO] - [work] - - - [2020-11-27 11:04:19.091024401 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:04:19 myhostname iotedged[520]: 2020-11-27T11:04:19Z [INFO] - [work] - - - [2020-11-27 11:04:19.452966526 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:04:21 myhostname iotedged[520]: 2020-11-27T11:04:21Z [INFO] - [mgmt] - - - [2020-11-27 11:04:21.871364276 UTC] "GET /modules?api-version=2019-11-05 HTTP/1.1" 200 OK 530 "-" "-" auth_id(-) Nov 27 11:04:31 myhostname iotedged[520]: 2020-11-27T11:04:31Z [INFO] - [mgmt] - - - [2020-11-27 11:04:31.905371971 UTC] "GET /modules?api-version=2019-11-05 HTTP/1.1" 200 OK 530 "-" "-" auth_id(-) Nov 27 11:04:32 myhostname iotedged[520]: 2020-11-27T11:04:32Z [INFO] - [work] - - - [2020-11-27 11:04:32.731699179 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:04:33 myhostname iotedged[520]: 2020-11-27T11:04:33Z [INFO] - [work] - - - [2020-11-27 11:04:33.247926778 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:04:41 myhostname iotedged[520]: 2020-11-27T11:04:41Z [INFO] - [mgmt] - - - [2020-11-27 11:04:41.934999913 UTC] "GET /modules?api-version=2019-11-05 HTTP/1.1" 200 OK 530 "-" "-" auth_id(-) Nov 27 11:04:51 myhostname iotedged[520]: 2020-11-27T11:04:51Z [INFO] - [mgmt] - - - [2020-11-27 11:04:51.950707310 UTC] "GET /modules?api-version=2019-11-05 HTTP/1.1" 200 OK 530 "-" "-" auth_id(-) Nov 27 11:04:58 myhostname iotedged[520]: 2020-11-27T11:04:58Z [INFO] - Checking edge runtime status Nov 27 11:04:58 myhostname iotedged[520]: 2020-11-27T11:04:58Z [INFO] - Edge runtime is running. Nov 27 11:05:00 myhostname iotedged[520]: 2020-11-27T11:05:00Z [INFO] - [work] - - - [2020-11-27 11:05:00.970940535 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:05:01 myhostname iotedged[520]: 2020-11-27T11:05:01Z [INFO] - [work] - - - [2020-11-27 11:05:01.470702891 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Nov 27 11:05:01 myhostname iotedged[520]: 2020-11-27T11:05:01Z [INFO] - [mgmt] - - - [2020-11-27 11:05:01.969808294 UTC] "GET /modules?api-version=2019-11-05 HTTP/1.1" 200 OK 530 "-" "-" auth_id(-) Nov 27 11:05:04 myhostname iotedged[520]: 2020-11-27T11:05:04Z [INFO] - Querying system resources... Nov 27 11:05:06 myhostname iotedged[520]: 2020-11-27T11:05:06Z [INFO] - [mgmt] - - - [2020-11-27 11:05:06.320158126 UTC] "GET /systeminfo/resources?api-version=2019-11-05 HTTP/1.1" 200 OK 3109 "-" "-" auth_id(-) ```
edge-agent logs ``` 2020-11-27 11:03:59 +00:00 Starting Edge Agent 2020-11-27 11:03:59 +00:00 Changing ownership of storage folder: /tmp/edgeAgent to 1000 2020-11-27 11:03:59 +00:00 Changing ownership of management socket: /var/run/iotedge/mgmt.sock 2020-11-27 11:04:00.327 +00:00 Edge Agent Main() <6> 2020-11-27 11:04:01.548 +00:00 [INF] - Initializing Edge Agent. <6> 2020-11-27 11:04:02.446 +00:00 [INF] - Version - 1.0.10.3.36904102 (95aa3cb67f16386be6c76e83feeb6538f6e040b9) <6> 2020-11-27 11:04:02.449 +00:00 [INF] - █████╗ ███████╗██╗ ██╗██████╗ ███████╗ ██╔══██╗╚══███╔╝██║ ██║██╔══██╗██╔════╝ ███████║ ███╔╝ ██║ ██║██████╔╝█████╗ ██╔══██║ ███╔╝ ██║ ██║██╔══██╗██╔══╝ ██║ ██║███████╗╚██████╔╝██║ ██║███████╗ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ██╗ ██████╗ ████████╗ ███████╗██████╗ ██████╗ ███████╗ ██║██╔═══██╗╚══██╔══╝ ██╔════╝██╔══██╗██╔════╝ ██╔════╝ ██║██║ ██║ ██║ █████╗ ██║ ██║██║ ███╗█████╗ ██║██║ ██║ ██║ ██╔══╝ ██║ ██║██║ ██║██╔══╝ ██║╚██████╔╝ ██║ ███████╗██████╔╝╚██████╔╝███████╗ ╚═╝ ╚═════╝ ╚═╝ ╚══════╝╚═════╝ ╚═════╝ ╚══════╝ <6> 2020-11-27 11:04:02.669 +00:00 [INF] - Experimental features configuration: {"Enabled":false,"DisableCloudSubscriptions":false} <6> 2020-11-27 11:04:03.282 +00:00 [INF] - Installing certificates [CN=Test Edge Owner CA:02/24/2021 14:45:45] to Root <6> 2020-11-27 11:04:03.970 +00:00 [INF] - Starting metrics listener on Host: *, Port: 9600, Suffix: /metrics <6> 2020-11-27 11:04:04.796 +00:00 [INF] - Updating performance metrics every 05m:00s <6> 2020-11-27 11:04:04.818 +00:00 [INF] - Started operation Get system resources <6> 2020-11-27 11:04:04.827 +00:00 [INF] - Collecting metadata metrics <6> 2020-11-27 11:04:05.143 +00:00 [INF] - Set metadata metrics: 1.0.10.3.36904102 (95aa3cb67f16386be6c76e83feeb6538f6e040b9), {"Enabled":false,"DisableCloudSubscriptions":false}, {"OperatingSystemType":"linux","A rchitecture":"aarch64","Version":"1.0.9.4","Provisioning":{"Type":"","DynamicReprovisioning":false},"ServerVersion":"","KernelVersion":"","OperatingSystem":"","NumCpus":0,"Virtualized":""}, True <6> 2020-11-27 11:04:05.247 +00:00 [INF] - Started operation Checkpoint Availability <6> 2020-11-27 11:04:05.275 +00:00 [INF] - Started operation refresh twin config <6> 2020-11-27 11:04:05.442 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-11-27 11:04:08.108 +00:00 [INF] - Created persistent store at /tmp/edgeAgent <6> 2020-11-27 11:04:08.587 +00:00 [INF] - Started operation Metrics Scrape <6> 2020-11-27 11:04:08.593 +00:00 [INF] - Started operation Metrics Upload Scraping frequency: 01:00:00 Upload Frequency: 1.00:00:00 <6> 2020-11-27 11:04:10.020 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <6> 2020-11-27 11:04:11.107 +00:00 [INF] - Registering request handler UploadModuleLogs <6> 2020-11-27 11:04:11.108 +00:00 [INF] - Registering request handler GetModuleLogs <6> 2020-11-27 11:04:11.113 +00:00 [INF] - Registering request handler UploadSupportBundle <6> 2020-11-27 11:04:11.114 +00:00 [INF] - Registering request handler RestartModule <4> 2020-11-27 11:04:11.407 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <6> 2020-11-27 11:04:11.637 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-11-27 11:04:12.298 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-11-27 11:04:12.691 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-11-27 11:04:16.795 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-11-27 11:04:16.810 +00:00 [INF] - Edge agent config backup file does not exist - /tmp/edgeAgent/backup.json <6> 2020-11-27 11:04:18.796 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-11-27 11:04:19.105 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-11-27 11:04:19.463 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-11-27 11:04:26.875 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-11-27 11:04:32.459 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-11-27 11:04:32.744 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-11-27 11:04:33.258 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-11-27 11:04:36.909 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:04:46.929 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:04:56.948 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-11-27 11:05:00.543 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-11-27 11:05:00.995 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-11-27 11:05:01.492 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-11-27 11:05:06.965 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:05:16.979 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:05:27.002 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:05:37.016 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:05:47.029 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:05:57.030 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-11-27 11:06:01.566 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-11-27 11:06:01.900 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-11-27 11:06:02.229 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeo ut) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge -agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-11-27 11:06:07.040 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:06:17.056 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:06:27.075 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-11-27 11:06:37.080 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead ```
edge-hub logs ``` n.a. because edgeHub does not start ```
iotedge config ``` ############################################################################### # IoT Edge Daemon configuration ############################################################################### # # This file configures the IoT Edge daemon. The daemon must be restarted to # pick up any configuration changes. # # Note - this file is yaml. Learn more here: http://yaml.org/refcard.html # ############################################################################### ############################################################################### # Provisioning mode and settings ############################################################################### # # Configures the identity provisioning mode of the daemon. # # Supported modes: # manual - using an iothub connection string # dps - using dps for provisioning # external - the device has been provisioned externally. # Uses an external provisioning endpoint to get device specific information. # # DPS Settings # scope_id - Required. Value of a specific DPS instance's ID scope # registration_id - Required for TPM and symmetric key provisioning flows. # Optional for X.509 provisioning. Registration ID of a # specific device in DPS. # For more information regarding DPS registration ids # please see https://docs.microsoft.com/en-us/azure/iot-dps/concepts-device#registration-id # symmetric_key - Optional. This entry should only be specified when # provisioning devices configured for symmetric key # attestation. Device specific symmetric key. # identity_cert - Optional. The Edge device identity X.509 certificate # entry should only be specified when provisioning # an Edge device configured for X.509 attestation. # The value should be specified as a URI. # Ex. when specifying a PEM encoded certificate file, the URI # should be specified as file:///path/identity_certificate.pem # identity_pk - Optional. The Edge device identity private key # entry should only be specified when provisioning # an Edge device configured for X.509 attestation. # The value should be specified as a URI. # Ex. when specifying a PEM encoded private key file, the URI # should be specified as file:///path/identity_key.pem # # External Settings # endpoint - Required. Value of the endpoint used to retrieve device specific # information such as its IoT hub connection information. ############################################################################### # Manual provisioning configuration provisioning: source: "manual" device_connection_string: "HostName=**********.azure-devices.net;DeviceId=*********;SharedAccessKey=***********************************************" # DPS TPM provisioning configuration # provisioning: # source: "dps" # global_endpoint: "https://global.azure-devices-provisioning.net" # scope_id: "" # attestation: # method: "tpm" # registration_id: "" # DPS symmetric key provisioning configuration # provisioning: # source: "dps" # global_endpoint: "https://global.azure-devices-provisioning.net" # scope_id: "" # attestation: # method: "symmetric_key" # registration_id: "" # symmetric_key: "" # DPS X.509 provisioning configuration # provisioning: # source: "dps" # global_endpoint: "https://global.azure-devices-provisioning.net" # scope_id: "" # attestation: # method: "x509" # registration_id: "" # identity_cert: "" # identity_pk: "" # External provisioning configuration # provisioning: # source: "external" # endpoint: "http://localhost:9999" ############################################################################### # Certificate settings ############################################################################### # # Configures the certificates required to operate the IoT Edge # runtime as a gateway which enables external leaf devices to securely # communicate with the Edge Hub. If not specified, the required certificates # are auto generated for quick start scenarios which are not intended for # production environments. # # Settings: # device_ca_cert - URI of the device ca certificate and its chain. # Optionally can be specified as a file path. # device_ca_pk - URI of the device ca private key file. # Optionally can be specified as a file path. # trusted_ca_certs - URI containing all the trusted CA # certificates required for Edge module communication # Optionally can be specified as a file path. # # Note: # The values of all of these fields must be specified as a # "file" scheme URI such as "file:///path/cert_key.pem" ############################################################################### # certificates: # device_ca_cert: "" # device_ca_pk: "" # trusted_ca_certs: "" ############################################################################### # Edge Agent module spec ############################################################################### # # Configures the initial Edge Agent module. # # The daemon uses this definition to bootstrap the system. The Edge Agent can # then update itself based on the Edge Agent module definition present in the # deployment in IoT Hub. # # Settings: # name - name of the edge agent module. Expected to be "edgeAgent". # type - type of module. Always "docker". # env - Any environment variable that needs to be set for edge agent module. # config - type specific configuration for edge agent module. # image - (docker) Modules require a docker image tag. # auth - (docker) Modules may need authoriation to connect to container registry. # # Adding environment variables: # replace "env: {}" with # env: # key: "value" # # Adding container registry authorization: # replace "auth: {}" with # auth: # username: "username" # password: "password" # serveraddress: "serveraddress" # ############################################################################### agent: name: "edgeAgent" type: "docker" env: {} config: image: "mcr.microsoft.com/azureiotedge-agent:1.0" auth: {} ############################################################################### # Edge device hostname ############################################################################### # # Configures the environment variable 'IOTEDGE_GATEWAYHOSTNAME' injected into # modules. Regardless of case the hostname is specified below, a lower case # value is used to configure the Edge Hub server hostname as well as the # environment variable specified above. # # It is important to note that when connecting downstream devices to the # Edge Hub that the lower case value of this hostname be used in the # 'GatewayHostName' field of the device's connection string URI. ############################################################################### hostname: "myhostname" ############################################################################### # Watchdog settings ############################################################################### # # The IoT edge daemon has a watchdog that periodically checks the health of the # Edge Agent module and restarts it if it's down. # # max_retries - Configures the number of retry attempts that the IoT edge daemon # should make for failed operations before failing with a fatal error. # # If this configuration is not specified, the daemon keeps retrying # on errors and doesn't fail fatally. # # On a fatal failure, the daemon returns an exit code which # signifies the kind of error encountered. Currently, the following # error codes are returned by the daemon - # # 150 - Invalid Device ID specified. # 151 - Invalid IoT hub configuration. # 152 - Invalid SAS token used to call IoT hub. # This could signal an invalid SAS key. # 1 - All other errors. ############################################################################### #watchdog: # max_retries: 2 ############################################################################### # Connect settings ############################################################################### # # #Configures URIs used by clients of the management and workload APIs # management_uri - used by the Edge Agent and 'iotedge' CLI to start, # stop, and manage modules # workload_uri - used by modules to retrieve tokens and certificates # # The following uri schemes are supported: # http - connect over TCP # unix - connect over Unix domain socket # ############################################################################### connect: management_uri: "unix:///var/run/iotedge/mgmt.sock" workload_uri: "unix:///var/run/iotedge/workload.sock" ############################################################################### # Listen settings ############################################################################### # # Configures the listen addresses for the daemon. # management_uri - used by the Edge Agent and 'iotedge' CLI to start, # stop, and manage modules # workload_uri - used by modules to retrieve tokens and certificates # # The following uri schemes are supported: # http - listen over TCP # unix - listen over Unix domain socket # fd - listen using systemd socket activation # # These values can be different from the connect URIs. For instance, when # using the fd:// scheme for systemd: # listen address is fd://iotedge.workload, # connect address is unix:///var/run/iotedge/workload.sock # ############################################################################### listen: management_uri: "fd://iotedge.mgmt.socket" workload_uri: "fd://iotedge.socket" ############################################################################### # Home Directory ############################################################################### # # Configures the home directory for the daemon. # ############################################################################### homedir: "/var/lib/iotedge" ############################################################################### # Moby Container Runtime settings ############################################################################### # # uri - configures the uri for the container runtime. # network - configures the network on which the containers will be created. # # Additional container network configuration such as enabling IPv6 networking # and providing the IPAM settings can be achieved by specifying the relevant # configuration in the network settings. # # network: # name: "azure-iot-edge" # ipv6: true # ipam: # config: # - # gateway: '172.18.0.1' # subnet: '172.18.0.0/16' # ip_range: '172.18.0.0/16' # - # gateway: '2021:ffff:e0:3b1:1::1' # subnet: '2021:ffff:e0:3b1:1::/80' # ip_range: '2021:ffff:e0:3b1:1::/80' ############################################################################### moby_runtime: uri: "unix:///var/run/docker.sock" # network: "azure-iot-edge" # # network: # name: "azure-iot-edge" # ipv6: true # ipam: # config: # - # gateway: '172.18.0.1' # subnet: '172.18.0.0/16' # ip_range: '172.18.0.0/16' # - # gateway: '2021:ffff:e0:3b1:1::1' # subnet: '2021:ffff:e0:3b1:1::/80' # ip_range: '2021:ffff:e0:3b1:1::/80' ```
dmolokanov commented 3 years ago

hello @mschwan-phytec! could you please update iotedge package to the latest version 1.0.10.3 and send over updated logs? This way we will have a consistent versions across all components.

dmolokanov commented 3 years ago

in order to make make a request to iothub edge agent will generate SAS token. this is where you see Error calling SignAsync exception. this exception caused by 404 response from iotedged.

"POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-)

it made me think that api-version is incorrect.

mschwan-phytec commented 3 years ago

Thanks for the suggestion, @dmolokanov. I created recipes for building iotedge 1.0.10.3 in our Yocto BSP. Unfortunately, this did not change anything. The issue still remains (logs are the same).

Any other ideas?

dmolokanov commented 3 years ago

Could you please share the new logs for iotedged?

dmolokanov commented 3 years ago

in addition, lets collect debug logs for iotedged and edgeAgent. you can find step to do that here https://docs.microsoft.com/en-us/azure/iot-edge/troubleshoot?view=iotedge-2018-06#check-the-status-of-the-iot-edge-security-manager-and-its-logs

mschwan-phytec commented 3 years ago

iotedged 1.0.10.3 logs with debug information:

Click here ``` -- Logs begin at Wed 2020-12-02 15:54:46 UTC, end at Wed 2020-12-02 16:01:06 UTC. -- Dec 02 15:55:38 myhostname systemd[1]: Started Azure IoT Edge daemon. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Starting Azure IoT Edge Security Daemon Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Version - 1.0.10.3 Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Using config file: /etc/iotedge/config.yaml Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Configuring /var/lib/iotedge as the home directory. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Configuring certificates... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Transparent gateway certificates not found, operating in quick start mode... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Finished configuring provisioning environment variables and certificates. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Initializing hsm... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Finished initializing hsm. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Provisioning edge device... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Starting provisioning edge device via manual mode using a device connection string... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Manually provisioning device "******" in hub "**************.azure-devices.net" Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Finished provisioning edge device. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Initializing the module runtime... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Initializing module runtime... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Using runtime network id azure-iot-edge Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Successfully initialized module runtime Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Finished initializing the module runtime. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Stopping all modules... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Stopping module edgeAgent... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [WARN] - Could not stop module edgeAgent Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [WARN] - caused by: Target of operation already in this state Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Finished stopping modules. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Detecting if configuration file has changed... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - No change to configuration file detected. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Edge issuer CA expiration date: 2021-03-01T12:36:20Z Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Obtaining workload CA succeeded. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Starting management API... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Starting workload API... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Starting watchdog with 60 second frequency... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Listening on fd://iotedge.mgmt.socket/ with 1 thread for management API. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Listening on fd://iotedge.socket/ with 1 thread for workload API. Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Checking edge runtime status Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Edge runtime status is failed, starting module now... Dec 02 15:55:38 myhostname iotedged[529]: 2020-12-02T15:55:38Z [INFO] - Starting module edgeAgent... Dec 02 15:55:41 myhostname iotedged[529]: 2020-12-02T15:55:41Z [INFO] - Successfully started module edgeAgent Dec 02 15:55:44 myhostname iotedged[529]: 2020-12-02T15:55:44Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:55:44 myhostname iotedged[529]: 2020-12-02T15:55:44Z [INFO] - [work] - - - [2020-12-02 15:55:44.426201619 UTC] "GET /trust-bundle?api-version=2019-01-30 HTTP/1.1" 200 OK 1944 "-" "-" auth_id(-) Dec 02 15:55:46 myhostname iotedged[529]: 2020-12-02T15:55:46Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:55:46 myhostname iotedged[529]: 2020-12-02T15:55:46Z [DBUG] - [edgelet_http_mgmt::server::system_info::get] Get System Information Dec 02 15:55:46 myhostname iotedged[529]: 2020-12-02T15:55:46Z [INFO] - Querying system info... Dec 02 15:55:46 myhostname iotedged[529]: none Dec 02 15:55:46 myhostname iotedged[529]: 2020-12-02T15:55:46Z [INFO] - Successfully queried system info Dec 02 15:55:46 myhostname iotedged[529]: 2020-12-02T15:55:46Z [INFO] - [mgmt] - - - [2020-12-02 15:55:46.469459272 UTC] "GET /systeminfo?api-version=2020-07-07 HTTP/1.1" 200 OK 327 "-" "-" auth_id(-) Dec 02 15:55:50 myhostname iotedged[529]: 2020-12-02T15:55:50Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:55:50 myhostname iotedged[529]: 2020-12-02T15:55:50Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:55:51 myhostname iotedged[529]: 2020-12-02T15:55:51Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:55:51 myhostname iotedged[529]: 2020-12-02T15:55:51Z [INFO] - [work] - - - [2020-12-02 15:55:51.186236690 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:55:52 myhostname iotedged[529]: 2020-12-02T15:55:52Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:55:52 myhostname iotedged[529]: 2020-12-02T15:55:52Z [DBUG] - [edgelet_http_mgmt::server::system_info::get] Get System Information Dec 02 15:55:52 myhostname iotedged[529]: 2020-12-02T15:55:52Z [INFO] - Querying system info... Dec 02 15:55:52 myhostname iotedged[529]: none Dec 02 15:55:52 myhostname iotedged[529]: 2020-12-02T15:55:52Z [INFO] - Successfully queried system info Dec 02 15:55:52 myhostname iotedged[529]: 2020-12-02T15:55:52Z [INFO] - [mgmt] - - - [2020-12-02 15:55:52.605340874 UTC] "GET /systeminfo?api-version=2020-07-07 HTTP/1.1" 200 OK 327 "-" "-" auth_id(-) Dec 02 15:55:52 myhostname iotedged[529]: 2020-12-02T15:55:52Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:55:52 myhostname iotedged[529]: 2020-12-02T15:55:52Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:55:52 myhostname iotedged[529]: 2020-12-02T15:55:52Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [INFO] - [work] - - - [2020-12-02 15:55:53.057082056 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [INFO] - [mgmt] - - - [2020-12-02 15:55:53.419384873 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:55:53 myhostname iotedged[529]: 2020-12-02T15:55:53Z [INFO] - [work] - - - [2020-12-02 15:55:53.855133392 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:55:54 myhostname iotedged[529]: 2020-12-02T15:55:54Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:55:54 myhostname iotedged[529]: 2020-12-02T15:55:54Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:55:54 myhostname iotedged[529]: 2020-12-02T15:55:54Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:55:54 myhostname iotedged[529]: 2020-12-02T15:55:54Z [INFO] - [work] - - - [2020-12-02 15:55:54.476992337 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:56:00 myhostname iotedged[529]: 2020-12-02T15:56:00Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:00 myhostname iotedged[529]: 2020-12-02T15:56:00Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:00 myhostname iotedged[529]: 2020-12-02T15:56:00Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:00 myhostname iotedged[529]: 2020-12-02T15:56:00Z [INFO] - [work] - - - [2020-12-02 15:56:00.622308177 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:56:01 myhostname iotedged[529]: 2020-12-02T15:56:01Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:01 myhostname iotedged[529]: 2020-12-02T15:56:01Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:01 myhostname iotedged[529]: 2020-12-02T15:56:01Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:01 myhostname iotedged[529]: 2020-12-02T15:56:01Z [INFO] - [work] - - - [2020-12-02 15:56:01.664106263 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:56:03 myhostname iotedged[529]: 2020-12-02T15:56:03Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:03 myhostname iotedged[529]: 2020-12-02T15:56:03Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:56:03 myhostname iotedged[529]: 2020-12-02T15:56:03Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:03 myhostname iotedged[529]: 2020-12-02T15:56:03Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:03 myhostname iotedged[529]: 2020-12-02T15:56:03Z [INFO] - [mgmt] - - - [2020-12-02 15:56:03.594760858 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:56:13 myhostname iotedged[529]: 2020-12-02T15:56:13Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:13 myhostname iotedged[529]: 2020-12-02T15:56:13Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:56:13 myhostname iotedged[529]: 2020-12-02T15:56:13Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:13 myhostname iotedged[529]: 2020-12-02T15:56:13Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:13 myhostname iotedged[529]: 2020-12-02T15:56:13Z [INFO] - [mgmt] - - - [2020-12-02 15:56:13.630926469 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:56:17 myhostname iotedged[529]: 2020-12-02T15:56:17Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:17 myhostname iotedged[529]: 2020-12-02T15:56:17Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:17 myhostname iotedged[529]: 2020-12-02T15:56:17Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:17 myhostname iotedged[529]: 2020-12-02T15:56:17Z [INFO] - [work] - - - [2020-12-02 15:56:17.731223032 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:56:18 myhostname iotedged[529]: 2020-12-02T15:56:18Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:18 myhostname iotedged[529]: 2020-12-02T15:56:18Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:18 myhostname iotedged[529]: 2020-12-02T15:56:18Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:18 myhostname iotedged[529]: 2020-12-02T15:56:18Z [INFO] - [work] - - - [2020-12-02 15:56:18.225839423 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:56:23 myhostname iotedged[529]: 2020-12-02T15:56:23Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:23 myhostname iotedged[529]: 2020-12-02T15:56:23Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:56:23 myhostname iotedged[529]: 2020-12-02T15:56:23Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:23 myhostname iotedged[529]: 2020-12-02T15:56:23Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:23 myhostname iotedged[529]: 2020-12-02T15:56:23Z [INFO] - [mgmt] - - - [2020-12-02 15:56:23.650693711 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:56:33 myhostname iotedged[529]: 2020-12-02T15:56:33Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:33 myhostname iotedged[529]: 2020-12-02T15:56:33Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:56:33 myhostname iotedged[529]: 2020-12-02T15:56:33Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:33 myhostname iotedged[529]: 2020-12-02T15:56:33Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:33 myhostname iotedged[529]: 2020-12-02T15:56:33Z [INFO] - [mgmt] - - - [2020-12-02 15:56:33.774445161 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:56:38 myhostname iotedged[529]: 2020-12-02T15:56:38Z [INFO] - Checking edge runtime status Dec 02 15:56:38 myhostname iotedged[529]: 2020-12-02T15:56:38Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:38 myhostname iotedged[529]: 2020-12-02T15:56:38Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:38 myhostname iotedged[529]: 2020-12-02T15:56:38Z [INFO] - Edge runtime is running. Dec 02 15:56:43 myhostname iotedged[529]: 2020-12-02T15:56:43Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:43 myhostname iotedged[529]: 2020-12-02T15:56:43Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:56:43 myhostname iotedged[529]: 2020-12-02T15:56:43Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:43 myhostname iotedged[529]: 2020-12-02T15:56:43Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:43 myhostname iotedged[529]: 2020-12-02T15:56:43Z [INFO] - [mgmt] - - - [2020-12-02 15:56:43.749043596 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [INFO] - [mgmt] - - - [2020-12-02 15:56:46.154087576 UTC] "GET /modules/?api-version=2018-06-28 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [DBUG] - [edgelet_http_mgmt::server::system_info::resources] Get System Resources Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [INFO] - Querying system resources... Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:46 myhostname iotedged[529]: 2020-12-02T15:56:46Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:48 myhostname iotedged[529]: 2020-12-02T15:56:48Z [INFO] - [mgmt] - - - [2020-12-02 15:56:48.759448299 UTC] "GET /systeminfo/resources?api-version=2020-07-07 HTTP/1.1" 200 OK 3119 "-" "-" auth_id(-) Dec 02 15:56:50 myhostname iotedged[529]: 2020-12-02T15:56:50Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:50 myhostname iotedged[529]: 2020-12-02T15:56:50Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:50 myhostname iotedged[529]: 2020-12-02T15:56:50Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:50 myhostname iotedged[529]: 2020-12-02T15:56:50Z [INFO] - [work] - - - [2020-12-02 15:56:50.829341222 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:56:51 myhostname iotedged[529]: 2020-12-02T15:56:51Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:51 myhostname iotedged[529]: 2020-12-02T15:56:51Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:51 myhostname iotedged[529]: 2020-12-02T15:56:51Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:51 myhostname iotedged[529]: 2020-12-02T15:56:51Z [INFO] - [work] - - - [2020-12-02 15:56:51.685694624 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:56:53 myhostname iotedged[529]: 2020-12-02T15:56:53Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:56:54 myhostname iotedged[529]: 2020-12-02T15:56:54Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:56:54 myhostname iotedged[529]: 2020-12-02T15:56:54Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:56:54 myhostname iotedged[529]: 2020-12-02T15:56:54Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:56:54 myhostname iotedged[529]: 2020-12-02T15:56:54Z [INFO] - [mgmt] - - - [2020-12-02 15:56:54.357364456 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:57:04 myhostname iotedged[529]: 2020-12-02T15:57:04Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:04 myhostname iotedged[529]: 2020-12-02T15:57:04Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:57:04 myhostname iotedged[529]: 2020-12-02T15:57:04Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:04 myhostname iotedged[529]: 2020-12-02T15:57:04Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:04 myhostname iotedged[529]: 2020-12-02T15:57:04Z [INFO] - [mgmt] - - - [2020-12-02 15:57:04.822599808 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:57:14 myhostname iotedged[529]: 2020-12-02T15:57:14Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:14 myhostname iotedged[529]: 2020-12-02T15:57:14Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:57:14 myhostname iotedged[529]: 2020-12-02T15:57:14Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:14 myhostname iotedged[529]: 2020-12-02T15:57:14Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:14 myhostname iotedged[529]: 2020-12-02T15:57:14Z [INFO] - [mgmt] - - - [2020-12-02 15:57:14.845223633 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:57:25 myhostname iotedged[529]: 2020-12-02T15:57:25Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:25 myhostname iotedged[529]: 2020-12-02T15:57:25Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:57:25 myhostname iotedged[529]: 2020-12-02T15:57:25Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:25 myhostname iotedged[529]: 2020-12-02T15:57:25Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:25 myhostname iotedged[529]: 2020-12-02T15:57:25Z [INFO] - [mgmt] - - - [2020-12-02 15:57:25.540754749 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:57:35 myhostname iotedged[529]: 2020-12-02T15:57:35Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:35 myhostname iotedged[529]: 2020-12-02T15:57:35Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:57:35 myhostname iotedged[529]: 2020-12-02T15:57:35Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:35 myhostname iotedged[529]: 2020-12-02T15:57:35Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:35 myhostname iotedged[529]: 2020-12-02T15:57:35Z [INFO] - [mgmt] - - - [2020-12-02 15:57:35.913934402 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:57:39 myhostname iotedged[529]: 2020-12-02T15:57:38Z [INFO] - Checking edge runtime status Dec 02 15:57:39 myhostname iotedged[529]: 2020-12-02T15:57:39Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:39 myhostname iotedged[529]: 2020-12-02T15:57:39Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:39 myhostname iotedged[529]: 2020-12-02T15:57:39Z [INFO] - Edge runtime is running. Dec 02 15:57:41 myhostname iotedged[529]: 2020-12-02T15:57:41Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:41 myhostname iotedged[529]: 2020-12-02T15:57:41Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:57:41 myhostname iotedged[529]: 2020-12-02T15:57:41Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:41 myhostname iotedged[529]: 2020-12-02T15:57:41Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:41 myhostname iotedged[529]: 2020-12-02T15:57:41Z [INFO] - [mgmt] - - - [2020-12-02 15:57:41.465671810 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "iotedge/0.1.0" auth_id(-) Dec 02 15:57:41 myhostname iotedged[529]: 2020-12-02T15:57:41Z [INFO] - Getting logs for module edgeAgent... Dec 02 15:57:41 myhostname iotedged[529]: 2020-12-02T15:57:41Z [INFO] - Successfully got logs for module edgeAgent Dec 02 15:57:41 myhostname iotedged[529]: 2020-12-02T15:57:41Z [INFO] - [mgmt] - - - [2020-12-02 15:57:41.482157881 UTC] "GET /modules/edgeAgent/logs?api-version=2020-07-07&follow=false&tail=all&since=1606838192 HTTP/1.1" 200 OK - "-" "iotedge/0.1.0" auth_id(-) Dec 02 15:57:42 myhostname iotedged[529]: 2020-12-02T15:57:42Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:57:42 myhostname iotedged[529]: 2020-12-02T15:57:42Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:42 myhostname iotedged[529]: 2020-12-02T15:57:42Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:42 myhostname iotedged[529]: 2020-12-02T15:57:42Z [INFO] - [mgmt] - - - [2020-12-02 15:57:42.079668866 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "iotedge/0.1.0" auth_id(-) Dec 02 15:57:45 myhostname iotedged[529]: 2020-12-02T15:57:45Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:46 myhostname iotedged[529]: 2020-12-02T15:57:46Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:57:46 myhostname iotedged[529]: 2020-12-02T15:57:46Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:46 myhostname iotedged[529]: 2020-12-02T15:57:46Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:46 myhostname iotedged[529]: 2020-12-02T15:57:46Z [INFO] - [mgmt] - - - [2020-12-02 15:57:46.020737906 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:57:52 myhostname iotedged[529]: 2020-12-02T15:57:52Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:52 myhostname iotedged[529]: 2020-12-02T15:57:52Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:52 myhostname iotedged[529]: 2020-12-02T15:57:52Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:52 myhostname iotedged[529]: 2020-12-02T15:57:52Z [INFO] - [work] - - - [2020-12-02 15:57:52.630907919 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:57:52 myhostname iotedged[529]: 2020-12-02T15:57:52Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:52 myhostname iotedged[529]: 2020-12-02T15:57:52Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:52 myhostname iotedged[529]: 2020-12-02T15:57:52Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:53 myhostname iotedged[529]: 2020-12-02T15:57:53Z [INFO] - [work] - - - [2020-12-02 15:57:53.029531754 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:57:56 myhostname iotedged[529]: 2020-12-02T15:57:56Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:57:56 myhostname iotedged[529]: 2020-12-02T15:57:56Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:57:56 myhostname iotedged[529]: 2020-12-02T15:57:56Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:57:56 myhostname iotedged[529]: 2020-12-02T15:57:56Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:57:56 myhostname iotedged[529]: 2020-12-02T15:57:56Z [INFO] - [mgmt] - - - [2020-12-02 15:57:56.026243920 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:58:06 myhostname iotedged[529]: 2020-12-02T15:58:06Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:58:06 myhostname iotedged[529]: 2020-12-02T15:58:06Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:58:06 myhostname iotedged[529]: 2020-12-02T15:58:06Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:06 myhostname iotedged[529]: 2020-12-02T15:58:06Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:06 myhostname iotedged[529]: 2020-12-02T15:58:06Z [INFO] - [mgmt] - - - [2020-12-02 15:58:06.045070196 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:58:16 myhostname iotedged[529]: 2020-12-02T15:58:16Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:58:16 myhostname iotedged[529]: 2020-12-02T15:58:16Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:58:16 myhostname iotedged[529]: 2020-12-02T15:58:16Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:16 myhostname iotedged[529]: 2020-12-02T15:58:16Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:16 myhostname iotedged[529]: 2020-12-02T15:58:16Z [INFO] - [mgmt] - - - [2020-12-02 15:58:16.061105513 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:58:26 myhostname iotedged[529]: 2020-12-02T15:58:26Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:58:26 myhostname iotedged[529]: 2020-12-02T15:58:26Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:58:26 myhostname iotedged[529]: 2020-12-02T15:58:26Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:26 myhostname iotedged[529]: 2020-12-02T15:58:26Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:26 myhostname iotedged[529]: 2020-12-02T15:58:26Z [INFO] - [mgmt] - - - [2020-12-02 15:58:26.065317973 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:58:36 myhostname iotedged[529]: 2020-12-02T15:58:36Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:58:36 myhostname iotedged[529]: 2020-12-02T15:58:36Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:58:36 myhostname iotedged[529]: 2020-12-02T15:58:36Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:36 myhostname iotedged[529]: 2020-12-02T15:58:36Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:36 myhostname iotedged[529]: 2020-12-02T15:58:36Z [INFO] - [mgmt] - - - [2020-12-02 15:58:36.071648238 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:58:38 myhostname iotedged[529]: 2020-12-02T15:58:38Z [INFO] - Checking edge runtime status Dec 02 15:58:38 myhostname iotedged[529]: 2020-12-02T15:58:38Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:38 myhostname iotedged[529]: 2020-12-02T15:58:38Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:38 myhostname iotedged[529]: 2020-12-02T15:58:38Z [INFO] - Edge runtime is running. Dec 02 15:58:46 myhostname iotedged[529]: 2020-12-02T15:58:46Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:58:46 myhostname iotedged[529]: 2020-12-02T15:58:46Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:58:46 myhostname iotedged[529]: 2020-12-02T15:58:46Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:46 myhostname iotedged[529]: 2020-12-02T15:58:46Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:46 myhostname iotedged[529]: 2020-12-02T15:58:46Z [INFO] - [mgmt] - - - [2020-12-02 15:58:46.080401759 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) Dec 02 15:58:53 myhostname iotedged[529]: 2020-12-02T15:58:53Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:58:53 myhostname iotedged[529]: 2020-12-02T15:58:53Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:53 myhostname iotedged[529]: 2020-12-02T15:58:53Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:53 myhostname iotedged[529]: 2020-12-02T15:58:53Z [INFO] - [work] - - - [2020-12-02 15:58:53.662734929 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:58:54 myhostname iotedged[529]: 2020-12-02T15:58:54Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:58:54 myhostname iotedged[529]: 2020-12-02T15:58:54Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:54 myhostname iotedged[529]: 2020-12-02T15:58:54Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:54 myhostname iotedged[529]: 2020-12-02T15:58:54Z [INFO] - [work] - - - [2020-12-02 15:58:54.148042944 UTC] "POST /modules/%24edgeAgent/genid/637419891249342856/sign?api-version=2018-06-28 HTTP/1.1" 404 Not Found 30 "-" "-" auth_id(-) Dec 02 15:58:56 myhostname iotedged[529]: 2020-12-02T15:58:56Z [DBUG] - [edgelet_http] accepted new connection (unknown) Dec 02 15:58:56 myhostname iotedged[529]: 2020-12-02T15:58:56Z [DBUG] - [edgelet_http_mgmt::server::module::list] List modules Dec 02 15:58:56 myhostname iotedged[529]: 2020-12-02T15:58:56Z [DBUG] - [edgelet_docker::runtime] Listing modules... Dec 02 15:58:56 myhostname iotedged[529]: 2020-12-02T15:58:56Z [DBUG] - [edgelet_docker::runtime] Successfully listed modules Dec 02 15:58:56 myhostname iotedged[529]: 2020-12-02T15:58:56Z [INFO] - [mgmt] - - - [2020-12-02 15:58:56.084150990 UTC] "GET /modules?api-version=2020-07-07 HTTP/1.1" 200 OK 609 "-" "-" auth_id(-) ```

edgeAgent 1.0.10.3 logs:

Click here ``` at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-12-02 15:55:58.514 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-12-02 15:55:58.531 +00:00 [INF] - Edge agent config backup file does not exist - /tmp/edgeAgent/backup.json <6> 2020-12-02 15:56:00.352 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-12-02 15:56:00.648 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-12-02 15:56:01.674 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-12-02 15:56:08.599 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-12-02 15:56:17.328 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-12-02 15:56:17.773 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-12-02 15:56:18.258 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-12-02 15:56:18.625 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:56:28.637 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:56:38.698 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:56:48.784 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-12-02 15:56:49.481 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-12-02 15:56:51.006 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-12-02 15:56:51.740 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-12-02 15:56:59.009 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:57:09.416 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:57:19.827 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:57:30.260 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:57:40.846 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:57:51.003 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-12-02 15:57:52.038 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-12-02 15:57:52.663 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-12-02 15:57:53.043 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception) at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-12-02 15:58:01.024 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:58:11.032 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:58:21.037 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:58:31.050 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:58:41.062 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:58:51.069 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-12-02 15:58:53.134 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-12-02 15:58:53.692 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-12-02 15:58:54.159 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-12-02 15:59:01.073 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:59:11.076 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:59:21.089 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:59:31.087 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:59:41.094 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 15:59:51.095 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-12-02 15:59:54.173 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-12-02 15:59:54.740 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-12-02 15:59:55.178 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-12-02 16:00:01.101 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:00:11.108 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:00:21.112 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:00:31.112 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:00:41.124 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:00:51.124 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <6> 2020-12-02 16:00:55.202 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only... <6> 2020-12-02 16:00:55.993 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only... <4> 2020-12-02 16:00:56.467 +00:00 [WRN] - Error creating a device-to-cloud connection System.AggregateException: One or more errors occurred. (Error calling SignAsync: Module not found, StatusCode: 404) (Error calling SignAsync: Module not found, StatusCode: 404) ---> Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__2>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options) --- End of inner exception stack trace --- ---> (Inner Exception #1) Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmComunicationException: Error calling SignAsync: Module not found, StatusCode: 404 at Microsoft.Azure.Devices.Client.HsmAuthentication.HttpHsmSignatureProvider.SignAsync(String moduleId, String generationId, String data) at Microsoft.Azure.Devices.Client.HsmAuthentication.ModuleAuthenticationWithHsm.SafeCreateNewToken(String iotHub, Int32 suggestedTimeToLive) at Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh.GetTokenAsync(String iotHub) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsTokenProvider.GetTokenAsync(Uri namespaceAddress, String appliesTo, String[] requiredClaims) at Microsoft.Azure.Amqp.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.<>c.b__24_1(TIteratorAsyncResult thisPtr, IAsyncResult r) at Microsoft.Azure.Amqp.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Azure.Amqp.AsyncResult`1.End(IAsyncResult asyncResult) at Microsoft.Azure.Amqp.AmqpCbsLink.EndSendToken(IAsyncResult result) at Microsoft.Azure.Amqp.AmqpCbsLink.<>c__DisplayClass4_0.b__1(IAsyncResult a) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTCbsLink.SendTokenAsync(ICbsTokenProvider tokenProvider, Uri namespaceAddress, String audience, String resource, String[] requiredClaims, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpAuthenticationRefresher.InitLoopAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpIoTConnection.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.CreateRefresherAsync(DeviceIdentity deviceIdentity, TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.EnsureSessionAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.AmqpIoT.AmqpUnit.OpenAsync(TimeSpan timeout) at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass23_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func`1 asyncOperation) at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken) at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync() at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.CreateAndOpenSdkModuleClient(UpstreamProtocol upstreamProtocol, ConnectionStatusChangesHandler statusChangedHandler) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 216 at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClientProvider.<>c__DisplayClass19_1.<b__3>d.MoveNext() in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClientProvider.cs:line 188 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func`1[] options)<--- <4> 2020-12-02 16:01:01.138 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:01:11.139 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:01:21.142 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:01:31.145 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead <4> 2020-12-02 16:01:41.146 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup (/tmp/edgeAgent/backup.json) instead ```
dmolokanov commented 3 years ago

I made some code research and iotedged responds with 404 in 2 cases:

  1. it cannot find a module and process for edgeAgent using docker api
  2. it cannot sign data with the key for the module (edgeAgent). since your device is running with quickstart mode it should not be the case.

Lets verify the first one:

# get list of container
curl --silent --unix-socket /var/run/docker.sock -X GET "http:/v1.34/containers/json" | jq

# find an edgeAgent container Id and check the PID and PPID of the agent
curl --silent --unix-socket /var/run/docker.sock -X GET "http:/v1.34/containers/{EDGEAGENT_CONTAINER_ID}/top" | jq

there is a response on my machine

{
  "Processes": [
    [
      "user",
      "140908",
      "140911",
      "0",
      "17:14",
      "pts/0",
      "00:00:00",
      "/usr/bin/dotnet Microsoft.Azure.Devices.Edge.Agent.Service.dll"
    ]
  ],
  "Titles": [
    "UID",
    "PID",
    "PPID",
    "C",
    "STIME",
    "TTY",
    "TIME",
    "CMD"
  ]
}
mschwan-phytec commented 3 years ago

Thanks, @dmolokanov! This returned an error message that ps could not be run with the option -e. It turns out that our system had a version of ps installed (busybox that is), that does not allow for calling ps with any options. I solved this by installing procps which comes with a full version of ps.

I found the following issue, which dealt with the same problem: https://github.com/Azure/iotedge/issues/1330

Thanks again for the immediate help!