Locked out of Jenkins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Locked out of Jenkins

Levente Barabas
Hello,

After some plugin updates I locked myself out of Jenkins.
I tried modifying the security options from the config.xml file as discussed on other forums but unfortunately it does not work.
The error message is the following:

hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
at hudson.WebAppMain$3.run(WebAppMain.java:244)
Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
at jenkins.model.Jenkins.<init>(Jenkins.java:877)
at hudson.model.Hudson.<init>(Hudson.java:85)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:227)
Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml
at hudson.XmlFile.unmarshal(XmlFile.java:165)
at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
at jenkins.model.Jenkins.access$700(Jenkins.java:324)
at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
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$7.runTask(Jenkins.java:998)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: jenkins.util.xstream.CriticalXStreamException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
---- Debugging information ----
message             : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
class               : hudson.model.Hudson
required-type       : hudson.model.Hudson
converter-type      : hudson.util.RobustReflectionConverter
path                : /hudson/securityRealm
line number         : 171
version             : not available
-------------------------------
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
at hudson.util.XStream2.unmarshal(XStream2.java:114)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
at hudson.XmlFile.unmarshal(XmlFile.java:163)
... 11 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:282)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)
at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:461)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:327)
... 22 more

Any suggestions?
Thank you in advance for your help!

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bb54169e-b635-4f90-a7b9-5e64458b2d87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Locked out of Jenkins

Daniel Beck
You likely disabled or uninstalled the Active Directory Plugin while it was your instance's security realm.

https://wiki.jenkins-ci.org/display/JENKINS/Disable+security

> On 10.10.2016, at 10:18, Levente Barabas <[hidden email]> wrote:
>
> Hello,
>
> After some plugin updates I locked myself out of Jenkins.
> I tried modifying the security options from the config.xml file as discussed on other forums but unfortunately it does not work.
> The error message is the following:
>
> hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
> at hudson.WebAppMain$3.run(WebAppMain.java:244)
> Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
> at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
> at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
> at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
> at jenkins.model.Jenkins.<init>(Jenkins.java:877)
> at hudson.model.Hudson.<init>(Hudson.java:85)
> at hudson.model.Hudson.<init>(Hudson.java:81)
> at hudson.WebAppMain$3.run(WebAppMain.java:227)
> Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml
> at hudson.XmlFile.unmarshal(XmlFile.java:165)
> at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
> at jenkins.model.Jenkins.access$700(Jenkins.java:324)
> at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
> 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$7.runTask(Jenkins.java:998)
> 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(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: jenkins.util.xstream.CriticalXStreamException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> ---- Debugging information ----
> message             : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
> cause-message       : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> class               : hudson.model.Hudson
> required-type       : hudson.model.Hudson
> converter-type      : hudson.util.RobustReflectionConverter
> path                : /hudson/securityRealm
> line number         : 171
> version             : not available
> -------------------------------
> at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
> at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
> at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
> at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
> at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
> at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
> at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
> at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
> at hudson.util.XStream2.unmarshal(XStream2.java:114)
> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
> at hudson.XmlFile.unmarshal(XmlFile.java:163)
> ... 11 more
> Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:282)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
> at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
> at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)
> at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:461)
> at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:327)
> ... 22 more
>
> Any suggestions?
> Thank you in advance for your help!
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bb54169e-b635-4f90-a7b9-5e64458b2d87%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/363CE0E1-63B8-40A9-AE93-652EEA53C1A9%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Locked out of Jenkins

Levente Barabas
I just checked and it is not uninstalled.
On Monday, October 10, 2016 at 1:24:05 PM UTC+3, Daniel Beck wrote:
You likely disabled or uninstalled the Active Directory Plugin while it was your instance's security realm.

<a href="https://wiki.jenkins-ci.org/display/JENKINS/Disable+security" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins-ci.org%2Fdisplay%2FJENKINS%2FDisable%2Bsecurity\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHF3VXrPzR4b2DAR4dh3F-MD8_8w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins-ci.org%2Fdisplay%2FJENKINS%2FDisable%2Bsecurity\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHF3VXrPzR4b2DAR4dh3F-MD8_8w&#39;;return true;">https://wiki.jenkins-ci.org/display/JENKINS/Disable+security

> On 10.10.2016, at 10:18, Levente Barabas <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="veGl2gtwBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">levi...@...> wrote:
>
> Hello,
>
> After some plugin updates I locked myself out of Jenkins.
> I tried modifying the security options from the config.xml file as discussed on other forums but unfortunately it does not work.
> The error message is the following:
>
> hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
>         at hudson.WebAppMain$3.run(WebAppMain.java:244)
> Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
>         at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
>         at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
>         at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
>         at jenkins.model.Jenkins.<init>(Jenkins.java:877)
>         at hudson.model.Hudson.<init>(Hudson.java:85)
>         at hudson.model.Hudson.<init>(Hudson.java:81)
>         at hudson.WebAppMain$3.run(WebAppMain.java:227)
> Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml
>         at hudson.XmlFile.unmarshal(XmlFile.java:165)
>         at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
>         at jenkins.model.Jenkins.access$700(Jenkins.java:324)
>         at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
>         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$7.runTask(Jenkins.java:998)
>         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(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: jenkins.util.xstream.CriticalXStreamException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> ---- Debugging information ----
> message             : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
> cause-message       : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
> class               : hudson.model.Hudson
> required-type       : hudson.model.Hudson
> converter-type      : hudson.util.RobustReflectionConverter
> path                : /hudson/securityRealm
> line number         : 171
> version             : not available
> -------------------------------
>         at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
>         at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
>         at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
>         at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
>         at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
>         at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
>         at hudson.util.XStream2.unmarshal(XStream2.java:114)
>         at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
>         at hudson.XmlFile.unmarshal(XmlFile.java:163)
>         ... 11 more
> Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm
>         at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:282)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
>         at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
>         at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)
>         at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:461)
>         at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:327)
>         ... 22 more
>
> Any suggestions?
> Thank you in advance for your help!
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="veGl2gtwBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/bb54169e-b635-4f90-a7b9-5e64458b2d87%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/bb54169e-b635-4f90-a7b9-5e64458b2d87%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/bb54169e-b635-4f90-a7b9-5e64458b2d87%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/bb54169e-b635-4f90-a7b9-5e64458b2d87%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/971e9c2c-bb8c-4584-9ecb-7cd601bcff29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Locked out of Jenkins

