SVN : 500 internal server error on my repository access

后端 未结 5 713
终归单人心
终归单人心 2021-01-24 03:23

(OS is Ubuntu Server)

I create a new repository with SVN like that :

$ svnadmin create myrepo --pre-1.6-compatible

The first time, when

5条回答
  •  盖世英雄少女心
    2021-01-24 03:45

    ERROR:

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

    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.

    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.

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

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

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

    I changed the name and the problem was solved.

    Conclusion:

    • Check Ownership
    • Check Permissions 775 or 777 of the SVN dir.
    • Check that the users file actually exists. If it doesn't, use htpasswd -c username .svn-users

提交回复
热议问题