SVN:我的存储库访问中出现 500 内部服务器错误 [英] SVN : 500 internal server error on my repository access

查看:133
本文介绍了SVN:我的存储库访问中出现 500 内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(操作系统是 Ubuntu 服务器)

(OS is Ubuntu Server)

我用这样的 SVN 创建了一个新的存储库:

I create a new repository with SVN like that :

$ svnadmin create myrepo --pre-1.6-compatible

第一次,当我想访问我的新存储库myrepo(使用 TortoiseSVN 工具)时,我可以读取,但无法写入(出现锁定 SVN 消息).所以我在论坛帖子上发现,一个人建议像这样设置存储库的所有权限:

The first time, when I want to access in my new repository myrepo (with TortoiseSVN tool), I could reach in reading, but in writing, I couldn't (lock SVN message appears). So I found on forum post, a guy who recommanded to set all rights on repository like that :

$ chmod -r 770 myrootrepositories

之后,我无法访问所有我的存储库...使用 TortoiseSVN,当我想访问存储库时会出现此错误:

And after that, I can't access to all my repositories ... with TortoiseSVN, this error appears when I want to access to a repository :

Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for https://xx.xx.xx.xx/svn/myrepo

我重新启动了所有,但没有任何改变...

I restart all, but nothing changed...

推荐答案

错误:

svn:服务器发送意外返回值(500 内部服务器错误)以响应

svn: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for

原因: 用户的文件(或项目 SVN 目录中的其他文件)是使用 root 帐户创建的,并且必须归域帐户所有.

CAUSE: The user's file (or some other file in the project SVN directory), was created using the root account and it has to be owned by the domain account.

示例:域用户是 trespatitos(使用 CPANEL/WHM 和 Centos 5),所以我使用:

Example: domain user is trespatitos (using CPANEL/WHM and Centos 5), so I used:

root@myserver [my project path]# chown -R trespatitos:trespatitos ./* 

这会在我所在的目录上递归地更改所有者和组.

That changes the owner and group recursively on the dir I'm standing at.

还有.在 svn.conf 文件中,我有:

Also. On the svn.conf file, I have:

AuthUserFile /home/myusername/svn/hds/conf/.svn-users 

在 SVN 文件夹中我犯了一个错误并将文件命名为:.users-svn

While in the SVN folder I made a mistake and name the file: .users-svn

我改了名字,问题解决了.

I changed the name and the problem was solved.

结论:

  • 检查所有权
  • 检查 SVN 目录的权限 775 或 777.
  • 检查用户文件是否确实存在.如果没有,请使用 htpasswd -c username .svn-users

这篇关于SVN:我的存储库访问中出现 500 内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