Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not start module edgeHub #774

Closed
PNWang opened this issue Jan 31, 2019 · 5 comments
Closed

Could not start module edgeHub #774

PNWang opened this issue Jan 31, 2019 · 5 comments

Comments

@PNWang
Copy link

PNWang commented Jan 31, 2019

Steps to Reproduce

  1. Install iotedge with Windows container
  2. Start iotedge
  3. Deploy an empty configuration to create and start edgeHub

Context (Environment)

Device (Host) Operating System

Windows 10 Enterprise version 1809 (OS Build 17763.253)

Architecture

windows-amd64

Container Operating System

Windows container

Runtime Versions

iotedged

iotedge 1.0.5 (d76e031)

Edge Agent

mcr.microsoft.com/azureiotedge-agent:1.0

Edge Hub

mcr.microsoft.com/azureiotedge-hub:1.0

Docker

Client: Docker Engine - Community
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:47:51 2018
OS/Arch: windows/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.24)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:56:41 2018
OS/Arch: windows/amd64
Experimental: false

Logs

iotedge logs edgeAgent

2019-01-31 09:30:53.492 +08:00 [INF] - Executing command: "Start module edgeHub"
2019-01-31 09:31:11.695 +08:00 [ERR] - Executing command for operation ["start"] failed.
Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling start module edgeHub: Could not start module edgeHub
        caused by: Could not start module edgeHub
        caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sasToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}, StatusCode:500, at:   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.Execute[T](Func`1 func, String operation) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 194
   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.StartModuleAsync(String name) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 142
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
2019-01-31 09:31:11.749 +08:00 [ERR] - Executing command for operation ["Command Group: (
  [Stop module edgeHub]
  [Start module edgeHub]
  [Saving edgeHub to store]
)"] failed.
Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling start module edgeHub: Could not start module edgeHub
        caused by: Could not start module edgeHub
        caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sasToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}, StatusCode:500, at:   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.Execute[T](Func`1 func, String operation) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 194
   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.StartModuleAsync(String name) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 142
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\commands\GroupCommand.cs:line 36
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
2019-01-31 09:31:11.752 +08:00 [ERR] - Step failed in deployment 2, continuing execution. Failure when running command Command Group: (
  [Stop module edgeHub]
  [Start module edgeHub]
  [Saving edgeHub to store]
). Will retry in 00s.
2019-01-31 09:31:11.753 +08:00 [INF] - Plan execution ended for deployment 2
2019-01-31 09:31:11.753 +08:00 [ERR] - Edge agent plan execution failed.
System.AggregateException: One or more errors occurred. (Error calling start module edgeHub: Could not start module edgeHub
        caused by: Could not start module edgeHub
        caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sasToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}) ---> Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException: Error calling start module edgeHub: Could not start module edgeHub
        caused by: Could not start module edgeHub
        caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sasToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.Execute[T](Func`1 func, String operation) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 194
   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.StartModuleAsync(String name) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 142
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\commands\GroupCommand.cs:line 36
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\planrunners\OrdererdRetryPlanRunner.cs:line 86
   --- End of inner exception stack trace ---
   at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.<>c.<ExecuteAsync>b__7_0(List`1 f) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\planrunners\OrdererdRetryPlanRunner.cs:line 114
   at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\planrunners\OrdererdRetryPlanRunner.cs:line 115
   at Microsoft.Azure.Devices.Edge.Agent.Core.Agent.ReconcileAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\Agent.cs:line 176
---> (Inner Exception #0) Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling start module edgeHub: Could not start module edgeHub
        caused by: Could not start module edgeHub
        caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sasToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}, StatusCode:500, at:   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.Execute[T](Func`1 func, String operation) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 194
   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.StartModuleAsync(String name) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 142
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\commands\GroupCommand.cs:line 36
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\planrunners\OrdererdRetryPlanRunner.cs:line 86<---

2019-01-31 09:31:11.776 +08:00 [WRN] - Reconcile failed because of the an exception
System.AggregateException: One or more errors occurred. (Error calling start module edgeHub: Could not start module edgeHub
        caused by: Could not start module edgeHub
        caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sasToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}) ---> Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException: Error calling start module edgeHub: Could not start module edgeHub
        caused by: Could not start module edgeHub
        caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sasToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.Execute[T](Func`1 func, String operation) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 194
   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.StartModuleAsync(String name) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 142
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\commands\GroupCommand.cs:line 36
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\planrunners\OrdererdRetryPlanRunner.cs:line 86
   --- End of inner exception stack trace ---
   at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.<>c.<ExecuteAsync>b__7_0(List`1 f) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\planrunners\OrdererdRetryPlanRunner.cs:line 114
   at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\planrunners\OrdererdRetryPlanRunner.cs:line 115
   at Microsoft.Azure.Devices.Edge.Agent.Core.Agent.ReconcileAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\Agent.cs:line 176
   at Microsoft.Azure.Devices.Edge.Agent.Core.Agent.ReconcileAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\Agent.cs:line 187
---> (Inner Exception #0) Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling start module edgeHub: Could not start module edgeHub
        caused by: Could not start module edgeHub
        caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:\\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sasToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}, StatusCode:500, at:   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.Execute[T](Func`1 func, String operation) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 194
   at Microsoft.Azure.Devices.Edge.Agent.Edgelet.ModuleManagementHttpClient.StartModuleAsync(String name) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Edgelet\ModuleManagementHttpClient.cs:line 142
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\commands\GroupCommand.cs:line 36
   at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\LoggingCommandFactory.cs:line 61
   at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in C:\agent\_work\4\s\edge-agent\src\Microsoft.Azure.Devices.Edge.Agent.Core\planrunners\OrdererdRetryPlanRunner.cs:line 86<---

