【问题标题】:IIS8 showed error 503IIS8 显示错误 503
【发布时间】:2014-05-07 04:46:46
【问题描述】:

Surface Pro 2 128GB
Win8.1更新1
从 [打开/关闭 Windows 功能]

安装 IIS8 安装后,
1. IE11访问http://localhost,提示Service Unavailable HTTP 503 Error
2.启动的DefaultAppPool已经自动停止了..

===========================
我的问题是:
我该如何解决这个错误?

===========================

%windir%\system32\logfiles\httperr:

#Software: Microsoft HTTP API 2.0
#Version: 1.0
#Date: 2014-05-07 03:50:18
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename
2014-05-07 03:50:18 ::1%0 1501 ::1%0 80 HTTP/1.1 GET / - 1 Client_Reset DefaultAppPool


#Software: Microsoft HTTP API 2.0
#Version: 1.0
#Date: 2014-05-07 03:51:56
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename
2014-05-07 04:07:49 ::1%0 1636 ::1%0 80 HTTP/1.1 GET / 503 1 AppOffline DefaultAppPool
2014-05-07 04:07:55 ::1%0 1637 ::1%0 80 HTTP/1.1 GET / 503 1 AppOffline DefaultAppPool
2014-05-07 04:08:06 ::1%0 1656 ::1%0 80 HTTP/1.1 GET / 503 1 AppOffline DefaultAppPool
2014-05-07 04:08:06 ::1%0 1659 ::1%0 80 HTTP/1.1 GET /favicon.ico 503 1 AppOffline DefaultAppPool
2014-05-07 04:08:06 ::1%0 1660 ::1%0 80 HTTP/1.1 GET /favicon.ico 503 1 AppOffline DefaultAppPool
2014-05-07 04:08:06 ::1%0 1661 ::1%0 80 HTTP/1.1 GET /favicon.ico 503 1 AppOffline DefaultAppPool
2014-05-07 04:12:05 ::1%0 1763 ::1%0 80 HTTP/1.1 GET / 503 1 AppOffline DefaultAppPool

==============================================

我在 EventLog 中发现了一个错误:

USER: IIS APPPOOL\DefaultAppPool

Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.

DETAIL: Only part of a ReadProcessMemory or WriteProcessmemory request was completed

【问题讨论】:

    标签: windows iis application-pool


    【解决方案1】:

    快速修复:

    IIS -> 应用程序池 -> DefaultAppPool -> 高级设置 -> 加载用户配置文件 = False

    【讨论】:

    • 为什么这能解决您的问题?
    【解决方案2】:

    FastcgiTesting-Register 可能需要从 IIS 的模块中删除。 更多信息在这里:

    https://blogs.msdn.microsoft.com/vpandey/2009/08/04/http-error-503-the-service-is-unavailable/

    【讨论】:

    • 如果有日志表明此特定模块无法加载,就会出现这种情况,否则可能不相关。
    【解决方案3】:

    经过一番调查,我发现问题是由应用程序池帐户身份验证问题引起的。我的 ASP NET 应用程序在 Docker 容器上运行,我在其中创建了一个无密码管理帐户并配置应用程序池以使用它。

    问题是我忘记设置密码过期策略,显然在默认过期期限之后,每当容器重新启动时,问题就开始出现。所以现在我在脚本中添加了另一个命令来防止密码过期。

    这是完整的配置脚本:

    # create admin user
    NET USER admin /add
    NET LOCALGROUP Administrators admin /add
    WMIC USERACCOUNT WHERE "Name='admin'" SET PasswordExpires=FALSE
    
    # configure app pool
    Import-Module WebAdministration
    Set-ItemProperty IIS:/AppPools/DefaultAppPool -name processModel.identityType -Value SpecificUser
    Set-ItemProperty IIS:/AppPools/DefaultAppPool -name processModel.userName -Value "admin"
    Set-ItemProperty IIS:/AppPools/DefaultAppPool -name processModel.password -Value ""
    

    请注意不要在隔离容器之外运行它!因为它会创建一个潜在危险的无密码管理员帐户。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-08
      • 2012-06-26
      • 1970-01-01
      • 1970-01-01
      • 2019-07-07
      • 2013-11-17
      • 2013-06-04
      • 2017-07-07
      相关资源
      最近更新 更多