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

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

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

运行作业后,我在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

提前致谢。

windows ssis psexec sysadmin rundeck
1个回答
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/

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