twilio c# sdk publish to azure app service - twilio

Downloaded Twilio C# SDK for chat application and when I run off Visual Studio -- it works fine (localhost:port).
Now I would like to publish this on to Azure App Service. Running into issues here. Hope someone can give me pointers.
1>------ Publish started: Project: TwilioSdkStarterDotnetCore.Web, Configuration: Release Any CPU ------
Web App was published successfully http://xxxxxxxxxxxx.azurewebsites.net/
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
I think the problem is Twilio has external URL in the code that Azure does not like. Not sure. Even if it is, not sure how to fix.
ERROR:
System.ApplicationException: The trace listener AzureBlobTraceListener is disabled. ---> System.InvalidOperationException: The SAS URL for the cloud storage account is not specified. Use the environment variable 'DIAGNOSTICS_AZUREBLOBCONTAINERSASURL' to define it.
at Microsoft.WindowsAzure.WebSites.Diagnostics.AzureBlobTraceListener.RefreshConfig()
From Azure App Service log stream:
-------------------------------------------------------------------------
Connecting...
2019-01-03T20:09:36 Welcome, you are now connected to log-streaming service.
2019-01-03T20:09:50
System.ApplicationException: The trace listener AzureBlobTraceListener is disabled. ---> System.InvalidOperationException: The SAS URL for the cloud storage account is not specified. Use the environment variable 'DIAGNOSTICS_AZUREBLOBCONTAINERSASURL' to define it.
at Microsoft.WindowsAzure.WebSites.Diagnostics.AzureBlobTraceListener.RefreshConfig()
--- End of inner exception stack trace ---
2019-01-03T20:09:50 PID[4536] Information VSProjectId: 79a347a8-313a-4d83-8c0c-7fe1cba0aa67
2019-01-03T20:09:50 PID[4536] Information DeploymentComplete
2019-01-03 20:09:54.706 +00:00 [Debug] Microsoft.AspNetCore.Hosting.Internal.WebHost: Hosting starting
2019-01-03 20:09:54.794 +00:00 [Information] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: Azure Web Sites environment detected. Using 'D:\home\ASP.NET\DataProtection-Keys' as key repository; keys will not be encrypted at rest.
2019-01-03 20:09:54.834 +00:00 [Debug] Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository: Reading data from file 'D:\home\ASP.NET\DataProtection-Keys\key-3205a103-24e9-43f7-b49c-c3d6f8f8c36f.xml'.
2019-01-03 20:09:54.959 +00:00 [Debug] Microsoft.AspNetCore.DataProtection.Internal.DataProtectionStartupFilter: Key ring with default key {3205a103-24e9-43f7-b49c-c3d6f8f8c36f} was loaded during application startup.
2019-01-03 20:09:54.987 +00:00 [Debug] Microsoft.AspNetCore.Mvc.MvcJsonOptions: Compatibility switch AllowInputFormatterExceptionMessages in type MvcJsonOptions is using compatibility value True for version Version_2_1
2019-01-03 20:09:55.000 +00:00 [Debug] Microsoft.AspNetCore.Mvc.MvcOptions: Compatibility switch AllowCombiningAuthorizeFilters in type MvcOptions is using compatibility value True for version Version_2_1
2019-01-03 20:09:55.000 +00:00 [Debug] Microsoft.AspNetCore.Mvc.MvcOptions: Compatibility switch AllowBindingHeaderValuesToNonStringModelTypes in type MvcOptions is using compatibility value True for version Version_2_1
2019-01-03 20:09:55.000 +00:00 [Debug] Microsoft.AspNetCore.Mvc.MvcOptions: Compatibility switch AllowValidatingTopLevelNodes in type MvcOptions is using compatibility value True for version Version_2_1
2019-01-03 20:09:55.000 +00:00 [Debug] Microsoft.AspNetCore.Mvc.MvcOptions: Compatibility switch InputFormatterExceptionPolicy in type MvcOptions is using compatibility value MalformedInputExceptions for version Version_2_1
2019-01-03 20:09:55.117 +00:00 [Debug] Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory: Registered model binder providers, in the following order: Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ServicesModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatingPointTypeModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.EnumTypeModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.SimpleTypeModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CancellationTokenModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ByteArrayModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormFileModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormCollectionModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.DictionaryModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ArrayModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinderProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinderProvider
2019-01-03 20:09:55.177 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer: Failed to locate the development https certificate at '(null)'.
2019-01-03 20:09:55.313 +00:00 [Debug] Microsoft.AspNetCore.Hosting.Internal.WebHost: Hosting started
2019-01-03 20:09:55.313 +00:00 [Debug] Microsoft.AspNetCore.Hosting.Internal.WebHost: Loaded hosting startup assembly TwilioSdkStarterDotnetCore.Web
2019-01-03 20:09:55.313 +00:00 [Debug] Microsoft.AspNetCore.Hosting.Internal.WebHost: Loaded hosting startup assembly Microsoft.AspNetCore.AzureAppServices.HostingStartup
2019-01-03 20:09:55.313 +00:00 [Debug] Microsoft.AspNetCore.Hosting.Internal.WebHost: Loaded hosting startup assembly Microsoft.AspNetCore.Server.IISIntegration
2019-01-03 20:09:55.386 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel: Connection id "0HLJHMTMRPB3K" started.
2019-01-03 20:09:55.501 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets: Connection id "0HLJHMTMRPB3K" received FIN.
2019-01-03 20:09:55.511 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel: Connection id "0HLJHMTMRPB3K" disconnecting.
2019-01-03 20:09:55.532 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets: Connection id "0HLJHMTMRPB3K" sending FIN.
2019-01-03 20:09:55.543 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel: Connection id "0HLJHMTMRPB3K" stopped.
2019-01-03 20:09:55.574 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel: Connection id "0HLJHMTMRPB3L" started.
2019-01-03 20:09:55.632 +00:00 [Information] Microsoft.AspNetCore.Hosting.Internal.WebHost: Request starting HTTP/1.1 GET http://xxxxxxxxxxxxxxxx.azurewebsites.net/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IIS Detailed Error - 404.0 - Not Found</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;}
pre{margin:0;font-size:1.4em;word-wrap:break-word;}
ul,ol{margin:10px 0 10px 5px;}
ul.first,ol.first{margin-top:5px;}
fieldset{padding:0 15px 10px 15px;word-break:break-all;}
.summary-container fieldset{padding-bottom:5px;margin-top:4px;}
legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;}
legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px;
font-weight:bold;font-size:1em;}
a:link,a:visited{color:#007EFF;font-weight:bold;}
a:hover{text-decoration:none;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;}
h4{font-size:1.2em;margin:10px 0 5px 0;
}#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif;
color:#FFF;background-color:#5C87B2;
}#content{margin:0 0 0 2%;position:relative;}
.summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
.content-container p{margin:0 0 10px 0;
}#details-left{width:35%;float:left;margin-right:2%;
}#details-right{width:63%;float:left;overflow:hidden;
}#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF;
background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal;
font-size:1em;color:#FFF;text-align:right;
}#server_version p{margin:5px 0;}
table{margin:4px 0 4px 0;width:100%;border:none;}
td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:normal;border:none;}
th{width:30%;text-align:right;padding-right:2%;font-weight:bold;}
thead th{background-color:#ebebeb;width:25%;
}#details-right th{width:20%;}
table tr.alt td,table tr.alt th{}
.highlight-code{color:#CC0000;font-weight:bold;font-style:italic;}
.clear{clear:both;}
.preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;}
-->
</style>
</head>
<body>
<div id="content">
<div class="content-container">
<h3>HTTP Error 404.0 - Not Found</h3>
<h4>The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.</h4>
</div>
<div class="content-container">
<fieldset><h4>Most likely causes:</h4>
<ul> <li>The directory or file specified does not exist on the Web server.</li> <li>The URL contains a typographical error.</li> <li>A custom filter or module, such as URLScan, restricts access to the file.</li> </ul>
</fieldset>
</div>
<div class="content-container">
<fieldset><h4>Things you can try:</h4>
<ul> <li>Create the content on the Web server.</li> <li>Review the browser URL.</li> <li>Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here. </li> </ul>
</fieldset>
</div>
<div class="content-container">
<fieldset><h4>Detailed Error Information:</h4>
<div id="details-left">
<table border="0" cellpadding="0" cellspacing="0">
<tr class="alt"><th>Module</th><td> AspNetCoreModule</td></tr>
<tr><th>Notification</th><td> ExecuteRequestHandler</td></tr>
<tr class="alt"><th>Handler</th><td> aspNetCore</td></tr>
<tr><th>Error Code</th><td> 0x00000000</td></tr>
</table>
</div>
<div id="details-right">
<table border="0" cellpadding="0" cellspacing="0">
<tr class="alt"><th>Requested URL</th><td> http://xxxxxxxxxxxxxx:80/</td></tr>
<tr><th>Physical Path</th><td> D:\home\site\wwwroot</td></tr>
<tr class="alt"><th>Logon Method</th><td> Anonymous</td></tr>
<tr><th>Logon User</th><td> Anonymous</td></tr>
</table>
<div class="clear"></div>
</div>
</fieldset>
</div>
<div class="content-container">
<fieldset><h4>More Information:</h4>
This error means that the file or directory does not exist on the server. Create the file or directory and try the request again.
<p>View more information ยป</p>
<p>Microsoft Knowledge Base Articles:</p>
</fieldset>
</div>
</div>
</body>
</html>
2019-01-03 20:09:55.633 +00:00 [Debug] Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware: Wildcard detected, all requests with hosts will be allowed.
2019-01-03 20:09:55.640 +00:00 [Trace] Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware: All hosts are allowed.
2019-01-03 20:09:55.659 +00:00 [Warning] Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware: Failed to determine the https port for redirect.
2019-01-03 20:09:55.680 +00:00 [Debug] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The request path / does not match a supported file type
2019-01-03 20:09:55.959 +00:00 [Debug] Microsoft.AspNetCore.Routing.RouteBase: Request successfully matched the route with name 'default' and template '{controller=Home}/{action=Index}/{id?}'.
2019-01-03 20:09:55.999 +00:00 [Information] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Route matched with {action = "Index", controller = "Home"}. Executing action TwilioSdkStarterDotnetCore.Web.Controllers.HomeController.Index (TwilioSdkStarterDotnetCore.Web)
2019-01-03 20:09:56.005 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Execution plan of authorization filters (in the following order): None
2019-01-03 20:09:56.005 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Execution plan of resource filters (in the following order): Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter
2019-01-03 20:09:56.005 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Execution plan of action filters (in the following order): Microsoft.AspNetCore.Mvc.Internal.ControllerActionFilter (Order: -2147483648), Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter
2019-01-03 20:09:56.005 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Execution plan of exception filters (in the following order): None
2019-01-03 20:09:56.005 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Execution plan of result filters (in the following order): Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter
2019-01-03 20:09:56.007 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Resource Filter: Before executing OnResourceExecuting on filter Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter.
2019-01-03 20:09:56.007 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Resource Filter: After executing OnResourceExecuting on filter Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter.
2019-01-03 20:09:56.018 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Action Filter: Before executing OnActionExecutionAsync on filter Microsoft.AspNetCore.Mvc.Internal.ControllerActionFilter.
2019-01-03 20:09:56.027 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
2019-01-03 20:09:56.027 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
2019-01-03 20:09:56.037 +00:00 [Information] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Executing action method TwilioSdkStarterDotnetCore.Web.Controllers.HomeController.Index (TwilioSdkStarterDotnetCore.Web) - Validation state: Valid
2019-01-03 20:09:56.045 +00:00 [Information] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Executed action method TwilioSdkStarterDotnetCore.Web.Controllers.HomeController.Index (TwilioSdkStarterDotnetCore.Web), returned result Microsoft.AspNetCore.Mvc.ViewResult in 0.4307ms.
2019-01-03 20:09:56.045 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
2019-01-03 20:09:56.045 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
2019-01-03 20:09:56.045 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Action Filter: After executing OnActionExecutionAsync on filter Microsoft.AspNetCore.Mvc.Internal.ControllerActionFilter.
2019-01-03 20:09:56.046 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Result Filter: Before executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter.
2019-01-03 20:09:56.046 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Result Filter: After executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter.
2019-01-03 20:09:56.048 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Before executing action result Microsoft.AspNetCore.Mvc.ViewResult.
2019-01-03 20:09:56.057 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine: View lookup cache miss for view 'Index' in controller 'Home'.
2019-01-03 20:09:56.058 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/Chat/Index.cshtml'.
2019-01-03 20:09:56.058 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/Home/Index.cshtml'.
2019-01-03 20:09:56.058 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/Notify/Index.cshtml'.
2019-01-03 20:09:56.058 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/Shared/_Layout.cshtml'.
2019-01-03 20:09:56.058 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/Shared/_ValidationScriptsPartial.cshtml'.
2019-01-03 20:09:56.058 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/Sync/Index.cshtml'.
2019-01-03 20:09:56.058 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/Video/Index.cshtml'.
2019-01-03 20:09:56.064 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/_ViewImports.cshtml'.
2019-01-03 20:09:56.064 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Initializing Razor view compiler with compiled view: '/Views/_ViewStart.cshtml'.
2019-01-03 20:09:56.065 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Located compiled view for view at path '/Views/Home/Index.cshtml'.
2019-01-03 20:09:56.075 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Could not find a file for view at path '/Views/Home/_ViewStart.cshtml'.
2019-01-03 20:09:56.075 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Located compiled view for view at path '/Views/_ViewStart.cshtml'.
2019-01-03 20:09:56.077 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Could not find a file for view at path '/_ViewStart.cshtml'.
2019-01-03 20:09:56.077 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine: Using precompiled view for '/Views/Home/Index.cshtml'.
2019-01-03 20:09:56.084 +00:00 [Information] Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor: Executing ViewResult, running view Index.
2019-01-03 20:09:56.085 +00:00 [Debug] Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor: The view path '/Views/Home/Index.cshtml' was found in 28.1834ms.
2019-01-03 20:09:56.214 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine: View lookup cache miss for view '_Layout' in controller 'Home'.
2019-01-03 20:09:56.214 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Could not find a file for view at path '/Views/Home/_Layout.cshtml'.
2019-01-03 20:09:56.214 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Razor.Internal.RazorViewCompiler: Located compiled view for view at path '/Views/Shared/_Layout.cshtml'.
2019-01-03 20:09:56.215 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine: Using precompiled view for '/Views/Shared/_Layout.cshtml'.
2019-01-03 20:09:56.335 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: After executing action result Microsoft.AspNetCore.Mvc.ViewResult.
2019-01-03 20:09:56.336 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Result Filter: Before executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter.
2019-01-03 20:09:56.336 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Result Filter: After executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter.
2019-01-03 20:09:56.336 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Resource Filter: Before executing OnResourceExecuted on filter Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter.
2019-01-03 20:09:56.336 +00:00 [Trace] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Resource Filter: After executing OnResourceExecuted on filter Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter.
2019-01-03 20:09:56.336 +00:00 [Information] Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker: Executed action TwilioSdkStarterDotnetCore.Web.Controllers.HomeController.Index (TwilioSdkStarterDotnetCore.Web) in 330.8858ms
2019-01-03 20:09:56.412 +00:00 [Error] Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware: An unhandled exception has occurred while executing the request.
System.InvalidOperationException: The following sections have been defined but have not been rendered by the page at '/Views/Shared/_Layout.cshtml': 'Styles'. To ignore an unrendered section call IgnoreSection("sectionName").
at Microsoft.AspNetCore.Mvc.Razor.RazorPage.EnsureRenderedBodyOrSections()
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderLayoutAsync(ViewContext context, ViewBufferTextWriter bodyWriter)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeResultAsync(IActionResult result)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResultFilterAsync[TFilter,TFilterAsync]()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResultExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeResultFilters()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
2019-01-03 20:09:56.414 +00:00 [Debug] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The request path /Home/Error does not match a supported file type
2019-01-03 20:09:56.414 +00:00 [Debug] Microsoft.AspNetCore.Routing.RouteBase: Request successfully matched the route with name 'default' and template '{controller=Home}/{action=Index}/{id?}'.
2019-01-03 20:09:56.422 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Internal.ActionSelector: No actions matched the current request. Route values: controller=Home, action=Error
2019-01-03 20:09:56.422 +00:00 [Debug] Microsoft.AspNetCore.Mvc.Internal.MvcRouteHandler: No actions matched the current request. Route values: controller=Home, action=Error
2019-01-03 20:09:56.422 +00:00 [Debug] Microsoft.AspNetCore.Builder.RouterMiddleware: Request did not match any routes.
2019-01-03 20:09:56.425 +00:00 [Debug] Microsoft.AspNetCore.Server.Kestrel: Connection id "0HLJHMTMRPB3L" completed keep alive response.
2019-01-03 20:09:56.441 +00:00 [Information] Microsoft.AspNetCore.Hosting.Internal.WebHost: Request finished in 810.0333ms 404
2019-01-03 20:08:57 xxxxxxxxxxxx GET / X-ARR-LOG-ID=e9cbd7fd-3276-4c70-bf95-0acdd80e637e 80 - 13.13.16.2 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/58.0.3029.110+Safari/537.36+Edge/16.16299 - - xxxxxxxxxxxxxx.azurewebsites.net 404 0 0 328 999 3533
2019-01-03 20:09:28 ~1xxxxxxxxxxxx GET /api/vfs/site/wwwroot/ _=1546546158817&X-ARR-LOG-ID=e63305a7-9618-48d7-ab3b-2c3c716ff36b 443 - 13.13.137.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:64.0)+Gecko/20100101+Firefox/64.0 - https://websites.hosting.portal.azure.net/websites?bundlingKind=PopularPartitioner&cacheability=3&extensionName=WebsitesExtension&l=en&pageVersion=5.12.34.339&trustedAuthority=portal.azure.com xxxxxxxxxxxx.scm.azurewebsites.net 200 0 0 2373 1643 514
2019-01-03 20:09:48 ~1xxxxxxxxxxxx HEAD /msdeploy.axd site=xxxxxxxxxxxx&X-ARR-LOG-ID=4ed97fa0-1c03-4ec2-a2be-0eb145b6841a 443 - 13.13.157.6 - - - xxxxxxxxxxxx.scm.azurewebsites.net 200 0 0 412 1077 19
2019-01-03 20:09:48 ~1xxxxxxxxxxxx HEAD /msdeploy.axd site=xxxxxxxxxxxx&X-ARR-LOG-ID=16d097ec-fb4d-461c-ac12-920ea317561f 443 - 13.13.157.6 - ARRAffinity=69e56d94bc2631bcc7dd44f6f455e6e654512fd223067d328f88fbea76b6ea85 - xxxxxxxxxxxx.scm.azurewebsites.net 200 0 0 412 1165 9
2019-01-03 20:09:48 ~1xxxxxxxxxxxx POST /msdeploy.axd site=xxxxxxxxxxxx&X-ARR-LOG-ID=c55ecae7-4bea-4354-aaad-a5f33679a35e 443 - 13.13.157.6 VSCmdLine:WTE2.1.500.1853;sid=1b9a629a-5f37-4ffb-846d-c2f79ec96757;op=Sync ARRAffinity=69e56d94bc2631bcc7dd44f6f455e6e654512fd223067d328f88fbea76b6ea85 - xxxxxxxxxxxx.scm.azurewebsites.net 200 0 0 767 14711 382
2019-01-03 20:09:48 ~1xxxxxxxxxxxx POST /msdeploy.axd site=xxxxxxxxxxxx&X-ARR-LOG-ID=3b31d177-31c9-4b5e-8004-f3d285bbda0d 443 - 13.13.157.6 - ARRAffinity=69e56d94bc2631bcc7dd44f6f455e6e654512fd223067d328f88fbea76b6ea85 - xxxxxxxxxxxx.scm.azurewebsites.net 200 0 0 503 1273 885
2019-01-03 20:09:49 ~1xxxxxxxxxxxx HEAD /msdeploy.axd site=xxxxxxxxxxxx&X-ARR-LOG-ID=03a0ab1a-c8c9-439b-b7d9-6a0c31f2746f 443 - 13.13.157.6 - ARRAffinity=69e56d94bc2631bcc7dd44f6f455e6e654512fd223067d328f88fbea76b6ea85 - xxxxxxxxxxxx.scm.azurewebsites.net 200 0 0 412 1163 15
2019-01-03 20:09:49 ~1xxxxxxxxxxxx POST /msdeploy.axd site=xxxxxxxxxxxx&X-ARR-LOG-ID=ded7df79-b97b-4405-88b7-50cc17ab652b 443 - 13.13.157.6 - ARRAffinity=69e56d94bc2631bcc7dd44f6f455e6e654512fd223067d328f88fbea76b6ea85 - xxxxxxxxxxxx.scm.azurewebsites.net 200 0 0 957 1275 757

