Role environment INITIALIZATION ERROR

I have several Azure websites running at the standard S2 level (each site on its own instance). Sites are located in different regions, and they run completely different and independent code. I noticed that if I look at the eventlog.xml file on any of my sites, I see several Role environment . FAILED TO INITIALIZE events Role environment . FAILED TO INITIALIZE Role environment . FAILED TO INITIALIZE . Here is an excerpt from the file:

 <Event> <System> <Provider Name="Windows Azure Runtime 2.5.0.0"/> <EventID>1013</EventID> <Level>0</Level> <Task>0</Task> <Keywords>Keywords</Keywords> <TimeCreated SystemTime="2015-05-06T07:07:35Z"/> <EventRecordID>976923406</EventRecordID> <Channel>Application</Channel> <Computer>RD000XXXXXE</Computer> <Security/> </System> <EventData> <Data>4008</Data> <Data>w3wp</Data> <Data>Role environment . INITIALIZING</Data> </EventData> </Event> <Event> <System> <Provider Name="Windows Azure Runtime 2.5.0.0"/> <EventID>1013</EventID> <Level>0</Level> <Task>0</Task> <Keywords>Keywords</Keywords> <TimeCreated SystemTime="2015-05-06T07:07:36Z"/> <EventRecordID>976923937</EventRecordID> <Channel>Application</Channel> <Computer>RD000XXXXXE</Computer> <Security/> </System> <EventData> <Data>4008</Data> <Data>w3wp</Data> <Data>Role environment . INITIALED RETURNED. HResult=-2147024891</Data> </EventData> </Event> <Event> <System> <Provider Name="Windows Azure Runtime 2.5.0.0"/> <EventID>1015</EventID> <Level>3</Level> <Task>0</Task> <Keywords>Keywords</Keywords> <TimeCreated SystemTime="2015-05-06T07:07:36Z"/> <EventRecordID>976924062</EventRecordID> <Channel>Application</Channel> <Computer>RD000XXXXXE</Computer> <Security/> </System> <EventData> <Data>4008</Data> <Data>w3wp</Data> <Data>Role environment . FAILED TO INITIALIZE. hr: -2147024891</Data> </EventData> </Event> 

I also noticed that these events coincide with a brief shutdown of the site (just a minute or two). These events seem random. Sometimes there can be 20 events per hour. In other cases, it can work for several days without any event.

I am trying to understand what causes these events and how (or if) I can prevent them. I would prefer that my sites do not fall at all. Perhaps I can mitigate the problem by having multiple instances for each site, but even so, at least I would like to get a good answer about what is going on here.

Note. These sites are deployed to Azure sites and not to cloud services (i.e., not cast on the Internet or in a production environment).

+6
source share
1 answer

These events are recorded when you refer to Azure Diagnostics in your web application. It is not recommended to use this in the case of a web application. It makes sense to use it in cloud services, but not in the case of web applications. Sometimes this can affect the application.

0
source

Source: https://habr.com/ru/post/987807/


All Articles