SVN:我的存储库访问中出现 500 内部服务器错误

编程入门 行业动态 更新时间:2024-10-05 21:15:14
本文介绍了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 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 内部服务器错误

本文发布于:2023-11-02 06:27:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551621.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   服务器   SVN

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!