Jenkins master在swarm客户端中运行管道时抛出java.io.IOException

bogh5gae  于 2024-01-07  发布在  Jenkins
关注(0)|答案(1)|浏览(256)

我试图在使用swarm客户端的代理中运行管道作业。作业运行正常,但我在日志中收到很多错误消息,如下所示:

  1. Cannot contact tst_db2: java.io.IOException: Remote call on Channel to /XX.XX.XX.XXX failed

字符串

  • (实际IP地址替换为XX)*

在我的观察中,主服务器在等待客户端运行的脚本时抛出了这个错误。同样,管道作业运行得很好,除了我在管道日志中得到了这个错误。
下面是我的pipeline脚本:

  1. pipeline {
  2. agent none
  3. stages {
  4. stage('Recreate DB') {
  5. agent { label 'tst_db2'}
  6. steps {
  7. checkout([$class: 'SubversionSCM',
  8. additionalCredentials: [],
  9. excludedCommitMessages: '',
  10. excludedRegions: '',
  11. excludedRevprop: '',
  12. excludedUsers: '',
  13. filterChangelog: false,
  14. ignoreDirPropChanges: false,
  15. includedRegions: '',
  16. locations: [[credentialsId: 'a84f7197-929a-437e-9aac-ca09fcd4c63a',
  17. depthOption: 'infinity',
  18. ignoreExternalsOption: true,
  19. local: '',
  20. remote: 'svn://XXXXX/XXX/tags/CR/Rebuild_VCRDWD01']],
  21. workspaceUpdater: [$class: 'CheckoutUpdater']])
  22. sh 'Rebuild_VCRDWD01/recreate_db.sh'
  23. }
  24. }
  25. }
  26. }


有没有什么方法可以消除这些错误?

环境

Jenkins版本:2.32.2
在Windows Server 2012 R2上运行
AIX 7.1和JDK 8上的Swarm Client 3.3
也提出了一个Jenkins问题:https://issues.jenkins-ci.org/browse/JENKINS-42428

p8h8hvxi

p8h8hvxi1#

之前提到的罚单中的一位用户报告说,他们能够通过降级“管道:节点和进程”插件在Jenkins到2.8 -可以从here获得。我也可以通过这样做来解决这个问题。不幸的是,我安装的其他一些插件都依赖于2.10版本。我不热衷于backleveling所有这些,所以我想我将不得不忍受这个烦恼,直到有一个官方的修复从插件维护者。希望这将很快。

相关问题