【问题标题】:TeamCity Agent Push Failure when Checking Platform检查平台时 TeamCity 代理推送失败
【发布时间】:2016-03-28 23:39:38
【问题描述】:

尝试使用代理推送功能安装代理时,出现以下错误:

[12:05:15]: AgentPush v32407 - Install Agent on remote host
[12:05:15]: Looking for Target Host...
[12:05:15]: Validating TeamCity Server Root URL 'http://####' ...
[12:05:19]: Starting agent push to '###'(IP: ###) using preset 'Packer Baker' (Username 'administrator'. Target platform: 'Windows')
[12:05:19]: Checking Platform...
[12:05:24]: 'ssw0rd'' is not recognized as an internal or external command,
[12:05:24]: operable program or batch file.
[12:05:24]: Executing command: 'C:\Tomcat\temp\___1655843086080428423\cli-wrapper.exe D:\TMC-Data\system\pluginData\psexec\psexec.exe /accepteula \\### -e -h -u administrator -p ********** cmd.exe /C ver'
[12:05:24]: Remote agent installation failed: Command 'C:\Tomcat\temp\___1655843086080428423\cli-wrapper.exe D:\TMC-Data\system\pluginData\psexec\psexec.exe /accepteula \\### -e -h -u administrator -p ********** cmd.exe /C ver' was executed with error message(s): Execution error. Return code=1

有什么可能导致这种情况的想法吗?

【问题讨论】:

    标签: cloud teamcity teamcity-9.0


    【解决方案1】:

    这是由于未对“推送代理的凭据”密码中的 & 字符进行转义所致。

    在上述情况下,我使用了密码P&ssw0rd。当命令

    C:\Tomcat\temp\___1655843086080428423\cli-wrapper.exe D:\TMC-Data\system\pluginData\psexec\psexec.exe /accepteula \\### -e -h -u administrator -p ********** cmd.exe /C ver
    

    被执行&用于在同一行运行多个命令,需要转义。

    在使用^ 转义& 并将密码更改为P^&ssw0rd 后,代理推送运行成功。

    【讨论】:

    • 非常感谢。拯救了我的一天。
    猜你喜欢
    • 1970-01-01
    • 2019-04-09
    • 1970-01-01
    • 2013-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-06
    • 2018-12-18
    相关资源
    最近更新 更多