hudson错误解决

简介:

scm-sync-configuration - Fails with E200015: authentication cancelled

 

I was running Hudson 1.396 and using scm-sync-configuration without any problems.

I moved to Hudson 2.2.1 with a fresh install and configuration of Hudson. I have my jobs building correctly, but I cannot get scm-sync-configuration to work correctly. I even move the previous SVN folder into a tag and created an empty folder for it to populate, but I always get this error:

Unable to access http://beagle.hcs.us.com/svn/admin/trunk/ : svn: E200015: authentication cancelled

org.tmatesoft.svn.core.SVNCancelException: svn: E200015: authentication cancelled
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:37)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:32)
at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:177)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:580)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:286)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:696)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:619)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:103)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1016)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:99)
at hudson.scm.SubversionSCMDescriptorImpl.checkRepositoryPath(SubversionSCM.java:2014)athudson.scm.SubversionSCMDescriptorImpl.checkRepositoryPath(SubversionSCM.java:2014)athudson.scm.SubversionSCMDescriptorImpl.doCheckRemote(SubversionSCM.java:1945)
at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.kohsuke.stapler.FunctionInstanceFunction.invoke(Function.java:282)atorg.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)atorg.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)atorg.kohsuke.stapler.MetaClassInstanceFunction.invoke(Function.java:282)atorg.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)atorg.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)atorg.kohsuke.stapler.MetaClass1.doDispatch(MetaClass.java:103)
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.MetaClass6.doDispatch(MetaClass.java:233)atorg.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)atorg.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)atorg.kohsuke.stapler.Stapler.invoke(Stapler.java:658)atorg.kohsuke.stapler.MetaClass6.doDispatch(MetaClass.java:233)atorg.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)atorg.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)atorg.kohsuke.stapler.Stapler.invoke(Stapler.java:658)atorg.kohsuke.stapler.MetaClass6.doDispatch(MetaClass.java:233)
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:489)
at org.kohsuke.stapler.Stapler.service(Stapler.java:160)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
at hudson.util.PluginServletFilter1.doFilter(PluginServletFilter.java:94)atorg.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:180)atorg.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:148)athudson.util.PluginServletFilter1.doFilter(PluginServletFilter.java:94)atorg.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:180)atorg.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:148)athudson.util.PluginServletFilter1.doFilter(PluginServletFilter.java:97)
at org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:180)
at org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:148)
at hudson.util.PluginServletFilter1.doFilter(PluginServletFilter.java:97)athudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)atwinstone.FilterConfiguration.execute(FilterConfiguration.java:195)atwinstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)athudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)atwinstone.FilterConfiguration.execute(FilterConfiguration.java:195)atwinstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)athudson.security.ChainedServletFilter1.doFilter(PluginServletFilter.java:97)athudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)atwinstone.FilterConfiguration.execute(FilterConfiguration.java:195)atwinstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)athudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)atwinstone.FilterConfiguration.execute(FilterConfiguration.java:195)atwinstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)athudson.security.ChainedServletFilter1.doFilter(ChainedServletFilter.java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Unknown Source)

(Maybe you need to enter credential?)

----- End Copy and Paste —
Entering a credential doesn't work, even if I mark it as global override. I created a Hudson job (as requested in the troubleshooting) and it is able to checkout the folder without problems.

I also followed the instructions here:
http://blog.vinodsingh.com/2009/08/hudson-svn-authentication-cancelled.html
However, I'm on Windows, so I may have missed something I should have deleted (I deleted the folder under Application Data and it didn't come back).

At this point, I'm at a loss as to how to make it work.,

这个东西折腾了好久,网上一个老外说是因为hudson的一位credential被记住的问题。 所以删除~./hudson 这个文件夹。

但是删除后还是不能起效。

最后找到原因了,我用的是svn,用的是https://的地址。

改成http://的地址,输入对应的地址就可以解决这个问题了。

更改你对应的visualSVN的地址即可。

 

服务器端配置中不需要配置SVN,只需要配置visualSVN一个SVN的服务器即可。


本文转自hcy's workbench博客园博客,原文链接:http://www.cnblogs.com/alterhu/archive/2012/08/18/2645761.html,如需转载请自行联系原作者。


目录
相关文章
关于gitlab 项目没有按照指定的runners运行报错
关于gitlab 项目没有按照指定的runners运行报错
关于gitlab 项目没有按照指定的runners运行报错
|
jenkins Linux 持续交付
Jenkins - Linux下启动Jenkins报错hudson.WebAppMain#contextDestroyed: Shutting down a Jenkins instance that was still starting up
Jenkins - Linux下启动Jenkins报错hudson.WebAppMain#contextDestroyed: Shutting down a Jenkins instance that was still starting up
328 0
Jenkins - Linux下启动Jenkins报错hudson.WebAppMain#contextDestroyed: Shutting down a Jenkins instance that was still starting up
|
Java
java安装1335错误解决办法(亲测)
心血来潮想了解一下java,结果一开始就碰到了让心“恶心”的1335错误。废话不多说,直接看下面: 你可以先尝试在这个链接下载java.exe文件http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.
2169 0
|
jenkins Java 关系型数据库