DigiCert - Azure DevOps YAML 任务 SSMClientToolsSetup@1 失败并出现“无法访问 Windows Installer 服务”错误

问题描述 投票:0回答:1

Azure 管道在 SSMClientToolsSetup@1 任务上失败:

Starting: SSMClientToolsSetup
==============================================================================
Task         : Installer for DigiCert One Software Trust Manager Client tools
Description  : Installs Client Tools to use with DigiCert One Software Trust Manager
Version      : 1.7.0
Author       : DigiCert
Help         : 
==============================================================================
using path  C:\azagent\A1\_work\_temp
Tool to be downloaded and used {} and url is {} smtools-windows-x64.msi signingmanager/api-ui/v1/releases/noauth/smtools-windows-x64.msi/download
file after write  96681984
C:\Windows\system32\msiexec.exe /i C:\azagent\A1\_work\_temp\smtools-windows-x64.msi /quiet INSTALLDIR=C:\azagent\A1\_work\_temp\smtools-windows-x64
The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.

执行STM设置任务时出错错误:处理过程 “C:\Windows\system32\msiexec.exe”失败,退出代码 1601 在 ExecState._setResult (C: zagent\A1_work_tasks\SSMClientToolsSetup_63dc66e6-daa5-4c1c-97f2-4312143a6d6c .7.0 ode_modules zure-pipelines-task-lib oolrunner.js:942:25) 在 ExecState.CheckComplete (C: zagent\A1_work_tasks\SSMClientToolsSetup_63dc66e6-daa5-4c1c-97f2-4312143a6d6c .7.0 ode_modules zure-pipelines-task-lib oolrunner.js:925:18) 在子进程中。 (C: zagent\A1_work_tasks\SSMClientToolsSetup_63dc66e6-daa5-4c1c-97f2-4312143a6d6c .7.0 ode_modules zure-pipelines-task-lib oolrunner.js:838:19) 在 ChildProcess.emit (events.js:198:13) 在 MaybeClose (内部/child_process.js:982:16) 在 Process.ChildProcess._handle.onexit (内部/child_process.js:259:5)

##[error]The process 'C:\Windows\system32\msiexec.exe' failed with exit code 1601
Finishing: SSMClientToolsSetup

我已经尝试过但没有一个有帮助:

  1. 完成任务
    retryCountOnTaskFailure: 10
  2. 手动安装
    smtools-windows-x64
    文件
  3. 已验证 Windows Installer 服务已启动并正在运行,但注意到它在一段时间后停止。
  4. 重启服务器
yaml azure-pipelines windows-installer azure-pipelines-yaml azure-pipelines-tasks
1个回答
0
投票

该任务来自 Azure DevOps 扩展 使用软件信任管理器进行代码签名。我在 Microsoft 托管代理上尝试了该任务,它运行正常,没有错误。

此外,我尝试从

smtools-windows-x64.msi
下载
https://one.digicert.com/signingmanager/api-ui/v1/releases/noauth/smtools-windows-x64.msi/download
并手动将其安装在我的虚拟机上,它可以正常工作。

正如您所说,您手动安装了 smtools-windows-x64 文件并验证了 Windows Installer 服务已启动并正在运行,但您确实注意到它在一段时间后停止。看来你的自托管代理环境有问题。

您可以尝试使用Microsoft托管代理,看看它是否在您这边工作。或者使用另一个虚拟机作为自托管代理重试。

© www.soinside.com 2019 - 2024. All rights reserved.