SVN 设置...无法连接到存储库但可以 ping 主机
SVN setup... Unable to connect to a repository but can ping host
我有一个正在为项目设置的 svn 服务器。我已经安装了 SVN,启动它并 运行 一个新的 SVN 用户,在密码文件中创建了 user/password 组合,并使其在 svnserve.conf 中可用。我在我的 SVN 用户文件夹中创建了一个存储库文件夹,并且 "svnserve -d -r /home/svn/repositories"。我在我当前项目的存储库中创建了一个文件夹...
所以我有
/home/svn/repositories/my_new_project
我在我的服务器上 运行 netstat -lntp
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
24405/svnserve
...etc...
现在,跳出服务器,跳到我的客户端机器上,检查服务器是否启动,我
ping my_network_server_name_here
使用 32 字节的数据 Ping my_network_server_name_here [1.2.3.4]:
Reply from [1.2.3.4]: bytes=32 time=1ms TTL=62
Reply from [1.2.3.4]: bytes=32 time=1ms TTL=62
Reply from [1.2.3.4]: bytes=32 time=2ms TTL=62
Reply from [1.2.3.4]: bytes=32 time=3ms TTL=62
而且我的 ping 速率很好,所以我知道服务器可以访问。
我安装了 tortoiseSVN。我右键单击要添加到存储库的文件夹,点击导入,然后将其发送到
svn://my_network_server_name_here:3690/my_new_project
我得到的回复是...
Unable to connect to a repository at URL
svn://my_network_server_name_here/my_new_project
Can't connect to host 'my_network_server_name': A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because the connected host has failed to respond.
我的问题是……我哪里搞砸了?
对于 svnserve -d -r /home/svn/repositories
URL of repo svn://my_network_server_name_here:3690/my_new_project
表示:您在文件夹 my_new_project
中创建了存储库 (svnadmin create)。正确吗?
嗯,0.0.0.0:3690
表示 "svnserve listen on all interfaces",但不表示 "you can connect to it on all interfaces"。因为一些中间工具可以阻止与 svnserve 的连接。您可以在 SVN 中使用 轻量级命令 (例如 svn ls URL
)
- 尝试使用主机名
localhost
从存储库的主机连接到存储库
- 如果正常,使用主机的 FQDN 从存储库的主机连接到存储库
- 如果正常,从外部主机连接到 repo,减少每次迭代的中间主机数量
预期路由上有防火墙,阻止访问未列入列表的端口
我有一个正在为项目设置的 svn 服务器。我已经安装了 SVN,启动它并 运行 一个新的 SVN 用户,在密码文件中创建了 user/password 组合,并使其在 svnserve.conf 中可用。我在我的 SVN 用户文件夹中创建了一个存储库文件夹,并且 "svnserve -d -r /home/svn/repositories"。我在我当前项目的存储库中创建了一个文件夹...
所以我有
/home/svn/repositories/my_new_project
我在我的服务器上 运行 netstat -lntp
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
24405/svnserve
...etc...
现在,跳出服务器,跳到我的客户端机器上,检查服务器是否启动,我
ping my_network_server_name_here
使用 32 字节的数据 Ping my_network_server_name_here [1.2.3.4]:
Reply from [1.2.3.4]: bytes=32 time=1ms TTL=62
Reply from [1.2.3.4]: bytes=32 time=1ms TTL=62
Reply from [1.2.3.4]: bytes=32 time=2ms TTL=62
Reply from [1.2.3.4]: bytes=32 time=3ms TTL=62
而且我的 ping 速率很好,所以我知道服务器可以访问。 我安装了 tortoiseSVN。我右键单击要添加到存储库的文件夹,点击导入,然后将其发送到
svn://my_network_server_name_here:3690/my_new_project
我得到的回复是...
Unable to connect to a repository at URL
svn://my_network_server_name_here/my_new_project
Can't connect to host 'my_network_server_name': A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because the connected host has failed to respond.
我的问题是……我哪里搞砸了?
对于 svnserve -d -r /home/svn/repositories
URL of repo svn://my_network_server_name_here:3690/my_new_project
表示:您在文件夹 my_new_project
中创建了存储库 (svnadmin create)。正确吗?
嗯,0.0.0.0:3690
表示 "svnserve listen on all interfaces",但不表示 "you can connect to it on all interfaces"。因为一些中间工具可以阻止与 svnserve 的连接。您可以在 SVN 中使用 轻量级命令 (例如 svn ls URL
)
- 尝试使用主机名
localhost
从存储库的主机连接到存储库
- 如果正常,使用主机的 FQDN 从存储库的主机连接到存储库
- 如果正常,从外部主机连接到 repo,减少每次迭代的中间主机数量
预期路由上有防火墙,阻止访问未列入列表的端口