hudson.util.IOException2: Unable to read /var/lib/hudson/jobs/JOB_NAME/subversion.credentials

Jenkins JIRA | Régis Desgroppes | 6 years ago
  1. 0

    In hudson log, lots of such messages recently appeared (i.e. after having upgraded subversion plugin from 1.17 to 1.20): {quote} hudson.scm.PerJobCredentialStore <init> INFO: Failed to retrieve Subversion credentials from /var/lib/hudson/jobs/JOB_NAME/subversion.credentials hudson.util.IOException2: Unable to read /var/lib/hudson/jobs/JOB_NAME/subversion.credentials at hudson.XmlFile.unmarshal(XmlFile.java:152) at hudson.scm.PerJobCredentialStore.<init>(PerJobCredentialStore.java:38) at hudson.scm.SubversionSCM$DescriptorImpl.createAuthenticationProvider(SubversionSCM.java:1669) at hudson.scm.SubversionChangeLogBuilder.createAuthenticationProvider(SubversionChangeLogBuilder.java:122) at hudson.scm.SubversionChangeLogBuilder.getUrlForPath(SubversionChangeLogBuilder.java:118) at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:103) at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:440) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:557) at hudson.model.AbstractProject.checkout(AbstractProject.java:1119) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1324) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139) Caused by: com.thoughtworks.xstream.converters.ConversionException: No InvocationHandler specified for dynamic proxy ---- Debugging information ---- class : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy required-type : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy path : /hudson.scm.PerJobCredentialStore line number : 13 ------------------------------- at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:92) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:80) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at hudson.XmlFile.unmarshal(XmlFile.java:148) ... 14 more {quote} This only occurs when the job's subversion.credentials looks like this: {code:xml} <?xml version='1.0' encoding='UTF-8'?> <hudson.scm.PerJobCredentialStore resolves-to="dynamic-proxy"> <h class="hudson.remoting.RemoteInvocationHandler" serialization="custom"> <hudson.remoting.RemoteInvocationHandler> <default> <autoUnexportByCaller>false</autoUnexportByCaller> <goingHome>false</goingHome> <oid>264</oid> <userProxy>true</userProxy> </default> </hudson.remoting.RemoteInvocationHandler> </h> </hudson.scm.PerJobCredentialStore> {code} note: deserialization succeeds when the job's subversion.credentials looks like that: {code:xml} <?xml version='1.0' encoding='UTF-8'?> <hudson.scm.PerJobCredentialStore> <credentials class="hashtable"> <entry> <string>REALM</string> <hudson.scm.SubversionSCM_-DescriptorImpl_-PasswordCredential> <userName>USERNAME</userName> <password>PASSWORD</password> </hudson.scm.SubversionSCM_-DescriptorImpl_-PasswordCredential> </entry> </credentials> </hudson.scm.PerJobCredentialStore> {code} Let me know if something else is required.

    Jenkins JIRA | 6 years ago | Régis Desgroppes
    hudson.util.IOException2: Unable to read /var/lib/hudson/jobs/JOB_NAME/subversion.credentials
  2. 0

    In hudson log, lots of such messages recently appeared (i.e. after having upgraded subversion plugin from 1.17 to 1.20): {quote} hudson.scm.PerJobCredentialStore <init> INFO: Failed to retrieve Subversion credentials from /var/lib/hudson/jobs/JOB_NAME/subversion.credentials hudson.util.IOException2: Unable to read /var/lib/hudson/jobs/JOB_NAME/subversion.credentials at hudson.XmlFile.unmarshal(XmlFile.java:152) at hudson.scm.PerJobCredentialStore.<init>(PerJobCredentialStore.java:38) at hudson.scm.SubversionSCM$DescriptorImpl.createAuthenticationProvider(SubversionSCM.java:1669) at hudson.scm.SubversionChangeLogBuilder.createAuthenticationProvider(SubversionChangeLogBuilder.java:122) at hudson.scm.SubversionChangeLogBuilder.getUrlForPath(SubversionChangeLogBuilder.java:118) at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:103) at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:440) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:557) at hudson.model.AbstractProject.checkout(AbstractProject.java:1119) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1324) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139) Caused by: com.thoughtworks.xstream.converters.ConversionException: No InvocationHandler specified for dynamic proxy ---- Debugging information ---- class : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy required-type : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy path : /hudson.scm.PerJobCredentialStore line number : 13 ------------------------------- at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:92) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:80) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at hudson.XmlFile.unmarshal(XmlFile.java:148) ... 14 more {quote} This only occurs when the job's subversion.credentials looks like this: {code:xml} <?xml version='1.0' encoding='UTF-8'?> <hudson.scm.PerJobCredentialStore resolves-to="dynamic-proxy"> <h class="hudson.remoting.RemoteInvocationHandler" serialization="custom"> <hudson.remoting.RemoteInvocationHandler> <default> <autoUnexportByCaller>false</autoUnexportByCaller> <goingHome>false</goingHome> <oid>264</oid> <userProxy>true</userProxy> </default> </hudson.remoting.RemoteInvocationHandler> </h> </hudson.scm.PerJobCredentialStore> {code} note: deserialization succeeds when the job's subversion.credentials looks like that: {code:xml} <?xml version='1.0' encoding='UTF-8'?> <hudson.scm.PerJobCredentialStore> <credentials class="hashtable"> <entry> <string>REALM</string> <hudson.scm.SubversionSCM_-DescriptorImpl_-PasswordCredential> <userName>USERNAME</userName> <password>PASSWORD</password> </hudson.scm.SubversionSCM_-DescriptorImpl_-PasswordCredential> </entry> </credentials> </hudson.scm.PerJobCredentialStore> {code} Let me know if something else is required.

    Jenkins JIRA | 6 years ago | Régis Desgroppes
    hudson.util.IOException2: Unable to read /var/lib/hudson/jobs/JOB_NAME/subversion.credentials
  3. 0

    We get this on certain jobs path : /hudson.scm.PerJobCredentialStore line number : 13 ------------------------------- at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:92) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:80) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at hudson.XmlFile.unmarshal(XmlFile.java:148) ... 15 more Nov 22, 2010 12:37:39 PM hudson.scm.PerJobCredentialStore <init> INFO: Failed to retrieve Subversion credentials from /var/lib/hudson/jobs/frontend-ear-3.5/subversion.credentials hudson.util.IOException2: Unable to read /var/lib/hudson/jobs/frontend-ear-3.5/subversion.credentials at hudson.XmlFile.unmarshal(XmlFile.java:152) at hudson.scm.PerJobCredentialStore.<init>(PerJobCredentialStore.java:38) at hudson.scm.SubversionSCM$DescriptorImpl.createAuthenticationProvider(SubversionSCM.java:1707) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1090) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1250) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:425) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:454) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: com.thoughtworks.xstream.converters.ConversionException: No InvocationHandler specified for dynamic proxy ---- Debugging information ---- class : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy required-type : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy path : /hudson.scm.PerJobCredentialStore line number : 13 ------------------------------- at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:92) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:80) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at hudson.XmlFile.unmarshal(XmlFile.java:148) ... 15 more

    Jenkins JIRA | 6 years ago | davidkarlsen
    hudson.util.IOException2: Unable to read /var/lib/hudson/jobs/frontend-ear-3.5/subversion.credentials
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    A few weeks ago we upgraded from 1.372 to 1.381 which solved a significant amount of issues (many thanks for that!). Along with the upgrade of Hudson, we upgraded the Subversion Hudson plugin from 1.18 to 1.20. Shortly after the upgrade of these two, we started noticing that Hudson was not triggering builds, despite the fact that Subversion was indeed notifying it of commits. We have the SCM Subversion polling set to: {code} */30 * * * * {code} thus, almost completely relying on the post-commit-hook to trigger the build (as opposed to the SCM polling getting stuffed up gradually). The Subversion post-commit-hook works correctly and is sending a request, as can be seen below. This is what the successful output should look like: {code} --17:30:49-- http://hudson:8082/hudson/subversion/c5784c02-6b0d-0410-910a-a7a69de433da/notifyCommit?rev=71423 => `/tmp/svn-notify-commit-post' Resolving hudson... 192.168.0.41 Connecting to hudson[192.168.0.41]:8082... connected. HTTP request sent, awaiting response... 200 OK Length: 0 0K 0.00 B/s {code} This is the sort of output we currently have: {code} --18:09:09-- http://hudson:8082/hudson/subversion/c5784c02-6b0d-0410-910a-a7a69de433da/notifyCommit?rev=71424 => `/tmp/svn-notify-commit-post' Resolving hudson... 192.168.0.41 Connecting to hudson[192.168.0.41]:8082... connected. HTTP request sent, awaiting response... 500 READER 18:09:09 ERROR 500: READER. {code} This is an excerpt from the Jetty log: {code} 2010-11-03 14:09:56.888:WARN:/hudson:Error while serving http://hudson:8082/hudson/subversion/c5784c02-6b0d-0410-910a-a7a69de433da/notifyCommit java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:453) at org.kohsuke.stapler.Stapler.service(Stapler.java:135) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:335) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:588) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1046) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:418) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:489) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619) 2010-11-03 14:09:56.889:WARN::/hudson/subversion/c5784c02-6b0d-0410-910a-a7a69de433da/notifyCommit java.lang.IllegalStateException: READER at org.eclipse.jetty.server.Request.getInputStream(Request.java:508) at org.eclipse.jetty.server.Request.extractParameters(Request.java:251) at org.eclipse.jetty.server.Request.getParameter(Request.java:648) at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169) at hudson.scm.SubversionRepositoryStatus.doNotifyCommit(SubversionRepositoryStatus.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:453) at org.kohsuke.stapler.Stapler.service(Stapler.java:135) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:335) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:588) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1046) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:418) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:489) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619) Nov 3, 2010 2:11:03 PM hudson.scm.PerJobCredentialStore <init> INFO: Failed to retrieve Subversion credentials from /local/hudson/jobs/FAS-6199/subversion.credentials hudson.util.IOException2: Unable to read /local/hudson/jobs/FAS-6199/subversion.credentials at hudson.XmlFile.unmarshal(XmlFile.java:152) at hudson.scm.PerJobCredentialStore.<init>(PerJobCredentialStore.java:38) at hudson.scm.SubversionSCM$DescriptorImpl.createAuthenticationProvider(SubversionSCM.java:1659) at hudson.scm.SubversionSCM$DescriptorImpl.getRepository(SubversionSCM.java:1858) at hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:1831) at hudson.scm.SubversionSCM.repositoryLocationsNoLongerExist(SubversionSCM.java:1998) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1045) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:353) at hudson.scm.SCM.poll(SCM.java:370) at hudson.model.AbstractProject.poll(AbstractProject.java:1218) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:417) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:446) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: com.thoughtworks.xstream.converters.ConversionException: No InvocationHandler specified for dynamic proxy ---- Debugging information ---- class : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy required-type : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy path : /hudson.scm.PerJobCredentialStore line number : 13 ------------------------------- at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:92) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:80) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at hudson.XmlFile.unmarshal(XmlFile.java:148) ... 18 more {code} The error above looks like a problem with the deserialization of the per-module subversion.credentials file below: {code} <?xml version='1.0' encoding='UTF-8'?> <hudson.scm.PerJobCredentialStore resolves-to="dynamic-proxy"> <h class="hudson.remoting.RemoteInvocationHandler" serialization="custom"> <hudson.remoting.RemoteInvocationHandler> <default> <autoUnexportByCaller>false</autoUnexportByCaller> <goingHome>false</goingHome> <oid>9271</oid> <userProxy>true</userProxy> </default> </hudson.remoting.RemoteInvocationHandler> </h> </hudson.scm.PerJobCredentialStore> {code} Rolling back to 1.18 did not solve the problem. In addition, I tried the following: - Create a new job which checks out a project from the same Subversion repository. - Commit a changed file. The build worked and got triggered. So then I figured I should stop Hudson and write a simple script to replace all per-project credential files (they all have the same content, except there is a serious difference between a working one and one of an older project). This did not work. For some reason Hudson would just re-overwrite these files with the old broken ones. Below you can see a subversion.credentials file for a working module: {code} <?xml version='1.0' encoding='UTF-8'?> <hudson.scm.PerJobCredentialStore> <credentials class="hashtable"> <entry> <string>svn+ssh://subversion</string> <hudson.scm.SubversionSCM_-DescriptorImpl_-SshPublicKeyCredential> <userName>some_user</userName> <passphrase></passphrase> <id>85c531bf25d7ae61</id> </hudson.scm.SubversionSCM_-DescriptorImpl_-SshPublicKeyCredential> </entry> </credentials> </hudson.scm.PerJobCredentialStore> {code} As you can see the above files have little in common. I have also tried upgrading to 1.384. That didn't fix it either and actually caused nodes to die, so I rolled back to 1.381. I have also looked at the PerJobCredentialStore class. I didn't find anything suspicious there (in fact, if I recall correctly, this class hasn't been changed in about half a year). A fix for this would be highly appreciated, as we have some 200 modules which now rely solely on a build triggered every half hour. Please advise and many thanks in advance, Martin

    Jenkins JIRA | 6 years ago | carlspring
    hudson.util.IOException2: Unable to read /local/hudson/jobs/FAS-6199/subversion.credentials
  6. 0

    A few weeks ago we upgraded from 1.372 to 1.381 which solved a significant amount of issues (many thanks for that!). Along with the upgrade of Hudson, we upgraded the Subversion Hudson plugin from 1.18 to 1.20. Shortly after the upgrade of these two, we started noticing that Hudson was not triggering builds, despite the fact that Subversion was indeed notifying it of commits. We have the SCM Subversion polling set to: {code} */30 * * * * {code} thus, almost completely relying on the post-commit-hook to trigger the build (as opposed to the SCM polling getting stuffed up gradually). The Subversion post-commit-hook works correctly and is sending a request, as can be seen below. This is what the successful output should look like: {code} --17:30:49-- http://hudson:8082/hudson/subversion/c5784c02-6b0d-0410-910a-a7a69de433da/notifyCommit?rev=71423 => `/tmp/svn-notify-commit-post' Resolving hudson... 192.168.0.41 Connecting to hudson[192.168.0.41]:8082... connected. HTTP request sent, awaiting response... 200 OK Length: 0 0K 0.00 B/s {code} This is the sort of output we currently have: {code} --18:09:09-- http://hudson:8082/hudson/subversion/c5784c02-6b0d-0410-910a-a7a69de433da/notifyCommit?rev=71424 => `/tmp/svn-notify-commit-post' Resolving hudson... 192.168.0.41 Connecting to hudson[192.168.0.41]:8082... connected. HTTP request sent, awaiting response... 500 READER 18:09:09 ERROR 500: READER. {code} This is an excerpt from the Jetty log: {code} 2010-11-03 14:09:56.888:WARN:/hudson:Error while serving http://hudson:8082/hudson/subversion/c5784c02-6b0d-0410-910a-a7a69de433da/notifyCommit java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:453) at org.kohsuke.stapler.Stapler.service(Stapler.java:135) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:335) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:588) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1046) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:418) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:489) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619) 2010-11-03 14:09:56.889:WARN::/hudson/subversion/c5784c02-6b0d-0410-910a-a7a69de433da/notifyCommit java.lang.IllegalStateException: READER at org.eclipse.jetty.server.Request.getInputStream(Request.java:508) at org.eclipse.jetty.server.Request.extractParameters(Request.java:251) at org.eclipse.jetty.server.Request.getParameter(Request.java:648) at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169) at hudson.scm.SubversionRepositoryStatus.doNotifyCommit(SubversionRepositoryStatus.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:537) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:453) at org.kohsuke.stapler.Stapler.service(Stapler.java:135) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:335) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:588) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1046) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:418) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:489) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619) Nov 3, 2010 2:11:03 PM hudson.scm.PerJobCredentialStore <init> INFO: Failed to retrieve Subversion credentials from /local/hudson/jobs/FAS-6199/subversion.credentials hudson.util.IOException2: Unable to read /local/hudson/jobs/FAS-6199/subversion.credentials at hudson.XmlFile.unmarshal(XmlFile.java:152) at hudson.scm.PerJobCredentialStore.<init>(PerJobCredentialStore.java:38) at hudson.scm.SubversionSCM$DescriptorImpl.createAuthenticationProvider(SubversionSCM.java:1659) at hudson.scm.SubversionSCM$DescriptorImpl.getRepository(SubversionSCM.java:1858) at hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:1831) at hudson.scm.SubversionSCM.repositoryLocationsNoLongerExist(SubversionSCM.java:1998) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1045) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:353) at hudson.scm.SCM.poll(SCM.java:370) at hudson.model.AbstractProject.poll(AbstractProject.java:1218) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:417) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:446) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: com.thoughtworks.xstream.converters.ConversionException: No InvocationHandler specified for dynamic proxy ---- Debugging information ---- class : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy required-type : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy path : /hudson.scm.PerJobCredentialStore line number : 13 ------------------------------- at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:92) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926) at hudson.util.XStream2.unmarshal(XStream2.java:80) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912) at hudson.XmlFile.unmarshal(XmlFile.java:148) ... 18 more {code} The error above looks like a problem with the deserialization of the per-module subversion.credentials file below: {code} <?xml version='1.0' encoding='UTF-8'?> <hudson.scm.PerJobCredentialStore resolves-to="dynamic-proxy"> <h class="hudson.remoting.RemoteInvocationHandler" serialization="custom"> <hudson.remoting.RemoteInvocationHandler> <default> <autoUnexportByCaller>false</autoUnexportByCaller> <goingHome>false</goingHome> <oid>9271</oid> <userProxy>true</userProxy> </default> </hudson.remoting.RemoteInvocationHandler> </h> </hudson.scm.PerJobCredentialStore> {code} Rolling back to 1.18 did not solve the problem. In addition, I tried the following: - Create a new job which checks out a project from the same Subversion repository. - Commit a changed file. The build worked and got triggered. So then I figured I should stop Hudson and write a simple script to replace all per-project credential files (they all have the same content, except there is a serious difference between a working one and one of an older project). This did not work. For some reason Hudson would just re-overwrite these files with the old broken ones. Below you can see a subversion.credentials file for a working module: {code} <?xml version='1.0' encoding='UTF-8'?> <hudson.scm.PerJobCredentialStore> <credentials class="hashtable"> <entry> <string>svn+ssh://subversion</string> <hudson.scm.SubversionSCM_-DescriptorImpl_-SshPublicKeyCredential> <userName>some_user</userName> <passphrase></passphrase> <id>85c531bf25d7ae61</id> </hudson.scm.SubversionSCM_-DescriptorImpl_-SshPublicKeyCredential> </entry> </credentials> </hudson.scm.PerJobCredentialStore> {code} As you can see the above files have little in common. I have also tried upgrading to 1.384. That didn't fix it either and actually caused nodes to die, so I rolled back to 1.381. I have also looked at the PerJobCredentialStore class. I didn't find anything suspicious there (in fact, if I recall correctly, this class hasn't been changed in about half a year). A fix for this would be highly appreciated, as we have some 200 modules which now rely solely on a build triggered every half hour. Please advise and many thanks in advance, Martin

    Jenkins JIRA | 6 years ago | carlspring
    hudson.util.IOException2: Unable to read /local/hudson/jobs/FAS-6199/subversion.credentials

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.thoughtworks.xstream.converters.ConversionException

      No InvocationHandler specified for dynamic proxy ---- Debugging information ---- class : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy required-type : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy path : /hudson.scm.PerJobCredentialStore line number : 13 -------------------------------

      at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal()
    2. XStream Core
      XStream.unmarshal
      1. com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:92)
      2. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      3. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      4. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      5. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      6. com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
      7. com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      8. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
      8 frames
    3. Hudson
      XStream2.unmarshal
      1. hudson.util.XStream2.unmarshal(XStream2.java:80)
      1 frame
    4. XStream Core
      XStream.unmarshal
      1. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.XmlFile.unmarshal(XmlFile.java:148)
      2. hudson.scm.PerJobCredentialStore.<init>(PerJobCredentialStore.java:38)
      3. hudson.scm.SubversionSCM$DescriptorImpl.createAuthenticationProvider(SubversionSCM.java:1669)
      4. hudson.scm.SubversionChangeLogBuilder.createAuthenticationProvider(SubversionChangeLogBuilder.java:122)
      5. hudson.scm.SubversionChangeLogBuilder.getUrlForPath(SubversionChangeLogBuilder.java:118)
      6. hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:103)
      7. hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:440)
      8. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:557)
      9. hudson.model.AbstractProject.checkout(AbstractProject.java:1119)
      10. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
      11. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
      12. hudson.model.Run.run(Run.java:1324)
      13. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      14. hudson.model.ResourceController.execute(ResourceController.java:88)
      15. hudson.model.Executor.run(Executor.java:139)
      15 frames