Handling problem: Diagnostics Monitor is not sending diagnostics logs to Azure Storage after upgrading Windows Azure SDK from 1.2 to 1.3
When you upgrade your service from Windows Azure SDK 1.2 to Windows Azure SDK 1.3 it is possible that your application running in Windows Azure, stop sending diagnostics logs. We have seen a few cases where such problem occurred. Not everyone have encountered the problem however if you encounter this problem you need to collect the logs related with MonAgentHost entries in it. You potentially could see something as below:
[Diagnostics]: Checking for configuration updates 11/30/2010 02:19:09 AM.
[MonAgentHost] Error: MA EVENT: 2010-11-30T07:21:35.149Z
[MonAgentHost] Error: 2
[MonAgentHost] Error: 4492
[MonAgentHost] Error: 8984
[MonAgentHost] Error: NetTransport
[MonAgentHost] Error: 0
[MonAgentHost] Error: x:\rd\rd_fun_stable\services\monitoring\shared\nettransport\src\netutils.cpp
[MonAgentHost] Error: OpenHttpSession
[MonAgentHost] Error: 686
[MonAgentHost] Error: 0
[MonAgentHost] Error: 57
[MonAgentHost] Error: The parameter is incorrect.
[MonAgentHost] Error: WinHttpOpen: Failed to open manually set proxy <null>; 87
[MonAgentHost] Error: MA EVENT: 2010-11-30T07:21:35.249Z
[MonAgentHost] Error: 2
[MonAgentHost] Error: 4492
[MonAgentHost] Error: 8984
[MonAgentHost] Error: NetTransport
[MonAgentHost] Error: 0
[MonAgentHost] Error: x:\rd\rd_fun_stable\services\monitoring\shared\nettransport\src\netutils.cpp
[MonAgentHost] Error: OpenHttpSession
[MonAgentHost] Error: 686
[MonAgentHost] Error: 0
[MonAgentHost] Error: 57
[MonAgentHost] Error: The parameter is incorrect.
[MonAgentHost] Error: WinHttpOpen: Failed to open manually set proxy <null>; 87
[Diagnostics]: Checking for configuration updates 11/30/2010 02:20:11 AM.
The above errors will be logged by DiagnosticsAgent.exe (MonAgentHost.exe in Windows Azure 1.2) every time when the Diagnostic Monitor is trying to transfer the
logs to the Table Storage. So the problem is actually occurred when the log are supposed to transfer from the diagnostics monitor tool depend on your *. ScheduledTransferPeriod() function.
To solve this problem you will not to disable to <sites> </sites> section in the ServiceDefinition.csdef as highlighted below:
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="Your_Service_Name" xmlns="https://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="MyWebRole" enableNativeCodeExecution="true">
<!--<Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" />
</Bindings>
</Site>
</Sites>-->
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="80" />
</Endpoints>
<Imports>
<Import moduleName="Diagnostics" />
</Imports>
</WebRole>
</ServiceDefinition>
You must know that when you comment/remove the above <sites> </sites> section from the service definition (csdef) you are running your application in HWC (Hostable Web Core) means within WaWebHost.exe process instead of full IIS role w3wp.exe. Having <sites> </sites> section in service definition (csdef) allow you to run your application in full web role. It is also suggested that commenting <sites> </sites> section in service definition (csdef) means your application is running in legacy (Windows Azure SDK 1.2) based webrole.
Comments
- Anonymous
July 03, 2011
[fabric] Role Instance: deployment(60).WindowsAzureProject8.WebRole1.0 [fabric] Role state Created [fabric] Role state Suspended [fabric] Role state Busy [Diagnostics]: UpdateState(Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorStartupInfo, Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorConfiguration, ) [Diagnostics]: Acquired mutex [Diagnostics] Information: C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor [Diagnostics] Information: c:usersyilmaz.kahramandocumentsvisual studio 2010ProjectsWindowsAzureProject8WindowsAzureProject8binDebugWindowsAzureProject8.csxrolesWebRole1diagnosticsx64monitorMonAgentHost.exe -LocalPath "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor" -StaticConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmastaticconfig.xml" -ConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmaconfig.xml" -ShutDownEvent WADDM-ShutDown-e599b6b4479a422093a1b59364b1e6e7 -InitializedEvent WADM-StartUp-e599b6b4479a422093a1b59364b1e6e7 -parent 1996 -events [Diagnostics]: Creating config channel server [MonAgentHost] Output: Agent will exit when WADDM-ShutDown-e599b6b4479a422093a1b59364b1e6e7 is signaled. [MonAgentHost] Output: Will signal WADM-StartUp-e599b6b4479a422093a1b59364b1e6e7 after the agent is initialized. [MonAgentHost] Output: Registered as an event consumer. [MonAgentHost] Output: Agent will exit when parent process 1996 exits. [MonAgentHost] Output: Monitoring Agent Started [Diagnostics]: Starting configuration channel polling [fabric] Role state Unhealthy [fabric] Role state Stopping [fabric] Role state Stopped [fabric] Role state Suspended [fabric] Role state Busy [Diagnostics]: UpdateState(Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorStartupInfo, Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorConfiguration, ) [Diagnostics]: Acquired mutex [Diagnostics] Information: C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor [Diagnostics] Information: c:usersyilmaz.kahramandocumentsvisual studio 2010ProjectsWindowsAzureProject8WindowsAzureProject8binDebugWindowsAzureProject8.csxrolesWebRole1diagnosticsx64monitorMonAgentHost.exe -LocalPath "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor" -StaticConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmastaticconfig.xml" -ConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmaconfig.xml" -ShutDownEvent WADDM-ShutDown-98198b1ae7524f8a8812ebf0d6890e25 -InitializedEvent WADM-StartUp-98198b1ae7524f8a8812ebf0d6890e25 -parent 5016 -events [Diagnostics]: Creating config channel server [MonAgentHost] Output: Agent will exit when WADDM-ShutDown-98198b1ae7524f8a8812ebf0d6890e25 is signaled. [MonAgentHost] Output: Will signal WADM-StartUp-98198b1ae7524f8a8812ebf0d6890e25 after the agent is initialized. [MonAgentHost] Output: Registered as an event consumer. [MonAgentHost] Output: Agent will exit when parent process 5016 exits. [MonAgentHost] Output: Monitoring Agent Started [Diagnostics]: Starting configuration channel polling [Diagnostics]: Checking for configuration updates 04.07.2011 10:50:05. [Diagnostics]: Signalling process restart on event = WADDM-ShutDown-98198b1ae7524f8a8812ebf0d6890e25 [MonAgentHost] Output: Exiting the monitoring agent after the shutdown event was signaled. [MonAgentHost] Output: Monitoring Agent Stopped [Diagnostics] Information: Diagnostic process exited with code: 0 [Diagnostics] Information: C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor [Diagnostics] Information: c:usersyilmaz.kahramandocumentsvisual studio 2010ProjectsWindowsAzureProject8WindowsAzureProject8binDebugWindowsAzureProject8.csxrolesWebRole1diagnosticsx64monitorMonAgentHost.exe -LocalPath "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor" -StaticConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmastaticconfig.xml" -ConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmaconfig.xml" -ShutDownEvent WADDM-ShutDown-cc35d99088d24809a4ec84703ba626bd -InitializedEvent WADM-StartUp-cc35d99088d24809a4ec84703ba626bd -parent 5016 -events [MonAgentHost] Output: Agent will exit when WADDM-ShutDown-cc35d99088d24809a4ec84703ba626bd is signaled. [MonAgentHost] Output: Will signal WADM-StartUp-cc35d99088d24809a4ec84703ba626bd after the agent is initialized. [MonAgentHost] Output: Registered as an event consumer. [MonAgentHost] Output: Agent will exit when parent process 5016 exits. [MonAgentHost] Output: Monitoring Agent Started [Diagnostics]: Starting configuration channel polling [Diagnostics]: Checking for configuration updates 04.07.2011 10:51:07. [Diagnostics]: Checking for configuration updates 04.07.2011 10:52:07. [Diagnostics]: Checking for configuration updates 04.07.2011 10:53:07. [Diagnostics]: Checking for configuration updates 04.07.2011 10:54:07. [Diagnostics]: Checking for configuration updates 04.07.2011 10:55:07. [Diagnostics]: Checking for configuration updates 04.07.2011 10:56:07. [Diagnostics]: Checking for configuration updates 04.07.2011 10:57:08. [Diagnostics]: Checking for configuration updates 04.07.2011 10:58:08. [Diagnostics]: Checking for configuration updates 04.07.2011 10:59:08. [Diagnostics]: Checking for configuration updates 04.07.2011 11:00:08. [Diagnostics]: Checking for configuration updates 04.07.2011 11:01:08. [Diagnostics]: Checking for configuration updates 04.07.2011 11:02:08. [Diagnostics]: Checking for configuration updates 04.07.2011 11:03:08. [Diagnostics]: Checking for configuration updates 04.07.2011 11:04:08. [fabric] Role state Stopped [fabric] Role state Suspended [fabric] Role state Busy [Diagnostics]: UpdateState(Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorStartupInfo, Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorConfiguration, ) [Diagnostics]: Acquired mutex [Diagnostics] Information: C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor [Diagnostics] Information: c:usersyilmaz.kahramandocumentsvisual studio 2010ProjectsWindowsAzureProject8WindowsAzureProject8binDebugWindowsAzureProject8.csxrolesWebRole1diagnosticsx64monitorMonAgentHost.exe -LocalPath "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor" -StaticConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmastaticconfig.xml" -ConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmaconfig.xml" -ShutDownEvent WADDM-ShutDown-451839547a904d4985e84711b61d6680 -InitializedEvent WADM-StartUp-451839547a904d4985e84711b61d6680 -parent 5948 -events [Diagnostics]: Creating config channel server [MonAgentHost] Output: Agent will exit when WADDM-ShutDown-451839547a904d4985e84711b61d6680 is signaled. [MonAgentHost] Output: Will signal WADM-StartUp-451839547a904d4985e84711b61d6680 after the agent is initialized. [MonAgentHost] Output: Registered as an event consumer. [MonAgentHost] Output: Agent will exit when parent process 5948 exits. [MonAgentHost] Output: Monitoring Agent Started [Diagnostics]: Starting configuration channel polling [Diagnostics]: Checking for configuration updates 04.07.2011 11:05:15. [Diagnostics]: Signalling process restart on event = WADDM-ShutDown-451839547a904d4985e84711b61d6680 [MonAgentHost] Output: Exiting the monitoring agent after the shutdown event was signaled. [MonAgentHost] Output: Monitoring Agent Stopped [Diagnostics] Information: Diagnostic process exited with code: 0 [Diagnostics] Information: C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor [Diagnostics] Information: c:usersyilmaz.kahramandocumentsvisual studio 2010ProjectsWindowsAzureProject8WindowsAzureProject8binDebugWindowsAzureProject8.csxrolesWebRole1diagnosticsx64monitorMonAgentHost.exe -LocalPath "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitor" -StaticConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmastaticconfig.xml" -ConfigFile "C:Usersyilmaz.kahramanAppDataLocaldftmps0deployment(60)resdeployment(60).WindowsAzureProject8.WebRole1.0directoryDiagnosticStoreMonitorConfigurationmaconfig.xml" -ShutDownEvent WADDM-ShutDown-c523c3617bc24601a0425364bb71adef -InitializedEvent WADM-StartUp-c523c3617bc24601a0425364bb71adef -parent 5948 -events [MonAgentHost] Output: Agent will exit when WADDM-ShutDown-c523c3617bc24601a0425364bb71adef is signaled. [MonAgentHost] Output: Will signal WADM-StartUp-c523c3617bc24601a0425364bb71adef after the agent is initialized. [MonAgentHost] Output: Registered as an event consumer. [MonAgentHost] Output: Agent will exit when parent process 5948 exits. [MonAgentHost] Output: Monitoring Agent Started [Diagnostics]: Starting configuration channel polling [Diagnostics]: Checking for configuration updates 04.07.2011 11:06:18. [Diagnostics]: Checking for configuration updates 04.07.2011 11:07:18. [Diagnostics]: Checking for configuration updates 04.07.2011 11:08:18.