Home » Archived » Hudson » Hudson 3.0.0 + Active Directory
| | | | | | | |
Re: Hudson 3.0.0 + Active Directory [message #1007707 is a reply to message #1007663] |
Thu, 07 February 2013 08:34 |
Reinhard Nägele Messages: 23 Registered: January 2013 |
Junior Member |
|
|
I tried to reproduce the behavior by restarting several times. Authentication now worked after every restart. Thinking over it, I figured that I normally would only do a restart after changing some configuration. So I went into Configure System and hit the "Save" button. After another restart, the problem showed up again. The log reports that the plugin is initialized correctly but at the end of the log there is this warning again, which is always logged on startup, but in the error case a second time just before Hudson is ready.
Last lines of the log when things are ok:
INFO: Started all plugins
Feb 7, 2013 9:22:57 AM hudson.model.Hudson$5 onAttained
INFO: Attained Discovering plugin initialization tasks
Feb 7, 2013 9:22:57 AM hudson.model.Hudson$5 onAttained
INFO: Augmented all extensions
Feb 7, 2013 9:22:57 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 9:22:57 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 9:22:58 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading global config
Feb 7, 2013 9:22:59 AM hudson.model.Hudson$5 onAttained
INFO: Loaded all jobs
Feb 7, 2013 9:22:59 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading job test job
Feb 7, 2013 9:22:59 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 9:22:59 AM hudson.model.Hudson$5 onAttained
INFO: Completed initialization
Feb 7, 2013 9:22:59 AM hudson.model.Hudson$5 onAttained
INFO: Attained Finalizing set up
Feb 7, 2013 9:22:59 AM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 19006
Feb 7, 2013 9:23:07 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:23:07 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:23:08 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:23:08 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:23:08 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:23:10 AM org.hudsonci.rest.plugin.RestPlugin enable
INFO: API provider JAX-RS (Jersey) enabled
Feb 7, 2013 9:23:10 AM org.hudsonci.rest.plugin.RestPlugin enable
INFO: API provider Bayeux (CometD) enabled
Feb 7, 2013 9:23:10 AM org.hudsonci.events.ready.ReadyDetector run
INFO: Hudson is ready.
End of log whe Active Directory plugin does not work:
INFO: Started all plugins
Feb 7, 2013 9:13:59 AM hudson.model.Hudson$5 onAttained
INFO: Attained Discovering plugin initialization tasks
Feb 7, 2013 9:13:59 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 9:13:59 AM hudson.model.Hudson$5 onAttained
INFO: Augmented all extensions
Feb 7, 2013 9:13:59 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 9:13:59 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading global config
Feb 7, 2013 9:14:00 AM hudson.model.Hudson$5 onAttained
INFO: Loaded all jobs
Feb 7, 2013 9:14:00 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading job test job
Feb 7, 2013 9:14:00 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 9:14:00 AM hudson.model.Hudson$5 onAttained
INFO: Completed initialization
Feb 7, 2013 9:14:00 AM hudson.model.Hudson$5 onAttained
INFO: Attained Finalizing set up
Feb 7, 2013 9:14:00 AM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 1385
Feb 7, 2013 9:14:08 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:14:09 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:14:09 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:14:09 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:14:10 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
Feb 7, 2013 9:14:14 AM hudson.util.RobustReflectionConverter doUnmarshal
WARNING: Skipping a non-existent type hudson.plugins.active_directory.ActiveDirectorySecurityRealm
Feb 7, 2013 9:14:14 AM org.hudsonci.rest.plugin.RestPlugin enable
INFO: API provider JAX-RS (Jersey) enabled
Feb 7, 2013 9:14:14 AM org.hudsonci.rest.plugin.RestPlugin enable
INFO: API provider Bayeux (CometD) enabled
Feb 7, 2013 9:14:14 AM org.hudsonci.events.ready.ReadyDetector run
INFO: Hudson is ready.
|
|
|
Re: Hudson 3.0.0 + Active Directory [message #1007830 is a reply to message #1007707] |
Thu, 07 February 2013 16:50 |
Winston Prakash Messages: 534 Registered: August 2011 Location: Fremont, CA USA |
Senior Member |
|
|
Actually Hudson loads the security settings, before the plugins get loaded. This is for one time initial setup. Since the plugins are no loaded at that time, you can expect the info being logged, but that is harmless.
Note: This is not ideal, because if user setup security via plugin, then it is impossible to do the initial setup, with out manually modifying the hudson-security.xml file and disable the security temporarily.
However, Hudson tries to reload the hudson-security.xml after all the plugins are loaded. Appears there is some kind of race condition between Hudson trying to loading the plugins and Hudson trying to load the security. They are done in a task reactor (threaded), but loading security is need to be the last task.
I have to dive deep in to this make sure the security loading happens after all the plugins are loaded.
Could you file a bug on this at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Hudson
Winston Prakash
Eclipse Hudson team
|
|
| | |
Goto Forum:
Current Time: Fri Oct 11 02:23:45 GMT 2024
Powered by FUDForum. Page generated in 0.09171 seconds
|