【问题标题】:Azure cloud service definition problemsAzure 云服务定义问题
【发布时间】:2013-10-03 01:21:07
【问题描述】:

我有一个云服务在升级到 Azure 2.0 SDK 后运行了一段时间。它现在神秘地停止了工作。我在 Azure 机器事件日志中得到了这个。

The application '/' belonging to site '19369254' has an invalid
AppPoolId 'ddcc23fe-8eee-4412-a4dd-56b50e18d9f2' set.  
Therefore, the application will be ignored.

后跟:

Site 19369254 was disabled because the root application defined for the site is 
invalid. See the previous event log message for information about why the 
root application is invalid.

和:

 A process serving application pool 'ddcc23fe-8eee-4412-a4dd-56b50e18d9f2'
 terminated unexpectedly. The process id was '3696'. 
 The process exit code was '0x103'.

我的服务定义:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="SMEEDI.Cloud" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2013-03.2.0">
<WebRole name="SMEEDI.Portal" enableNativeCodeExecution="true">
<Startup>
  <Task commandLine="startup.cmd" executionContext="elevated" taskType="simple"></Task>
</Startup>
<ConfigurationSettings>
  <Setting name="DiagnosticsConnectionString" />
  <Setting name="DataConnectionString" />
  <Setting name="BaseUrl" />
  <Setting name="DatabaseConnectionString" />
  <Setting name="Environment" />
</ConfigurationSettings>

<Sites>
  <Site name="Smeedi_WebRole" physicalDirectory="..\..\..\SMEEDI.Portal">
    <Bindings>
      <Binding name="HttpIn" endpointName="HttpIn" />
    </Bindings>
  </Site>
</Sites>
<Endpoints>
  <InputEndpoint name="HttpIn" protocol="http" port="80" />
</Endpoints>
<Imports>
  <Import moduleName="RemoteAccess" />
  <Import moduleName="RemoteForwarder" />
</Imports>
</WebRole>
</ServiceDefinition>
  1. 这怎么会突然停止工作?
  2. 服务定义有什么问题?

【问题讨论】:

标签: azure azure-web-roles definition application-pool


【解决方案1】:

您收到的错误应该与 CSDEF 文件无关。 Azure 实例上的 IIS 配置似乎存在问题。

您可以尝试从 Azure 门户重新映像实例或登录到实例以进行进一步的故障排除。如果您选择远程进入,我会检查 IIS 配置,特别是应用程序池和虚拟目录,尤其是路径,因为您要在 CSDEF 中更改它。

Azure 应自行处理该配置,这就是为什么重新映像或删除和重新部署可能是更好的第一步。

【讨论】:

  • 谢谢贾斯汀。我已经完成了多次构建/部署。它已经按原样工作了数周。不过我会检查路径,感谢您的输入。
猜你喜欢
  • 2017-06-24
  • 2021-11-06
  • 1970-01-01
  • 2015-06-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多