cannot checkout darcs repository
Closed this issue · 17 comments
There is also another bug, that I am encounting when starting a darcs
project. The initial checkout went wrong with:
Started by remote host 91.121.29.61
Building in workspace /var/lib/jenkins/jobs/ounit/workspace
$ darcs get http://darcs.ocamlcore.org/repos/ounit
/var/lib/jenkins/jobs/ounit/workspace
darcs failed: Not a repository:
http://darcs.ocamlcore.org/repos/ounit (.: openBinaryTempFile:
permission denied (Permission denied))
ERROR: Failed to get repo from http://darcs.ocamlcore.org/repos/ounit
org.jenkinsci.plugins.darcs.DarcsCmd$DarcsCmdException: Can not get
repo with args: darcs get http://darcs.ocamlcore.org/repos/ounit
/var/lib/jenkins/jobs/ounit/workspace
at org.jenkinsci.plugins.darcs.DarcsCmd.get(DarcsCmd.java:164)
at org.jenkinsci.plugins.darcs.DarcsScm.getRepo(DarcsScm.java:376)
at org.jenkinsci.plugins.darcs.DarcsScm.checkout(DarcsScm.java:287)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1325)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587)
at hudson.model.Run.execute(Run.java:1543)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: org.jenkinsci.plugins.darcs.DarcsCmd$DarcsCmdException:
Getting repo with args darcs get
http://darcs.ocamlcore.org/repos/ounit
/var/lib/jenkins/jobs/ounit/workspace returne 2
at org.jenkinsci.plugins.darcs.DarcsCmd.get(DarcsCmd.java:161)
... 10 more
Archiving artifacts
Sending e-mails to: sylvain@le-gall.net
Finished: FAILURE
The darcs version:
$ darcs --version
2.4.4 (release)
The fix is to do it by hand after having move to directory /var/lib/jenkins/jobs/ounit/ (cd ...) on the box. Once done, everything is fine.
Is this bug fixed for You in the new 0.3.7 version?
Hi,
First of all: sorry for not testing th .hpi during this week-end. I was pretty busy.
I have just upgrade to 0.3.7 and got a new error (following). I cannot choose darcs any more as a VCS.
Do you think I need to remove a file ?
Thx
Mar 6, 2013 5:22:28 PM hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating: it.scm.descriptor==scmd in /job/ocaml-fileutils/configure. Reason: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
at org.apache.commons.jexl.parser.ASTEQNode.value(ASTEQNode.java:71)
at org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:54)
at org.apache.commons.jexl.parser.ASTExpressionExpression.value(ASTExpressionExpression.java:56)
at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:58)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:191)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
at org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:46)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487)
at org.kohsuke.stapler.Stapler.service(Stapler.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
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:124)
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:174)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
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 winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.AssertionError: class org.jenkinsci.plugins.darcs.DarcsScm is missing its descriptor
at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1163)
at hudson.scm.SCM.getDescriptor(SCM.java:565)
at org.jenkinsci.plugins.darcs.DarcsScm.getDescriptor(DarcsScm.java:432)
... 153 more
Mar 6, 2013 5:00:58 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Fingerprint cleanup. 1 ms
Mar 6, 2013 5:00:58 PM hudson.model.FingerprintCleanupThread execute
INFO: Cleaned up 0 records
Mar 6, 2013 5:00:58 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Fingerprint cleanup
Mar 6, 2013 1:58:21 PM hudson.WebAppMain$2 run
INFO: Jenkins is fully up and running
Mar 6, 2013 1:58:21 PM hudson.TcpSlaveAgentListener
INFO: JNLP slave agent listener started on TCP port 56328
Mar 6, 2013 1:58:18 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Mar 6, 2013 1:58:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Mar 6, 2013 1:58:15 PM hudson.ExtensionFinder$GuiceFinder$4$1 get
WARNING: Failed to instantiate. Skipping this component
com.google.inject.ProvisionException: Guice provision errors:
- Error injecting constructor, com.thoughtworks.xstream.mapper.CannotResolveClassException: org.jenkinsci.plugins.darcs.DarcsScm$DescriptorImpl : org.jenkinsci.plugins.darcs.DarcsScm$DescriptorImpl
at org.jenkinsci.plugins.darcs.DarcsScmDescriptor.(DarcsScmDescriptor.java:66)
1 error
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at hudson.ExtensionFinder$GuiceFinder$4$1.get(ExtensionFinder.java:422)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391)
at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382)
at hudson.ExtensionFinder._find(ExtensionFinder.java:151)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:318)
at hudson.ExtensionList.load(ExtensionList.java:295)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
at hudson.ExtensionList.iterator(ExtensionList.java:138)
at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1171)
at org.codefirst.jenkins.wsnotifier.WsServer.init(WsServer.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:883)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: org.jenkinsci.plugins.darcs.DarcsScm$DescriptorImpl : org.jenkinsci.plugins.darcs.DarcsScm$DescriptorImpl
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:68)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:71)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:86)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:96)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:231)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:56)
at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)
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:104)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
at hudson.XmlFile.unmarshal(XmlFile.java:160)
at hudson.model.Descriptor.load(Descriptor.java:806)
at hudson.scm.SCMDescriptor.load(SCMDescriptor.java:80)
at org.jenkinsci.plugins.darcs.DarcsScmDescriptor.(DarcsScmDescriptor.java:67)
at org.jenkinsci.plugins.darcs.DarcsScmDescriptor$$FastClassByGuice$$2ab6e7a.newInstance()
at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
... 28 more
Mar 6, 2013 1:58:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Mar 6, 2013 1:58:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Mar 6, 2013 1:58:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Mar 6, 2013 1:58:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Mar 6, 2013 1:58:05 PM hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring /var/lib/jenkins/plugins/git.jpi because /var/lib/jenkins/plugins/git.hpi is already loaded
Mar 6, 2013 1:58:04 PM hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring /var/lib/jenkins/plugins/darcs.jpi because /var/lib/jenkins/plugins/darcs.hpi is already loaded
Mar 6, 2013 1:58:04 PM hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring /var/lib/jenkins/plugins/github.jpi because /var/lib/jenkins/plugins/github.hpi is already loaded
Mar 6, 2013 1:58:03 PM hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring /var/lib/jenkins/plugins/github-api.jpi because /var/lib/jenkins/plugins/github-api.hpi is already loaded
Mar 6, 2013 1:58:03 PM hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring /var/lib/jenkins/plugins/websocket.jpi because /var/lib/jenkins/plugins/websocket.hpi is already loaded
Mar 6, 2013 1:58:00 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Does this happen with the SNAPSHOT version or the official 0.3.7. With the official 0.3.7 this should not happen. If it happens, then my "backword compat" fix is broken :(
It happens with the official 0.3.7 plugin. I am lagging a little bit on jenkins version however (probably 1 or 2 version late).
I have used the official upgrade to 0.3.7.
Damn! That must not happen. I've to investigate that and ask on the developer list. Deleting the file org.jenkinsci.plugins.darcs.DarcsScm.xml should help for the moment. You will only lose the global configuration of the plugin (where the darcs binary lives).
OK, I have removed the file /var/lib/jenkins/org.jenkinsci.plugins.darcs.DarcsScm.xml and restarted jenkins.
Now, I can access darcs configuration for my project. However, I still have the initial problem:
Started by user Sylvain Le Gall
Building in workspace /var/lib/jenkins/jobs/ocaml-fileutils/workspace
$ darcs get http://darcs.ocamlcore.org/repos/ocaml-fileutils /var/lib/jenkins/jobs/ocaml-fileutils/workspace
darcs failed: Not a repository: http://darcs.ocamlcore.org/repos/ocaml-fileutils (.: openBinaryTempFile: permission denied (Permission denied))
ERROR: Failed to get repo from http://darcs.ocamlcore.org/repos/ocaml-fileutils
org.jenkinsci.plugins.darcs.DarcsCmd$DarcsCmdException: Can not get repo with args: darcs get http://darcs.ocamlcore.org/repos/ocaml-fileutils /var/lib/jenkins/jobs/ocaml-fileutils/workspace
at org.jenkinsci.plugins.darcs.DarcsCmd.get(DarcsCmd.java:157)
at org.jenkinsci.plugins.darcs.DarcsScm.getRepo(DarcsScm.java:416)
at org.jenkinsci.plugins.darcs.DarcsScm.checkout(DarcsScm.java:324)
See here:
http://deci.ovh.le-gall.net:8080/job/ocaml-fileutils/1/console
I can not reproduce this error on a test Jenkins. This is an error message originated by darcs " (.: openBinaryTempFile: permission denied (Permission denied))". If you google for that you will find various discussions of that, such this one http://irclog.perlgeek.de/darcs/2012-04-19
Is it possible that you have "bad" permissions fot the workspace?
What version of darcs do you use? I test with 2.5 on Mac OS X and 2.8 on Debian.
What happens if you do a darcs get via shell in that directory (/var/lib/jenkins/jobs/ounit/workspace)?
I can reproduce it on my debian machine. Crazy: The same shell comand which jenkins runs works fine in the shell. WTF?!
I get a slitely different error:
Started by user Sven Strittmatter [EnvInject] - Loading node environment variables. Building in workspace /var/lib/jenkins/jobs/foofoo/workspace $ darcs get http://darcs.ocamlcore.org/repos/ocaml-fileutils /var/lib/jenkins/jobs/foofoo/workspace darcs failed: Not a repository: http://darcs.ocamlcore.org/repos/ocaml-fileutils (.: openBinaryTempFile: permission denied (Permission denied)) HINT: Do you have the right URI for the repository? If so, check with the repository owner to see if the following files are readable: 1. _darcs/format - might not exist; that's OK 2. _darcs/inventory - should exist if #1 is missing 3. _darcs/hashed_inventory - should exist if #2 is missing ERROR: Failed to get repo from http://darcs.ocamlcore.org/repos/ocaml-fileutils org.jenkinsci.plugins.darcs.DarcsCmd$DarcsCmdException: Can not get repo with args: darcs get http://darcs.ocamlcore.org/repos/ocaml-fileutils /var/lib/jenkins/jobs/foofoo/workspace at org.jenkinsci.plugins.darcs.DarcsCmd.get(DarcsCmd.java:157) at org.jenkinsci.plugins.darcs.DarcsScm.getRepo(DarcsScm.java:416) at org.jenkinsci.plugins.darcs.DarcsScm.checkout(DarcsScm.java:324) at hudson.model.AbstractProject.checkout(AbstractProject.java:1342) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1567) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.jenkinsci.plugins.darcs.DarcsCmd$DarcsCmdException: Getting repo with args darcs get http://darcs.ocamlcore.org/repos/ocaml-fileutils /var/lib/jenkins/jobs/foofoo/workspace returne 2 at org.jenkinsci.plugins.darcs.DarcsCmd.get(DarcsCmd.java:154) ... 10 more Finished: FAILURE
So first, this is a real "good" repository:
gildor@deci:~$ darcs get http://darcs.ocamlcore.org/repos/ocaml-fileutils
Copying patches, to get lazy repository hit ctrl-C...
Copying patches 98 done, 22 queued. back to TAG 0.1.1
I can easily reproduce the error:
gildor@deci:/home$ darcs get http://darcs.ocamlcore.org/repos/ocaml-fileutils /home/gildor/workspace
darcs failed: Not a repository: http://darcs.ocamlcore.org/repos/ocaml-fileutils (.: openBinaryTempFile: permission denied (Permission denied))
(I just did a cd .. from $HOME), I have write access to /home/gildor.
I have straced the process and single out the problem:
[pid 16011] open("./darcs16011", O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_NONBLOCK, 0600) = -1 EACCES (Permission denied)
[pid 16011] ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff77f38e80) = -1 EINVAL (Invalid argument)
[pid 16011] open("./darcs16011", O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_NONBLOCK, 0600) = -1 EACCES (Permission denied)
[pid 16011] getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
[...]
[pid 16011] write(2, "\n", 1
) = 1
[pid 16011] select(3, [], [2], NULL, {0, 0}) = 1 (out [2], left {0, 0})
[pid 16011] write(2, "darcs failed: Not a repository:"..., 145darcs failed: Not a repository: http://darcs.ocamlcore.org/repos/ocaml-fileutils (.: openBinaryTempFile: permission denied (Permission denied))
So darcs for whatever crazy reason, try to create a file in ./ (so where the program is located).
You really need to do a chdir to a writeable directory before anythinhg (e.g chdir to /var/lib/jenkins/jobs/foofoo/ or /tmp).
Thank you for debugging that. I'll implement the chdir and give this info to the #darcs guys. I think this is new in darcs 2.8.
I am using darcs 2.4.4.
If I dod the same thing with darcs 2.8.1, I get:
:/home$ darcs get http://darcs.ocamlcore.org/repos/ocaml-fileutils /home/gildor/workspace
darcs failed: Not a repository: http://darcs.ocamlcore.org/repos/ocaml-fileutils (.: openBinaryTempFile: permission denied (Permission denied))
HINT: Do you have the right URI for the repository?
If so, check with the repository owner to see if the following files
are readable:
1. _darcs/format - might not exist; that's OK
2. _darcs/inventory - should exist if #1 is missing
3. _darcs/hashed_inventory - should exist if #2 is missing
Which is the error you see on your computer.
Although, there is no chdir in java (just see that). However Hudson.Launcher seems to allow changing the pwd(dirname(...)).
I've implemented current working dir inside the job directory in version .0.3.8.
Great, I see the changelog in the jenkins wiki but the 0.3.8 version is not yet proposed. Do you know how much time it takes to be able to get it from the Jenkins repository ?
I've no idea. I think it should appear now.
This is fixed in 0.3.8 (however, there is another bug)