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

Setting JENKINS_ENABLE_ACCESS_LOG="yes" causes jenkins startup failure

    • Jenkins 2.175

      If you set JENKINS_ENABLE_ACCESS_LOG="yes" in /etc/default/jenkins, the startup script in /etc/init.d/jenkins appends -accessLoggerClassName... to DAEMON_ARGS.  This is incorrect and causes jenkins startup to fail with the error

      Dec 12 10:50:43 dtg-jenkins jenkins[28926]: /usr/bin/daemon: unrecognized option '--accessLoggerClassName=winstone.accesslog.SimpleA
      Dec 12 10:50:43 dtg-jenkins jenkins[28926]: usage: daemon [options] [--] [cmd arg...]
      Dec 12 10:50:43 dtg-jenkins jenkins[28926]: options:
      Dec 12 10:50:43 dtg-jenkins jenkins[28926]: -h, --help - Print a help message then exit
      ...

      Changing the line in /etc/init.d/jenkins to 

           JENKINS_ARGS="$JENKINS_ARGS --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/$NAME/access_log"

      makes jenkins start correctly and the access log appear correctly in /var/log/jenkins/access_log

          [JENKINS-55149] Setting JENKINS_ENABLE_ACCESS_LOG="yes" causes jenkins startup failure

          Keith Marsh created issue -
          Daniel Beck made changes -
          Component/s New: packaging [ 20120 ]
          Component/s Original: core [ 15593 ]
          Oleg Nenashev made changes -
          Labels New: newbie-friendly
          Oleg Nenashev made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Oleg Nenashev made changes -
          Labels Original: newbie-friendly New: lts-candidate newbie-friendly
          Oleg Nenashev made changes -
          Released As New: Jenkins 2.175
          Oliver Gondža made changes -
          Labels Original: lts-candidate newbie-friendly New: newbie-friendly
          Basil Crow made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            keithmarsh2 Keith Marsh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: