简体   繁体   English

SVN提交失败-访问被拒绝:500 Internal Server error

[英]SVN Commit failled - Access is denied : 500 Internal Server error

I have recently moved my VisualSVN Server 2.5.2 to a new machine(from Windows Server 2003 to Windows Server 2008 R2) in the same network moving the /Repositories directory from one machine to another (copy/paste). 我最近将我的VisualSVN Server 2.5.2移动到了同一网络中的新计算机(从Windows Server 2003到Windows Server 2008 R2),将/Repositories目录从一台计算机移动到另一台计算机(复制/粘贴)。

I use Subversion from inside my JDeveloper installation 11.1.1.4 to keep track of my coding. 我从JDeveloper安装11.1.1.4内部使用Subversion来跟踪代码。 The checkout functionality is working OK. 结帐功能正常运行。 When I try to commit something through JDeveloper I get the following error: 当我尝试通过JDeveloper提交内容时,出现以下错误:

svn:Commit failled (details follow):
svn: Can't open file 'C:\Repositories\xxxxxxx\db\txn-current-lock': Access is denied.
svn: MKACTIVITY of '/svn/xxxxxxx/!svn/act/xxxxxx-xxxx-xxxx-xxxxxx': 500 Internal Server Error(https://nameOfMyServer)

The commit is done using: 提交使用以下命令完成:

commit -m "" C:/JDeveloper/mywork/newRepo/xxxxx/xxxx/xxxx/Filename.java 

When i try to commit using TortoiseSVN (1.7.7 64bit) through a file System I get the following error : 当我尝试通过文件系统使用TortoiseSVN(1.7.7 64bit)提交时,出现以下错误:

Commit
Commit failed (details follow):
The POST request returned invalid XML in the response: XML parse error at line
 3: not well-formed (invalid token) (/svn/xxxxxxxxxxx/!svn/me)

The checkout also works fine using TortoiseSVN. 使用TortoiseSVN,结帐也可以正常工作。

Please note that I have double-checked all permission in my repositories and the user I login as has all read/write privileges. 请注意,我已经仔细检查了存储库中的所有权限,并且以具有所有读/写权限的身份登录的用户。

It seems that the VisualSVN Server service account ( 'Network Service' by default) lacks modify NTFS permissions to the repositories root folder ( 'C:\\Repositories' ) and it's childs. 似乎VisualSVN Server服务帐户(默认为“网络服务” )缺少对存储库根文件夹( “ C:\\ Repositories” )的修改NTFS权限,并且它是子项。

You can also force the permissions through VisualSVN Server Manager. 您还可以通过VisualSVN服务器管理器强制授予权限。

自动调整权限

See Permissions required to run VisualSVN Server 请参阅运行VisualSVN Server所需的权限

Solved. 解决了。

Just Upgraded VisualSVNServer sosftware from 2.5.2 to 2.5.4 and now is working ok. 刚刚将VisualSVNServer软件从2.5.2升级到2.5.4,现在可以正常工作了。 I am not sure exactly what the problem was. 我不确定到底是什么问题。 I have not tested the solution provided by bahrep . 我尚未测试bahrep提供的解决方案。 It could well be also a solution. 这也很可能是一个解决方案。

This may be a PERMISSIONS issue. 这可能是PERMISSIONS问题。 Grant 777 permission to your repository folder on server. 向服务器上的存储库文件夹授予777权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM