linux上svn checkout报错:svn: E210005

版权声明:欢迎转载,转载请注明出处 https://blog.csdn.net/miss1181248983/article/details/82258007

今天做SVN实验在 svn checkout的时候,遇到一个问题:

svn: E210005: Unable to connect to a repository at URL 'svn://192.168.33.150/myproject'
svn: E210005: No repository found in 'svn://192.168.33.150/myproject'

前几天也遇到这个了问题,但是今天我换了一台机器做实验的时候又遇到了,神奇的是我忘了自己之前是怎么解决的了,这可就把自己坑了。

网上查了很多方法,大部分都是直接在Windows上操作怎么弄,甚至有的答非所问,毫无参考意义。

这里第一步检查服务启动有没有问题:

[root@local conf]# ps aux|grep svnserve
root       1021  0.0  0.0 162240   652 ?        Ss   03:44   0:00 svnserve -d -r /data/svnroot/
root       1023  0.0  0.0 112704   964 pts/0    R+   03:44   0:00 grep --color=auto svnserve
[root@local conf]# netstat -lntp |grep svnserve
tcp        0      0 0.0.0.0:3690            0.0.0.0:*               LISTEN      1021/svnserve          //发现没什么问题     

再查看机器的防火墙和selinux:

[root@local conf]# iptables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
[root@local conf]# getenforce
Disabled

都没问题,已经关闭了

那怎么会不通呢,ping和telnet 端口的时候都是通的,有点没道理。

这时,我注意到自己启动svnserve服务时启动的目录是不是有问题?于是重启服务:

[root@local home]# svnserve -d -r /data/svnroot/myporject/
[root@local home]# svn checkout svn://192.168.33.150/myproject --username=user1
Authentication realm: <svn://192.168.33.150:3690> /data/svnroot/myproject
Password for 'user1':

果然是这个目录有问题,所以大家在遇到这个问题的时候可以尝试更换一下启动时的目录,说不定问题就解决了呢!

猜你喜欢

转载自blog.csdn.net/miss1181248983/article/details/82258007
今日推荐