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

Jenkins Telemetry initializer runs too early in the initialization cycle

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:
    • Released As:
      Jenkins 2.237

      Description

      See https://github.com/jenkinsci/jenkinsfile-runner/issues/193 . "jenkins.telemetry.impl.UserLanguages" needs to be fixed to start later when Jenkins is properly initialized.

      $ java -jar /c/Users/Oleg/Documents/jenkins/jfr/jenkinsfile-runner/app/target/jenkinsfile-runner-standalone.jar --plugins ../../vanilla-package/target/plugins/ --jenkins-war ../../vanilla-package/target/war/ --runWorkspace work -f . 2019-10-09 14:59:24.300+0000 [id=32] WARNING hudson.util.PluginServletFilter#addFilter: Filter instance is registered too early: jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter@2a java.lang.Exception at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:108) at jenkins.telemetry.impl.UserLanguages.setUpFilter(UserLanguages.java:102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1095) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2019-10-09 15:00:14.564+0000 [id=1] WARNING j.branch.WorkspaceLocatorImpl#getWorkspaceRoot: JENKINS-2111 path sanitization ineffective when using legacy Workspace Root Directory ‘/c/Users/Oleg/Documents/jenkins/jfr/jenkinsfile-runner/demo/declarative-pipeline/work’; switch to ‘${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}’ as in JENKINS-8446 / JENKINS-21942
      

        Attachments

          Activity

          Hide
          freddy Freddy AN added a comment - - edited

          WARNING:
          20-Mar-2020 14:12:02.085 INFO [pool-6-thread-3] jenkins.InitReactorRunner$1.onAttained Started initialization
          20-Mar-2020 14:12:02.094 WARNING [UserLanguages.setUpFilter] hudson.util.PluginServletFilter.addFilter Filter instance is registered too early: jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter@2a
          java.lang.Exception
          at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:108)
          at jenkins.telemetry.impl.UserLanguages.setUpFilter(UserLanguages.java:102)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
          at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          at jenkins.model.Jenkins$5.runTask(Jenkins.java:1122)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          20-Mar-2020 14:12:02.145 INFO [pool-6-thread-2] jenkins.InitReactorRunner$1.onAttained Listed all plugins
          20-Mar-2020 14:12:03.791 INFO [pool-6-thread-1] jenkins.InitReactorRunner$1.onAttained Prepared all plugins
          20-Mar-2020 14:12:03.801 INFO [pool-6-thread-1] jenkins.InitReactorRunner$1.onAttained Started all plugins
          20-Mar-2020 14:12:03.831 INFO [pool-6-thread-2] jenkins.InitReactorRunner$1.onAttained Augmented all extensions
          20-Mar-2020 14:12:03.845 WARNING [ResourceDomainFilter.init] hudson.util.PluginServletFilter.addFilter Filter instance is registered too early: jenkins.security.ResourceDomainFilter@389c25af
          java.lang.Exception
          at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:108)
          at jenkins.security.ResourceDomainFilter.init(ResourceDomainFilter.java:57)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
          at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          at jenkins.model.Jenkins$5.runTask(Jenkins.java:1122)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
           

          INSTALL ENV
          [root@jenkins bin]# hostnamectl
          Static hostname: localhost.localdomain
          Transient hostname: jenkins
          Icon name: computer-vm
          Chassis: vm
          Machine ID: f4f19ddef3584e6691a83b8f5f5c3de3
          Boot ID: d8e5e1006bb44dc5aaa357d5ad30a9d3
          Virtualization: vmware
          Operating System: CentOS Linux 7 (Core)
          CPE OS Name: cpe:/o:centos:centos:7
          Kernel: Linux 3.10.0-327.10.1.el7.x86_64
          Architecture: x86-64

          [root@jenkins bin]# java -version
          java version "1.8.0_241"
          Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
          Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

          [root@jenkins bin]# ./version.sh
          Using CATALINA_BASE: /usr/local/apache-tomcat-8.5.51
          Using CATALINA_HOME: /usr/local/apache-tomcat-8.5.51
          Using CATALINA_TMPDIR: /usr/local/apache-tomcat-8.5.51/temp
          Using JRE_HOME: /usr/local/jdk8/jre
          Using CLASSPATH: /usr/local/apache-tomcat-8.5.51/bin/bootstrap.jar:/usr/local/apache-tomcat-8.5.51/bin/tomcat-juli.jar
          Server version: Apache Tomcat/8.5.51
          Server built: Feb 5 2020 22:26:25 UTC
          Server number: 8.5.51.0
          OS Name: Linux
          OS Version: 3.10.0-327.10.1.el7.x86_64
          Architecture: amd64
          JVM Version: 1.8.0_241-b07
          JVM Vendor: Oracle Corporation

          war-stable
          Jenkins 2.204.5

          How to solve it?

           

          Show
          freddy Freddy AN added a comment - - edited WARNING : 20-Mar-2020 14:12:02.085 INFO [pool-6-thread-3] jenkins.InitReactorRunner$1.onAttained Started initialization 20-Mar-2020 14:12:02.094 WARNING [UserLanguages.setUpFilter] hudson.util.PluginServletFilter.addFilter Filter instance is registered too early: jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter@2a java.lang.Exception at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:108) at jenkins.telemetry.impl.UserLanguages.setUpFilter(UserLanguages.java:102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1122) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 20-Mar-2020 14:12:02.145 INFO [pool-6-thread-2] jenkins.InitReactorRunner$1.onAttained Listed all plugins 20-Mar-2020 14:12:03.791 INFO [pool-6-thread-1] jenkins.InitReactorRunner$1.onAttained Prepared all plugins 20-Mar-2020 14:12:03.801 INFO [pool-6-thread-1] jenkins.InitReactorRunner$1.onAttained Started all plugins 20-Mar-2020 14:12:03.831 INFO [pool-6-thread-2] jenkins.InitReactorRunner$1.onAttained Augmented all extensions 20-Mar-2020 14:12:03.845 WARNING [ResourceDomainFilter.init] hudson.util.PluginServletFilter.addFilter Filter instance is registered too early: jenkins.security.ResourceDomainFilter@389c25af java.lang.Exception at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:108) at jenkins.security.ResourceDomainFilter.init(ResourceDomainFilter.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1122) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)   INSTALL ENV : [root@jenkins bin] # hostnamectl Static hostname: localhost.localdomain Transient hostname: jenkins Icon name: computer-vm Chassis: vm Machine ID: f4f19ddef3584e6691a83b8f5f5c3de3 Boot ID: d8e5e1006bb44dc5aaa357d5ad30a9d3 Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-327.10.1.el7.x86_64 Architecture: x86-64 [root@jenkins bin] # java -version java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode) [root@jenkins bin] # ./version.sh Using CATALINA_BASE: /usr/local/apache-tomcat-8.5.51 Using CATALINA_HOME: /usr/local/apache-tomcat-8.5.51 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-8.5.51/temp Using JRE_HOME: /usr/local/jdk8/jre Using CLASSPATH: /usr/local/apache-tomcat-8.5.51/bin/bootstrap.jar:/usr/local/apache-tomcat-8.5.51/bin/tomcat-juli.jar Server version: Apache Tomcat/8.5.51 Server built: Feb 5 2020 22:26:25 UTC Server number: 8.5.51.0 OS Name: Linux OS Version: 3.10.0-327.10.1.el7.x86_64 Architecture: amd64 JVM Version: 1.8.0_241-b07 JVM Vendor: Oracle Corporation war-stable Jenkins 2.204.5 ​ How to solve it?  
          Hide
          oleg_nenashev Oleg Nenashev added a comment -
          Show
          oleg_nenashev Oleg Nenashev added a comment - Pull request with a fix:  https://github.com/jenkinsci/jenkins/pull/4711
          Hide
          danielbeck Daniel Beck added a comment -

          Why is this an LTS candidate Oleg Nenashev? Given https://github.com/jenkinsci/jenkins/pull/4711#issuecomment-629389758 remains unanswered I don't see the point.

          Show
          danielbeck Daniel Beck added a comment - Why is this an LTS candidate Oleg Nenashev ? Given https://github.com/jenkinsci/jenkins/pull/4711#issuecomment-629389758 remains unanswered I don't see the point.

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: