I installed the rpm from the preview repository and simply started it, but get this in the log:
      Running from: /usr/lib/jenkins/jenkins.war
      Mar 24, 2016 3:55:27 AM org.eclipse.jetty.util.log.JavaUtilLog info
      INFO: Logging initialized @1015ms
      Mar 24, 2016 3:55:27 AM winstone.Logger logInternal
      INFO: Beginning extraction from war file
      Mar 24, 2016 3:55:28 AM org.eclipse.jetty.util.log.JavaUtilLog warn
      WARNING: Empty contextPath
      Mar 24, 2016 3:55:29 AM winstone.Logger logInternal
      INFO: Winstone shutdown successfully
      Mar 24, 2016 3:55:29 AM winstone.Logger logInternal
      SEVERE: Container startup failed
      java.io.IOException: Failed to start a listener: winstone.Ajp13ConnectorFactory
      at winstone.Launcher.spawnListener(Launcher.java:207)
      at winstone.Launcher.<init>(Launcher.java:148)
      at winstone.Launcher.main(Launcher.java:352)
      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:497)
      at Main._main(Main.java:246)
      at Main.main(Main.java:91)
      Caused by: java.lang.UnsupportedOperationException: AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP. For reverse proxying, please use HTTP instead of AJP.
      at winstone.Ajp13ConnectorFactory.start(Ajp13ConnectorFactory.java:31)
      at winstone.Launcher.spawnListener(Launcher.java:205)
      ... 8 more

      The issue does not go away when downgrading Java to java version "1.7.0_95"

          [JENKINS-33776] Cannot start from preview rpm

          James Coleman added a comment -

          Yes, that's okay.
          Good to have error and solution described here as it will help anyone who might encounter it.
          Thanks Daniel.
          J.

          James Coleman added a comment - Yes, that's okay. Good to have error and solution described here as it will help anyone who might encounter it. Thanks Daniel. J.

          toby cabot added a comment - - edited

          Hi, I think this might still be an issue. My chef tests started failing recently - they spin up a Centos 7 VM, install Jenkins (currently jenkins-2.7.1-1.1.noarch) from the http://pkg.jenkins-ci.org/redhat-stable repo, and then tries to start it. The /etc/sysconfig/jenkins config file included in the rpm has a line that tries to run AJP on port 8009:

          ## Type:        integer(0:65535)
          ## Default:     8009
          ## ServiceRestart: jenkins
          #
          # Ajp13 Port Jenkins is listening on.
          # Set to -1 to disable
          #
          JENKINS_AJP_PORT="8009"
          

          This causes jenkins to fail at startup as described by https://issues.jenkins-ci.org/browse/JENKINS-33776?focusedCommentId=255250&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-255250

          It would be better if the /etc/sysconfig/jenkins file included in the rpm didn't try to configure AJP so jenkins would run right out of the box without requiring the users to modify it.

          toby cabot added a comment - - edited Hi, I think this might still be an issue. My chef tests started failing recently - they spin up a Centos 7 VM, install Jenkins (currently jenkins-2.7.1-1.1.noarch) from the http://pkg.jenkins-ci.org/redhat-stable repo, and then tries to start it. The /etc/sysconfig/jenkins config file included in the rpm has a line that tries to run AJP on port 8009: ## Type: integer(0:65535) ## Default: 8009 ## ServiceRestart: jenkins # # Ajp13 Port Jenkins is listening on. # Set to -1 to disable # JENKINS_AJP_PORT="8009" This causes jenkins to fail at startup as described by https://issues.jenkins-ci.org/browse/JENKINS-33776?focusedCommentId=255250&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-255250 It would be better if the /etc/sysconfig/jenkins file included in the rpm didn't try to configure AJP so jenkins would run right out of the box without requiring the users to modify it.

          S added a comment -

          caboteria - I agree that this needs to be remedied from a base install. Have you tried installing with the latest version (2.13) to test? There's nothing that points to that being removed or changed for the RPM, but it never hurts to try. Since there is a workaround in place (and since it's marked as resolved) it's not a high priority for the devs.

          S added a comment - caboteria - I agree that this needs to be remedied from a base install. Have you tried installing with the latest version (2.13) to test? There's nothing that points to that being removed or changed for the RPM, but it never hurts to try. Since there is a workaround in place (and since it's marked as resolved) it's not a high priority for the devs.

          Daniel Beck added a comment -

          This was marked resolved because we fixed it. I'm currently trying to get information on the release process, maybe something went wrong there (specifically, master branch of https://github.com/jenkinsci/packaging used rather than the jenkins-2.0 branch).

          Daniel Beck added a comment - This was marked resolved because we fixed it. I'm currently trying to get information on the release process, maybe something went wrong there (specifically, master branch of https://github.com/jenkinsci/packaging used rather than the jenkins-2.0 branch).

          toby cabot added a comment -

          Thanks for your attention on this.

          Based on the source I think it's likely that 2.13 behaves the same as 2.7.1. According to the PR linked from this report, the fix was merged to the jenkins-2.0 branch but there's a comment that might indicate that was a mistake: https://github.com/jenkinsci/packaging/pull/51#issue-144292301 says "A separate jenkins-2.0 packaging branch has been created, because pre-Jenkins 2 users may rely on AJP." which to me indicates that the fix should have been applied to master but not jenkins-2.0 (since the fix disables AJP). The fix was applied to jenkins-2.0, though.

          It also looks as if the 2.7.1 RPM's are built with the master branch of jenkinsci/packaging instead of the jenkins-2.0 branch, as Daniel indicates. I supposed if both of these things were fixed then the result would be no change to the current behavior. Unfortunately, seomone's going to feel some pain, I guess, either the set of those using AJP, or the set of all new and upgrading users.

          Would it make sense to re-open this report to track the effort to get the fix to end-users, or is there a different report to track that?

          toby cabot added a comment - Thanks for your attention on this. Based on the source I think it's likely that 2.13 behaves the same as 2.7.1. According to the PR linked from this report, the fix was merged to the jenkins-2.0 branch but there's a comment that might indicate that was a mistake: https://github.com/jenkinsci/packaging/pull/51#issue-144292301 says "A separate jenkins-2.0 packaging branch has been created, because pre-Jenkins 2 users may rely on AJP." which to me indicates that the fix should have been applied to master but not jenkins-2.0 (since the fix disables AJP). The fix was applied to jenkins-2.0, though. It also looks as if the 2.7.1 RPM's are built with the master branch of jenkinsci/packaging instead of the jenkins-2.0 branch, as Daniel indicates. I supposed if both of these things were fixed then the result would be no change to the current behavior. Unfortunately, seomone's going to feel some pain, I guess, either the set of those using AJP, or the set of all new and upgrading users. Would it make sense to re-open this report to track the effort to get the fix to end-users, or is there a different report to track that?

          Daniel Beck added a comment -

          All other 2.x releases do not have this problem, as it's caused by different build/release processes for weeklies/LTS, and 2.7.1 being the first 2.x based LTS – and still using the master branch of packaging.

          KK is on it, we'll probably just re-release 2.7.1 packages with the correct scripts. I will keep updating this issue in lack of a better issue. No need to reopen.

          Daniel Beck added a comment - All other 2.x releases do not have this problem, as it's caused by different build/release processes for weeklies/LTS, and 2.7.1 being the first 2.x based LTS – and still using the master branch of packaging. KK is on it, we'll probably just re-release 2.7.1 packages with the correct scripts. I will keep updating this issue in lack of a better issue. No need to reopen.

          Paul Scott added a comment -

          For what it's worth I found this because I'm part of that 'set of all new and upgrading users' that just got bitten by deciding to go for the 'more stable' LTS version. I guess there's always someone, however small the problem window is...

          I'll disable it in sysconfig for now, and look forward to a fixed RPM.

          Paul Scott added a comment - For what it's worth I found this because I'm part of that 'set of all new and upgrading users' that just got bitten by deciding to go for the 'more stable' LTS version. I guess there's always someone, however small the problem window is... I'll disable it in sysconfig for now, and look forward to a fixed RPM.

          Daniel Beck added a comment -

          Re-released with today's date: http://pkg.jenkins-ci.org/redhat-stable/ – not sure how that'll affect existing caches etc., but it's out at least.

          Daniel Beck added a comment - Re-released with today's date: http://pkg.jenkins-ci.org/redhat-stable/ – not sure how that'll affect existing caches etc., but it's out at least.

          toby cabot added a comment -

          The fresh install use case now works for me. Thank you!

          toby cabot added a comment - The fresh install use case now works for me. Thank you!

          Code changed in jenkins
          User: Sam Van Oort
          Path:
          README.md
          http://jenkins-ci.org/commit/packaging/61d57d8b885b19e071c1a434db20a8bbe95889ab
          Log:
          Mark that this is just for pre-2.x due to removing AJP for JENKINS-33776

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sam Van Oort Path: README.md http://jenkins-ci.org/commit/packaging/61d57d8b885b19e071c1a434db20a8bbe95889ab Log: Mark that this is just for pre-2.x due to removing AJP for JENKINS-33776

            svanoort Sam Van Oort
            bentterp Bent Terp
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: