[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Cannot commit using Apache Virtual Hosts

From: Jon Dawes <jon.dawes_at_gmo.com>
Date: 2007-01-11 02:39:17 CET

Hi,
 
a
I have set up a subversion repository that is working fine via the
Dav interface. When I serve the repository via a location
http://servername/svn it works fine. However I want to serve it as
http://svn on our local network, I have set this up and can browse and
checkout OK and after changing a file it will commit, and the change
is there when looking via a browser, but a second commits fails.
Running updates and cleanups on the working copy don't help.
I am using apache 2.0.55-4, subversion 1.3.2-3 on Ubuntu 6.10.
I have included all errors and such below, any help appreciated:

Working Dav config:

<Location /svn>
  # Uncomment this to enable the repository,
  DAV svn

  # Set this to the path to your repository
  SVNPath /var/svn-repos/research

  # The following allows for basic http authentication. Basic
authentication
  # should not be considered secure for any particularly rigorous
definition of
  # secure.

  # to create a passwd file
  # # rm -f /etc/apache2/dav_svn.passwd
  # # htpasswd2 -c /etc/apache2/dav_svn.passwd dwhedon
  # New password:
  # Re-type new password:
  # Adding password for user dwhedon
  # #

  # Uncomment the following 3 lines to enable Basic Authentication
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd

  # Uncomment the following line to enable Authz Authentication
  # AuthzSVNAccessFile /etc/apache2/dav_svn.authz

  # The following three lines allow anonymous read, but make
  # committers authenticate themselves.

  <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
  </LimitExcept>

</Location>

Not working virtual host config:

<VirtualHost *>
        ServerAdmin jon.dawes@gmo.com
        ServerName svn
        DocumentRoot /var/svn-repos/research

        <Location />
          # Uncomment this to enable the repository,
          DAV svn

          # Set this to the path to your repository
          SVNPath /var/svn-repos/research

          # The following allows for basic http authentication. Basic
authentication
          # should not be considered secure for any particularly
rigorous definition of
          # secure.

          # to create a passwd file
          # # rm -f /etc/apache2/dav_svn.passwd
          # # htpasswd2 -c /etc/apache2/dav_svn.passwd dwhedon
          # New password:
          # Re-type new password:
          # Adding password for user dwhedon
          # #

          # Uncomment the following 3 lines to enable Basic
Authentication
          #AuthType Basic
          #AuthName "Subversion Repository"
          #AuthUserFile /etc/apache2/dav_svn.passwd

          # Uncomment the following line to enable Authz Authentication
          # AuthzSVNAccessFile /etc/apache2/dav_svn.authz

          # The following three lines allow anonymous read, but make
          # committers authenticate themselves.

          #<LimitExcept GET PROPFIND OPTIONS REPORT>
          # Require valid-user
          #</LimitExcept>

          ErrorDocument 404 default

        </Location>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

Tortoise error when commiting the second time:

Modified: E:\svnprod\New Text Document.txt
Error: Commit failed (details follow):
Error: Your file or directory 'New Text Document.txt' is probably
out-of-date
Error: The version resource does not correspond to the resource within
the
Error: transaction. Either the requested version resource is out of
date (needs to be
Error: updated), or the requested version resource is newer than the
transaction root
Error: (restart the commit).
Finished!:

Apache log for two consecutive failed commits:
[Thu Jan 11 20:14:16 2007] [error] [client 10.46.100.22] Could not
CHECKOUT resource /!svn/ver/34/New Text Document.txt. [409, #0]
[Thu Jan 11 20:14:16 2007] [error] [client 10.46.100.22] The version
resource does not correspond to the resource within the transaction.
Either the requested version resource is out of date (needs to be
updated), or the requested version resource is newer than the
transaction root (restart the commit). [409, #160024]
[Thu Jan 11 20:14:28 2007] [error] [client 10.46.100.22] Could not
CHECKOUT resource /!svn/ver/34/New Text Document.txt. [409, #0]
[Thu Jan 11 20:14:28 2007] [error] [client 10.46.100.22] The version
resource does not correspond to the resource within the transaction.
Either the requested version resource is out of date (needs to be
updated), or the requested version resource is newer than the
transaction root (restart the commit). [409, #160024]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 11 02:55:44 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.