Getting Following Error When i am trying to generate .apk file - sencha-touch-2.1

when i am trying to generate .apk file from SenchaTouch App with command "sencha app build native", i got the following error, Can any one please tell me the solution
C:\Users\Zenith\WebstormProjects\SenchaTouch>sencha app build native
Sencha Cmd v4.0.1.45
[INF]
[INF] init-plugin:
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] app-build-impl:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd-in-path:
[INF]
[INF] find-cmd-in-environment:
[INF]
[INF] find-cmd-in-shell:
[INF]
[INF] init-cmd:
[INF] [echo] Using Sencha Cmd from C:\Users\Zenith\bin\Sencha\Cmd\4.0.1.45
for C:\Users\Zenith\WebstormProjects\SenchaTouch\build.xml
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[INF]
[INF] -after-init:
[INF]
[INF] -before-init-defaults:
[INF]
[INF] -init-defaults:
[INF]
[INF] -after-init-defaults:
[INF]
[INF] -init-compiler:
[INF]
[INF] init:
[INF]
[INF] -before-build:
[INF]
[INF] refresh:
[INF]
[INF] -before-refresh:
[INF]
[INF] -init:
[INF]
[INF] -init-compiler:
[INF]
[INF] -detect-app-build-properties:
[INF] Loading app json manifest...
[INF] Loading classpath entry C:\Users\Zenith\WebstormProjects\SenchaTouch\touch
\src
[INF] Loading classpath entry C:\Users\Zenith\WebstormProjects\SenchaTouch\app.j
s
[INF] Loading classpath entry C:\Users\Zenith\WebstormProjects\SenchaTouch\app
[INF] Loading classpath entry C:\Users\Zenith\WebstormProjects\SenchaTouch\build
\temp\native\TouchEx1\sencha-compiler\app
[INF] Loading classpath entry C:\Users\Zenith\WebstormProjects\SenchaTouch\build
\temp\native\TouchEx1\sencha-compiler\app
[INF] Concatenating output to file C:\Users\Zenith\WebstormProjects\SenchaTouch/
build/temp/native/TouchEx1/sencha-compiler/cmd-packages.js
[INF] Adding external reference : #full-page => #overrides
[INF] Loading classpath entry C:\Users\Zenith\WebstormProjects\SenchaTouch\build
\temp\native\TouchEx1\sencha-compiler\cmd-packages.js
[INF] Adding external reference : Ext.util.Observable => C:\Users\Zenith\Webstor
mProjects\SenchaTouch/build/temp/native/TouchEx1/sencha-compiler/cmd-packages.js
[INF]
[INF] -refresh-app:
[INF] Appending concatenated output to file C:\Users\Zenith\WebstormProjects\Sen
chaTouch/bootstrap.js
[INF] Appending concatenated output to file C:\Users\Zenith\WebstormProjects\Sen
chaTouch/bootstrap.js
[INF] Appending concatenated output to file C:\Users\Zenith\WebstormProjects\Sen
chaTouch/bootstrap.js
[INF] Appending concatenated output to file C:\Users\Zenith\WebstormProjects\Sen
chaTouch/bootstrap.js
[INF] Appending concatenated output to file C:\Users\Zenith\WebstormProjects\Sen
chaTouch/bootstrap.js
[INF] Appending content to C:\Users\Zenith\WebstormProjects\SenchaTouch/bootstra
p.json
[INF]
[INF] -refresh:
[INF]
[INF] -after-refresh:
[INF]
[INF] resolve:
[INF]
[INF] js:
[INF]
[INF] -before-js:
[INF]
[INF] -init:
[INF]
[INF] -init-compiler:
[INF]
[INF] -detect-app-build-properties:
[INF]
[INF] -compile-js:
[INF] Compressing data with YuiJavascriptCompressor
[INF] Concatenating output to file C:\Users\Zenith\WebstormProjects\SenchaTouch/
build/native/TouchEx1/app.js
[INF]
[INF] -js:
[INF]
[INF] -after-js:
[INF]
[INF] resources:
[INF]
[INF] -before-resources:
[INF]
[INF] -before-inherit-resources:
[INF]
[INF] -before-copy-resources:
[INF]
[INF] -init:
[INF]
[INF] -init-compiler:
[INF]
[INF] -resources:
[INF] merging resources into C:\Users\Zenith\WebstormProjects\SenchaTouch\build\
native\TouchEx1\resources
[INF] merged 0 resources into C:\Users\Zenith\WebstormProjects\SenchaTouch\build
\native\TouchEx1\resources
[INF] merging resources into C:\Users\Zenith\WebstormProjects\SenchaTouch\build\
native\TouchEx1
[INF] merged 0 resources into C:\Users\Zenith\WebstormProjects\SenchaTouch\build
\native\TouchEx1
[INF]
[INF] -after-copy-resources:
[INF]
[INF] -after-inherit-resources:
[INF]
[INF] -after-resources:
[INF]
[INF] sass:
[INF]
[INF] -before-sass:
[INF]
[INF] -compass-compile-theme-package:
[INF]
[INF] -compass-compile-theme-folders:
[INF]
[INF] -compass-compile-sass-dir:
[INF] executing compass using system installed ruby runtime
identical ../css/app.css
[INF]
[INF] -compass-compile:
[INF]
[INF] -sass:
[INF]
[INF] -after-sass:
[INF]
[INF] slice:
[INF]
[INF] -before-slice:
[INF]
[INF] -slice-images:
[INF]
[INF] -slice:
[INF]
[INF] -after-slice:
[INF]
[INF] page:
[INF]
[INF] -before-page:
[INF]
[INF] -init:
[INF]
[INF] -init-compiler:
[INF]
[INF] -copy-app-resources:
[INF] Copying page resources to C:\Users\Zenith\WebstormProjects\SenchaTouch\bui
ld\native\TouchEx1
[INF] copying C:\Users\Zenith\WebstormProjects\SenchaTouch\resources\css\app.css
to C:\Users\Zenith\WebstormProjects\SenchaTouch\build\native\TouchEx1\resources
\css\app.css
[INF]
[INF] -generate-deltas:
[INF]
[INF] -detect-app-build-properties:
[INF]
[INF] -build-standalone-json-manifest:
[INF] Writing content to C:\Users\Zenith\WebstormProjects\SenchaTouch/build/nati
ve/TouchEx1/app.json
[INF]
[INF] -build-output-page:
[INF]
[INF] -build-output-microload-page:
[INF] Writing content to C:\Users\Zenith\WebstormProjects\SenchaTouch/build/nati
ve/TouchEx1/microloader.js
[INF] Appending content to C:\Users\Zenith\WebstormProjects\SenchaTouch/build/na
tive/TouchEx1/microloader.js
[INF] Building output markup to C:\Users\Zenith\WebstormProjects\SenchaTouch/bui
ld/native/TouchEx1/index.html
[INF] [delete] Deleting: C:\Users\Zenith\WebstormProjects\SenchaTouch\build\n
ative\TouchEx1\microloader.js
[INF]
[INF] -generate-cache-manifest:
[INF]
[INF] -page:
[INF]
[INF] -after-page:
[INF]
[INF] native-package:
[INF]
[INF] -before-native-package:
[INF]
[INF] -native-package-mobile:
[INF] [echo] Building all specified mobile packager configs.
[INF] [echo]
[INF] [echo] Processing Mobile Packager config file
[INF] [echo] config: C:\Users\Zenith\WebstormProjects\SenchaTouch/p
ackager.json
[INF] [echo] inputPath: C:\Users\Zenith\WebstormProjects\SenchaTouc
h/build/native/TouchEx1
[INF] [echo] outputPath: C:\Users\Zenith\WebstormProjects\SenchaTou
ch/build/native-package-mobile/TouchEx1/packager.json
[INF] [echo] Running mobile packager action build on file C:\Users\Zenith\W
ebstormProjects\SenchaTouch/packager.temp.json
[ERR]
Error: Package name 'TouchEx1' contains invalid characters.
A package name must be constitued of two Java identifiers.
Each identifier allowed characters are: a-z A-Z 0-9 _
""C:/Users/Zenith/Desktop/adt-bundle-windows-x86_64-20130522/sdk\tools\android"
create project --target android-8 --name TouchEx1 --activity STActivity --path "
C:\Users\Zenith\WebstormProjects\SenchaTouch/build/native-package-mobile/TouchEx
1/packager.json\/" --package TouchEx1"
Can not open destination file for writing
Failed to copy packager library
Failed to package application
Copy operation failed src=C:\Users\Zenith\bin\Sencha\Cmd\4.0.1.45\stbuild\st-res
/android/\nimblekit.jar dst=C:\Users\Zenith\WebstormProjects\SenchaTouch/build/n
ative-package-mobile/TouchEx1/packager.json\\libs\nimblekit.jar
***
**[ERR]
**[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 3
[ERR] at org.apache.tools.ant.Target.performTasks(Targ
[ERR] et.java:413)
[ERR]
[ERR] Total time: 12 seconds
[ERR] The following error occurred while executing this line**:
C:\Users\Zenith\WebstormProjects\SenchaTouch\.sencha\app\build-impl.xml:422: The
following error occurred while executing this line:**
***
C:\Users\Zenith\WebstormProjects\SenchaTouch\.sencha\app\packager-impl.xml:112:
The following error occurred while executing this line:
C:\Users\Zenith\WebstormProjects\SenchaTouch\.sencha\app\packager-impl.xml:114:
The following error occurred while executing this line:
C:\Users\Zenith\WebstormProjects\SenchaTouch\.sencha\app\packager-impl.xml:98: T
he following error occurred while executing this line:
C:\Users\Zenith\WebstormProjects\SenchaTouch\.sencha\app\packager-impl.xml:7: co
m.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 3
packager.json
{
/**
* #cfg applicationName
* #required
* This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match
* the name of your application in the Apple Provisioning Portal.
*/
"applicationName":"TouchEx1",
/**
* #cfg applicationId
* This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.
*/
"applicationId":"TouchEx1",
/**
* #cfg bundleSeedId
* A ten character string which stands before aplication ID in Apple Provisioning Portal
*/
"bundleSeedId":"KPXFEPZ6EF",
/**
* #cfg versionString
* #required
* This is the version of your application.
*/
"versionString":"1.0",
/**
* #cfg versionCode
* #required
* This is the integer version code of your application, or you can refer to it as a build number. Used only for Android builds.
*/
"versionCode":"1",
/**
* #cfg icon
* For iOS, please refer to their documentation about icon sizes:
* https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
*
* For Android, please refer to the Google Launcher icons guide:
* http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html
* iOS uses 57, 72, 114 and 144; Android uses 36, 48 and 72; if you package for Android you can ignore iOS icons and vice verca
*/
"icon": {
"36":"resources/icons/Icon_Android36.png",
"48":"resources/icons/Icon_Android48.png",
"57":"resources/icons/Icon.png",
"72":"resources/icons/Icon~ipad.png",
"114":"resources/icons/Icon#2x.png",
"144":"resources/icons/Icon~ipad#2x.png"
},
/**
* #cfg inputPath
* #required
* This is location of your Sencha Touch 2 application, relative to this configuration file.
*/
"inputPath":"C:/Users/Zenith/WebstormProjects/SenchaTouch",
/**
* #cfg outputPath
* #required
* This is where the built application file with be saved. Make sure that output path is not in your input path, you may get into endless recursive copying
*/
"outputPath":"C:/Users/Zenith/Desktop/APKS",
/**
* #cfg configuration
* #required
* This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online
* store - in which case `Release` should be specified.
*/
"configuration":"Debug",
/**
* #cfg platform
* #required
* This is the platform where you will be running your application. Available options are:
* - iOSSimulator
* - iOS
* - Android
* - AndroidEmulator
*/
"platform":"Android",
/**
* #cfg deviceType
* #required
* This is device type that your application will be running on.
*
* If you are developing for Android, this is not necessary.
*
* Available options are:
* - iPhone
* - iPad
* - Universal
*/
"deviceType":"Universal",
/**
* #cfg certificatePath
* This is the location of your certificate.
* This is required when you are developing for Android or you are developing on Windows.
*/
"certificatePath":"C:/Users/Zenith/WebstormProjects/SenchaTouch",
/**
* #cfg certificateAlias
* This is the name of your certificate.
*
* IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.
*
* This can be just a simple matcher. For example, if your certificate name is "iPhone Developer: Robert Dougan (ABCDEFGHIJ)", you
* can just put "iPhone Developer".
*
* When using a certificatePath on Windows, you do not need to specify this.
*/
"certificateAlias":"",
/**
* #cfg certificatePassword
* The password which was specified during certificate export
*/
"certificatePassword":"chanti",
/**
* #cfg provisionProfile
* The path to the provision profile (APP_NAME.mobileprovision) which you can create and then download from Apple's provisioning portal
*/
"provisionProfile":"",
/**
* #cfg notificationConfiguration
* Notification configuration for push notifications, can be "debug", "release" or empty if you don't use push notifications in your project.
*/
"notificationConfiguration":"",
/**
* #cfg sdkPath
* This is the path to the Android SDK, if you are developing an Android application.
*/
"sdkPath":"C:/Users/Zenith/Desktop/adt-bundle-windows-x86_64-20130522/sdk",
/**
* #cfg androidAPILevel
* This is android API level, the version of Android SDK to use, you can read more about it here: http://developer.android.com/guide/appendix/api-levels.html.
* Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
*/
"androidAPILevel":"8",
/**
* #cfg {Array[String]} permissions
* Array of permissions that is used by an application (Android only)
* Full list of permissions for Android application can be found here: http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_CHECKIN_PROPERTIES
*/
"permissions":[
"INTERNET",
"ACCESS_NETWORK_STATE",
"CAMERA",
"VIBRATE",
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"CALL_PHONE"
],
/**
* #cfg {Array[String]} orientations
* #required
* This is orientations that this application can run.
*/
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}

I Got the solution, There androidId Should be the fully qualified name, i just changed and succeeded in generating the apk file

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.

Serilog: How to write the file header only at the beginning of the file?

I need to write some information related to the status of the application that is launched via system scheduler. Then the processing lines should follow:
2019-10-09 23:39:22.936 +02:00 [DBG] ======================================================================
2019-10-09 23:39:22.999 +02:00 [DBG] MyAppDELFOR (0.10.1 2019-10-09)
2019-10-09 23:39:22.999 +02:00 [DBG] ----------------------------------------------------------------------
2019-10-09 23:39:23.015 +02:00 [DBG] stageDirectory: 'c:\EDIAbc\Company_received_stage'
2019-10-09 23:39:23.015 +02:00 [DBG] oftpIncomingDirectory: 'c:\EDIAbc\Company_incoming'
2019-10-09 23:39:23.015 +02:00 [DBG] archiveDirectory: 'c:\EDIAbc\Company_received_archive'
2019-10-09 23:39:23.015 +02:00 [DBG] ----------------------------------------------------------------------
2019-10-09 23:39:23.061 +02:00 [WRN] The stage file 'c:\EDIAbc\Company_received_stage\DELFOR_010091_20191001' already exists and is to be deleted.
2019-10-09 23:39:24.905 +02:00 [INF] Processing 'c:\EDIAbc\Company_received_stage\DELFOR_010086_20191001'
2019-10-09 23:39:30.281 +02:00 [INF] Processing 'c:\EDIAbc\Company_received_stage\DELFOR_010087_20191001'
2019-10-09 23:39:34.109 +02:00 [INF] Processing 'c:\EDIAbc\Company_received_stage\DELFOR_010088_20191001'
Currently, I always write the header. However, the application is launched rather frequently, and the case when "No data to process" is rather usual. Because of that I would like to avoid writing the header, and I would like to write just "No data to process" or the like line.
Is there any way (in Serilog) to write the header only when the log file is created?
A set of hooks that enable such a facility have been added to the File sink recently. The main contributor has a nice demo repo.

twilio c# sdk publish to azure app service

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

Sencha Architect 3 Android Simulation failed

I just want to look at sencha architect 3 and created the Touch 2.3 project "locations". Starting Web and simulation in iOS works great, but native Android build failed:
[INF] -before-native-package:
[INF]
[INF] -native-package-mobile:
[INF] [echo] Running default mobile packager config.
[INF] [echo]
[INF] [echo] Processing Mobile Packager config file
[INF] [echo] config: /Applications/XAMPP/xamppfiles/htdocs/MyApp/packager.json
[INF] [echo] inputPath: /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native/MyApp
[INF] [echo] outputPath: /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json
[INF] [echo] Running mobile packager action run on file /Applications/XAMPP/xamppfiles/htdocs/MyApp/packager.temp.json
[ERR]
Error: Project folder '/Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json' is not empty. Please consider using 'android update' instead.
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/src/com/mycompany/myAppID
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/src/com/mycompany/myAppID/STActivity.java
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/bin
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/libs
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/values
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/values/strings.xml
Created directory /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/layout
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/res/layout/main.xml
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/AndroidManifest.xml
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/build.xml
Added file /Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/proguard-project.txt
sh: ant: command not found
"/Users/markus/android-sdks/tools/android" create project --target android-7 --name MyApp --activity STActivity --path "/Applications/XAMPP/xamppfiles/htdocs/MyApp/build/native-package-mobile/MyApp/packager.json/" --package com.mycompany.myAppID
Could not run ant with error: 32512
Failed to package application
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 7
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Nati
[ERR] veMethodAccessorImpl.java:57)
[ERR]
[ERR] Total time: 7 seconds
[ERR] The following error occurred while executing this line:
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/build-impl.xml:422: The following error occurred while executing this line:
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:108: The following error occurred while executing this line:
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:98: The following error occurred while executing this line:
/Applications/XAMPP/xamppfiles/htdocs/MyApp/.sencha/app/packager-impl.xml:7: com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 7
Run a
$ sudo ln -s /usr/local/bin/ant /usr/bin/ant
this will make Architect 3 detect your installation.
This is if you are using a Mac and installed your ant using homebrew
Ant is not installed.
I had the same issue. I assume you're on a Mac since you say iOS worked. Apparently in Mavericks, ant is no longer included by default.
you can install it with homebrew easily enough.
However, that still does not work for me. Here's a help thread I started on the sencha architect forums: http://www.sencha.com/forum/showthread.php?277937-Simple-attempt-at-an-android-build&p=1017898#post1017898

Resources