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

SonarQube Scanner 2.7 blocks Jenkins start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: sonar-plugin
    • Environment:
      OS: Ubuntu 16.04 LTS. (4.4.0-116-generic #140-Ubuntu)
      JRE/JDK: 1.8.0_131
      Jenkins Master: 2.114
      Web Browser: Chrome 65.0.3325.181
      Jenkins Installation: sudo apt install jenkins
      SonarQube Scanner: upgrade from 2.6.1 -> 2.7
    • Similar Issues:
    • Released As:
      2.7.1

      Description

      SonarQube Scanner plugin location: https://plugins.jenkins.io/sonar.

       
      The Jenkins shows:

      Please Wait while Jenkins is getting ready to work.... But it will not getting to work no matter how long you are waiting for.

       

      The /var/log/jenkins/jenkins.log has been attached: jenkins.log

       

      Jenkins service cannot be stopped correctly also. And if restart Jenkins services after stopped. there's multi-services will exists!!!!

       

      $ sudo /etc/init.d/jenkins stop
      Correct java version found
      [ ok ] Stopping jenkins (via systemctl): jenkins.service.
      
      jenkins@Jenkins:~$ ps aux | grep jenkins
      jenkins 1455 0.0 0.0 18848 188 ? S 17:50 0:00 /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/home/jenkins/jenkins_master --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid – /usr/bin/java -Djava.awt.headless=true -Xms512m -Xmx10240m -XX:PermSize=512m -XX:MaxPermSize=10240m -Dhttp.nonProxyHosts=blackduck.mycompany.com -Dhttps.nonProxyHosts=blackduck.mycompany.com -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf-8 -Djavax.net.ssl.keyStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Dhudson.footerURL=http://www.myjenkins.com -Dhudson.model.DirectoryBrowserSupport.CSP=sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; -Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -Dhudson.model.ParametersAction.keepUndefinedParameters=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
      jenkins 1456 40.3 4.9 16679712 1629084 ? Sl 17:50 3:11 /usr/bin/java -Djava.awt.headless=true -Xms512m -Xmx10240m -XX:PermSize=512m -XX:MaxPermSize=10240m -Dhttp.nonProxyHosts=blackduck.mycompany.com -Dhttps.nonProxyHosts=blackduck.mycompany.com -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf-8 -Djavax.net.ssl.keyStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Dhudson.footerURL=http://www.myjenkins.com -Dhudson.model.DirectoryBrowserSupport.CSP=sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; -Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -Dhudson.model.ParametersAction.keepUndefinedParameters=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 
      
      
      $ sudo /etc/init.d/jenkins start
      Correct java version found
      [ ok ] Starting jenkins (via systemctl): jenkins.service.
      
      $ ps aux | grep jenkins\.war | grep -v grep
      jenkins 1983 0.0 0.0 18848 184 ? S 18:03 0:00 /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/home/jenkins/jenkins_master --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid – /usr/bin/java -Djava.awt.headless=true -Xms512m -Xmx10240m -XX:PermSize=512m -XX:MaxPermSize=10240m -Dhttp.nonProxyHosts=blackduck.mycompany.com -Dhttps.nonProxyHosts=blackduck.mycompany.com -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf-8 -Djavax.net.ssl.keyStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Dhudson.footerURL=http://www.myjenkins.com -Dhudson.model.DirectoryBrowserSupport.CSP=sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; -Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -Dhudson.model.ParametersAction.keepUndefinedParameters=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
      jenkins 1984 59.7 6.9 16681768 2276588 ? Sl 18:03 2:56 /usr/bin/java -Djava.awt.headless=true -Xms512m -Xmx10240m -XX:PermSize=512m -XX:MaxPermSize=10240m -Dhttp.nonProxyHosts=blackduck.mycompany.com -Dhttps.nonProxyHosts=blackduck.mycompany.com -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf-8 -Djavax.net.ssl.keyStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Dhudson.footerURL=http://www.myjenkins.com -Dhudson.model.DirectoryBrowserSupport.CSP=sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; -Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -Dhudson.model.ParametersAction.keepUndefinedParameters=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
      jenkins 2489 0.0 0.0 18848 184 ? S 18:08 0:00 /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/home/jenkins/jenkins_master --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid – /usr/bin/java -Djava.awt.headless=true -Xms512m -Xmx10240m -XX:PermSize=512m -XX:MaxPermSize=10240m -Dhttp.nonProxyHosts=blackduck.mycompany.com -Dhttps.nonProxyHosts=blackduck.mycompany.com -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf-8 -Djavax.net.ssl.keyStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Dhudson.footerURL=http://www.myjenkins.com -Dhudson.model.DirectoryBrowserSupport.CSP=sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; -Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -Dhudson.model.ParametersAction.keepUndefinedParameters=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
      jenkins 2490 185 2.8 16470744 931732 ? Sl 18:08 0:50 /usr/bin/java -Djava.awt.headless=true -Xms512m -Xmx10240m -XX:PermSize=512m -XX:MaxPermSize=10240m -Dhttp.nonProxyHosts=blackduck.mycompany.com -Dhttps.nonProxyHosts=blackduck.mycompany.com -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=utf-8 -Djavax.net.ssl.keyStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/opt/java/jdk1.8.0_131/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Dhudson.footerURL=http://www.myjenkins.com -Dhudson.model.DirectoryBrowserSupport.CSP=sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; -Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -Dhudson.model.ParametersAction.keepUndefinedParameters=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 
      

       

       

       

        Attachments

        1. jenkins.log
          46 kB
          Marslo Jiao
        2. Screen Shot 2018-04-10 at 17.47.30.png
          53 kB
          Marslo Jiao

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Would it be possible to get a threaddump from the instance?

          Show
          oleg_nenashev Oleg Nenashev added a comment - Would it be possible to get a threaddump from the instance?
          Hide
          tbastress todd bastress added a comment -

          JENKINS 50663 - The fix might be in 2.7.1

          Show
          tbastress todd bastress added a comment - JENKINS 50663 - The fix might be in 2.7.1
          Hide
          marslo Marslo Jiao added a comment -

          This issue has been fixed in sonar plugin 2.7.1. Please mark the issue to resolved.\

          Thanks.

          Show
          marslo Marslo Jiao added a comment - This issue has been fixed in sonar plugin 2.7.1. Please mark the issue to resolved.\ Thanks.

            People

            Assignee:
            sonarteam Sonar Team
            Reporter:
            marslo Marslo Jiao
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: