Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46986

No valid crumb was included in the request

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Major
    • Resolution: Not A Defect
    • core
    • jenkins-2.77-1.1.noarch.rpm
      My server is running Red Hat 4.8.5-16
      Linux version kernel 3.10.0-693.2.2.el7.x86_64

    Description

      This was also tried on many other servers running Debian and CentOS, and Amazon AWS free server. The error "No valid crumb was included in the request" gets displayed when trying to configure a new job and specifically when inserting a link of the GIT repository. Sometimes this message gets displayed inside the configuration body of GIT. And sometimes the page goes white and the error displays this. Sometimes it passes the step where you configure your job and when you click Save at the bottom, then it displays the error. Sometimes while installing the basic Jenkins installation with basic packages the error gets displayed. Git repository is a custom GitLab repository. The only time it worked when I installed Jenkins on my Linux laptop and then configured a job and while accessing Jenkins, I had to enter localhost:8080 in my browser to access it locally. When I tried connecting to the Jenkins remotely, through its IP and port, it didn't work. I tried to connect to the server via VirtualNetworkComputing (VNC) like through a remote desktop and also didn't work. I also thought that the SSL needs to be configured on the server's domain to securely access Jenkins, but that didn't work either. The error still gets displayed. I also tried versions 2.60 and 2.7.

      Attachments

        1. err1.PNG
          70 kB
          Emil Kosic
        2. err2.PNG
          82 kB
          Emil Kosic
        3. newError.PNG
          25 kB
          Emil Kosic
        4. Screenshot_20170919_090351.png
          51 kB
          Emil Kosic

        Activity

          emil_kosic Emil Kosic added a comment -

          System Info

          System Properties:

          awt.toolkit	sun.awt.X11.XToolkit
          com.sun.akuma.Daemon	daemonized
          executable-war	/usr/lib/jenkins/jenkins.war
          file.encoding	UTF-8
          file.encoding.pkg	sun.io
          file.separator	/
          java.awt.graphicsenv	sun.awt.X11GraphicsEnvironment
          java.awt.headless	true
          java.awt.printerjob	sun.print.PSPrinterJob
          java.class.path	/usr/lib/jenkins/jenkins.war
          java.class.version	52.0
          java.endorsed.dirs	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/endorsed
          java.ext.dirs	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/ext:/usr/java/packages/lib/ext
          java.home	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre
          java.io.tmpdir	/tmp
          java.library.path	/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
          java.runtime.name	OpenJDK Runtime Environment
          java.runtime.version	1.8.0_144-b01
          java.specification.name	Java Platform API Specification
          java.specification.vendor	Oracle Corporation
          java.specification.version	1.8
          java.vendor	Oracle Corporation
          java.vendor.url	http://java.oracle.com/
          java.vendor.url.bug	http://bugreport.sun.com/bugreport/
          java.version	1.8.0_144
          java.vm.info	mixed mode
          java.vm.name	OpenJDK 64-Bit Server VM
          java.vm.specification.name	Java Virtual Machine Specification
          java.vm.specification.vendor	Oracle Corporation
          java.vm.specification.version	1.8
          java.vm.vendor	Oracle Corporation
          java.vm.version	25.144-b01
          JENKINS_HOME	/var/lib/jenkins
          jna.loaded	true
          jna.platform.library.path	/usr/lib64:/lib64:/usr/lib:/lib:/usr/lib64/dyninst:/usr/lib64/mysql:/usr/lib64/iscsi:/usr/lib64/tcl8.5
          jnidispatch.path	/tmp/jna--1712433994/jna6492196746126342856.tmp
          line.separator	
          mail.smtp.sendpartial	true
          mail.smtps.sendpartial	true
          os.arch	amd64
          os.name	Linux
          os.version	3.10.0-693.2.2.el7.x86_64
          path.separator	:
          sun.arch.data.model	64
          sun.boot.class.path	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/classes
          sun.boot.library.path	/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/amd64
          sun.cpu.endian	little
          sun.cpu.isalist	
          sun.font.fontmanager	sun.awt.X11FontManager
          sun.io.unicode.encoding	UnicodeLittle
          sun.java.command	/usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8009 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
          sun.java.launcher	SUN_STANDARD
          sun.jnu.encoding	UTF-8
          sun.management.compiler	HotSpot 64-Bit Tiered Compilers
          sun.os.patch.level	unknown
          svnkit.http.methods	Digest,Basic,NTLM,Negotiate
          svnkit.ssh2.persistent	false
          user.country	US
          user.dir	/
          user.home	/var/lib/jenkins
          user.language	en
          user.name	jenkins
          user.timezone	UTC
          

          Environment Variables:

          Name  ↓
          Value   
          _	/etc/alternatives/java
          HOME	/var/lib/jenkins
          LANG	en_US.UTF-8
          LOGNAME	jenkins
          NLSPATH	/usr/dt/lib/nls/msg/%L/%N.cat
          PATH	/sbin:/usr/sbin:/bin:/usr/bin
          PWD	/
          SHELL	/bin/bash
          SHLVL	2
          USER	jenkins
          XFILESEARCHPATH	/usr/dt/app-defaults/%L/Dt
          

          Plugins:

          ace-editor	1.1	true
          ant	1.7	true
          antisamy-markup-formatter	1.5	true
          authentication-tokens	1.3	true
          bouncycastle-api	2.16.2	true
          branch-api	2.0.11	true
          build-timeout	1.18	true
          cloudbees-folder	6.1.2	true
          credentials	2.1.16	true
          credentials-binding	1.13	true
          display-url-api	2.0	true
          docker-commons	1.8	true
          docker-workflow	1.13	true
          durable-task	1.14	true
          email-ext	2.60	true
          external-monitor-job	1.7	true
          git	3.5.1	true
          git-client	2.5.0	true
          git-server	1.7	true
          github	1.28.0	true
          github-api	1.86	true
          github-branch-source	2.2.3	true
          gradle	1.27.1	true
          handlebars	1.1.1	true
          icon-shim	2.0.3	true
          jackson2-api	2.7.3	true
          jquery-detached	1.2.1	true
          junit	1.21	true
          ldap	1.17	true
          mailer	1.20	true
          mapdb-api	1.0.9.0	true
          matrix-auth	1.7	true
          matrix-project	1.11	true
          momentjs	1.1.1	true
          pam-auth	1.3	true
          pipeline-build-step	2.5.1	true
          pipeline-github-lib	1.0	true
          pipeline-graph-analysis	1.5	true
          pipeline-input-step	2.8	true
          pipeline-milestone-step	1.3.1	true
          pipeline-model-api	1.1.9	true
          pipeline-model-declarative-agent	1.1.1	true
          pipeline-model-definition	1.1.9	true
          pipeline-model-extensions	1.1.9	true
          pipeline-rest-api	2.9	true
          pipeline-stage-step	2.2	true
          pipeline-stage-tags-metadata	1.1.9	true
          pipeline-stage-view	2.9	true
          plain-credentials	1.4	true
          resource-disposer	0.8	true
          scm-api	2.2.2	true
          script-security	1.34	true
          ssh-credentials	1.13	true
          ssh-slaves	1.21	true
          structs	1.10	true
          subversion	2.9	true
          timestamper	1.8.8	true
          token-macro	2.3	true
          windows-slaves	1.3.1	true
          workflow-aggregator	2.5	true
          workflow-api	2.20	true
          workflow-basic-steps	2.6	true
          workflow-cps	2.40	true
          workflow-cps-global-lib	2.9	true
          workflow-durable-task-step	2.15	true
          workflow-job	2.14.1	true
          workflow-multibranch	2.16	true
          workflow-scm-step	2.6	true
          workflow-step-api	2.13	true
          workflow-support	2.14	true
          ws-cleanup	0.34	true
          
          emil_kosic Emil Kosic added a comment - System Info System Properties: awt.toolkit sun.awt.X11.XToolkit com.sun.akuma.Daemon daemonized executable-war /usr/lib/jenkins/jenkins.war file.encoding UTF-8 file.encoding.pkg sun.io file.separator / java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.print.PSPrinterJob java. class. path /usr/lib/jenkins/jenkins.war java. class. version 52.0 java.endorsed.dirs /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/endorsed java.ext.dirs /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/ext:/usr/java/packages/lib/ext java.home /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre java.io.tmpdir /tmp java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib java.runtime.name OpenJDK Runtime Environment java.runtime.version 1.8.0_144-b01 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.8 java.vendor Oracle Corporation java.vendor.url http: //java.oracle.com/ java.vendor.url.bug http: //bugreport.sun.com/bugreport/ java.version 1.8.0_144 java.vm.info mixed mode java.vm.name OpenJDK 64-Bit Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Oracle Corporation java.vm.specification.version 1.8 java.vm.vendor Oracle Corporation java.vm.version 25.144-b01 JENKINS_HOME / var /lib/jenkins jna.loaded true jna.platform.library.path /usr/lib64:/lib64:/usr/lib:/lib:/usr/lib64/dyninst:/usr/lib64/mysql:/usr/lib64/iscsi:/usr/lib64/tcl8.5 jnidispatch.path /tmp/jna--1712433994/jna6492196746126342856.tmp line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true os.arch amd64 os.name Linux os.version 3.10.0-693.2.2.el7.x86_64 path.separator : sun.arch.data.model 64 sun.boot. class. path /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/classes sun.boot.library.path /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.font.fontmanager sun.awt.X11FontManager sun.io.unicode.encoding UnicodeLittle sun.java.command /usr/lib/jenkins/jenkins.war --logfile=/ var /log/jenkins/jenkins.log --webroot=/ var /cache/jenkins/war --daemon --httpPort=8009 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 sun.java.launcher SUN_STANDARD sun.jnu.encoding UTF-8 sun.management.compiler HotSpot 64-Bit Tiered Compilers sun.os.patch.level unknown svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false user.country US user.dir / user.home / var /lib/jenkins user.language en user.name jenkins user.timezone UTC Environment Variables: Name ↓ Value _ /etc/alternatives/java HOME / var /lib/jenkins LANG en_US.UTF-8 LOGNAME jenkins NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat PATH /sbin:/usr/sbin:/bin:/usr/bin PWD / SHELL /bin/bash SHLVL 2 USER jenkins XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt Plugins: ace-editor 1.1 true ant 1.7 true antisamy-markup-formatter 1.5 true authentication-tokens 1.3 true bouncycastle-api 2.16.2 true branch-api 2.0.11 true build-timeout 1.18 true cloudbees-folder 6.1.2 true credentials 2.1.16 true credentials-binding 1.13 true display-url-api 2.0 true docker-commons 1.8 true docker-workflow 1.13 true durable-task 1.14 true email-ext 2.60 true external-monitor-job 1.7 true git 3.5.1 true git-client 2.5.0 true git-server 1.7 true github 1.28.0 true github-api 1.86 true github-branch-source 2.2.3 true gradle 1.27.1 true handlebars 1.1.1 true icon-shim 2.0.3 true jackson2-api 2.7.3 true jquery-detached 1.2.1 true junit 1.21 true ldap 1.17 true mailer 1.20 true mapdb-api 1.0.9.0 true matrix-auth 1.7 true matrix-project 1.11 true momentjs 1.1.1 true pam-auth 1.3 true pipeline-build-step 2.5.1 true pipeline-github-lib 1.0 true pipeline-graph-analysis 1.5 true pipeline-input-step 2.8 true pipeline-milestone-step 1.3.1 true pipeline-model-api 1.1.9 true pipeline-model-declarative-agent 1.1.1 true pipeline-model-definition 1.1.9 true pipeline-model-extensions 1.1.9 true pipeline- rest -api 2.9 true pipeline-stage-step 2.2 true pipeline-stage-tags-metadata 1.1.9 true pipeline-stage-view 2.9 true plain-credentials 1.4 true resource-disposer 0.8 true scm-api 2.2.2 true script-security 1.34 true ssh-credentials 1.13 true ssh-slaves 1.21 true structs 1.10 true subversion 2.9 true timestamper 1.8.8 true token-macro 2.3 true windows-slaves 1.3.1 true workflow-aggregator 2.5 true workflow-api 2.20 true workflow-basic-steps 2.6 true workflow-cps 2.40 true workflow-cps-global-lib 2.9 true workflow-durable-task-step 2.15 true workflow-job 2.14.1 true workflow-multibranch 2.16 true workflow-scm-step 2.6 true workflow-step-api 2.13 true workflow-support 2.14 true ws-cleanup 0.34 true
          danielbeck Daniel Beck added a comment -

          I had such a nice theory but not confirmed

          Do you have a reverse proxy in front of Jenkins? If so, did you check the 'reverse proxy compatibility' option in the global security configuration?

          Do you have init.groovy / init.groovy.d scripts configuring Jenkins on startup?

          danielbeck Daniel Beck added a comment - I had such a nice theory but not confirmed Do you have a reverse proxy in front of Jenkins? If so, did you check the 'reverse proxy compatibility' option in the global security configuration? Do you have init.groovy / init.groovy.d scripts configuring Jenkins on startup?
          emil_kosic Emil Kosic added a comment -

          The reverse proxy compatibility fixed it!

           

          I have not done the init.groovy script, are these necessary for Jenkins to work correctly as well?

           

           

          emil_kosic Emil Kosic added a comment - The reverse proxy compatibility fixed it!   I have not done the init.groovy script, are these necessary for Jenkins to work correctly as well?    
          danielbeck Daniel Beck added a comment -

          are these necessary for Jenkins to work correctly as well

          No, it's just a way to define configuration on startup, often similar to system properties, that would not show up in /systemInfo.

          danielbeck Daniel Beck added a comment - are these necessary for Jenkins to work correctly as well No, it's just a way to define configuration on startup, often similar to system properties, that would not show up in /systemInfo .
          danielbeck Daniel Beck added a comment -

          Configuration issue.

          danielbeck Daniel Beck added a comment - Configuration issue.

          People

            danielbeck Daniel Beck
            emil_kosic Emil Kosic
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: