SVN Subversion logging issue

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

SVN Subversion logging issue

Post by jaoudestudios »

For some reason my svn does not log access or errors, any ideas why?

This is my conf file

Code: Select all

 
<Location /svn>
          DAV svn
          SVNParentPath /var/www/svn/repository
 
# Limit write permission to list of valid users.
#   <LimitExcept GET PROPFIND OPTIONS REPORT>
#      # Require SSL connection for password protection.
#      # SSLRequireSSL
#
      Require valid-user
      AuthType Basic
      AuthName "Authorization Realm"
      AuthUserFile /etc/httpd/passwd/svnpasswords
 
#   </LimitExcept>
</Location>
 
 
Also for some reason root does not require a password to check stuff out, even if I setup the user root with a password?!?

Cheers
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: SVN Subversion logging issue

Post by Benjamin »

Try this.

Code: Select all

 
<Location /svn>
          DAV svn
          SVNParentPath /var/www/svn/repository
 
# Limit write permission to list of valid users.
#   <LimitExcept GET PROPFIND OPTIONS REPORT>
#      # Require SSL connection for password protection.
#      # SSLRequireSSL
#
         Order deny,allow
         Deny from all
      Require valid-user
      AuthType Basic
      AuthName "Authorization Realm"
      AuthUserFile /etc/httpd/passwd/svnpasswords
 
#   </LimitExcept>
</Location>
 
 
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: SVN Subversion logging issue

Post by jaoudestudios »

Thanks for the quick reply. i will give that a go :)
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: SVN Subversion logging issue

Post by jaoudestudios »

That will hopefully fix my user root issue, any ideas on the logging issue?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: SVN Subversion logging issue

Post by Benjamin »

The log entries are being saved to the global log file I imagine. I'm not sure how to setup separate log files for a location. I know you can do it with virtual hosts.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: SVN Subversion logging issue

Post by jaoudestudios »

Order deny,allow
Deny from all
Using these 2 lines, it locked me out completely :?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: SVN Subversion logging issue

Post by Benjamin »

You may have to add another one, Allow from authfile or something. I'm not exactly sure. Have a look at the apache manual.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: SVN Subversion logging issue

Post by Eran »

What you wrote in the initial post should work. Are you sure root user is allowed access without password? maybe you already logged in as the root user? after logging in once with the basic authentication, your status is stored in a session. Try it in another browser where you are sure you are not logged in already and see if it asks for the password
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: SVN Subversion logging issue

Post by jaoudestudios »

I have not been testing it through a browser but through ssh (i.e. > svn co htpp://....)

And for some reason if you are logged in as root on the other box, then it does not ask for a password, even though the user root has a password (something random, that even I dont know).
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: SVN Subversion logging issue

Post by Eran »

You should test is through the browser then. I am not sure about this, but I think that if you run an http request to a SVN service on the same server, it's smart enough to rewrite it as a local link (file:///..).
Post Reply