创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G

Kubernetes版本信息
kubectl version 命令执行结果贴在下方

容器运行时
docker version / crictl version / nerdctl version 结果贴在下方

KubeSphere版本信息
v3.1。在线安装。

DevOps流水线无法运行,当点击运行时报错:
<html> <head> <meta http-equiv=“Content-Type” content=“text/html;charset=utf-8”/> <title>Error 403 No valid crumb was included in the request</title> </head> <body><h2>HTTP ERROR 403 No valid crumb was included in the request</h2> <table> <tr><th>URI:</th><td>/blue/rest/organizations/jenkins/pipelines/dev-diatk6j7/pipelines/dia-web-common-new/branches/feature%2Fv3.0.0/runs/</td></tr> <tr><th>STATUS:</th><td>403</td></tr> <tr><th>MESSAGE:</th><td>No valid crumb was included in the request</td></tr> <tr><th>SERVLET:</th><td>Stapler</td></tr> </table> <hr><a href=“https://eclipse.org/jetty">Powered by Jetty:// 9.4.43.v20210629</a><hr/> </body> </html

补充一下,我直接获取jenkins地址{K8sNodeIP😛ORT}后登陆运行流水线是正常的。登陆jenkins后发现“系统管理”模块提示“反向代理设置有误”,我怀疑是这个原因,如

jenkins容器日志如下:

kubectl log -f ks-jenkins-6ff9795cb7-bmkx7 –namespace kubesphere-devops-system

2022-01-15 07:49:45.826+0000 [id=122] WARNING hudson.security.csrf.CrumbFilter#doFilter: Found invalid crumb 98f0d947544625fd54488fe36ebda20c411cfc637ca7a37e3f7801c2eb59db42. 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

2022-01-15 07:49:45.828+0000 [id=122] WARNING hudson.security.csrf.CrumbFilter#doFilter: No valid crumb was included in request for /blue/rest/organizations/jenkins/pipelines/dev-diatk6j7/pipelines/dia-customers-new/branches/develop%2Fv3.0.0/runs/ by kunzhang. Returning 403.

2022-01-15 07:49:52.904+0000 [id=14] INFO o.s.s.l.DefaultSpringSecurityContextSource#<init>: URL ‘ldap://openldap.kubesphere-system.svc:389/dc=kubesphere,dc=io’, root DN is ‘dc=kubesphere,dc=io’

2022-01-15 07:49:54.247+0000 [id=14] INFO o.c.j.p.k.KubernetesClientProvider$SaveableListenerImpl#onChange: Invalidating Kubernetes client: kubernetes null

2022-01-15 07:49:54.711+0000 [id=81] INFO o.j.p.s.StrictCrumbIssuer#validateCrumb: Invalid crumb found in the request

2022-01-15 07:49:54.711+0000 [id=81] WARNING hudson.security.csrf.CrumbFilter#doFilter: Found invalid crumb 1714d590d82cfc8d3fd7b571818fa09ccfb3c6b5cf69fe48ea2c036bb4a407f5. 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

2022-01-15 07:49:54.712+0000 [id=81] WARNING hudson.security.csrf.CrumbFilter#doFilter: No valid crumb was included in request for /configureSecurity/configure by kunzhang. Returning 403.

2022-01-15 07:50:31.267+0000 [id=89] INFO o.j.p.s.StrictCrumbIssuer#validateCrumb: Invalid crumb found in the request

2022-01-15 07:50:31.268+0000 [id=89] WARNING hudson.security.csrf.CrumbFilter#doFilter: Found invalid crumb 98f0d947544625fd54488fe36ebda20c411cfc637ca7a37e3f7801c2eb59db42. 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

2022-01-15 07:50:31.268+0000 [id=89] WARNING hudson.security.csrf.CrumbFilter#doFilter: No valid crumb was included in request for /blue/rest/organizations/jenkins/pipelines/dev-diatk6j7/pipelines/dia-customers-new/branches/develop%2Fv3.0.0/runs/ by kunzhang. Returning 403.