成功运行作业时出现Rundeck错误

时间:2019-02-25 18:24:14

标签: windows ssis psexec sysadmin rundeck

我在Rundeck上定义了一项作业,该步骤具有远程命令。此命令调用PSExec,该PSExec调用执行DTSXExec的.cmd。

运行作业后,我在Rundeck遇到错误。完全可以,DTSXExec可以平稳运行。

这是日志:

PsExec v2.2 - Execute processes remotely
14:39:11    Copyright (C) 2001-2016 Mark Russinovich
14:39:11    Sysinternals - www.sysinternals.com
14:39:11    
14:39:11    
14:39:11    C:\Windows\system32>D:
14:39:11    
14:39:11    D:\>cd D:\DTEXEC 
14:39:11    
14:39:11    D:\DTEXEC\DTSXExec.exe 32 CAR_ESTRUTURA_HIER 
14:39:25    
14:39:25    25-02-2019 14:39:10 - >>>>>>>>>>>>>>>>>>>>> BEGIN LOG <<<<<<<<<<<<<<<<<<<<<
14:39:25    
14:39:25    25-02-2019 14:39:10 - CAR_ESTRUTURA_HIER - CAR_ESTRUTURA_HIER 32 bits execution.
14:39:25        
14:39:25    25-02-2019 14:39:25 - Microsoft (R) SQL Server Execute Package Utility
14:39:25    Version 11.0.7001.0 for 32-bit
14:39:25    Copyright (C) Microsoft Corporation. All rights reserved.
14:39:25    
14:39:25    DTExec: The package execution returned DTSER_SUCCESS (0).
14:39:25    Started:  14:39:10
14:39:25    Finished: 14:39:25
14:39:25    Elapsed:  14.867 seconds
14:39:25    
14:39:25    
14:39:25    25-02-2019 14:39:25 - RETURN CODE: 0. 
14:39:25    
14:39:25    25-02-2019 14:39:25 - RETURN CODE: 0. No errors.
14:39:25    
14:39:25    25-02-2019 14:39:25 - >>>>>>>>>>>>>>>>>>>>> END LOG <<<<<<<<<<<<<<<<<<<<<
14:39:25    
14:39:25    Connecting to localhost...
14:39:25    Starting PSEXESVC service on localhost...
14:39:25    Connecting with PsExec service on localhost...
14:39:25    Starting D:\teste3.cmd on localhost...
14:39:25    D:\teste3.cmd exited on localhost with error code 0.
14:39:25    Execution finished with the following error:
14:39:25    Failed: NonZeroResultCode: [WinRMPython] Result code: 1

谢谢。

1 个答案:

答案 0 :(得分:0)

检查service.log文件(通常在/var/log/rundeck/service.log上)以获取更多线索。但是在大多数情况下,该错误是由于与操作系统上的python库(通常为urllib3或pywinrm)存在冲突,您可以看到您的Python库正在执行“ pip list”并使用“ pip install”进行安装。

检查:

https://github.com/rundeck-plugins/py-winrm-plugin/issues/6

PIP参考:

https://pip.pypa.io/en/stable/reference/pip/