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

Setting JENKINS_ENABLE_ACCESS_LOG="yes" causes jenkins startup failure

    Details

    • Similar Issues:
    • Released As:
      Jenkins 2.175

      Description

      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

        Attachments

          Activity

          keithmarsh2 Keith Marsh created issue -
          danielbeck Daniel Beck made changes -
          Field Original Value New Value
          Component/s packaging [ 20120 ]
          Component/s core [ 15593 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels newbie-friendly
          oleg_nenashev Oleg Nenashev made changes -
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          Resolution Fixed [ 1 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels newbie-friendly lts-candidate newbie-friendly
          oleg_nenashev Oleg Nenashev made changes -
          Released As Jenkins 2.175
          olivergondza Oliver Gondža made changes -
          Labels lts-candidate newbie-friendly newbie-friendly

            People

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

              Dates

              • Created:
                Updated:
                Resolved: