svn:无法打开到网址

时间:2015-04-24 09:35:26

标签: windows svn jenkins tortoisesvn

尝试使用jenkins配置svn并获得以下错误。

  

无法访问file:// localhost / D:\ repositories:svn:E180001:   无法打开到URL svn的ra_local会话:E180001:无法打开   repository' file:// localhost / D:%5Crepositories'

我可以访问Jenkins。

我也尝试使用svn和http协议,我得到了这个错误:

  

svn:E210003:未知主机

并且还有给定的凭据,但都没有。

以下是Jenkins中显示的堆栈跟踪:

  

org.tmatesoft.svn.core.SVNException:svn:E180001:无法打开   ra_local会话到URL svn:E180001:无法打开存储库   '文件://本地主机/ d:%5Crepositories' svn:E180001:无法打开   repository' file:// localhost / D:%5Crepositories'在   org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)     在   org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)     在   org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSRepository.java:796)     在   org.tmatesoft.svn.core.internal.io.fs.FSRepository.testConnection(FSRepository.java:105)     在   hudson.scm.SubversionSCM $ DescriptorImpl.checkRepositoryPath(SubversionSCM.java:2282)     在   hudson.scm.SubversionSCM $ ModuleLocation $ DescriptorImpl.checkCredentialsId(SubversionSCM.java:3043)     在   hudson.scm.SubversionSCM $ ModuleLocation $ DescriptorImpl.doCheckCredentialsId(SubversionSCM.java:3016)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)at   sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)at   java.lang.reflect.Method.invoke(未知来源)at   org.kohsuke.stapler.Function $ InstanceFunction.invoke(Function.java:298)     在org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)at   org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)     在org.kohsuke.stapler.MetaClass $ 1.doDispatch(MetaClass.java:121)at at   org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)     在org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)at   org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)at at   org.kohsuke.stapler.MetaClass $ 6.doDispatch(MetaClass.java:249)at at   org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)     在org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)at   org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)at at   org.kohsuke.stapler.MetaClass $ 6.doDispatch(MetaClass.java:249)at at   org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)     在org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)at   org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)at at   org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)at at   org.kohsuke.stapler.Stapler.service(Stapler.java:238)at at   javax.servlet.http.HttpServlet.service(HttpServlet.java:848)at at   org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)     在   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1494)     在   hudson.util.PluginServletFilter $ 1.doFilter(PluginServletFilter.java:123)     在   hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114)     在   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)     在hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)at   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)     在   hudson.security.ChainedServletFilter $ 1.doFilter(ChainedServletFilter.java:84)     在   hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)     在hudson.security.HudsonFilter.doFilter(HudsonFilter.java:168)at   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)     在   org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)     在   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)     在   hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)     在   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)     在   org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)     在   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1474)     在   org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)     在   org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)     在   org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)     在   org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)     在   org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)     在   org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)     在   org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)     在   org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)     在   org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)     在   org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)     在org.eclipse.jetty.server.Server.handle(Server.java:370)处   org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)     在   org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)     在   org.eclipse.jetty.server.AbstractHttpConnection $ RequestHandler.headerComplete(AbstractHttpConnection.java:1011)     在org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)     在   org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)     在   org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)     在   org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)     在   org.eclipse.jetty.io.nio.SelectChannelEndPoint $ 1.run(SelectChannelEndPoint.java:52)     在   winstone.BoundedExecutorService $ 1.run(BoundedExecutorService.java:77)     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source)     在java.lang.Thread.run(未知来源)

1 个答案:

答案 0 :(得分:0)

检查网址。您使用的是file://localhost/D:\repositories,但这是一个无效的网址,这就是您无法连接到它的原因!

您必须在URL中仅使用正斜杠而不是反斜杠。此外,文件协议需要三个斜杠:

file:///localhost/D:/repositories

将是正确的网址。