gpt4 book ai didi

jenkins - launcher.gcr.io/google/jenkins2不会绘制图表

转载 作者:行者123 更新时间:2023-12-02 12:07:12 26 4
gpt4 key购买 nike

我正在使用launcher.gcr.io/google/jenkins2在gcp kubernetes引擎中运行jenkins。

一切似乎都正常,除了 Jenkins 尝试绘制的每个图表都出现Could not initialize class org.jfree.chart.JFreeChart错误。我搜索了这个错误,几乎每个人都通过添加-Djava.awt.headless=true解决了该错误。如您所知,我已经尝试过了,但它不起作用。

有想法吗?

最佳答案

JENKINS issue 39636中可以看到另一种可能的解决方案/解决方法:

I installed libxext6 libxrender1 fontconfig libfontconfig but it didn't help. After that I also installed libjfreechart-java but I still have the same problem.

Commenting out the assistive_technologies line in /etc/java-8-openjdk/accessibility.properties solved it.


您可以在 tianoncomment of that answer中看到该建议:

In my case it ended up being bugs.debian.org/798794 (from "Assistive technology not found error while building aprof-plot").
Adding "RUN sed -i 's/^assistive_technologies=/#&/' /etc/java-8-openjdk/accessibility.properties" to my Dockerfile fixed it. :)

关于jenkins - launcher.gcr.io/google/jenkins2不会绘制图表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50663207/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com