Related

Azure IoT Edge Module Inter-module message repeat same message

I have 2 Auzre IoT Edge Module running on Linux (Ubuntu 20.04) device. Module A (inzightedge) send message to Module B (videoedge) via edgeHub with the following routes.
"routes": {
"InzightEdgeToIoTHub": "FROM /messages/modules/inzightedge/outputs/* INTO $upstream",
"inzight2video": "FROM /messages/modules/inzightedge/outputs/videoOutput INTO BrokeredEndpoint("/modules/videoedge/inputs/videoInput")"
},
In the videoedge (Module B) module, Program.cs:
static async Task Init()
{
MqttTransportSettings mqttSetting = new MqttTransportSettings(TransportType.Mqtt_Tcp_Only);
ITransportSettings[] settings = { mqttSetting };
_ioTHubModuleClient = await ModuleClient.CreateFromEnvironmentAsync(settings);
await _ioTHubModuleClient.OpenAsync();
ConsoleLog.LogInformation("Init", "IoT Hub module client initialized.");
await _ioTHubModuleClient.SetInputMessageHandlerAsync("videoInput", VideoInputMessage, _ioTHubModuleClient);
ConsoleLog.LogInformation("Init", "Start initialization");
}
static async Task<MessageResponse> VideoInputMessage(Message message, object userContext)
{
var moduleClient = userContext as ModuleClient;
int counterValue = Interlocked.Increment(ref _videoRequestCounter);
if (moduleClient == null)
{
throw new InvalidOperationException("UserContext doesn't contain " + "expected values");
}
byte[] messageBytes = message.GetBytes();
string messageString = Encoding.UTF8.GetString(messageBytes);
ConsoleLog.LogInformation("VideoInputMessage", $"Received message: {counterValue}, Body: {messageString}");
if (!string.IsNullOrEmpty(messageString))
{
// Do something to handle the message
}
return MessageResponse.Completed;
}
When Module A (inzightedge) send a message to Module B (videoedge), i.e. "videoInput".
Module B can get the first message, but it may not get the second one. However, Module B keep receiving the first message.
The log in edgeHub shows that the message is return to the message queue again. Here is the log:
<6> 2022-06-16 05:03:29.513 +00:00 [INF] - Entering periodic task to reauthenticate connected clients
<6> 2022-06-16 05:08:29.512 +00:00 [INF] - Entering periodic task to reauthenticate connected clients
<6> 2022-06-16 05:08:29.513 +00:00 [INF] - Error authenticating token for SE50-02/inzightedge because the token is expired or could not be parsed
<6> 2022-06-16 05:08:29.514 +00:00 [INF] - Credentials for client SE50-02/inzightedge are not valid.
<4> 2022-06-16 05:08:29.514 +00:00 [WRN] - Reauthenticating client SE50-02/inzightedge failed, removing client connection
<6> 2022-06-16 05:08:29.514 +00:00 [INF] - Unable to re-authenticate SE50-02/inzightedge, dropping client connection.
<6> 2022-06-16 05:08:29.514 +00:00 [INF] - Removing device connection for device SE50-02/inzightedge with removeCloudConnection flag 'True'.
<4> 2022-06-16 05:08:29.516 +00:00 [WRN] - Closing connection for device: SE50-02/inzightedge, Microsoft.Azure.Devices.Edge.Hub.Core.EdgeHubConnectionException: Connection closed for device SE50-02/inzightedge.,
<6> 2022-06-16 05:08:29.516 +00:00 [INF] - Disposing MessagingServiceClient for device Id SE50-02/inzightedge because of exception - Microsoft.Azure.Devices.Edge.Hub.Core.EdgeHubConnectionException: Connection closed for device SE50-02/inzightedge.
<6> 2022-06-16 05:08:29.517 +00:00 [INF] - Closing device proxy for device Id SE50-02/inzightedge
<6> 2022-06-16 05:08:29.519 +00:00 [INF] - Closing receiver in cloud proxy 6500cd9d-b22e-47a7-a9de-f0a998b963d0 for SE50-02/inzightedge
<6> 2022-06-16 05:08:29.519 +00:00 [INF] - Closed cloud proxy 6500cd9d-b22e-47a7-a9de-f0a998b963d0 for SE50-02/inzightedge
<6> 2022-06-16 05:08:29.519 +00:00 [INF] - Device connection removed for device SE50-02/inzightedge
<6> 2022-06-16 05:08:30.080 +00:00 [INF] - Updated reported properties for SE50-02/$edgeHub
<6> 2022-06-16 05:08:30.083 +00:00 [INF] - Client SE50-02/inzightedge in device scope authenticated locally.
<6> 2022-06-16 05:08:30.084 +00:00 [INF] - Successfully generated identity for clientId SE50-02/inzightedge and username ubuntu/SE50-02/inzightedge/?api-version=2020-09-30&DeviceClientType=.NET%2F1.41.0%20%28.NET%20Core%203.1.25%3B%20Linux%205.4.0-117-generic%20%23132-Ubuntu%20SMP%20Thu%20Jun%202%2000%3A39%3A06%20UTC%202022%3B%20X64%29
<6> 2022-06-16 05:08:30.084 +00:00 [INF] - ClientAuthenticated, SE50-02/inzightedge, 27d3c149
<6> 2022-06-16 05:08:30.084 +00:00 [INF] - New device connection for device SE50-02/inzightedge
<6> 2022-06-16 05:08:30.084 +00:00 [INF] - Client SE50-02/inzightedge connected to edgeHub, processing existing subscriptions.
<6> 2022-06-16 05:08:30.085 +00:00 [INF] - Bind device proxy for device SE50-02/inzightedge
<6> 2022-06-16 05:08:30.085 +00:00 [INF] - Binding message channel for device Id SE50-02/inzightedge
<6> 2022-06-16 05:08:30.085 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:08:30.086 +00:00 [INF] - Attempting to connect to IoT Hub for client SE50-02/inzightedge via AMQP...
<6> 2022-06-16 05:08:30.088 +00:00 [INF] - Processing subscriptions TwinResponse, DesiredPropertyUpdates, ModuleMessages for client SE50-02/inzightedge.
<6> 2022-06-16 05:08:30.088 +00:00 [INF] - Set subscriptions from session state for SE50-02/inzightedge
<6> 2022-06-16 05:08:30.091 +00:00 [INF] - Processing subscriptions TwinResponse, DesiredPropertyUpdates, ModuleMessages for client SE50-02/inzightedge.
<6> 2022-06-16 05:08:30.091 +00:00 [INF] - Set subscriptions from session state for SE50-02/inzightedge
<6> 2022-06-16 05:08:30.830 +00:00 [INF] - Cloud connection for SE50-02/inzightedge is True
<6> 2022-06-16 05:08:30.830 +00:00 [INF] - Connection status for SE50-02/inzightedge changed to ConnectionEstablished
<6> 2022-06-16 05:08:30.830 +00:00 [INF] - Client SE50-02/inzightedge connected to cloud, processing existing subscriptions.
<6> 2022-06-16 05:08:30.830 +00:00 [INF] - Skipping SE50-02/inzightedge for subscription processing, as it is currently being processed.
<6> 2022-06-16 05:08:30.830 +00:00 [INF] - Created cloud proxy for client SE50-02/inzightedge via AMQP, with client operation timeout 20 seconds.
<6> 2022-06-16 05:08:30.831 +00:00 [INF] - Initialized cloud proxy 2adf6f8a-884e-4968-a735-a23edabed330 for SE50-02/inzightedge
<6> 2022-06-16 05:08:30.831 +00:00 [INF] - Created cloud connection for client SE50-02/inzightedge
<6> 2022-06-16 05:08:30.847 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:08:30.847 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:08:30.847 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:08:30.847 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:08:35.616 +00:00 [INF] - Updated reported properties for SE50-02/$edgeHub
<6> 2022-06-16 05:10:47.999 +00:00 [INF] - New token received on the Cbs link
<6> 2022-06-16 05:10:48.000 +00:00 [INF] - Token updated for SE50-02/SimulatedTemperatureSensor
<6> 2022-06-16 05:10:48.160 +00:00 [INF] - New token received on the Cbs link
<6> 2022-06-16 05:10:48.160 +00:00 [INF] - Token updated for SE50-02/SimulatedTemperatureSensor
<6> 2022-06-16 05:13:29.512 +00:00 [INF] - Entering periodic task to reauthenticate connected clients
<4> 2022-06-16 05:15:59.303 +00:00 [WRN] - Closing connection for device: SE50-02/inzightedge, Microsoft.Azure.Devices.ProtocolGateway.ProtocolGatewayException: Channel closed.,
<6> 2022-06-16 05:15:59.303 +00:00 [INF] - Disposing MessagingServiceClient for device Id SE50-02/inzightedge because of exception - Microsoft.Azure.Devices.ProtocolGateway.ProtocolGatewayException: Channel closed.
<6> 2022-06-16 05:15:59.303 +00:00 [INF] - Setting device proxy inactive for device Id SE50-02/inzightedge
<6> 2022-06-16 05:15:59.303 +00:00 [INF] - Removing device connection for device SE50-02/inzightedge with removeCloudConnection flag 'True'.
<6> 2022-06-16 05:15:59.304 +00:00 [INF] - Closing receiver in cloud proxy 2adf6f8a-884e-4968-a735-a23edabed330 for SE50-02/inzightedge
<6> 2022-06-16 05:15:59.304 +00:00 [INF] - Closed cloud proxy 2adf6f8a-884e-4968-a735-a23edabed330 for SE50-02/inzightedge
<6> 2022-06-16 05:15:59.304 +00:00 [INF] - Device connection removed for device SE50-02/inzightedge
<6> 2022-06-16 05:15:59.305 +00:00 [INF] - Remove device connection for device SE50-02/inzightedge
<6> 2022-06-16 05:15:59.527 +00:00 [INF] - Updated reported properties for SE50-02/$edgeHub
<6> 2022-06-16 05:16:00.207 +00:00 [INF] - Client SE50-02/inzightedge in device scope authenticated locally.
<6> 2022-06-16 05:16:00.207 +00:00 [INF] - Successfully generated identity for clientId SE50-02/inzightedge and username ubuntu/SE50-02/inzightedge/?api-version=2020-09-30&DeviceClientType=.NET%2F1.41.0%20%28.NET%20Core%203.1.25%3B%20Linux%205.4.0-117-generic%20%23132-Ubuntu%20SMP%20Thu%20Jun%202%2000%3A39%3A06%20UTC%202022%3B%20X64%29
<6> 2022-06-16 05:16:00.207 +00:00 [INF] - ClientAuthenticated, SE50-02/inzightedge, 68eb07da
<6> 2022-06-16 05:16:00.208 +00:00 [INF] - New device connection for device SE50-02/inzightedge
<6> 2022-06-16 05:16:00.208 +00:00 [INF] - Client SE50-02/inzightedge connected to edgeHub, processing existing subscriptions.
<6> 2022-06-16 05:16:00.209 +00:00 [INF] - Bind device proxy for device SE50-02/inzightedge
<6> 2022-06-16 05:16:00.209 +00:00 [INF] - Binding message channel for device Id SE50-02/inzightedge
<6> 2022-06-16 05:16:00.209 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:16:00.209 +00:00 [INF] - Attempting to connect to IoT Hub for client SE50-02/inzightedge via AMQP...
<6> 2022-06-16 05:16:00.223 +00:00 [INF] - Processing subscriptions TwinResponse, DesiredPropertyUpdates, ModuleMessages for client SE50-02/inzightedge.
<6> 2022-06-16 05:16:00.224 +00:00 [INF] - Set subscriptions from session state for SE50-02/inzightedge
<6> 2022-06-16 05:16:00.255 +00:00 [INF] - Cloud connection for SE50-02/inzightedge is True
<6> 2022-06-16 05:16:00.255 +00:00 [INF] - Connection status for SE50-02/inzightedge changed to ConnectionEstablished
<6> 2022-06-16 05:16:00.255 +00:00 [INF] - Client SE50-02/inzightedge connected to cloud, processing existing subscriptions.
<6> 2022-06-16 05:16:00.255 +00:00 [INF] - Skipping SE50-02/inzightedge for subscription processing, as it is currently being processed.
<6> 2022-06-16 05:16:00.255 +00:00 [INF] - Created cloud proxy for client SE50-02/inzightedge via AMQP, with client operation timeout 20 seconds.
<6> 2022-06-16 05:16:00.255 +00:00 [INF] - Initialized cloud proxy 35825535-8969-4124-b28b-78422ac6770f for SE50-02/inzightedge
<6> 2022-06-16 05:16:00.255 +00:00 [INF] - Created cloud connection for client SE50-02/inzightedge
<6> 2022-06-16 05:16:00.271 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:16:00.271 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:16:00.271 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:16:00.543 +00:00 [INF] - Processing subscriptions TwinResponse, DesiredPropertyUpdates, ModuleMessages for client SE50-02/inzightedge.
<6> 2022-06-16 05:16:00.543 +00:00 [INF] - Processing pending subscriptions for SE50-02/inzightedge
<6> 2022-06-16 05:16:00.543 +00:00 [INF] - Set subscriptions from session state for SE50-02/inzightedge
<6> 2022-06-16 05:16:04.749 +00:00 [INF] - Updated reported properties for SE50-02/$edgeHub
<6> 2022-06-16 05:16:05.057 +00:00 [INF] - Updated reported properties for SE50-02/inzightedge
<4> 2022-06-16 05:16:35.617 +00:00 [WRN] - Did not receive ack for message 467c44e4-d5fd-4bc5-a557-bd75c540427a from device/module SE50-02/videoedge
<4> 2022-06-16 05:16:35.618 +00:00 [WRN] - Error sending messages to module SE50-02/videoedge
System.TimeoutException: Message completion response not received
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 499
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.ProcessAsync(ICollection`1 routingMessages, IDeviceProxy dp, CancellationToken token) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 167
<4> 2022-06-16 05:17:06.636 +00:00 [WRN] - Did not receive ack for message 80ee9b81-8ba5-4767-8b80-2a9cc4bb58bd from device/module SE50-02/videoedge
<4> 2022-06-16 05:17:06.637 +00:00 [WRN] - Error sending messages to module SE50-02/videoedge
System.TimeoutException: Message completion response not received
at Microsoft.Azure.Devices.Edge.Hub.Core.Device.DeviceMessageHandler.SendMessageAsync(IMessage message, String input) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/device/DeviceMessageHandler.cs:line 499
at Microsoft.Azure.Devices.Edge.Hub.Core.Routing.ModuleEndpoint.ModuleMessageProcessor.ProcessAsync(ICollection`1 routingMessages, IDeviceProxy dp, CancellationToken token) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/routing/ModuleEndpoint.cs:line 167
<4> 2022-06-16 05:17:08.799 +00:00 [WRN] - Received unknown feedback message from SE50-02/videoedge with lock token 467c44e4-d5fd-4bc5-a557-bd75c540427a and status Complete. Abandoning message.
Retrieved 90 line(s)
When I create a blank new module to receive the message and it has no problem. May someone the potential problem of the videoedge module?
These are the steps to reproduce:
Create a custom module to get output in the form of message using ModuleClient
Create trid for each message and using the for loop to increment it for each message
Add the message body size of 64KB of size
Create blog storage
Attach the data dump to the blob storage
Check the blob storage whether the messages are being received with trid header or not.

