无法在 Windows XP 上打开存储库错误 [英] Unable to open repository error on Windows XP
问题描述
我正在尝试使用我的本地 SVN,它一直运行良好,但今天出现此错误:
无法打开存储库'file:///C:/wamp/www/svns/[myproject]/[dir]/[subdir]'
可能是什么问题?
完整错误:
提交失败(详情如下):无法打开到 URL 的 ra_local 会话无法打开存储库'file:///C:/wamp/www/svns/[myproject]/[dir]/[subdir]'
第二次
这是 TortoiseSVN 和 SVN 客户端信息:
TortoiseSVN 1.5.7, Build 15182 - 32 Bit , 2009/01/24 22:44:13颠覆 1.5.5,12 年 4 月 12 日apr-utils 1.2.12伯克利数据库 4.4.20霓虹灯 0.28.3OpenSSL 0.9.8i 2008 年 9 月 15 日zlib 1.2.3
使用 file://URL 方案访问存储库可能会导致存储库损坏,因为 file://协议本质上是无状态的,并且通常不被使用当一个仓库有多个用户时.
因此,您可能希望使用 svn://URL 方案来验证存储库是否确实已损坏.这是因为 Subversion 处理不同 URL 方案的方式 - 它使用存储库访问层来处理 URL 方案.RA 层中的不同模块处理适当的协议,如 file://、svn://、http://等.在您的情况下,ra_local 模块报告错误,因为它处理 file://URL 方案.>
如果您使用 svnserve 守护程序,则可以使用 svn://URL 方案.我在这里有点冒昧,但假设你有 svnserve 守护进程配置为作为窗口服务运行.svnserve 的根目录在这里很重要——URL 中的路径是相对于根目录的.
假设 C:/wamp/www/svns/[myproject] 是您的存储库,并且 svnserve 的根目录设置为 C:/wamp/www/svns,您可以尝试使用 svn://访问该项目主机名/[myproject].
另一方面,由于您使用的是 BDB 而不是 FSFS,请查看 Subversion 站点上的以下常见问题解答条目:
- 恢复 BDB 存储库 请记住 Stefan 的建议 关于在尝试进行恢复之前首先运行 svnadmin verify.
- 正确设置存储库权限
PS:备份很有帮助.
I'm trying to commit to my local SVN which has been working just fine, but today its giving this error:
Unable to open repository
'file:///C:/wamp/www/svns/[myproject]/[dir]/[subdir]'
What could be the problem?
Edit: full error:
Commit failed (details follow):
Unable to open an ra_local session to URL
Unable to open repository
'file:///C:/wamp/www/svns/[myproject]/[dir]/[subdir]'
Second Edit:
Here is the TortoiseSVN and SVN client info:
TortoiseSVN 1.5.7, Build 15182 - 32 Bit , 2009/01/24 22:44:13
Subversion 1.5.5,
apr 1.2.12
apr-utils 1.2.12
berkeley db 4.4.20
neon 0.28.3
OpenSSL 0.9.8i 15 Sep 2008
zlib 1.2.3
The usage of the file:// URL scheme to access repositories might result in repository corruption since the file:// protocol is stateless by nature, and is often not used when there are multiple users for a repository.
Therefore you might want to use the svn:// URL scheme to verify if the repository has indeed been corrupted. This is because of the manner in which Subversion handles different URL schemes - it uses the repository access layer to handle the URL schemes. Different modules in the RA layer handle the appropriate protocols like file://, svn://, http:// etc. In your case the ra_local module was reporting the error since it handles the file:// URL scheme.
The svn:// URL scheme can be utilized if you are utilizing the svnserve daemon. I'm being a bit presumptuous here, but assuming that you have the svnserve daemon configured to run as a Window Service. The root directory for svnserve is important here - the path in the URL is relative to the root.
Assuming that C:/wamp/www/svns/[myproject] is your repository and the root directory for svnserve is set to C:/wamp/www/svns, you can attempt to access the project using svn://hostname/[myproject].
On a different note, since you are using BDB instead of FSFS, do take a look at the following FAQ entries on the Subversion site:
- Recovering the BDB repository Do remember Stefan's advice on running svnadmin verify first before attempting to do a recovery.
- Setting repository permissions correctly
PS: Backups are helpful.
这篇关于无法在 Windows XP 上打开存储库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!