【IT168 特别策划】6000名IT精英齐聚一堂,与来自微软产品核心研发团队及各个领域数百位优异专家面对面交流,Tech.Ed 2009盛典召开在即!IT168带您一起体验丰富多彩的活动和内容安排,更加深入、专注的互动讨论!
System Center Updates Publisher(SCUP) 是基于 Systems Management Server 2003 R2 中引进的自定义更新框架构建的。Updates Publisher 是一个独立的工具,它允许独立软件供应商或行业应用程序开发商导入软件更新编录、创建和修改软件更新定义、将更新定义导出到编录并将软件更新信息发布到所配置的更新服务器。通过使用 Updates Publisher 来定义软件更新并将其发布到更新服务器,管理员可以开始检测已发布的更新并将它们部署到贵组织的客户端计算机和服务器上。
本文介绍Updates Publisher发布问题疑难解答。
日志文件
Updates Publisher 向 UpdatesPublisher.log 文件中写入信息以帮助诊断在打开和使用控制台时可能出现的问题。系统会为打开控制台的用户在临时文件夹(默认情况下位于 %USERPROFILE%\Local Settings\Temp 中)中创建一个日志文件。
Updates Publisher 日志文件必须用简单的文本编辑器(如"记事本")来打开。如果在全文编辑器中打开日志文件,则可能会无法正确显示日志文件的内容。
UpdatesPublisher.log
当 Updates Publisher 成功将软件更新发布到本地更新服务器时,以下条目写入 UpdatesPublisher.log:
Initialized Publish Wizard
Connecting to update server
Connecting to a local update server with locally detected settings
Publishing update: 'Update GUID'
SDP XML file for publishing created at %USERPROFILE%\Local Settings\Temp\tmprandom number.tmp
Temporary SDP XML file %USERPROFILE%\Local Settings\Temp\tmprandom number.tmp created for publishing…
Retrieving content for update 'Update GUID' from 'Download URL
Content will be saved to %USERPROFILE%\Local Settings\Temp \random folder name\notepad.exe.
Downloaded content for update 'Update GUID' to local file: %USERPROFILE%\Local Settings\Temp \random folder name\notepad.exe.
Using default return codes for update…
Calling update server API for update 'Update GUID'
Calling update server API for publishing update 'Update GUID'
Removing temporary files…
Completed publishing for update 'Update GUID'
将软件更新发布到远程更新服务器包含同样的日志条目。如果发布过程失败,请检查 UpdatesPublisher.log 中可能指示故障原因的错误消息。
常见发布问题
以下几节列出了将软件更新发布到更新服务器时可能出现的常见问题、可能引起问题的原因和可能的解决方案列表。
A、缺少依赖项导致发布更新失败
对带一个或多个依赖项的更新启动发布过程时,必须将更新和其所有的依赖项发布到更新服务器,否则会导致更新的发布过程失败。Updates Publisher 首先检查 Windows Server Update Services (WSUS) 数据库中的依赖项,如果存在这些依赖项,则会将该更新发布到更新服务器。如果更新服务器数据库中没有一个或多个依赖项,则 Updates Publisher 将会检查缺少的依赖项是否在 Updates Publisher 的数据库中,如果在,则会从资源中下载依赖项并将其发布到更新服务器。如果在两个位置中均未找到一个或多个依赖项,则更新的发布过程失败。该发布过程将会继续进行其他已经标记为发布的更新。
B、一个或多个更新不能由工具发布
尝试标记发布软件更新时,以下错误消息显示在发布向导页的"确认"页面:
One or more updates are not able to be published by the tool.
向 UpdatesPublisher.log 中写入了下列日志条目:
Flag For Publish : Update with package id packageID is not updates publisher compliant or this update cannot be found in the database
Flag For Publish : Software update does not contain IsInstalled rules.
在解决此错误时,请验证以下事项:
软件更新定义至少通过一个已安装的验证规则创建。至少为定义创建一个已安装的验证规则,然后重新发布软件更新。
基于 MSI 的更新所具有的适用性规则配置不正确。修改适用性规则并重新发布软件更新。
软件更新定义中有一个或多个不推荐使用的规则。从软件更新定义中删除不推荐使用的规则,然后为软件更新设置发布标记。
C、尝试发布更新时出错
发布软件更新时,以下错误消息显示在发布向导的"确认"页面:
An error occurred while attempting to publish updates.
Error 1: Update server '' does not appear to be configured with a certificate for publishing, publishing aborted.
向 UpdatesPublisher.log 中写入了下列日志条目:
Publish: : Update server '' does not appear to be configured with a certificate for publishing, publishing aborted.
在解决此错误时,请验证以下事项:
在"设置"对话框的"更新服务器"选项卡指定的数字证书无效。
D、由于发布到更新服务器过程中出错,更新尚未发布
发布软件更新时,以下错误消息显示在发布向导的"确认"页面:
The following X update(s) were not published due to an error during publishing to the update server:
此错误消息在出现其他问题时也会显示。通过读取 UpdatesPublisher.log 可识别每种问题。
E、文件的文件签名验证失败
向 UpdatesPublisher.log 中写入了下列日志条目:
Publish: : Exception occurred during publishing: Verification of file signature failed for file: path to file and file name
在解决此错误时,请验证以下事项:
必须将在"设置"对话框的"更新服务器"选项卡上指定的更新服务器证书复制到"受信任的发布服务器"证书存储,如果在更新服务器计算机上使用了自签名证书,则必须将证书复制到"受信任的根证书颁发机构"证书存储。如果证书对于更新服务器而言是远程的,则必须将证书复制到 Updates Publisher 计算机上的证书存储。
F、CreateDirectory 失败
向 UpdatesPublisher.log 中写入了下列日志条目:
Publish: : Exception occurred during publishing: CreateDirectory failed
在解决此错误时,请验证以下事项:
用户没有权限访问更新服务器上的 UpdateServicesPackages 共享文件夹。
G、由于内容检索过程中出错,更新尚未发布
发布软件更新时,以下错误消息显示在发布向导的"确认"页面:
The following X update(s) were not published due to an error during content retrieval:
Error 1: product name
向 UpdatesPublisher.log 中写入了下列日志条目:
Publish: : Failed to download update content to local file, error: "The remote name could not be resolved: 'server name'
Publish: : Update UpdateID will not be published
在解决此错误时,请验证以下事项:
在软件更新定义中指定的下载 URL 无效。验证下载 URL 设置并重新发布软件更新。
参考:微软技术支持库。