DotNet Core 3.1 Authentication: The oauth state was missing or invalid

I keep getting The oauth state was missing or invalid in my Staging server but this code works just fine in my local hosted IIS.
P.s. Before I get sent to a duplicate page, I have tried all the pages in StackOverflow and I have looked all over google. I removed the CallbackPath and that broke as well:
I am using AWS Load balancer with two instances of the app running in IIS 7.
Error: ArgumentException: The 'CallbackPath' option must be provided. (Parameter 'CallbackPath')
DotNet Code:
public void ConfigureServices(IServiceCollection services)
{
services.Configure<CookiePolicyOptions>(options =>
{
options.MinimumSameSitePolicy = SameSiteMode.Lax;
})
.AddAuthentication(options =>
{
options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultChallengeScheme = "SportsEngine";
})
.AddCookie()
.AddOAuth("SportsEngine", options =>
{
// Client Info
options.ClientId = Configuration["SSO:SeApiClientId"];
options.ClientSecret = Configuration["SSO:SeApiClientSecret"];
options.CallbackPath = new PathString("/oauth/authorize");
// Client Endpoints
options.AuthorizationEndpoint = Configuration["SSO:SSOAuthority"];
options.TokenEndpoint = Configuration["SSO:SSOTokenEndpoint"];
// Save token
options.SaveTokens = true;
options.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
// TODO: Need to figure out how to add SeriLog in here
});
services.AddResponseCaching();
services.AddControllersWithViews();
services.AddScoped<IContextFactory, DbContextFactory>();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
//logger.LogInformation("In Development.");
app.UseDeveloperExceptionPage();
}
else
{
//logger.LogInformation("Not Development.");
app.UseExceptionHandler("/Home/Error");
var forwardingOptions = new ForwardedHeadersOptions()
{
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
};
forwardingOptions.KnownNetworks.Clear(); // Loopback by default, this should be temporary
forwardingOptions.KnownProxies.Clear(); // Update to include
app.UseForwardedHeaders(forwardingOptions);
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
// Auth
app.UseCookiePolicy();
app.UseAuthentication();
app.UseAuthorization();
// add caching to pipe
app.UseResponseCaching();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
app.UseSerilogRequestLogging(options =>
{
// Customize the message template
options.MessageTemplate = "Handled {RequestPath}";
// Emit debug-level events instead of the defaults
options.GetLevel = (httpContext, elapsed, ex) => LogEventLevel.Debug;
// Attach additional properties to the request completion event
options.EnrichDiagnosticContext = (diagnosticContext, httpContext) =>
{
diagnosticContext.Set("RequestHost", httpContext.Request.Host.Value);
diagnosticContext.Set("RequestScheme", httpContext.Request.Scheme);
};
});
}
Stack Trace
2021-09-08 21:19:21.154 +00:00 [WRN] No XML encryptor configured. Key {c83f05de-c4ba-4fc0-b4d6-f550329e41ef} may be persisted to storage in unencrypted form.
2021-09-08 21:19:21.695 +00:00 [INF] Application started. Press Ctrl+C to shut down.
2021-09-08 21:19:21.695 +00:00 [INF] Hosting environment: testdrive
2021-09-08 21:19:21.696 +00:00 [INF] Content root path: C:\Octopus\Applications\Testdrive\Machine.MVC\0.0.1995
2021-09-08 21:19:21.786 +00:00 [INF] Request starting HTTP/1.1 GET http://stagingmachine.xyz/oauth/authorize?code=b758c76d24011e86e4c68d9cec728072&state=CfDJ8KjLM7huDtpBl3WGRqwXMZXawockkQzpDjTluDmfzmzN2R2GNrBg7fj0LbsIZavTGXsBscbDxLfjRtXf_8WPCIVUm-FtBiq0lx8jC09ZiXPS_uciWJ0GLcL73Xj3S0kXU8-bgekYUkOfN9UykxIIYLQe9tUeX2RpDWn4Aj5R0BoEJJt-h3jmYaaQwzFAtnQJHbmVWmfA64x01igEan_F6rE
2021-09-08 21:19:22.072 +00:00 [INF] Error from RemoteAuthentication: The oauth state was missing or invalid..
2021-09-08 21:19:22.082 +00:00 [ERR] An unhandled exception has occurred while executing the request.
System.Exception: An error was encountered while handling the remote login.
---> System.Exception: The oauth state was missing or invalid.
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
2021-09-08 21:19:22.188 +00:00 [INF] No cached response available for this request.
2021-09-08 21:19:22.191 +00:00 [INF] Executing endpoint 'Machine.MVC.Controllers.HomeController.Error (Machine.MVC)'
2021-09-08 21:19:22.253 +00:00 [INF] Route matched with {action = "Error", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Error() on controller Machine.MVC.Controllers.HomeController (Machine.MVC).
2021-09-08 21:19:22.355 +00:00 [INF] Executing ViewResult, running view Error.
2021-09-08 21:19:22.532 +00:00 [INF] Executed ViewResult - view Error executed in 207.3459ms.
2021-09-08 21:19:22.536 +00:00 [INF] Executed action Machine.MVC.Controllers.HomeController.Error (Machine.MVC) in 279.6243ms
2021-09-08 21:19:22.536 +00:00 [INF] Executed endpoint 'Machine.MVC.Controllers.HomeController.Error (Machine.MVC)'
2021-09-08 21:19:22.538 +00:00 [INF] The response could not be cached for this request.
2021-09-08 21:19:22.569 +00:00 [INF] Request finished in 796.8368ms 500 text/html; charset=utf-8
2021-09-08 21:19:22.737 +00:00 [INF] Request starting HTTP/1.1 GET http://stagingmachine.xyz/oauth/img/footer/twitter.png
2021-09-08 21:19:22.737 +00:00 [INF] Request starting HTTP/1.1 GET http://Stagingmachine.xyz/oauth/img/footer/facebook.png
2021-09-08 21:19:22.742 +00:00 [INF] No cached response available for this request.
2021-09-08 21:19:22.742 +00:00 [INF] No cached response available for this request.
2021-09-08 21:19:22.746 +00:00 [INF] The response could not be cached for this request.
2021-09-08 21:19:22.746 +00:00 [INF] The response could not be cached for this request.
2021-09-08 21:19:22.750 +00:00 [INF] Request finished in 13.9281ms 404
2021-09-08 21:19:22.750 +00:00 [INF] Request finished in 13.3817ms 404
When you use load balancing, you need to make sure the client instance that makes the initial authentication request is the same as the one handling the callback with the authorization code. The client needs to remember the state parameter between the calls.

Terraform Registry Service unreachable in Docker

While running terraform inside a docker container, I am facing some issue which is causing me a lot of trouble.
I am simply running terraform init and getting following error.
2020/12/05 17:59:44 [INFO] Terraform version: 0.12.24
2020/12/05 17:59:44 [INFO] Go runtime version: go1.12.13
2020/12/05 17:59:44 [INFO] CLI args: []string{"/bin/terraform", "init"}
2020/12/05 17:59:44 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2020/12/05 17:59:44 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/12/05 17:59:44 [INFO] CLI command args: []string{"init"}
Initializing the backend...
2020/12/05 17:59:44 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020/12/05 17:59:44 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/12/05 17:59:44 [DEBUG] New state was assigned lineage "f8a611ca-c103-f9fd-aad6-c0c6e9484f34"
2020/12/05 17:59:44 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2020/12/05 17:59:44 [TRACE] Meta.Backend: instantiated backend of type <nil>
2020/12/05 17:59:44 [DEBUG] checking for provider in "."
2020/12/05 17:59:44 [DEBUG] checking for provider in "/bin"
2020/12/05 17:59:44 [DEBUG] checking for provisioner in "."
2020/12/05 17:59:44 [DEBUG] checking for provisioner in "/bin"
2020/12/05 17:59:44 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2020/12/05 17:59:44 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2020/12/05 17:59:44 [TRACE] backend/local: state manager for workspace "default" will:
- read initial snapshot from terraform.tfstate
- write new snapshots to terraform.tfstate
- create any backup at terraform.tfstate.backup
2020/12/05 17:59:44 [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate
2020/12/05 17:59:44 [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay
2020/12/05 17:59:44 [TRACE] statemgr.Filesystem: read nil snapshot
2020/12/05 17:59:44 [DEBUG] checking for provider in "."
2020/12/05 17:59:44 [DEBUG] checking for provider in "/bin"
Initializing provider plugins...
- Checking for available provider plugins...
2020/12/05 17:59:44 [DEBUG] plugin requirements: "aws"=""
2020/12/05 17:59:44 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2020/12/05 17:59:44 [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json
2020/12/05 17:59:54 [DEBUG] Failed to request discovery document: Get https://registry.terraform.io/.well-known/terraform.json: net/http: TLS handshake timeout
Registry service unreachable.
This may indicate a network issue, or an issue with the requested Terraform Registry.
Error: registry service is unreachable, check https://status.hashicorp.com/ for status updates
I am unable to understand the issue, I have not mounted anything on the container.

Accept System Alert on iOS real device using Appium

I'm trying to automate testing of a mobile application. I am stuck at a point where in the application redirects you to settings and you have to enable "Full Access" for the keyboard. I was able to successfully navigate throughout using "TouchActions" but the issue arose as soon as the system alert pops up. The command simply never stops executing.
I have tried using AutoAcceptAlert, adding a wait for script to wait for the alert to load but it only accepts the app sided alerts and not the system alerts.
The appium inspector is unable to detect the alert and neither am i able to execute the TouchAction using coordinates on the screen. (I know this as the command never stops executing, as seen in debug mode in eclipse).
Command telling us to enable full access gets executed but any "DRIVER" command that follows doesn't stop executing. Soo even if I was using incorrect tap coordinates the command should atleast execute and move over to the next line.
Example: The command System.out.println("message") successfully logs the message to the console but the driver.tap command doesn't stop executing.
Is there any way to accept the system alert on a real device?
Is this occurring because changing an App's settings refreshes the application in the background causing the driver to suspend/crash? But shouldn't that happen AFTER accepting the system alert?
Alternatively if there is a way to install messages inside the simulator, that will also provide a workaround for the issue i'm facing.
Here is the appium log for just after
action.tap(x, y).perform();
Appium-
info: --> POST /wd/hub/session/56d883be-f0b2-4a9a-8818-6744f5d2d199/touch/perform {"actions":[{"action":"tap","options":{"x":192,"y":473}}]}
info: [debug] Pushing command to appium work queue: "UIATarget.localTarget().frontMostApp().rect()"
info: [debug] Sending command to instruments: UIATarget.localTarget().frontMostApp().rect()
info: [debug] [INST] 2016-01-07 03:59:05 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-01-07 03:59:05 +0000 Debug: responding with:
info: [debug] [INST] 2016-01-07 03:59:05 +0000 Debug: Running system command #53: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.795 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.729 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.646 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.636 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.745 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.947 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.632 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 1.024 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.546 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 1.075 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.629 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 1.528 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: [IOS_SYSLOG_ROW ] Jan 7 09:29:57 Apps-iPhone Test App[2010] <Warning>: Device is connected to the internet
info: [IOS_SYSLOG_ROW ] Jan 7 09:29:58 Apps-iPhone syncdefaultsd[2013] <Notice>: (Note ) SYDAlwaysOnAccount: no account (null)
info: [IOS_SYSLOG_ROW ] Jan 7 09:29:58 Apps-iPhone syncdefaultsd[2013] <Notice>: (Note ) SYDAccount: no account
info: [IOS_SYSLOG_ROW ] Jan 7 09:29:58 Apps-iPhone syncdefaultsd[2013] <Notice>: (Note ) SYDPIMAccount: no account (null)
info: [IOS_SYSLOG_ROW ] Jan 7 09:29:59 Apps-iPhone Test App[2010] <Warning>: Success Response: success
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.827 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.627 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.614 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.765 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.859 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.917 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.538 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.545 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.531 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.645 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 0.745 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: <-- GET /wd/hub/status 200 1.080 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"56d883be-f0b2-4a9a-8818-6744f5d2d199"}
info: [IOS_SYSLOG_ROW ] Jan 7 09:30:57 Apps-iPhone Test App[2010] <Warning>: Device is connected to the internet
info: [IOS_SYSLOG_ROW ] Jan 7 09:30:58 Apps-iPhone Test App[2010] <Warning>: Success Response: success

error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller]

info: Welcome to Appium v1.4.8 (REV c8179bd8352d3c62d98fa58b324491230df9342a)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {"app":"in.bsb.wynkmusic.inhouse","udid":"EDF98902-FB17-4B7F-AFA4-070A017AA238","nativeInstrumentsLib":true,"deviceName":"iPhone 6","platformName":"iOS","platformVersion":"8.4","showIOSLog":true,"defaultCommandTimeout":7200,"debugLogSpacing":true}
info: Console LogLevel: debug
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 8.472 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 3.534 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 1.082 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: --> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {"status":0,"value":[]}
info: <-- GET /wd/hub/sessions 200 1.173 ms - 23 {"status":0,"value":[]}
info: --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"8.4","newCommandTimeout":"999999","automationName":"Appium","deviceName":"iPhone 6"}}
info: Client User-Agent string: Appium (unknown version) CFNetwork/720.5.7 Darwin/14.5.0 (x86_64)
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session f7286fd0-e68c-473f-8879-d82feff73cec
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid...
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/in.bsb.wynkmusic.inhouse/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/in.bsb.wynkmusic.inhouse/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn't exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/admin/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...
info: [debug] Dynamic bootstrap path: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js
info: [debug] Reusing dynamic bootstrap: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog
info: [debug] Creating iDevice object with udid EDF98902-FB17-4B7F-AFA4-070A017AA238
info: [debug] App is not installed. Will try to install the app.
info: [debug] Cleaning up appium session
info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u EDF98902-FB17-4B7F-AFA4-070A017AA238 -i in.bsb.wynkmusic.inhouse
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u EDF98902-FB17-4B7F-AFA4-070A017AA238 -i in.bsb.wynkmusic.inhouse
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u EDF98902-FB17-4B7F-AFA4-070A017AA238 -i in.bsb.wynkmusic.inhouse\n)","killed":false,"code":2,"signal":null,"cmd":"/bin/sh -c ideviceinstaller -u EDF98902-FB17-4B7F-AFA4-070A017AA238 -i in.bsb.wynkmusic.inhouse","origValue":"Command failed: /bin/sh -c ideviceinstaller -u EDF98902-FB17-4B7F-AFA4-070A017AA238 -i in.bsb.wynkmusic.inhouse\n"},"sessionId":null}
info: <-- POST /wd/hub/session 500 714.811 ms - 490
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 0.896 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 0.992 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 1.258 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 0.867 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: [IOS_SYSLOG_ROW ] Oct 10 15:37:06 Bsbs-iPhone syncdefaultsd[203] : (Note ) SYDAlwaysOnAccount: no account (null)
info: [IOS_SYSLOG_ROW ] Oct 10 15:37:06 Bsbs-iPhone syncdefaultsd[203] : (Note ) SYDAccount: no account
info: [IOS_SYSLOG_ROW ] Oct 10 15:37:06 Bsbs-iPhone syncdefaultsd[203] : (Note ) SYDPIMAccount: no account (null)
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 1.840 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: [IOS_SYSLOG_ROW ] Oct 10 15:37:12 Bsbs-iPhone locationd[64] : PLClientLogging: log locationd withContent {
info: [IOS_SYSLOG_ROW ] } cannot continue due to nils!
info: [IOS_SYSLOG_ROW ] Oct 10 15:37:12 Bsbs-iPhone locationd[64] : PLClientLogging: log locationd withContent {
info: [IOS_SYSLOG_ROW ] } cannot continue due to nils!
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 0.743 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 0.739 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: [IOS_SYSLOG_ROW ] Oct 10 15:38:15 Bsbs-iPhone kernel[0] : AppleARMPMUCharger: limiting USB input current to 600 mA (measured 538 mA)
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 0.774 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: [IOS_SYSLOG_ROW ] Oct 10 15:39:06 Bsbs-iPhone syncdefaultsd[204] : (Note ) SYDAlwaysOnAccount: no account (null)
info: [IOS_SYSLOG_ROW ] Oct 10 15:39:06 Bsbs-iPhone syncdefaultsd[204] : (Note ) SYDAccount: no account
info: [IOS_SYSLOG_ROW ] Oct 10 15:39:06 Bsbs-iPhone syncdefaultsd[204] : (Note ) SYDPIMAccount: no account (null)
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}
info: <-- GET /wd/hub/status 200 2.166 ms - 104 {"status":0,"value":{"build":{"version":"1.4.8","revision":"c8179bd8352d3c62d98fa58b324491230df9342a"}}}

Resources