版本:Jenkins 2.347
现象:
一直平稳运行,之前升级过一次版本之后,再未升级过版本。偶有崩溃,但主要是内存问题导致。直到今天,跑流水线,前端项目打包过程中jenkins崩溃(jenkins100%挂掉),查看jenkins日志:
2023-10-26 02:08:47.802+0000 [id=347] WARNING hudson.security.csrf.CrumbFilter#doFilter: Found invalid crumb ****. If you are calling this URL with a script, please use the API Token instead. More information: https://www.jenkins.io/redirect/crumb-cannot-be-used-for-script
2023-10-26 02:08:47.803+0000 [id=347] WARNING hudson.security.csrf.CrumbFilter#doFilter: No valid crumb was included in request for /ajaxBuildQueue by admin. Returning 403.
处理1:
Strict Crumb Issuer
最新的插件跟当前jenkins版本不匹配,当前jenkins版本不适合升级,未解决
6.18补充:
https://plugins.jenkins.io/strict-crumb-issuer/releases/
之前没发现在插件中心可以手动下载历史版本,然后再插件中心-高级中手动安装,然后重启
重启后在全局安全配置中进行相应配置 注意去掉验证sessionId
处理2:
修改配置
jenkins安装目录下config.xml找到如下配置,设置值为true
true
参考i:https://www.cnblogs.com/guohong-hu/p/14519220.html