1

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

[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

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

4

1 回答 1

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

is executed&用于在同一行上运行多个命令,需要转义。

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

于 2015-09-07T12:31:43.500 回答