Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fix this Azure bug: web role unable to start after disabling remote desktop connections?
    primarykey
    data
    text
    <p>I'm struggling with a weird Azure problem after disabling remote desktop connections. I started upgrading from the Azure SDK 1.2 to 1.4 and had enabled remote desktop for easier debugging. However, once I had finished with the upgrade and everything was working smoothly when deployed, I did one final deployment with remote desktop connections disabled. To my surprise, my web role instances were stuck in the "<strong><em>Waiting for role to start</em></strong>" phase. Interestingly enough, worker role instances started normally. About 20 deployments later the problem is 100% reproducible:</p> <ul> <li>remote desktop enabled: everything works fine</li> <li>remote desktop disabled: web role instances unable to start</li> </ul> <p>Enabling <strong>Intellitrace</strong> doesn't seem to help because trying the get the logs results in "<strong><em>No IntelliTrace logs are available</em></strong>" error. As expected, my source control tool shows that the only difference between enabling and disabling remote desktop is in the service definition and config files (<strong><em>.cscfg, .csdef</em></strong>). Re-imaging and restarting the VMs also doesn't seem to do any good.</p> <p>Please, if anyone has had a similar problem, help a desperate guy!</p> <p><strong>UPDATE:</strong> Here are the service definition and config files:</p> <p><em>ServiceDefinition.csdef</em></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ServiceDefinition name="####" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"&gt; &lt;WebRole name="####.Web" enableNativeCodeExecution="true"&gt; &lt;Runtime executionContext="elevated" /&gt; &lt;Startup&gt; &lt;Task commandLine="StartupTasks\FixACLs.cmd" executionContext="elevated" /&gt; &lt;/Startup&gt; &lt;Sites&gt; &lt;Site name="Web"&gt; &lt;Bindings&gt; &lt;Binding name="HttpIn" endpointName="HttpIn" /&gt; &lt;/Bindings&gt; &lt;/Site&gt; &lt;/Sites&gt; &lt;ConfigurationSettings&gt; &lt;Setting name="DiagnosticsConnectionString" /&gt; &lt;/ConfigurationSettings&gt; &lt;LocalResources&gt; &lt;LocalStorage name="Index" cleanOnRoleRecycle="false" sizeInMB="10240" /&gt; &lt;/LocalResources&gt; &lt;Endpoints&gt; &lt;InputEndpoint name="HttpIn" protocol="http" port="80" /&gt; &lt;/Endpoints&gt; &lt;!-- BEGIN Remote desktop addition --&gt; &lt;Imports&gt; &lt;Import moduleName="RemoteAccess" /&gt; &lt;/Imports&gt; &lt;!-- END Remote desktop addition --&gt; &lt;/WebRole&gt; &lt;WorkerRole name="####.Worker" enableNativeCodeExecution="true"&gt; &lt;Runtime executionContext="elevated" /&gt; &lt;ConfigurationSettings&gt; &lt;Setting name="DiagnosticsConnectionString" /&gt; &lt;/ConfigurationSettings&gt; &lt;LocalResources&gt; &lt;LocalStorage name="Index" cleanOnRoleRecycle="true" sizeInMB="10240" /&gt; &lt;/LocalResources&gt; &lt;!-- BEGIN Remote desktop addition --&gt; &lt;Imports&gt; &lt;Import moduleName="RemoteAccess" /&gt; &lt;Import moduleName="RemoteForwarder" /&gt; &lt;/Imports&gt; &lt;!-- END Remote desktop addition --&gt; &lt;/WorkerRole&gt; &lt;/ServiceDefinition&gt; </code></pre> <p><em>ServiceConfiguration.cscfg</em></p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;ServiceConfiguration serviceName="####" osFamily="2" osVersion="*" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration"&gt; &lt;Role name="####.Web"&gt; &lt;Instances count="2" /&gt; &lt;ConfigurationSettings&gt; &lt;Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=####;AccountKey=####" /&gt; &lt;!-- BEGIN Remote desktop addition --&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" /&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="####" /&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="####" /&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="####" /&gt; &lt;!-- END Remote desktop addition --&gt; &lt;/ConfigurationSettings&gt; &lt;!-- BEGIN Remote desktop addition --&gt; &lt;Certificates&gt; &lt;Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="####" thumbprintAlgorithm="sha1" /&gt; &lt;/Certificates&gt; &lt;!-- END Remote desktop addition --&gt; &lt;/Role&gt; &lt;Role name="####.Worker"&gt; &lt;Instances count="1" /&gt; &lt;ConfigurationSettings&gt; &lt;Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=####;AccountKey=####" /&gt; &lt;!-- BEGIN Remote desktop addition --&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" /&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="####" /&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="####" /&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="####" /&gt; &lt;Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" /&gt; &lt;!-- END Remote desktop addition --&gt; &lt;/ConfigurationSettings&gt; &lt;!-- BEGIN Remote desktop addition --&gt; &lt;Certificates&gt; &lt;Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="####" thumbprintAlgorithm="sha1" /&gt; &lt;/Certificates&gt; &lt;!-- END Remote desktop addition --&gt; &lt;/Role&gt; &lt;/ServiceConfiguration&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload