SVN出问题,unable to connect to a repository at url 'svn //localhost'

愚公移码 2013-12-22 10:56:25


这是什么原因,我SVN出的问题
...全文
115901 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
huang_zhi_hua 2015-08-08
  • 打赏
  • 举报
回复
搭建在CentOS下的svn 配置文件不正确导致的不能正常使用的错误 svn的配置文件有的地方需要空格,有的地方不需要空格,配置文件一个不正确,就可能导致svn不能正常使用,通过配置文件这种严格的空格要求看来,svn的设计者应该是写shell程序比较多的。 此几行配置所在行第一个字母前不能有任何空格,配置项等号左右两边各一个空格。配置项后面也不要紧跟着#之类的注释字符 下面是修改好的一个配置文件片段样板 文件:/home/svn/repos/conf/svnserve.conf ----------------------svnserve.conf 修改后 begin -------------------------- ### Visit http://subversion.apache.org/ for more information. [general] anon-access = read auth-access = write password-db = passwd authz-db = authz realm = repos ----------------------svnserve.conf 修改后 end ------------------ svnserve.conf 修改前 文字“#用户密码文件”和这行文字前面仅邻它的一个空格是多余的 文字“#授权登录文件”和这行文字前面仅邻它的一个空格是多余的 ----------------------svnserve.conf 修改前 begin -------------------------- ### Visit http://subversion.apache.org/ for more information. [general] anon-access = read auth-access = write password-db = passwd #用户密码文件 authz-db = authz #授权登录文件 realm = repos ----------------------svnserve.conf 修改前 end ------------------ 配置文件配置不正确时 svn list 命令的错误提示 [root@server-100 ~]# svn list svn://10.168.1.103:9999/repos svn: E170013: Unable to connect to a repository at URL 'svn://10.168.1.103:9999/repos' svn: E215004: Authentication failed 配置文件配置正确时svn list 命令执行正常的提示信息: [root@server-100 ~]# svn list svn://10.168.1.103:9999/repos Authentication realm: <svn://10.168.1.103:9999> repos Password for 'svn_admin': ********* ----------------------------------------------------------------------- ATTENTION! Your password for authentication realm: <svn://10.168.1.103:9999> repos can only be stored to disk unencrypted! You are advised to configure your system so that Subversion can store passwords encrypted, if possible. See the documentation for details. You can avoid future appearances of this warning by setting the value of the 'store-plaintext-passwords' option to either 'yes' or 'no' in '/root/.subversion/servers'. ----------------------------------------------------------------------- Store password unencrypted (yes/no)? yes [root@server-100 ~]#
l_wKong 2014-12-11
  • 打赏
  • 举报
回复
大师,问下是哪些需要空格,哪些不需要?
qq_18972305 2014-11-21
  • 打赏
  • 举报
回复
conf 是哪里的包?
csdn_azn 2014-10-23
  • 打赏
  • 举报
回复
我今天也被这个问题折磨惨了。。
UDown 2013-12-23
  • 打赏
  • 举报
回复
要是以前连接没问题的话,应该是网络的问题
愚公移码 2013-12-23
  • 打赏
  • 举报
回复
这个svn搞定了,是conf下面的配置文件前面取消注释的时候有空格,去掉空格就行了,这个svn服务搭建对配置空格要求特别严格,有些需要空格,有些必须每空格,不然总是出错。我的事windows 7
tony4geek 2013-12-23
  • 打赏
  • 举报
回复
没有端口号?

67,549

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