简体   繁体   English

Why ist Jenkins job-dsl plugin failing with ERROR: java.io.IOException: Failed to persist config.xml

[英]Why ist Jenkins job-dsl plugin failing with ERROR: java.io.IOException: Failed to persist config.xml

I have a Jenkins Job DSL job that worked well until about january (it is not used that often).我有一个 Jenkins Job DSL 工作一直到 1 月左右都运行良好(它不经常使用)。 Last week, the job failed with the error message ERROR: java.io.IOException: Failed to persist config.xml (no Stack trace, just that message).上周,作业失败并显示错误消息ERROR: java.io.IOException: Failed to persist config.xml (没有堆栈跟踪,只是该消息)。 There were no changes to the job since the last successful execution in january.自 1 月份最后一次成功执行以来,该作业没有任何变化。

[...]
13:06:22 Processing provided DSL script
13:06:22 New run name is '#15 (Branch_B20_2_x)'
13:06:22 ERROR: java.io.IOException: Failed to persist config.xml
13:06:22 [WS-CLEANUP] Deleting project workspace...
13:06:22 [WS-CLEANUP] Deferred wipeout is used...
13:06:22 [WS-CLEANUP] done
13:06:22 Finished: FAILURE

I thougt that between january and noew, maybe some plugin was updated and the DSL script is now wrong, so I changed my DSL script to the most easy one I could imagine (example from job-dsl plugin page):我认为在 1 月和 2 月之间,也许某些插件已更新并且 DSL 脚本现在错误,所以我将 DSL 脚本更改为我能想象的最简单的脚本(来自 job-dsl 插件页面的示例):

job('example') {
  steps {
    shell('echo Hello World!')
  }
}

But the job still fails with the exact same error.但这项工作仍然失败,并出现完全相同的错误。 I checked the jenkins logs but nothing to see.我检查了 jenkins 日志,但没什么可看的。 I am running jenkins in a docker swarm container and each job is executed in an own build agent conatiner using docker-swarm-plugin (no changes to that either, worked in january).我在 docker 集群容器中运行 jenkins,每个作业都使用 docker-swarm-plugin 在自己的构建代理容器中执行(也没有更改,在一月份工作)。 The docker deamon logs also show no errors. docker 守护程序日志也显示没有错误。

The filesystem for the workspace of jenkins also is not full and the user in the build agent container has write access to taht file system. jenkins 工作区的文件系统也未满,并且构建代理容器中的用户对 taht 文件系统具有写入权限。 It even does not work, when I mount an empty tmpfs to the workspace.当我将空的 tmpfs 安装到工作区时,它甚至不起作用。

Does anyone have an idea what goes wrong or at least a hint where to continue searching for that error?有谁知道出了什么问题,或者至少提示在哪里继续搜索该错误?

  • Jenkins version: 2.281 Jenkins 版本:2.281
  • job-dsl plugin version: 1.77 job-dsl 插件版本:1.77
  • Docker version: 20.10.4 Docker 版本:20.10.4

Problem was solved by updating jenkins to 2.289通过将 jenkins 更新为 2.289 解决了问题

Seems like there war some problem with the combination of the versions before.似乎之前的版本组合存在一些问题。 I will keep you updated if some of the next updates chnages anything.如果接下来的一些更新有任何变化,我会及时通知您。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:java.io.IOException:无法在 jenkins 中的 Z05EAF6053C45A8BDA21 中动态部署此插件 - Error: java.io.IOException: Failed to dynamically deploy this plugin, on jenkins in docker Jenkins pipeline docker agent - docker run error - Failed to run image - java.io.IOException - Jenkins pipeline docker agent - docker run error - Failed to run image - java.io.IOException Shinyproxy 错误 500:无法启动容器/导致:java.io.IOException:权限被拒绝 - Shinyproxy error 500 : Failed to start container / Caused by: java.io.IOException: Permission denied 如何获取 jenkins 管道作业的 config.xml - How to get config.xml for jenkins pipeline job Cassandra 错误:java.io.IOException:无法连接到 /127.0.0.1:7000 以获取流数据 - Cassandra ERROR: java.io.IOException: failed to connect to /127.0.0.1:7000 for streaming data ElasticSearch java.io.IOException:无法在 docker 中读取... - ElasticSearch java.io.IOException: failed to read ... in docker Java.io.IOException:错误= 2,在Java中执行curl时没有此类文件或目录 - Java.io.IOException: error=2, No such file or directory on executing curl in java java.io.IOException:Len 错误。 来自 /172.19.0.1:36208 且广告长度为 1195725856 的消息是格式错误的 - java.io.IOException: Len error. A message from /172.19.0.1:36208 with advertised length of 1195725856 is either a malformed 运行R scraper脚本时遇到java.io.IOException错误 - Getting java.io.IOException errors running an R scraper script java.io.IOException: parseAlgParameters failed: PBE AlgorithmParameters 不可用,当 docker 容器尝试访问 rabbitmq TLS 端口时引起 - java.io.IOException: parseAlgParameters failed: PBE AlgorithmParameters not available, caused when docker container tries to access rabbitmq TLS port
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM