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

Starting Jenkins with defined --webroot or JETTY_HOME not working.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Critical
    • Resolution: Duplicate
    • core
    • None
    • - 8Gb RAM
      - 8 CPUs
      - 300Gb disk
      - Ubuntu 12.04
      Jenkins installed via 'apt-get install -y jenkins'

    Description

      For our environment it is required to load webapp into /var/cache/jenkins.
      With previous version (1.509.3) setting /etc/default/jenkins with:
      JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"

      has always loaded webroot/webapp to this location.
      Installing the latest jenkins with 'apt-get install -y jenkins' using our existing /etc/default/jenkins file not passing the --webroot parameter/location. Starting Jenkins with /etc/init.d/jenkins start

      Jenkins:IIRC suggestions to use (command-line or /etc/default/jenkins):
      $ export JETTY_HOME=/var/cache/jenkins/war
      $ export JENKINS_HOME=/home/username/jenkins
      $ /usr/bin/java -Xmx512m -jar /usr/share/jenkins/jenkins-1.540.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1

      However, it still continuously loads into: /tmp/jetty-0.0.0.0-8080-jenkins-1.540.war-any/webapp

      /var/log/jenkins/jenkins.log:
      INFO: Extract jar:file:/usr/share/jenkins/jenkins-1.540.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins-1.540.war-any/webapp

      Using previous 1.509.3 jenkins.war (and prior) versions does not have this behavior.

      Is this change by design?
      Can you please provide a workaround so we can specify --webroot or jetty_home, etc.?

      Attachments

        Issue Links

          Activity

            gmarquez GMarquez created issue -
            gmarquez GMarquez made changes -
            Field Original Value New Value
            Description For our environment it is required to load webapp into /var/cache/jenkins.
            With previous version (1.509.3) setting /etc/default/jenkins with:
            JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"

            has always loaded webroot/webapp to this location.
            Installing the latest jenkins with 'apt-get install -y jenkins' using our existing /etc/default/jenkins file not passing the --webroot parameter/location. Starting Jenkins with /etc/init.d/jenkins start

            Jenkins:IIRC suggestions to use (command-line or /etc/default/jenkins):
              $ export JETTY_HOME=/var/cache/jenkins/war
              $ export JENKINS_HOME=/home/username/jenkins
              $ /usr/bin/java -Xmx512m -jar /usr/share/jenkins/jenkins-1.540.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1

            However, it still continuously loads into: /tmp/jetty-0.0.0.0-8080-jenkins-1.540.2.war--any-/webapp

            /var/log/jenkins/jenkins.log:
            INFO: Extract jar:file:/usr/share/jenkins/jenkins-1.540.2.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins-1.540.2.war--any-/webapp

            Using previous 1.509.3 jenkins.war (and prior) versions does not have this behavior.

            Is this change by design?
            Can you please provide a workaround so we can specify --webroot or jetty_home, etc.?
            For our environment it is required to load webapp into /var/cache/jenkins.
            With previous version (1.509.3) setting /etc/default/jenkins with:
            JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"

            has always loaded webroot/webapp to this location.
            Installing the latest jenkins with 'apt-get install -y jenkins' using our existing /etc/default/jenkins file not passing the --webroot parameter/location. Starting Jenkins with /etc/init.d/jenkins start

            Jenkins:IIRC suggestions to use (command-line or /etc/default/jenkins):
              $ export JETTY_HOME=/var/cache/jenkins/war
              $ export JENKINS_HOME=/home/username/jenkins
              $ /usr/bin/java -Xmx512m -jar /usr/share/jenkins/jenkins-1.540.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1

            However, it still continuously loads into: /tmp/jetty-0.0.0.0-8080-jenkins-1.540.war--any-/webapp

            /var/log/jenkins/jenkins.log:
            INFO: Extract jar:file:/usr/share/jenkins/jenkins-1.540.2.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins-1.540.war--any-/webapp

            Using previous 1.509.3 jenkins.war (and prior) versions does not have this behavior.

            Is this change by design?
            Can you please provide a workaround so we can specify --webroot or jetty_home, etc.?
            gmarquez GMarquez made changes -
            Description For our environment it is required to load webapp into /var/cache/jenkins.
            With previous version (1.509.3) setting /etc/default/jenkins with:
            JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"

            has always loaded webroot/webapp to this location.
            Installing the latest jenkins with 'apt-get install -y jenkins' using our existing /etc/default/jenkins file not passing the --webroot parameter/location. Starting Jenkins with /etc/init.d/jenkins start

            Jenkins:IIRC suggestions to use (command-line or /etc/default/jenkins):
              $ export JETTY_HOME=/var/cache/jenkins/war
              $ export JENKINS_HOME=/home/username/jenkins
              $ /usr/bin/java -Xmx512m -jar /usr/share/jenkins/jenkins-1.540.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1

            However, it still continuously loads into: /tmp/jetty-0.0.0.0-8080-jenkins-1.540.war--any-/webapp

            /var/log/jenkins/jenkins.log:
            INFO: Extract jar:file:/usr/share/jenkins/jenkins-1.540.2.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins-1.540.war--any-/webapp

            Using previous 1.509.3 jenkins.war (and prior) versions does not have this behavior.

            Is this change by design?
            Can you please provide a workaround so we can specify --webroot or jetty_home, etc.?
            For our environment it is required to load webapp into /var/cache/jenkins.
            With previous version (1.509.3) setting /etc/default/jenkins with:
            JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"

            has always loaded webroot/webapp to this location.
            Installing the latest jenkins with 'apt-get install -y jenkins' using our existing /etc/default/jenkins file not passing the --webroot parameter/location. Starting Jenkins with /etc/init.d/jenkins start

            Jenkins:IIRC suggestions to use (command-line or /etc/default/jenkins):
              $ export JETTY_HOME=/var/cache/jenkins/war
              $ export JENKINS_HOME=/home/username/jenkins
              $ /usr/bin/java -Xmx512m -jar /usr/share/jenkins/jenkins-1.540.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1

            However, it still continuously loads into: /tmp/jetty-0.0.0.0-8080-jenkins-1.540.war--any-/webapp

            /var/log/jenkins/jenkins.log:
            INFO: Extract jar:file:/usr/share/jenkins/jenkins-1.540.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins-1.540.war--any-/webapp

            Using previous 1.509.3 jenkins.war (and prior) versions does not have this behavior.

            Is this change by design?
            Can you please provide a workaround so we can specify --webroot or jetty_home, etc.?
            mc1arke Michael Clarke made changes -
            Component/s cvs [ 15486 ]
            sogabe sogabe made changes -
            Component/s core [ 15593 ]
            Component/s bulk-builder [ 15774 ]
            Component/s copyarchiver [ 15676 ]
            Component/s credentials [ 16523 ]
            Component/s dashboard-view [ 15679 ]
            Component/s disk-usage [ 15537 ]
            Component/s extended-read-permission [ 16109 ]
            Component/s external-monitor-job [ 17123 ]
            Component/s git [ 15543 ]
            Component/s greenballs [ 15603 ]
            Component/s join [ 15635 ]
            Component/s ldap [ 17122 ]
            Component/s leastload [ 17653 ]
            Component/s mailer [ 17522 ]
            Component/s matrix-auth [ 18131 ]
            Component/s nested-view [ 15701 ]
            Component/s pam-auth [ 17502 ]
            Component/s parameterized-trigger [ 15592 ]
            Component/s prescmbuildstep [ 15980 ]
            Component/s project-inheritance [ 17666 ]
            Component/s publish-over-ssh [ 15792 ]
            Component/s rebuild [ 15744 ]
            Component/s role-strategy [ 15758 ]
            Component/s ssh [ 16049 ]
            Component/s ssh-slaves [ 15578 ]
            Component/s timestamper [ 15749 ]
            Component/s view-job-filters [ 15736 ]
            b_dean Ben Dean made changes -
            Link This issue is related to JENKINS-18366 [ JENKINS-18366 ]
            gaige Gaige Paulsen made changes -
            Link This issue is related to JENKINS-20858 [ JENKINS-20858 ]
            swestcott Simon Westcott made changes -
            Assignee Simon Westcott [ swestcott ]
            ohtake_tomohiro OHTAKE Tomohiro made changes -
            Link This issue is related to JENKINS-21061 [ JENKINS-21061 ]
            oldelvet Richard Mortimer made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ]
            oldelvet Richard Mortimer made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            oldelvet Richard Mortimer made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-21061 [ JENKINS-21061 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 152491 ] JNJira + In-Review [ 194241 ]

            People

              kohsuke Kohsuke Kawaguchi
              gmarquez GMarquez
              Votes:
              13 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: