{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/iot-edge/issues/611","repository_url":"https://api.github.com/repos/Azure/iot-edge","labels_url":"https://api.github.com/repos/Azure/iot-edge/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/Azure/iot-edge/issues/611/comments","events_url":"https://api.github.com/repos/Azure/iot-edge/issues/611/events","html_url":"https://github.com/Azure/iot-edge/issues/611","id":325648949,"number":611,"title":"Edge module deployment issue - JSON error","user":{"login":"davebanthorpe","id":22078880,"avatar_url":"https://avatars0.githubusercontent.com/u/22078880?v=4","gravatar_id":"","url":"https://api.github.com/users/davebanthorpe","html_url":"https://github.com/davebanthorpe","followers_url":"https://api.github.com/users/davebanthorpe/followers","following_url":"https://api.github.com/users/davebanthorpe/following{/other_user}","gists_url":"https://api.github.com/users/davebanthorpe/gists{/gist_id}","starred_url":"https://api.github.com/users/davebanthorpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davebanthorpe/subscriptions","organizations_url":"https://api.github.com/users/davebanthorpe/orgs","repos_url":"https://api.github.com/users/davebanthorpe/repos","events_url":"https://api.github.com/users/davebanthorpe/events{/privacy}","received_events_url":"https://api.github.com/users/davebanthorpe/received_events","type":"User","site_admin":false},"labels":[{"id":360934177,"url":"https://api.github.com/repos/Azure/iot-edge/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-23T10:42:17Z","updated_at":"2018-05-23T22:38:58Z","closed_at":null,"author_association":"NONE","body":"OK so this issue only started happening this morning. Yesterday I had a fully operational edge runtime with 2 modules working perfectly. This morning one of the modules was not running and when I went into to edgeAgent logs I saw config errors - and I made no config changes over night.\r\n\r\nSo after trying to resolve unsuccessfully, cleared down the edge device (both locally and from Azure) and started from scratch.\r\n\r\nProblem? Can't deploy ANY module other than edgeAgent or edgeHub. Even trying to deploy the example tempSensor module results in edge runtime reporting:\r\n\r\n`400 - The deployment configuration is malformed or invalid`\r\n\r\nand when you look at the logs of the edgeAgent, as soon as you try and submit a module deployment you see this. So has there been a bug introduced overnight into edge runtime????\r\n\r\n```\r\n2018-05-23 10:29:38.741 +00:00 [ERR] - Error refreshing edge agent configuration from twin.\r\nMicrosoft.Azure.Devices.Edge.Agent.Core.ConfigSources.ConfigEmptyException: This device has an empty configuration for the edge agent. Please set a deployment manifest.\r\n   at Microsoft.Azure.Devices.Edge.Agent.IoTHub.EdgeAgentConnection.UpdateDeploymentConfig() in /opt/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/EdgeAgentConnection.cs:line 171\r\n   at Microsoft.Azure.Devices.Edge.Agent.IoTHub.EdgeAgentConnection.<RefreshTwinAsync>d__20.MoveNext() in /opt/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/EdgeAgentConnection.cs:line 124\r\n2018-05-23 10:29:41.128 +00:00 [INF] - Updated reported properties\r\n2018-05-23 10:31:48.726 +00:00 [ERR] - Error updating deployment config from edge agent desired properties.\r\nNewtonsoft.Json.JsonSerializationException: Value cannot be null.\r\nParameter name: version\r\n   at Microsoft.Azure.Devices.Edge.Agent.Core.Serde.TypeSpecificSerDe`1.Deserialize[TU](String json) in /opt/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/serde/TypeSpecificSerDe.cs:line 56\r\n   at Microsoft.Azure.Devices.Edge.Agent.IoTHub.EdgeAgentConnection.UpdateDeploymentConfig() in /opt/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/EdgeAgentConnection.cs:line 165\r\n2018-05-23 10:31:48.751 +00:00 [ERR] - Edge agent failed to process desired properties update patch\r\nMicrosoft.Azure.Devices.Edge.Agent.Core.ConfigSources.ConfigFormatException: Agent configuration format is invalid. ---> Newtonsoft.Json.JsonSerializationException: Value cannot be null.\r\nParameter name: version\r\n   at Microsoft.Azure.Devices.Edge.Agent.Core.Serde.TypeSpecificSerDe`1.Deserialize[TU](String json) in /opt/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/serde/TypeSpecificSerDe.cs:line 56\r\n   at Microsoft.Azure.Devices.Edge.Agent.IoTHub.EdgeAgentConnection.UpdateDeploymentConfig() in /opt/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/EdgeAgentConnection.cs:line 165\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Azure.Devices.Edge.Agent.IoTHub.EdgeAgentConnection.UpdateDeploymentConfig() in /opt/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/EdgeAgentConnection.cs:line 177\r\n   at Microsoft.Azure.Devices.Edge.Agent.IoTHub.EdgeAgentConnection.<ApplyPatchAsync>d__21.MoveNext() in /opt/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/EdgeAgentConnection.cs:line 141\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/iot-edge/issues/comments/391521180","html_url":"https://github.com/Azure/iot-edge/issues/611#issuecomment-391521180","issue_url":"https://api.github.com/repos/Azure/iot-edge/issues/611","id":391521180,"user":{"login":"ChenchenC","id":24176158,"avatar_url":"https://avatars3.githubusercontent.com/u/24176158?v=4","gravatar_id":"","url":"https://api.github.com/users/ChenchenC","html_url":"https://github.com/ChenchenC","followers_url":"https://api.github.com/users/ChenchenC/followers","following_url":"https://api.github.com/users/ChenchenC/following{/other_user}","gists_url":"https://api.github.com/users/ChenchenC/gists{/gist_id}","starred_url":"https://api.github.com/users/ChenchenC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChenchenC/subscriptions","organizations_url":"https://api.github.com/users/ChenchenC/orgs","repos_url":"https://api.github.com/users/ChenchenC/repos","events_url":"https://api.github.com/users/ChenchenC/events{/privacy}","received_events_url":"https://api.github.com/users/ChenchenC/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T22:38:58Z","updated_at":"2018-05-23T22:38:58Z","author_association":"NONE","body":"@jongio It does not work. "}}
{"actor":{"display_login":"ChenchenC"}}