[JIRA] (JENKINS-36446) Bug when change auth system

1 view
Skip to first unread message

jenkins@feraudet.com (JIRA)

unread,
Jul 5, 2016, 12:48:01 PM7/5/16
to jenkinsc...@googlegroups.com
Cyril Feraudet created an issue
 
Jenkins / Bug JENKINS-36446
Bug when change auth system
Issue Type: Bug Bug
Assignee: stephenconnolly
Components: credentials-plugin
Created: 2016/Jul/05 4:47 PM
Environment: Ubuntu 14.04
openjdk-7-jre-headless
Jenkins 2
credentials-plugin 2.1.4
Labels: jenkins plugin security
Priority: Blocker Blocker
Reporter: Cyril Feraudet

Hi,

When I switched from Local auth to LDAP auth this happen :
(rollback to local auth does not solve the issue)

webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Jul 05, 2016 4:08:12 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @500ms
Jul 05, 2016 4:08:12 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jul 05, 2016 4:08:12 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Jul 05, 2016 4:08:12 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Jul 05, 2016 4:08:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Jul 05, 2016 4:08:14 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.@4cbd23c8{/,file:/var/lib/jenkins/war/,AVAILABLE}{/var/lib/jenkins/war}
Jul 05, 2016 4:08:14 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@68aee2a2{HTTP/1.1}{0.0.0.0:8080}
Jul 05, 2016 4:08:14 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @1930ms
Jul 05, 2016 4:08:14 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Jul 05, 2016 4:08:14 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Jul 05, 2016 4:08:15 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Jul 05, 2016 4:08:16 PM hudson.plugins.ansicolor.PluginImpl start
INFO: AnsiColor: eliminating boring output (https://github.com/dblock/jenkins-ansicolor-plugin)
Jul 05, 2016 4:08:16 PM ruby.RubyRuntimePlugin start
INFO: Injecting JRuby into XStream
Jul 05, 2016 4:08:22 PM org.terracotta.jenkins.plugins.postcompleted.PostCompletedPlugin start
INFO: Starting PostCompletedPlugin
Jul 05, 2016 4:08:28 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Jul 05, 2016 4:08:30 PM org.jenkinsci.plugins.sysloglogger.SyslogLoggerPlugin applySettings
INFO: Jenkins configured to output log messages to syslog server 172.17.42.1:514 on transport UDP
Jul 05, 2016 4:08:30 PM hudson.ExtensionComponent compareTo
WARNING: null
java.lang.NoSuchMethodError: com.cloudbees.plugins.credentials.Messages.CredentialsProviderFilter_None_DisplayName()Ljava/lang/String;
	at com.cloudbees.plugins.credentials.CredentialsProviderFilter$None$DescriptorImpl.getDisplayName(CredentialsProviderFilter.java:161)
	at hudson.ExtensionComponent.compareTo(ExtensionComponent.java:97)
	at hudson.ExtensionComponent.compareTo(ExtensionComponent.java:42)
	at java.util.ComparableTimSort.binarySort(ComparableTimSort.java:232)
	at java.util.ComparableTimSort.sort(ComparableTimSort.java:176)
	at java.util.ComparableTimSort.sort(ComparableTimSort.java:146)
	at java.util.Arrays.sort(Arrays.java:472)
	at java.util.Collections.sort(Collections.java:155)
	at hudson.ExtensionList.sort(ExtensionList.java:369)
	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:289)
	at hudson.ExtensionList.getComponents(ExtensionList.java:167)
	at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:185)
	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
	at hudson.ExtensionList.iterator(ExtensionList.java:156)
	at hudson.ExtensionList.get(ExtensionList.java:147)
	at com.cloudbees.jenkins.GitHubPushTrigger$DescriptorImpl.get(GitHubPushTrigger.java:329)
	at org.jenkinsci.plugins.github.migration.Migrator.migrate(Migrator.java:40)
	at org.jenkinsci.plugins.github.GitHubPlugin.postInitialize(GitHubPlugin.java:39)
	at hudson.PluginManager$2$1$2.run(PluginManager.java:429)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
	at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009)
	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

Someone have an idea ?

Regards,

Cyril

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

stephenconnolly@java.net (JIRA)

unread,
Jul 5, 2016, 4:42:01 PM7/5/16
to jenkinsc...@googlegroups.com
stephenconnolly commented on Bug JENKINS-36446
 
Re: Bug when change auth system

Looks like a plugin initialization sequencing issue. The GitHub Push Trigger looks to have been initialized before the credentials plugin.

Did restarting again fix the issue (if yes, then this is a core bug in plugin initialization, if no then we have another datapoint)

stephenconnolly@java.net (JIRA)

unread,
Jul 5, 2016, 4:44:01 PM7/5/16
to jenkinsc...@googlegroups.com
stephenconnolly updated an issue
 
Change By: stephenconnolly
Component/s: core
Component/s: github-plugin

stephenconnolly@java.net (JIRA)

unread,
Jul 5, 2016, 4:44:01 PM7/5/16
to jenkinsc...@googlegroups.com
stephenconnolly updated an issue
Change By: stephenconnolly
Priority: Blocker Major

jenkins@feraudet.com (JIRA)

unread,
Jul 5, 2016, 5:46:02 PM7/5/16
to jenkinsc...@googlegroups.com
Cyril Feraudet commented on Bug JENKINS-36446
 
Re: Bug when change auth system

Restarting Jenkins do not change anything.
Another thing, only administrator user are affected. Maybe cause only administrator are allowed to manage credentials.
Before switching from local authentication to ldap it was working fine. Rollback to local authentication doesn't fix anything.
Thanks by advance for your help

jenkins@feraudet.com (JIRA)

unread,
Jul 6, 2016, 10:30:06 AM7/6/16
to jenkinsc...@googlegroups.com

I've downgraded from 2.1.4 to 1.27 to make it working

stephen.alan.connolly@gmail.com (JIRA)

unread,
Oct 19, 2016, 4:20:02 AM10/19/16
to jenkinsc...@googlegroups.com
Stephen Connolly updated an issue
 
Change By: Stephen Connolly
Priority: Major Blocker

stephen.alan.connolly@gmail.com (JIRA)

unread,
Oct 19, 2016, 4:20:02 AM10/19/16
to jenkinsc...@googlegroups.com
Stephen Connolly updated an issue
Change By: Stephen Connolly
Component/s: core
Component/s: credentials-plugin
Reply all
Reply to author
Forward
0 new messages