2019-01-31 09:31:11.957 +08:00 [WRN] - Updating reported properties failed with error Service rejected the message with status: 400 type System.InvalidOperationException

WinEvent

1/31/2019 9:30:53 AM info: edgelet_docker::runtime -- Starting module edgeHub...
1/31/2019 9:30:54 AM info: edgelet_http::logging -- [mgmt] - - - [2019-01-31 01:30:54.649614300 UTC] "POST /modules/edgeHub/start?api-version=2018-06-28 HTTP/1.1" 500 Internal Server Error 1059 "-" "-"
                     pid(3408)
1/31/2019 9:30:54 AM warn: edgelet_utils::logging --    caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows     
                     system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:
                     \\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sa
                     sToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_
                     WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
1/31/2019 9:30:54 AM warn: edgelet_utils::logging -- Could not start module edgeHub
1/31/2019 9:30:54 AM info: edgelet_docker::runtime -- Starting module edgeHub...
1/31/2019 9:30:55 AM info: edgelet_http::logging -- [mgmt] - - - [2019-01-31 01:30:55.560184400 UTC] "POST /modules/edgeHub/start?api-version=2018-06-28 HTTP/1.1" 500 Internal Server Error 1059 "-" "-"
                     pid(3408)
1/31/2019 9:30:55 AM warn: edgelet_utils::logging --    caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows     
                     system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:
                     \\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sa
                     sToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_
                     WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
1/31/2019 9:30:55 AM warn: edgelet_utils::logging -- Could not start module edgeHub
1/31/2019 9:30:59 AM info: edgelet_docker::runtime -- Starting module edgeHub...
1/31/2019 9:31:00 AM warn: edgelet_utils::logging --    caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows     
                     system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:
                     \\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sa
                     sToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_
                     WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
1/31/2019 9:31:00 AM warn: edgelet_utils::logging -- Could not start module edgeHub
1/31/2019 9:31:00 AM info: edgelet_http::logging -- [mgmt] - - - [2019-01-31 01:31:00.995939 UTC] "POST /modules/edgeHub/start?api-version=2018-06-28 HTTP/1.1" 500 Internal Server Error 1059 "-" "-" pid(3408)
1/31/2019 9:31:10 AM info: edgelet_docker::runtime -- Starting module edgeHub...
1/31/2019 9:31:11 AM info: edgelet_http::logging -- [mgmt] - - - [2019-01-31 01:31:11.691499200 UTC] "POST /modules/edgeHub/start?api-version=2018-06-28 HTTP/1.1" 500 Internal Server Error 1059 "-" "-"
                     pid(3408)
1/31/2019 9:31:11 AM warn: edgelet_utils::logging --    caused by: container 376b4bb3cb86da85b9f2454ef531c7d166793c9fd6660c2bfc09c73275f6ca3f encountered an error during CreateProcess: failure in a Windows     
                     system call: The password for this account has expired. (0x532) extra info: {"CommandLine":"dotnet Microsoft.Azure.Devices.Edge.Hub.Service.dll","User":"edgehubuser","WorkingDirectory":"C:
                     \\app","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","EdgeDeviceHostName":"desktop-gfu42rv","IOTEDGE_APIVERSION":"2018-06-28","IOTEDGE_AUTHSCHEME":"sa
                     sToken","IOTEDGE_DEVICEID":"pn-vm-1809","IOTEDGE_IOTHUBHOSTNAME":"imtc-edge-hub.azure-devices.net","IOTEDGE_MODULEGENERATIONID":"636844379641435418","IOTEDGE_MODULEID":"$edgeHub","IOTEDGE_
                     WORKLOADURI":"unix:///C:/ProgramData/iotedge/workload/sock","RuntimeLogLevel":"Information"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
1/31/2019 9:31:11 AM warn: edgelet_utils::logging -- Could not start module edgeHub
1/31/2019 9:31:11 AM info: edgelet_http::logging -- [work] - - - [2019-01-31 01:31:11.762584300 UTC] "POST /modules/%24edgeAgent/genid/636844379641435418/encrypt?api-version=2018-06-28 HTTP/1.1" 200 OK 1161
                     "-" "-" pid(3408)

Additional Information

Reinstalling iotedge or creating a new device is no use.

@dboykowillow
Copy link

dboykowillow commented Jan 31, 2019

I'm experiencing the same issue. Tried docker for Windows versions 2.0.0.2 and 18.06.1. Re-installation of docker, iotedge runtime, security daemon and re-creating device in Azure portal don't help. Same "The password for this account has expired" error. Installed everything on clean Windows 10 Pro OS. IoTEdge version 1.0.5. Just a couple of weeks ago did the same steps (according to IoT Edge tutorial) and everything worked fine.

@veyalla
Copy link
Contributor

veyalla commented Jan 31, 2019

Fix for this has been checked in and will be released very soon.

Workaround in the time being is to change the “1.0” tag for the edgeHub container image to “1.0.6-rc1” in deployment json.

@PNWang
Copy link
Author

PNWang commented Feb 1, 2019

Hello veyalla, the "edgeHub:1.0.6-rc1" works well, now all works could be keep going.
Thank you very much, I'm looking forward to a formal release.

@veyalla
Copy link
Contributor

veyalla commented Feb 1, 2019

Good to know, 1.0.6 has been released. You can change the tag to "1.0.6" to get the released image.

@myagley
Copy link
Contributor

myagley commented Feb 1, 2019

I'm going to close this issue. 1.0.6 was officially released yesterday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants