svn:无法找到存储库
我正在尝试在我的家庭网络上的 Ubuntu 服务器上设置 svn。我已经使用 svnadmin create /opt/svn 在该盒子上创建了存储库,并且成功了。我已经在这个机器上安装了 ssh,并希望通过 ssh 建立 svn 隧道,这样我就可以通过防火墙打开 svn 并随时签入代码。
我在 ubuntu 工作站上。我创建一个名为 spenser 的主机条目,它指向我的 svn 服务器的 IP 地址,然后键入
ssh spenser
登录框并在此框上创建 rsa(或其他)密钥。现在我应该很好。
所以我启动 eclipse 并进入 sublipse svn 存储库浏览器来创建我的存储库链接。我使用 svn+ssh://spenser。我收到 ssh 质询并输入我的密码。然后我得到:
Couldn't find a repository
svn: Unable to connect to a repository at URL 'svn+ssh://spenser'
svn: No repository found in 'svn+ssh://spenser'
我查看服务器上的 svnserve,我看到:
thom@spenser:~$ ps aux|grep svn
root 2015 0.0 0.2 11936 640 ? Ss 08:07 0:00 /usr/bin/svnserve -d -r /opt/svn
这意味着它指向正确的存储库。我查看存储库:
thom@spenser:~$ ls -l /opt/svn
total 24
drwxr-xr-x 2 root root 4096 2012-01-31 07:03 conf
drwxr-sr-x 6 root root 4096 2012-01-29 12:51 db
-r--r--r-- 1 root root 2 2012-01-29 12:51 format
drwxr-xr-x 2 root root 4096 2012-01-29 12:51 hooks
drwxr-xr-x 2 root root 4096 2012-01-29 12:51 locks
-rw-r--r-- 1 root root 229 2012-01-29 12:51 README.txt
我缺少什么?
I'm attempting to setup svn on my home network on an Ubuntu server box. I have created the repository on that box using svnadmin create /opt/svn and this was successful. I have installed ssh on this box and want to tunnel svn through ssh so I can open svn through the firewall and check in code on the go.
I am on an ubuntu workstation. I create a host entry called spenser that points to the IP address of my svn server and type
ssh spenser
to login to the box and create the rsa (or whatever) key on this box. Now I should be good.
So I start eclipse and go into sublipse svn repository browser to create my repository link. I use svn+ssh://spenser. I get the ssh challenge and enter my password. Then I get:
Couldn't find a repository
svn: Unable to connect to a repository at URL 'svn+ssh://spenser'
svn: No repository found in 'svn+ssh://spenser'
I look at svnserve on the server and I see:
thom@spenser:~$ ps aux|grep svn
root 2015 0.0 0.2 11936 640 ? Ss 08:07 0:00 /usr/bin/svnserve -d -r /opt/svn
Which means that it's pointing to the right repository. I look at the repository:
thom@spenser:~$ ls -l /opt/svn
total 24
drwxr-xr-x 2 root root 4096 2012-01-31 07:03 conf
drwxr-sr-x 6 root root 4096 2012-01-29 12:51 db
-r--r--r-- 1 root root 2 2012-01-29 12:51 format
drwxr-xr-x 2 root root 4096 2012-01-29 12:51 hooks
drwxr-xr-x 2 root root 4096 2012-01-29 12:51 locks
-rw-r--r-- 1 root root 229 2012-01-29 12:51 README.txt
What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不是这方面的专家,但 svn+ssh:// 无法连接到目标服务器上正在运行的 svnserve。 svnserve 进程在 SSH 会话本身中生成并通过隧道返回给您。我相信您需要指定 svn+ssh://spenser/opt/svn
我建议您参阅 Subversion 书籍以获取更多信息:
http://svnbook.red-bean.com/en/1.7/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sshauth
I am not an expert in this area, but svn+ssh:// does NOT connect to a running svnserve on the target server. The svnserve process is spawned in the SSH session itself and tunnelled back to you. I believe you need to specify svn+ssh://spenser/opt/svn
I refer you to the Subversion book for more information:
http://svnbook.red-bean.com/en/1.7/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sshauth
如果不存在创建它
和
if not exist create it
and