我刚刚在google上安装了Jenkins,并将nginx配置为8080。我可以输入初始管理密码,然后进入屏幕,我可以选择插件。当我单击“安装建议插件”时,会出现一个错误:
No valid crumb was included in this request
我用命令启动Jenkins:
java -Dhudson.security.csrf.requestfield=Jenkins-Crumb -jar jenkins.war
斯多特说:
INFO: Session node016ikde2z4paqem02o7wos0rgd1 already being invalidated
Nov
我在互联网上尝试了许多解决方案,但仍然无法解决这个问题。在jenkins Global security中,我勾选了使用启用代理兼容性防止跨站点请求伪造漏洞。我也尝试了没有防止跨站点请求伪造漏洞,它导致创建碎屑。我的jenkins URL也是正确的。 我的post-receive文件如下 #!/bin/bash
# Get branch name from ref head
if ! [ -t 0 ]; then
read -a ref
fi
IFS='/' read -ra REF <<< "${ref[2]}"
branch=
我正在开发一个Jenkins插件,它使用一个页面上的HTML表单,该页面是使用生成的。升级到新版本Jenkins后,此表单中的帖子停止工作,给出以下Jenkins的403错误:
HTTP ERROR 403 No valid crumb was included in the request
URI: /job/Watchr_Sandbox/performanceReports/
STATUS: 403
MESSAGE: No valid crumb was included in the request
SERVLET: Stapler
我已经对最近的做了大量的研究,这似乎
我正在设置我的Jenkins服务器,对于web界面中的简单请求,如创建文件夹、管道、作业等,我会定期收到以下错误:
HTTP ERROR 403
Problem accessing /job/Mgmt/createItem. Reason:
No valid crumb was included in the request
服务器正在使用Jenkins/Jenkins容器,该容器由Kubernetes在使用kops创建的AWS上的集群上编排。它位于ELB类的后面。
为什么我可能会遇到这种情况?我以为crumb是用来对付特定的CSRF请求的,但我所做的只是使用Jenkins web接
我将crumb CSRF保护支持作为我为与Jenkins RESTful API ()交互而编写的Golang代码的一部分。
结构:
type Crumb struct {
Crumb string `json:"crumb"`
CrumbRequestField string `json:"crumbRequestField"`
}
代码
...
crb := Crumb{}
// did some work to jsonify the crumb to Golang struct
当非Jenkins用户尝试访问URI时,浏览器中会显示以下错误:
HTTP ERROR 403 No valid crumb was included in the request
URI: /contextMenu
STATUS: 403
MESSAGE: HTTP ERROR 403 No valid crumb was included in the request
SERVLET: Stapler
========================================
Powered by Jetty
====================================
我在Debian buster上运行Jenkins将近两年,我使用LDAP/Active进行身份验证。
几天前,Jenkins收到了一些通知,说Jenkins有一个新版本可用,应该升级一些插件,包括Active Directory插件。我开始安装插件,等待一切稳定,然后运行:
sudo apt update
sudo apt upgrade
sudo systemctl restart jenkins
现在,当我尝试登录到jenkins时,我得到:
HTTP ERROR 403 No valid crumb was included in the request
即使我手动尝试:
$ cu
当我想连接到jenkins (活动目录插件)时,我在windows上有这条消息。
我刚从Jenkins 2.263.4更新到2.277.4。jenkins服务器运行在同一台机器上,运行在windows上。它是启动和更新使用jenkins.war文件。
我可以输入我的登录名和密码,但之后我会收到以下错误消息:
HTTP ERROR 403 No valid crumb was included in the request
URI: /j_spring_security_check
STATUS: 403
MESSAGE: No valid crumb was included in
根据,我必须使用下面的方法来发布一个触发器来构建。
#!/bin/bash
# The first argument is the change number
CHANGE=$1
# POST the payload
curl --header 'Content-Type: application/json' \
--request POST \
--data "{\"change\":$CHANGE, \"p4port\":\"localhost:1666\"}" \
http
我有一个TFS构建,它使用到Jenkins的服务连接,其中包含用户名和密码(当我从TFS测试它时,这个连接似乎是工作的)。构建本身使用"Jenkins队列作业“任务,在该任务中,我提供作业名称和它可能需要的任何参数。直到最近,詹金斯才回来,这一切都很顺利:
Error 403 No valid crumb was included in the request</title>\n</head>\n<body><h2>HTTP ERROR 403 No valid crumb was included in the request
看起来这
我正在使用Ansible检查几个jenkins服务器的状态。我创建的剧本检查了磁盘空间、正常运行时间和jenkins版本。但是,我尝试添加一个任务,通过使用jenkins_Script模块打印出每个服务器安装的jenkins插件列表,并不断收到'403‘错误消息。
剧本:
- name: Obtaining a list of Jenkins Plugins
jenkins_script:
script: 'println(Jenkins.instance.pluginManager.plugins)'
url: 'http://
我将Jenkins更新为2.289.2版本,并重新启动了一个应用程序。它正确地启动,我能够到达仪表板页面。然而,当我试图登录时,我收到了以下消息:
HTTP ERROR 403 No valid crumb was included in the request
URI: /j_spring_security_check
STATUS: 403
MESSAGE: No valid crumb was included in the request
SERVLET: Stapler
我该怎么修理它??
我最近升级到Jenkins 2.192,我的应用程序开始失败,出现了以下错误:
HTTP Error 403: No valid crumb was included in the request
Reason: No valid crumb was included in the request
我看不出在降到詹金斯2.189之后会有什么问题。我看不出詹金斯2.189,2.190,2.191有什么问题。我遇到了詹金斯2.192的问题(也看到了2.196)。
在2.191到2.192年间发生了一些变化,导致了我观察到的失败。
更新:
我成功地从curl发送了一个帖子请求来触发jenkins的作业:
curl -I -X POST http://jenkinsAccountUserName:jenkinsAccountPassword@JenkinsIp:8080/job/projecty_ci/build -H "Jenkins-Crumb:a4fb99fbdb252fda3cc69ee575bedabc"
我不明白如何将其转换为url:Problem accessing /job/projecty_ci/build. Reason: No valid crumb was included in t
curl -X POST http://xxx.yyy.zzz:5555/job/job-name/build --user john-devops-jenkins:11df3ed41129c5c7da1518e9c3149896de -H 'Jenkins-Crumb:31827a74a160347a641c87ddbc8e3b6e'
上面带有post请求的curl代码在触发Jenkins构建时非常好。
试过:
错误:No valid crumb was included in the request
没有运气,如何配置bitbucket钩子容器头信息的面