SVN : 500 internal server error on my repository access

后端 未结 5 712
终归单人心
终归单人心 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:32

    I suspect the repositories have the 'group'. Set it to the same as the group as the webserver:

    sudo chown -R :www-data myrootrepositories
    
    0 讨论(0)
  • 2021-01-24 03:44

    The real cause is an unreadable config file, it can be found on the Cpanel raw error log.

    In my case, I was following instructions for an old repo, the file name I used was .users-conf, then I was trying to access .svn-users, the error was logged in the error log.

    0 讨论(0)
  • 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
    0 讨论(0)
  • 2021-01-24 03:48

    I recently ran into the same problem. Permissions and other items mentioned were OK. But the timestamps on the files were wrong (because copied from an older working copy when needing to change a repository). Just touched everything.

    0 讨论(0)
  • 2021-01-24 03:49

    Set the ownership of the repository to the same user that runs svnserve.

    0 讨论(0)
提交回复
热议问题