{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/102","repository_url":"https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet","labels_url":"https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/102/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/102/events","html_url":"https://github.com/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/102","id":325071560,"number":102,"title":"Local deployment unable to resolve DNS names","user":{"login":"davidrpk","id":20670590,"avatar_url":"https://avatars2.githubusercontent.com/u/20670590?v=4","gravatar_id":"","url":"https://api.github.com/users/davidrpk","html_url":"https://github.com/davidrpk","followers_url":"https://api.github.com/users/davidrpk/followers","following_url":"https://api.github.com/users/davidrpk/following{/other_user}","gists_url":"https://api.github.com/users/davidrpk/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrpk/subscriptions","organizations_url":"https://api.github.com/users/davidrpk/orgs","repos_url":"https://api.github.com/users/davidrpk/repos","events_url":"https://api.github.com/users/davidrpk/events{/privacy}","received_events_url":"https://api.github.com/users/davidrpk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-21T21:51:45Z","updated_at":"2018-05-21T23:10:31Z","closed_at":null,"author_association":"NONE","body":"# Type of issue <!-- [x] all the boxes that apply -->\r\n- [x] Bug\r\n- [ ] New feature\r\n- [ ] Improvement\r\n\r\n# Description <!-- Please provide a succinct description -->\r\nLocal deployment as per instructions here: https://docs.microsoft.com/en-us/azure/iot-accelerators/iot-accelerators-remote-monitoring-deploy-local\r\nIt appears as if the dashboard is unable to connect to application gateway and containers are unable to resolve DNS names.\r\n\r\n# Screenshot <!-- If available, copy & paste to upload -->\r\n![image](https://user-images.githubusercontent.com/20670590/40330246-71fb4b96-5da0-11e8-9e42-fd9c66414b48.png)\r\n\r\n\r\n# Steps to reproduce <!-- How can we reproduce the issue? -->\r\n1. Local deployment as per instructions here: https://docs.microsoft.com/en-us/azure/iot-accelerators/iot-accelerators-remote-monitoring-deploy-local\r\n2. After docker-compose up, containers successfully start:\r\n\r\n```\r\nStarting local_auth_1             ... done\r\nStarting local_iothubmanager_1    ... done\r\nStarting local_storageadapter_1 ... done\r\nStarting local_telemetry_1        ... done\r\nStarting local_devicesimulation_1 ... done\r\nStarting local_config_1           ... done\r\nStarting local_asamanager_1       ... done\r\nStarting local_webui_1            ... done\r\nStarting local_reverseproxy_1     ... done\r\nAttaching to local_storageadapter_1, local_auth_1, local_iothubmanager_1, local_devicesimulation_1, local_telemetry_1, local_config_1, local_asamanager_1, local_webui_1, local_reverseproxy_1\r\nstorageadapter_1   \r\n```\r\n\r\n3. Browsing to localhost:8080 works, but unable to resolve any back-end resources with error:\r\n`Error: Oops, there was no response from the server.`\r\n\r\nContainer logs complain about being unable to reach endpoint:\r\nFor example:\r\n> [ERROR][2018-05-21 20:55:25.434][WebService.dcd83a70-077e-4463-b896-208a71120770][HttpClient:SendAsync] Request failed, {\"timeSpent\":10006,\"Method\":\"GET\",\"Uri\":\"http://telemetry:9004/v1/rules\",\"Message\":\"A task was canceled. The request timed out, the endpoint might be unreachable.\",\"e\":{\"ExceptionFullName\":\"System.Threading.Tasks.TaskCanceledException\",\"ExceptionMessage\":\"A task was canceled.\",\"StackTrace\":\"   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable 1.ConfiguredTaskAwaiter.GetResult()\\n   at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.Services.Http.HttpClient.<SendAsync>d__10.MoveNext() in /opt/vsts/work/1/s/Services/Http/HttpClient.cs:line 142\",\"Source\":\"System.Private.CoreLib\",\"Data\":{},\"InnerException\":null}}\r\n\r\n# Expected behavior <!-- The behavior you're expecting -->\r\nDashboard successfully connecting to app gateway :)\r\n\r\n# Current behavior <!-- The actual behavior observed -->\r\nNo connectivity to containers :(\r\n\r\n# Known workarounds <!-- If any, please share here -->\r\n...\r\n\r\n# Possible solution <!-- If you have a suggestion, how the issue could be solved -->\r\n...\r\n\r\n# Context and Environment\r\n* Operating System: Host machine: Windows 10 with Docker for Windows (Docker version 18.03.1-ce, build 9ee9f40)\r\n* GitHub branch: Master\r\n* .NET Runtime: ?\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/comments/390809869","html_url":"https://github.com/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/102#issuecomment-390809869","issue_url":"https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet/issues/102","id":390809869,"user":{"login":"davidrpk","id":20670590,"avatar_url":"https://avatars2.githubusercontent.com/u/20670590?v=4","gravatar_id":"","url":"https://api.github.com/users/davidrpk","html_url":"https://github.com/davidrpk","followers_url":"https://api.github.com/users/davidrpk/followers","following_url":"https://api.github.com/users/davidrpk/following{/other_user}","gists_url":"https://api.github.com/users/davidrpk/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrpk/subscriptions","organizations_url":"https://api.github.com/users/davidrpk/orgs","repos_url":"https://api.github.com/users/davidrpk/repos","events_url":"https://api.github.com/users/davidrpk/events{/privacy}","received_events_url":"https://api.github.com/users/davidrpk/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T23:10:31Z","updated_at":"2018-05-21T23:10:31Z","author_association":"NONE","body":"C:\\Users\\XXXXXXXXXX\\source\\repos\\azure-iot-pcs-remote-monitoring-dotnet\\scripts\\local>docker-compose up\r\nStarting local_storageadapter_1 ... done\r\nStarting local_auth_1           ... done\r\nStarting local_iothubmanager_1  ... done\r\nStarting local_devicesimulation_1 ... done\r\nStarting local_telemetry_1        ... done\r\nStarting local_config_1           ... done\r\nStarting local_asamanager_1       ... done\r\nStarting local_webui_1            ... done\r\nStarting local_reverseproxy_1     ... done\r\nAttaching to local_iothubmanager_1, local_auth_1, local_storageadapter_1, local_telemetry_1, local_devicesimulation_1, local_config_1, local_asamanager_1, local_webui_1, local_reverseproxy_1\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:23Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:23Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:23Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:37Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:37Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:37Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:39Z][INFO][Startup:PrintBootstrapInfo] Web service started, {\"ProcessId\":\"WebService.cea6f922-7135-4630-9c29-8c14a94eb935\"}\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:42Z][INFO][CorsSetup:UseMiddleware] CORS is disabled\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\niothubmanager_1     | [WebService.cea6f922-7135-4630-9c29-8c14a94eb935][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\niothubmanager_1     | warn: Microsoft.AspNetCore.Server.Kestrel[22]\r\niothubmanager_1     |       Heartbeat took longer than \"00:00:01\" at \"05/21/2018 22:53:48 +00:00\".\r\niothubmanager_1     | Hosting environment: Production\r\niothubmanager_1     | Content root path: /app/webservice/\r\niothubmanager_1     | Now listening on: http://[::]:9002\r\niothubmanager_1     | Application started. Press Ctrl+C to shut down.\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:23Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:23Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:23Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:38Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:38Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:38Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\nstorageadapter_1    | [WebService.22531764-a1e6-4b50-a16c-377727aca7d3] Starting web service started, process ID: WebService.22531764-a1e6-4b50-a16c-377727aca7d3\r\nstorageadapter_1    | [WebService.22531764-a1e6-4b50-a16c-377727aca7d3] Web service listening on port 9022\r\nstorageadapter_1    | [WebService.22531764-a1e6-4b50-a16c-377727aca7d3] Web service health check at: http://127.0.0.1:9022/v1/status\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:39Z][INFO][Startup:PrintBootstrapInfo] Web service started, {\"ProcessId\":\"WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3\"}\r\nstorageadapter_1    | Hosting environment: Production\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:38Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:39Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:39Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:43Z][INFO][CorsSetup:UseMiddleware] CORS is disabled\r\nstorageadapter_1    | Content root path: /app/webservice/\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:46Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nauth_1              | [WebService.fad5d426-1782-4c7e-a65e-8ccd6c40d7f3][2018-05-21 22:53:45Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nstorageadapter_1    | Now listening on: http://[::]:9022\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:46Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\nauth_1              | Hosting environment: Production\r\nauth_1              | Content root path: /app/webservice/\r\nstorageadapter_1    | Application started. Press Ctrl+C to shut down.\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:46Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\nauth_1              | Now listening on: http://[::]:9001\r\nauth_1              | Application started. Press Ctrl+C to shut down.\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:40.237][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_LOG_LEVEL\"}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:49Z][INFO][Startup:PrintBootstrapInfo] Web service started, {\"ProcessId\":\"WebService.71942569-d871-47be-8fa5-c5d3df423ba4\"}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:50Z][INFO][CorsSetup:UseMiddleware] CORS is disabled\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:41.028][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_TWIN_READ_WRITE_ENABLED\"}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:53:46Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:41.030][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:41.038][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:41.039][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:41.042][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_SUBSCRIPTION_DOMAIN\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:41.047][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_SUBSCRIPTION_ID\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:41.048][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_RESOURCE_GROUP\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:41.056][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_IOHUB_NAME\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.701][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_LOG_LEVEL\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.701][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_TWIN_READ_WRITE_ENABLED\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.701][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.702][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.702][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.702][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_SUBSCRIPTION_DOMAIN\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.702][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_SUBSCRIPTION_ID\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.702][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_RESOURCE_GROUP\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:49.702][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_IOHUB_NAME\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:53:50.526][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][Startup:PrintBootstrapInfo] Service started, {\"ProcessId\":\"WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853\",\"LogLevel\":\"Warn\"}\r\ndevicesimulation_1  | [WARN][2018-05-21 22:54:00.573][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\ndevicesimulation_1  | [WARN][2018-05-21 22:54:00.585][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\ndevicesimulation_1  | [WARN][2018-05-21 22:54:00.585][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\ndevicesimulation_1  | [WARN][2018-05-21 22:54:00.586][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\ndevicesimulation_1  | [WARN][2018-05-21 22:54:00.586][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\ndevicesimulation_1  | [WARN][2018-05-21 22:54:00.599][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\ndevicesimulation_1  | Hosting environment: Production\r\ndevicesimulation_1  | Content root path: /app/webservice/\r\ndevicesimulation_1  | Now listening on: http://[::]:9003\r\ndevicesimulation_1  | Application started. Press Ctrl+C to shut down.\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:52Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nasamanager_1        | [WARN][2018-05-21 22:54:02.292][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_LOG_LEVEL\"}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:53:46Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:52Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:53:46Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\nwebui_1             | + mkdir -p /app/logs\r\nasamanager_1        | [WARN][2018-05-21 22:54:02.515][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:52Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:52Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:52Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nwebui_1             | + nginx -c /app/nginx.conf\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:53:52Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:53:51Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:53:51Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:53:51Z][WARN][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:53:52Z][INFO][Startup:PrintBootstrapInfo] Web service started, {\"ProcessId\":\"WebService.18e6cb95-96cf-4e66-b808-287da29eda07\"}\r\nasamanager_1        | [WARN][2018-05-21 22:54:02.516][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\nasamanager_1        | [WARN][2018-05-21 22:54:02.516][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\ntelemetry_1         | warn: Microsoft.AspNetCore.Server.Kestrel[22]\r\ntelemetry_1         |       Heartbeat took longer than \"00:00:01\" at \"05/21/2018 22:53:59 +00:00\".\r\ntelemetry_1         | Hosting environment: Production\r\ntelemetry_1         | Content root path: /app/webservice/\r\ntelemetry_1         | Now listening on: http://[::]:9004\r\ntelemetry_1         | Application started. Press Ctrl+C to shut down.\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:00Z][INFO][CorsSetup:UseMiddleware] CORS is disabled\r\nasamanager_1        | [WARN][2018-05-21 22:54:05.913][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_LOG_LEVEL\"}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:01Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:01Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:01Z][WARN][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:01Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:01Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:01Z][WARN][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nasamanager_1        | [WARN][2018-05-21 22:54:05.914][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_CORS_WHITELIST\"}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:02Z][INFO][RecurringTasks:SetupSeedData] Creating seed data...\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:02Z][DEBUG][HttpClient:SendAsync] Sending request, {\"httpMethod\":{\"Method\":\"GET\"},\"Uri\":\"http://storageadapter:9022/v1/collections/solution-settings/values/seedMutex\",\"Options\":{\"EnsureSuccess\":false,\"AllowInsecureSSLServer\":false,\"Timeout\":30000}}\r\nasamanager_1        | [WARN][2018-05-21 22:54:05.915][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_ISSUER\"}\r\nasamanager_1        | [WARN][2018-05-21 22:54:05.915][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][ConfigData:ProcessOptionalPlaceholders] Environment variables not found, {\"varsNotFound\":\", PCS_AUTH_AUDIENCE\"}\r\nasamanager_1        | [WARN][2018-05-21 22:54:09.040][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][Startup:PrintBootstrapInfo] Service started, {\"ProcessId\":\"WebService.35c7ad66-c530-4913-9989-ec5e361f756e\",\"LogLevel\":\"Warn\"}\r\nreverseproxy_1      | + mkdir -p /app/logs\r\nreverseproxy_1      | + nginx -c /app/config/nginx.conf\r\nasamanager_1        | [WARN][2018-05-21 22:54:10.096][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nasamanager_1        | [WARN][2018-05-21 22:54:10.096][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nasamanager_1        | [WARN][2018-05-21 22:54:10.096][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][AuthMiddleware:.ctor] ### AUTHENTICATION IS DISABLED! ###\r\nasamanager_1        | [WARN][2018-05-21 22:54:10.096][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nasamanager_1        | [WARN][2018-05-21 22:54:10.096][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\nasamanager_1        | [WARN][2018-05-21 22:54:10.096][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][AuthMiddleware:.ctor] ### Service to service authentication is not available in public preview ###\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:54:10Z][DEBUG][AuthMiddleware:Invoke] Skipping auth for service to service request\r\nasamanager_1        | Hosting environment: Production\r\nasamanager_1        | Content root path: /app/webservice/\r\nasamanager_1        | Now listening on: http://[::]:9024\r\nasamanager_1        | Application started. Press Ctrl+C to shut down.\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:54:11Z][DEBUG][HttpClient:SendAsync] Sending request, {\"httpMethod\":{\"Method\":\"GET\"},\"Uri\":\"http://storageadapter:9022/v1/collections/rules/values\",\"Options\":{\"EnsureSuccess\":false,\"AllowInsecureSSLServer\":false,\"Timeout\":10000}}\r\ndevicesimulation_1  | [ERROR][2018-05-21 22:54:12.789][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][HttpClient:SendAsync] Request failed, {\"timeSpent\":10034,\"Method\":\"GET\",\"Uri\":\"http://storageadapter:9022/v1/collections/simulations/values\",\"Message\":\"A task was canceled. The request timed out, the endpoint might be unreachable.\",\"e\":{\"ExceptionFullName\":\"System.Threading.Tasks.TaskCanceledException\",\"ExceptionMessage\":\"A task was canceled.\",\"StackTrace\":\"   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\\n   at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.Http.HttpClient.<SendAsync>d__9.MoveNext() in /opt/vsts/work/1/s/Services/Http/HttpClient.cs:line 92\",\"Source\":\"System.Private.CoreLib\",\"Data\":{},\"InnerException\":null}}\r\ndevicesimulation_1  | [ERROR][2018-05-21 22:54:12.853][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][Simulation:RunAsync] Failure reading and starting simulation from storage., {\"e\":{\"ExceptionFullName\":\"Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.Exceptions.ExternalDependencyException\",\"ExceptionMessage\":\"An unexpected error happened while using an external dependency.\",\"StackTrace\":\"   at Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.StorageAdapter.StorageAdapterClient.ThrowIfError(IHttpResponse response, String collectionId, String key) in /opt/vsts/work/1/s/Services/StorageAdapter/StorageAdapterClient.cs:line 172\\n   at Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.StorageAdapter.StorageAdapterClient.<GetAllAsync>d__7.MoveNext() in /opt/vsts/work/1/s/Services/StorageAdapter/StorageAdapterClient.cs:line 84\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.Simulations.<GetListAsync>d__9.MoveNext() in /opt/vsts/work/1/s/Services/Simulations.cs:line 85\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.DeviceSimulation.SimulationAgent.Simulation.<RunAsync>d__7.MoveNext() in /opt/vsts/work/1/s/SimulationAgent/Simulation.cs:line 50\",\"Source\":\"Microsoft.Azure.IoTSolutions.DeviceSimulation.Services\",\"Data\":{},\"InnerException\":{\"ExceptionFullName\":\"System.Net.Http.HttpRequestException\",\"ExceptionMessage\":\"Storage request error: status code 0\",\"StackTrace\":null,\"Source\":null,\"Data\":{},\"InnerException\":null}}}\r\nasamanager_1        | [ERROR][2018-05-21 22:54:20.813][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][HttpClient:SendAsync] Request failed, {\"timeSpent\":10055,\"Method\":\"GET\",\"Uri\":\"http://telemetry:9004/v1/rules\",\"Message\":\"A task was canceled. The request timed out, the endpoint might be unreachable.\",\"e\":{\"ExceptionFullName\":\"System.Threading.Tasks.TaskCanceledException\",\"ExceptionMessage\":\"A task was canceled.\",\"StackTrace\":\"   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\\n   at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.Services.Http.HttpClient.<SendAsync>d__10.MoveNext() in /opt/vsts/work/1/s/Services/Http/HttpClient.cs:line 142\",\"Source\":\"System.Private.CoreLib\",\"Data\":{},\"InnerException\":null}}\r\nasamanager_1        | [ERROR][2018-05-21 22:54:20.820][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][Rules:GetActiveRulesSortedByIdAsync] Request failed, {\"uri\":\"http://telemetry:9004/v1/rules\",\"StatusCode\":0}\r\nasamanager_1        | [ERROR][2018-05-21 22:54:20.835][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][Agent:CheckIfRulesHaveChangedAsync] Error while checking the rules, {\"e\":{\"ExceptionFullName\":\"Microsoft.Azure.IoTSolutions.AsaManager.Services.Exceptions.ExternalDependencyException\",\"ExceptionMessage\":\"Failed to retrieve the list of rules\",\"StackTrace\":\"   at Microsoft.Azure.IoTSolutions.AsaManager.Services.Rules.<GetActiveRulesSortedByIdAsync>d__5.MoveNext() in /opt/vsts/work/1/s/Services/Rules.cs:line 51\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.TelemetryRulesAgent.Agent.<RulesHaveChangedAsync>d__11.MoveNext() in /opt/vsts/work/1/s/TelemetryRulesAgent/Agent.cs:line 98\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.TelemetryRulesAgent.Agent.<CheckIfRulesHaveChangedAsync>d__10.MoveNext() in /opt/vsts/work/1/s/TelemetryRulesAgent/Agent.cs:line 84\",\"Source\":\"Microsoft.Azure.IoTSolutions.AsaManager.Services\",\"Data\":{},\"InnerException\":null}}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:54:22Z][ERROR][ExceptionsFilterAttribute:GetResponse] A task was canceled., {\"StatusCode\":500}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:54:30Z][DEBUG][AuthMiddleware:Invoke] Skipping auth for service to service request\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:54:30Z][DEBUG][HttpClient:SendAsync] Sending request, {\"httpMethod\":{\"Method\":\"GET\"},\"Uri\":\"http://storageadapter:9022/v1/collections/rules/values\",\"Options\":{\"EnsureSuccess\":false,\"AllowInsecureSSLServer\":false,\"Timeout\":10000}}\r\nasamanager_1        | [ERROR][2018-05-21 22:54:32.488][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][Agent:RunAsync] Received error setting up event hub. Will not receive updates from devices, {\"e\":{\"ExceptionFullName\":\"Microsoft.WindowsAzure.Storage.StorageException\",\"ExceptionMessage\":\"An error occurred while sending the request.\",\"StackTrace\":\"   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.<ExecuteAsyncInternal>d__4`1.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.EventHubs.Processor.PartitionManager.<InitializeStoresAsync>d__10.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.EventHubs.Processor.PartitionManager.<StartAsync>d__7.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.EventHubs.Processor.EventProcessorHost.<RegisterEventProcessorFactoryAsync>d__46.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.DeviceGroupsAgent.Agent.<SetupEventHub>d__13.MoveNext() in /opt/vsts/work/1/s/DeviceGroupsAgent/Agent.cs:line 132\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.DeviceGroupsAgent.Agent.<RunAsync>d__12.MoveNext() in /opt/vsts/work/1/s/DeviceGroupsAgent/Agent.cs:line 79\",\"Source\":\"Microsoft.WindowsAzure.Storage\",\"Data\":{},\"InnerException\":{\"ExceptionFullName\":\"System.Net.Http.HttpRequestException\",\"ExceptionMessage\":\"An error occurred while sending the request.\",\"StackTrace\":\"   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\\n   at System.Net.Http.HttpClient.<FinishSendAsyncUnbuffered>d__59.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.<ExecuteAsyncInternal>d__4`1.MoveNext()\",\"Source\":\"System.Private.CoreLib\",\"Data\":{},\"InnerException\":{\"ExceptionFullName\":\"System.Net.Http.CurlException\",\"ExceptionMessage\":\"Couldn't connect to server\",\"StackTrace\":\"   at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error)\\n   at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference`1 easyWrapper, CURLcode messageResult)\",\"Source\":\"System.Net.Http\",\"Data\":{},\"InnerException\":null}}}}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:32Z][DEBUG][AuthMiddleware:Invoke] Skipping auth for service to service request\r\ndevicesimulation_1  | [ERROR][2018-05-21 22:54:32.926][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][HttpClient:SendAsync] Request failed, {\"timeSpent\":10038,\"Method\":\"GET\",\"Uri\":\"http://storageadapter:9022/v1/collections/simulations/values\",\"Message\":\"A task was canceled. The request timed out, the endpoint might be unreachable.\",\"e\":{\"ExceptionFullName\":\"System.Threading.Tasks.TaskCanceledException\",\"ExceptionMessage\":\"A task was canceled.\",\"StackTrace\":\"   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\\n   at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.Http.HttpClient.<SendAsync>d__9.MoveNext() in /opt/vsts/work/1/s/Services/Http/HttpClient.cs:line 92\",\"Source\":\"System.Private.CoreLib\",\"Data\":{},\"InnerException\":null}}\r\ndevicesimulation_1  | [ERROR][2018-05-21 22:54:32.930][WebService.5db2cf65-7e68-4daf-9ca0-748a57b25853][Simulation:RunAsync] Failure reading and starting simulation from storage., {\"e\":{\"ExceptionFullName\":\"Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.Exceptions.ExternalDependencyException\",\"ExceptionMessage\":\"An unexpected error happened while using an external dependency.\",\"StackTrace\":\"   at Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.StorageAdapter.StorageAdapterClient.ThrowIfError(IHttpResponse response, String collectionId, String key) in /opt/vsts/work/1/s/Services/StorageAdapter/StorageAdapterClient.cs:line 172\\n   at Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.StorageAdapter.StorageAdapterClient.<GetAllAsync>d__7.MoveNext() in /opt/vsts/work/1/s/Services/StorageAdapter/StorageAdapterClient.cs:line 84\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.DeviceSimulation.Services.Simulations.<GetListAsync>d__9.MoveNext() in /opt/vsts/work/1/s/Services/Simulations.cs:line 85\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.DeviceSimulation.SimulationAgent.Simulation.<RunAsync>d__7.MoveNext() in /opt/vsts/work/1/s/SimulationAgent/Simulation.cs:line 50\",\"Source\":\"Microsoft.Azure.IoTSolutions.DeviceSimulation.Services\",\"Data\":{},\"InnerException\":{\"ExceptionFullName\":\"System.Net.Http.HttpRequestException\",\"ExceptionMessage\":\"Storage request error: status code 0\",\"StackTrace\":null,\"Source\":null,\"Data\":{},\"InnerException\":null}}}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:33Z][WARN][RecurringTasks:SetupSeedData] Seed data setup failed, will retry in few seconds, {\"pauseSecs\":1,\"e\":{\"ExceptionFullName\":\"System.AggregateException\",\"ExceptionMessage\":\"One or more errors occurred. (A task was canceled.)\",\"StackTrace\":\"   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\\n   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\\n   at Microsoft.Azure.IoTSolutions.UIConfig.WebService.RecurringTasks.SetupSeedData(Object context) in /opt/vsts/work/1/s/WebService/RecurringTasks.cs:line 64\",\"Source\":\"System.Private.CoreLib\",\"Data\":{},\"InnerExceptions\":[{\"ExceptionFullName\":\"System.Threading.Tasks.TaskCanceledException\",\"ExceptionMessage\":\"A task was canceled.\",\"StackTrace\":null,\"Source\":null,\"Data\":{},\"InnerException\":null}]}}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:33Z][WARN][RecurringTasks:SetupSeedData] Pausing thread before retrying seed data, {\"pauseSecs\":1}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:33Z][DEBUG][HttpClient:SendAsync] Sending request, {\"httpMethod\":{\"Method\":\"GET\"},\"Uri\":\"http://storageadapter:9022/v1/collections/devicegroups/values\",\"Options\":{\"EnsureSuccess\":false,\"AllowInsecureSSLServer\":false,\"Timeout\":30000}}\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:34Z][INFO][RecurringTasks:SetupSeedData] Creating seed data...\r\nconfig_1            | [WebService.18e6cb95-96cf-4e66-b808-287da29eda07][2018-05-21 22:54:34Z][DEBUG][HttpClient:SendAsync] Sending request, {\"httpMethod\":{\"Method\":\"GET\"},\"Uri\":\"http://storageadapter:9022/v1/collections/solution-settings/values/seedMutex\",\"Options\":{\"EnsureSuccess\":false,\"AllowInsecureSSLServer\":false,\"Timeout\":30000}}\r\nasamanager_1        | [ERROR][2018-05-21 22:54:40.917][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][HttpClient:SendAsync] Request failed, {\"timeSpent\":10038,\"Method\":\"GET\",\"Uri\":\"http://telemetry:9004/v1/rules\",\"Message\":\"A task was canceled. The request timed out, the endpoint might be unreachable.\",\"e\":{\"ExceptionFullName\":\"System.Threading.Tasks.TaskCanceledException\",\"ExceptionMessage\":\"A task was canceled.\",\"StackTrace\":\"   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\\n   at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.Services.Http.HttpClient.<SendAsync>d__10.MoveNext() in /opt/vsts/work/1/s/Services/Http/HttpClient.cs:line 142\",\"Source\":\"System.Private.CoreLib\",\"Data\":{},\"InnerException\":null}}\r\nasamanager_1        | [ERROR][2018-05-21 22:54:40.919][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][Rules:GetActiveRulesSortedByIdAsync] Request failed, {\"uri\":\"http://telemetry:9004/v1/rules\",\"StatusCode\":0}\r\nasamanager_1        | [ERROR][2018-05-21 22:54:40.923][WebService.35c7ad66-c530-4913-9989-ec5e361f756e][Agent:CheckIfRulesHaveChangedAsync] Error while checking the rules, {\"e\":{\"ExceptionFullName\":\"Microsoft.Azure.IoTSolutions.AsaManager.Services.Exceptions.ExternalDependencyException\",\"ExceptionMessage\":\"Failed to retrieve the list of rules\",\"StackTrace\":\"   at Microsoft.Azure.IoTSolutions.AsaManager.Services.Rules.<GetActiveRulesSortedByIdAsync>d__5.MoveNext() in /opt/vsts/work/1/s/Services/Rules.cs:line 51\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.TelemetryRulesAgent.Agent.<RulesHaveChangedAsync>d__11.MoveNext() in /opt/vsts/work/1/s/TelemetryRulesAgent/Agent.cs:line 98\\n--- End of stack trace from previous location where exception was thrown ---\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\n   at Microsoft.Azure.IoTSolutions.AsaManager.TelemetryRulesAgent.Agent.<CheckIfRulesHaveChangedAsync>d__10.MoveNext() in /opt/vsts/work/1/s/TelemetryRulesAgent/Agent.cs:line 84\",\"Source\":\"Microsoft.Azure.IoTSolutions.AsaManager.Services\",\"Data\":{},\"InnerException\":null}}\r\ntelemetry_1         | [WebService.71942569-d871-47be-8fa5-c5d3df423ba4][2018-05-21 22:54:40Z][ERROR][ExceptionsFilterAttribute:GetResponse] A task was canceled., {\"StatusCode\":500}\r\nGracefully stopping... (press Ctrl+C again to force)\r\nStopping local_reverseproxy_1     ... done\r\nStopping local_webui_1            ... done\r\nStopping local_asamanager_1       ... done\r\nStopping local_config_1           ...\r\nStopping local_telemetry_1        ...\r\nStopping local_devicesimulation_1 ...\r\nStopping local_iothubmanager_1    ...\r\nStopping local_storageadapter_1   ...\r\n"}}
{"actor":{"display_login":"davidrpk"}}