none
Windows Server 2019 WSUS Post-installation 任务一直失败 RRS feed

  • 问题

  • 安装完 WSUS 后首次运行 Windows Server Update Services 执行 Post-installation, 填写完数据库实例名和本地存储路径,点 RUN , 运行一会儿后结果提示

    日志文件 WSUS_PostInstall_20200407T090755.log 内容如下

    2020-04-07 17:07:55  Postinstall started
    2020-04-07 17:07:55  Detected role services: Api, Database, UI, Services
    2020-04-07 17:07:55  Start: LoadSettingsFromParameters
    2020-04-07 17:07:55  Content local is: True
    2020-04-07 17:07:55  Content directory is: F:\WSUStore
    2020-04-07 17:07:55  SQL instname is: wsus
    2020-04-07 17:07:55  End: LoadSettingsFromParameters
    2020-04-07 17:07:55  Start: Run
    2020-04-07 17:07:55  Fetching WsusAdministratorsSid from registry store
    2020-04-07 17:07:55  Value is S-1-5-21-1694251453-2192116406-1482584858-1000
    2020-04-07 17:07:55  Fetching WsusReportersSid from registry store
    2020-04-07 17:07:55  Value is S-1-5-21-1694251453-2192116406-1482584858-1001
    2020-04-07 17:08:54  Configuring content directory...
    2020-04-07 17:08:54  Configuring groups...
    2020-04-07 17:08:54  Starting group configuration for WSUS Administrators...
    2020-04-07 17:08:54  Found group in regsitry, attempting to use it...
    2020-04-07 17:08:57  Writing group to registry...
    2020-04-07 17:08:57  Finished group creation
    2020-04-07 17:08:57  Starting group configuration for WSUS Reporters...
    2020-04-07 17:08:57  Found group in regsitry, attempting to use it...
    2020-04-07 17:08:59  Writing group to registry...
    2020-04-07 17:08:59  Finished group creation
    2020-04-07 17:08:59  Configuring permissions...
    2020-04-07 17:08:59  Fetching content directory...
    2020-04-07 17:08:59  Fetching ContentDir from registry store
    2020-04-07 17:08:59  Value is F:\WSUStore
    2020-04-07 17:08:59  Fetching group SIDs...
    2020-04-07 17:08:59  Fetching WsusAdministratorsSid from registry store
    2020-04-07 17:08:59  Value is S-1-5-21-1694251453-2192116406-1482584858-1000
    2020-04-07 17:08:59  Fetching WsusReportersSid from registry store
    2020-04-07 17:08:59  Value is S-1-5-21-1694251453-2192116406-1482584858-1001
    2020-04-07 17:08:59  Creating group principals...
    2020-04-07 17:09:04  Granting directory permissions...
    2020-04-07 17:09:04  Granting permissions on content directory...
    2020-04-07 17:09:04  Granting registry permissions...
    2020-04-07 17:09:04  Granting registry permissions...
    2020-04-07 17:09:04  Granting registry permissions...
    2020-04-07 17:09:04  Configuring shares...
    2020-04-07 17:09:04  Configuring network shares...
    2020-04-07 17:09:04  Fetching content directory...
    2020-04-07 17:09:04  Fetching ContentDir from registry store
    2020-04-07 17:09:04  Value is F:\WSUStore
    2020-04-07 17:09:04  Fetching WSUS admin SID...
    2020-04-07 17:09:04  Fetching WsusAdministratorsSid from registry store
    2020-04-07 17:09:04  Value is S-1-5-21-1694251453-2192116406-1482584858-1000
    2020-04-07 17:09:04  Content directory is local, creating content shares...
    2020-04-07 17:09:04  Creating share "UpdateServicesPackages" with path "F:\WSUStore\UpdateServicesPackages" and description "A network share to be used by client systems for collecting all software packages (usually applications) published on this WSUS system."
    2020-04-07 17:09:04  Deleting existing share...
    2020-04-07 17:09:04  Creating share...
    2020-04-07 17:09:04  Share successfully created
    2020-04-07 17:09:04  Creating share "WsusContent" with path "F:\WSUStore\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
    2020-04-07 17:09:04  Deleting existing share...
    2020-04-07 17:09:04  Creating share...
    2020-04-07 17:09:04  Share successfully created
    2020-04-07 17:09:04  Creating share "WSUSTemp" with path "C:\Program Files\Update Services\LogFiles\WSUSTemp" and description "A network share used by Local Publishing from a Remote WSUS Console Instance."
    2020-04-07 17:09:04  Deleting existing share...
    2020-04-07 17:09:04  Creating share...
    2020-04-07 17:09:04  Share successfully created
    2020-04-07 17:09:04  Finished creating content shares
    2020-04-07 17:09:04  Stopping service WSUSService
    2020-04-07 17:09:04  Stopping service W3SVC
    2020-04-07 17:09:04  Configuring database...
    2020-04-07 17:09:06  System.Net.Sockets.SocketException (0x80004005): No such host is known
       at System.Net.Dns.GetAddrInfo(String name)
       at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
       at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
       at Microsoft.UpdateServices.Internal.SetupInfo.IsServerRemote(String serverName)
       at Microsoft.UpdateServices.Administration.ConfigureDB..ctor(String instanceName, Action`1 logWriter, Nullable`1 contentLocal)
       at Microsoft.UpdateServices.Administration.ConfigureDB.Run(String instanceName, Action`1 logWriter, Boolean contentLocal)
       at Microsoft.UpdateServices.Administration.PostInstall.Run()
       at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)

    试了多次一直这样,实在看不出到底什么地方错误了。

    2020年4月7日 9:28

答案

全部回复

  • 你好,

    >2020-04-07 17:09:04  Configuring database...
    2020-04-07 17:09:06  System.Net.Sockets.SocketException (0x80004005): No such host is known

    请问这是你第一次安装WSUS吗,如果是重新安装的话,请确保之前的WSUS所有相关组件已经删除干净,尤其是SUSDB。

    When you try to re-install WSUS server, we need to confirm the WSUS has been removed completed.

    Please check if all things are removed:

    1. Remove WSUS role from Server Management console;

    2. Remove Content folder;

    3. Remove SUSDB and SUSDB_log in C:\Windows\WID\Data, also use SQL server management studio to ensure the SUSDB is actually removed:

    4. Remove WSUS IIS site;

    After verifying all things are removed, try re-install WSUS role again.

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/74c48550-52f6-4160-b8a6-67fc4e6eab79/wsus-post-install-fails-quotfatal-error-the-system-cannot-find-the-path-specifiedquot?forum=winserverwsus

    Best Regards,

    Anne



    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    2020年4月8日 6:47
    版主
  • 你好。我这不是重新安装,而是安装完系统后第一次安装 WSUS 。安装完后第一次执行 Post-installation 时,在填写更新文件本地存储路径时我只选了个磁盘根目录 F:\ ,提示 "Fatal Error: Illegal characters in path." 我想是不是没有选子目录,不能放在根目录的原因。

    然后第二次执行 Post-installation 时填写了个子目录 F:\WSUStore,结果就出现上述错误。我想这应该不算重装 WSUS 吧?

    不管哪一次错误,错误提示后都可进入 Update Services 控制台。里面什么也没有。

    虽然安装时记得选的是用 SQL Server 做数据库,但安装完后“开始”菜单中并没有 SQL Server Management 菜单项,是不是一定要安装个 SQL Server Management Studio 才能查看?

    查看 IIS 中也没有 WSUS 站点。而且 Default Web Site 处于停止状态。

    2020年4月9日 3:39
  • 你好,

    >然后第二次执行 Post-installation 时填写了个子目录 F:\WSUStore,结果就出现上述错误。我想这应该不算重装 WSUS 吧?

    那我们还是需要查看一下是否有残留的SUSDB,如果有请删除再次安装。

    以下是安装SQL server management Studio的具体步骤以及连到WID的步骤,供您参考:

    安装SQL server management studio 2019:

    https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15

    在连接数据库的窗口输入以下参数连接到WID,找到是否有SUSDB:

    \\.\pipe\Microsoft##WID\tsql\query

    https://www.ajtek.ca/wsus/how-do-i-connect-to-the-windows-internal-database-wid/

    (注意,只是一篇三方的文章,由于三方的文章不受我们的管理,我们不能永远保证该链接的准确性和安全性。)

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    2020年4月13日 2:01
    版主
  • 你好,

    根据你给的链接我下载了 SMSS ,不过安装时显示的是 18.5 版。安装完成后启动,不知道怎么登录,用 Windows 帐号登录不行,用 sa 帐号不知道密码是多少,不记得安装的时候设过 sa 密码。

    后来想想算了,还是卸载重装吧,在 Admin Center 中卸载 WSUS ,然后重启系统,在 Server Manager 中重新安装 WSUS ,安装时想起当时上次安装的时候好像是在 Admin Center 中安装的,选的可能也不是 SQL Server 而是 WID 作数据库。这次安装好后通过正确配置可以正常进入 WSUS 了。可能是第一次通过 Admin Center 来进行管理不太熟,有些步骤不对。虽然你的答案没有解决我的问题,但下次很可能遇上类似的问题,很有参考价值。谢谢!

    2020年4月14日 9:27
  • 你好,

    好的,首先很高兴你的问题已经解决了。

    回答您的几个问题:

    >安装完成后启动,不知道怎么登录,用 Windows 帐号登录不行,用 sa 帐号不知道密码是多少,不记得安装的时候设过 sa 密码。

    安装完SMSS后,在连接数据库的界面,可以使用以下参数连接到WID:

    \\.\pipe\Microsoft##WID\tsql\query

    >在 Server Manager 中重新安装 WSUS ,安装时想起当时上次安装的时候好像是在 Admin Center 中安装的,选的可能也不是 SQL Server 而是 WID 作数据库。

    默认情况下,一般安装WSUS时使用的时WID,对于WID,我们可以安装SMSS来连接查看和管理WID。这也就是我上面建议您安装SMSS来查看WID中是否有残留的SUSDB的原因。在您今后的管理工作中,您也可以通过这个方面来查看WID中的SUSDB。

    Anyway,很高兴您的问题已经解决。如果还有其它相关问题,欢迎反馈。如果没有了,请您将有用的信息标记为答案,这样我们可以结束这个帖子。

    感谢您的时间!

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    2020年4月15日 2:08
    版主
  • 你好,

    不好意思,我实在不知道启动 SQL Server Management Studio 后“连接数据库界面”在哪里?一启动就是个让你登录的对话框。

    2020年4月15日 6:11
  • 你好,

    1. 首先我们以管理员身份打开SSMS:


    2. 然后在下面的界面中输入: 

    \\.\pipe\Microsoft##WID\tsql\query

    3. 然后点击连接就行了:

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    2020年4月16日 3:02
    版主
  • 嗯,按照你的说明确实可以进入 WID 数据库了。谢谢。
    2020年4月20日 8:20