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

1 view
Skip to first unread message

jenkins@keithmarsh.com (JIRA)

unread,
Dec 12, 2018, 7:45:02 AM12/12/18
to jenkinsc...@googlegroups.com
Keith Marsh created an issue
 
Jenkins / Bug JENKINS-55149
Setting JENKINS_ENABLE_ACCESS_LOG="yes" causes jenkins startup failure
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2018-12-12 12:44
Environment: Ubuntu 18.04
v2.150.1
installed via apt as per https://jenkins.io/doc/book/installing/#debianubuntu
Priority: Major Major
Reporter: Keith Marsh

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

dbeck@cloudbees.com (JIRA)

unread,
Dec 12, 2018, 8:20:02 AM12/12/18
to jenkinsc...@googlegroups.com
Daniel Beck updated an issue
Change By: Daniel Beck
Component/s: packaging
Component/s: core

o.v.nenashev@gmail.com (JIRA)

unread,
Dec 12, 2018, 12:58:01 PM12/12/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Dec 12, 2018, 12:59:02 PM12/12/18
to jenkinsc...@googlegroups.com

jenkins@keithmarsh.com (JIRA)

unread,
Dec 12, 2018, 3:11:01 PM12/12/18
to jenkinsc...@googlegroups.com

That's been done.  It's my first PR, so if I've gone awry, put me straight please.

https://github.com/jenkinsci/packaging/pull/111

o.v.nenashev@gmail.com (JIRA)

unread,
Apr 25, 2019, 4:52:01 AM4/25/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Apr 25, 2019, 4:52:02 AM4/25/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated Bug JENKINS-55149
 

https://github.com/jenkinsci/packaging/pull/111 fixes it. IIUC it might be reasonable to backport it, but I am not sure whether we have a process for packaging

Change By: Oleg Nenashev
Status: Open Fixed but Unreleased
Resolution: Fixed

o.v.nenashev@gmail.com (JIRA)

unread,
Apr 25, 2019, 4:53:02 AM4/25/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue

To be released in Jenkins 2.175

Change By: Oleg Nenashev
Released As: Jenkins 2.175

ogondza@gmail.com (JIRA)

unread,
May 23, 2019, 3:09:03 AM5/23/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages