Jump to content

Recommended Posts

I think my server has been hacked but I cannot be sure.

I had installed and got running svn on ubuntu 12.04. After installing I got one machine to checkout the repository on username joe. Last night I checked out the repository on my own machine on username john. But suddenly today I get this message when trying to commit:

'ERROR Repository moved temporarily to 'http://www.mydomain.com'; please relocate'

I don't know where to start looking here, some search results indicate it might be a hook script, other say sloppy config files.

I have svn installed with webDAV. The config file is: /etc/apache2/mods-available/dav_svn.conf:

<Location /backuprepos/filesystem>

DAV svn

SVNPath /home/backuprepos/filesystem

AuthType Basic

AuthName "filesystem subversion repository"

AuthUserFile /etc/subversion/passwd

Require valid-user

</Location>

 

The passwords I added to the following file:

htpasswd -c /etc/subversion/passwd user_name

 

Really need to some help here, this happened to me before, i removed the .svn repository made a new one but I kept getting the same error; so ended up rebuilding my server based on an image.

 

Has anyone dealt and beaten this problem before?

Link to comment
https://forums.phpfreaks.com/topic/270603-svndav/
Share on other sites

At long last I found the answer to my problem.

We had a htaccess blanket rule for all 404's which redirected to the index

SVN apparently uses 404 (not found) errors in order to add new resources. Thus the 404 redirected the svn to the root. I needed to allow this one to pass through instead of making a redirection.

To test this i removed the said htaccess file and all started working fine.

Link to comment
https://forums.phpfreaks.com/topic/270603-svndav/#findComment-1391900
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.