Daniel Beck

> On 10.10.2016, at 12:37, Levente Barabas <[hidden email]> wrote:
>
> I just checked and it is not uninstalled.

Then it may be disabled, or something else during startup forces it to become disabled. In both cases, it will be logged.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/AE3A8F6F-8DAD-4029-84B6-6458A9D7A061%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Locked out of Jenkins

Levente Barabas

Do you have any suggestion on how may I check this or enable it in case it is being disabled during startup?
   Thank you for your time! 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8600a518-89ce-457f-a9c0-b72d1e65d4ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Locked out of Jenkins

Jennifer Hofmeister

You could search your Jenkins home directory for logs, e.g. $JENKINS_HOME/monitoring or maybe /logs.

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Levente Barabas
Sent: Montag, 10. Oktober 2016 12:55
To: Jenkins Users
Cc: [hidden email]
Subject: Re: Locked out of Jenkins

 

 

Do you have any suggestion on how may I check this or enable it in case it is being disabled during startup?

   Thank you for your time! 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8600a518-89ce-457f-a9c0-b72d1e65d4ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA587D532C45541B62417404F1D22030E890CEB%40you-exch1.younicos.local.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Locked out of Jenkins

sreeramk
In reply to this post by Levente Barabas
I have been in this situation before, and have learnt a lesson since then never to close the window and never to use 'save' but use 'apply' instead, use a incognito window and make sure I still am able to login before closing the main window.

That said, how about installing another version of Jenkins on another computer, use that config.xml, and try to restart jenkins?  Then slowly make the changes that you had previously.  You could even check the differences between the two and find the culprit. Sorry, that is not the best answer you were expecting but something to get by. 

On Monday, October 10, 2016 at 1:18:44 AM UTC-7, Levente Barabas wrote:
Hello,

After some plugin updates I locked myself out of Jenkins.
I tried modifying the security options from the config.xml file as discussed on other forums but unfortunately it does not work.
The error message is the following:

hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
at hudson.WebAppMain$3.run(WebAppMain.java:244)
Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
at jenkins.model.Jenkins.<init>(Jenkins.java:877)
at hudson.model.Hudson.<init>(Hudson.java:85)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:227)
Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml
at hudson.XmlFile.unmarshal(XmlFile.java:165)
at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
at jenkins.model.Jenkins.access$700(Jenkins.java:324)
at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
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$7.runTask(Jenkins.java:998)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: jenkins.util.xstream.CriticalXStreamException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
---- Debugging information ----
message             : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
class               : hudson.model.Hudson
required-type       : hudson.model.Hudson
converter-type      : hudson.util.RobustReflectionConverter
path                : /hudson/securityRealm
line number         : 171
version             : not available
-------------------------------
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
at hudson.util.XStream2.unmarshal(XStream2.java:114)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
at hudson.XmlFile.unmarshal(XmlFile.java:163)
... 11 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:282)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)
at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:461)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:327)
... 22 more

Any suggestions?
Thank you in advance for your help!

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/943952a4-fbb1-4486-a681-218d1a798c15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Locked out of Jenkins

shobha
In reply to this post by Levente Barabas
removing this flag "ldap.jpi.disabled" from the jenkins plugin page would resolve this issue

On Monday, October 10, 2016 at 1:48:44 PM UTC+5:30, Levente Barabas wrote:
Hello,

After some plugin updates I locked myself out of Jenkins.
I tried modifying the security options from the config.xml file as discussed on other forums but unfortunately it does not work.
The error message is the following:

hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
at hudson.WebAppMain$3.run(WebAppMain.java:244)
Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read D:\jenkins\config.xml
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:45)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1009)
at jenkins.model.Jenkins.<init>(Jenkins.java:877)
at hudson.model.Hudson.<init>(Hudson.java:85)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:227)
Caused by: java.io.IOException: Unable to read D:\jenkins\config.xml
at hudson.XmlFile.unmarshal(XmlFile.java:165)
at jenkins.model.Jenkins.loadConfig(Jenkins.java:2785)
at jenkins.model.Jenkins.access$700(Jenkins.java:324)
at jenkins.model.Jenkins$16.run(Jenkins.java:2803)
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$7.runTask(Jenkins.java:998)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: jenkins.util.xstream.CriticalXStreamException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
---- Debugging information ----
message             : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : hudson.plugins.active_directory.ActiveDirectorySecurityRealm
class               : hudson.model.Hudson
required-type       : hudson.model.Hudson
converter-type      : hudson.util.RobustReflectionConverter
path                : /hudson/securityRealm
line number         : 171
version             : not available
-------------------------------
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:356)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
at hudson.util.XStream2.unmarshal(XStream2.java:114)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
at hudson.XmlFile.unmarshal(XmlFile.java:163)
... 11 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.plugins.active_directory.ActiveDirectorySecurityRealm
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:282)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)
at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:461)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:327)
... 22 more

Any suggestions?
Thank you in advance for your help!

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bede6a22-5556-45a7-9b2d-ebb419681309%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.