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

Strange error committing additions (related to mod_include?)

From: Logan Hanks <lhanks_at_ylcomm.com>
Date: 2003-08-19 19:39:21 CEST

    I've run into a strange problem while trying to commit additions to
a remote repository over HTTP. When attempting to add a file, I receive
the following error message:

svn: Unsupported repository version
svn: Commit failed (details follow):
svn: PROPFIND request failed on '/cr4/.svnignore'
svn:
Expected version '1' of repository; found no version at all; is
`/var/lib/svn/error' a valid repository path?

    /var/lib/svn is the parent path of all my repositories, but error is
not a repository (as you can see, "cr4" is the repository I'm attempting
to add files to in this example). I was asked in #svn to do some packet
sniffing, and obtained the contents of an HTTP session leading to such
an error (attached). What is strange (according to #svn) is that the
response to the last PROPFIND request is sent before the request is
actually received.

    I tried reverting some apache configuration changes I made recently,
to see if they were the cause, and discovered that this error only
occurs when mod_include is loaded. If I disable mod_include, I can add
files with no problem. If I reenable it, I consistently get the same
error when trying to commit additions.

    Here is some pertinent information:

    Subversion:
      Client side: version 0.26.0 (r6550) (Red Hat package)
      Server side: version 0.26.0 (r6550) (Debian package)

    Apache: 2.0.47-1 (Debian packages apache2-mpm-prefork and
            apache2-common)

    Here is the VirtualHost directive I am using for subversion:

<VirtualHost *>
    ServerName subversion
    ServerAlias subversion.ylc

    ErrorLog /var/log/apache2/subversion.error.log
    CustomLog /var/log/apache2/subversion.access.log combined

    <Location />
        AuthType basic
        AuthName "Subversion"
        #require group subversion
        require valid-user

        DAV svn
        SVNParentPath /var/lib/svn
    </Location>

</VirtualHost>

    And here is a list of modules I have enabled in apache when this
error occurs:

    * auth_pam (1.1.1-1)
    * mod_cgi
    * mod_dav
    * mod_dav_fs
    * dav_svn_module
    * authz_svn_module
    * libphp4 (4.3.3RC4)
    * mod_rewrite

    If there's any important information I left out, I'll be glad to
provide it. It doesn't bother me too much to have to disable SSI, but
it seems like there's a bug somewhere.

Logan

OPTIONS /pbx HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Content-Length: 104
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8"?><D:options xmlns:D="DAV:"><D:activity-collection-set/></D:options>HTTP/1.1 401 Authorization Required
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
WWW-Authenticate: Basic realm="Subversion"
Content-Length: 533
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<p>Additionally, a 401 Authorization Required
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
OPTIONS /pbx HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Content-Length: 104
Content-Type: text/xml
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

<?xml version="1.0" encoding="utf-8"?><D:options xmlns:D="DAV:"><D:activity-collection-set/></D:options>HTTP/1.1 200 OK
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
DAV: 1
DAV: version-control,checkout,working-resource
DAV: merge,baseline,activity,version-controlled-collection
DAV: <http://apache.org/dav/propset/fs/1>
MS-Author-Via: DAV
Allow: OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,CHECKOUT
Content-Length: 183
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/xml; charset="utf-8"

<?xml version="1.0" encoding="utf-8"?>
<D:options-response xmlns:D="DAV:">
<D:activity-collection-set><D:href>/pbx/!svn/act/</D:href></D:activity-collection-set></D:options-response>
MKACTIVITY /pbx/!svn/act/59f96956-2ec5-0310-9f55-ac48a1b6dc53 HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Connection: TE
TE: trailers
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

HTTP/1.1 201 Created
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
Cache-Control: no-cache
Location: http://subversion/pbx/!svn/act/59f96956-2ec5-0310-9f55-ac48a1b6dc53
Content-Length: 222
Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>201 Created</title>
</head><body>
<h1>Created</h1>
<p>Activity /pbx/!svn/act/59f96956-2ec5-0310-9f55-ac48a1b6dc53 has been created.</p>
</body></html>
PROPFIND /pbx HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Connection: TE
TE: trailers
Content-Length: 133
Content-Type: text/xml
Depth: 0
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><version-controlled-configuration xmlns="DAV:"/></prop></propfind>HTTP/1.1 207 Multi-Status
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
Transfer-Encoding: chunked
Content-Type: text/xml; charset="utf-8"

1a6
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
<D:href>/pbx/</D:href>
<D:propstat>
<D:prop>
<lp1:version-controlled-configuration><D:href>/pbx/!svn/vcc/default</D:href></lp1:version-controlled-configuration>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>

0

PROPFIND /pbx/!svn/vcc/default HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Connection: TE
TE: trailers
Content-Length: 111
Content-Type: text/xml
Depth: 0
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><checked-in xmlns="DAV:"/></prop></propfind>HTTP/1.1 207 Multi-Status
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
Transfer-Encoding: chunked
Content-Type: text/xml; charset="utf-8"

185
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
<D:href>/pbx/!svn/vcc/default</D:href>
<D:propstat>
<D:prop>
<lp1:checked-in><D:href>/pbx/!svn/bln/17</D:href></lp1:checked-in>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>

0

CHECKOUT /pbx/!svn/bln/17 HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Connection: TE
TE: trailers
Content-Length: 178
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

<?xml version="1.0" encoding="utf-8"?><D:checkout xmlns:D="DAV:"><D:activity-set><D:href>/pbx/!svn/act/59f96956-2ec5-0310-9f55-ac48a1b6dc53</D:href></D:activity-set></D:checkout>HTTP/1.1 201 Created
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
Cache-Control: no-cache
Location: http://subversion/pbx/!svn/wbl/59f96956-2ec5-0310-9f55-ac48a1b6dc53/17
Content-Length: 237
Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>201 Created</title>
</head><body>
<h1>Created</h1>
<p>Checked-out resource /pbx/!svn/wbl/59f96956-2ec5-0310-9f55-ac48a1b6dc53/17 has been created.</p>
</body></html>
PROPPATCH /pbx/!svn/wbl/59f96956-2ec5-0310-9f55-ac48a1b6dc53/17 HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Connection: TE
TE: trailers
Content-Length: 189
Content-Type: application/xml
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

<?xml version="1.0" encoding="utf-8" ?>
<D:propertyupdate xmlns:D="DAV:"><D:set><D:prop><log xmlns="http://subversion.tigris.org/xmlns/svn/">
</log></D:prop></D:set>
</D:propertyupdate>
HTTP/1.1 207 Multi-Status
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
Transfer-Encoding: chunked
Content-Type: text/xml; charset="utf-8"

15d
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns1="http://subversion.tigris.org/xmlns/svn/" xmlns:ns0="DAV:">
<D:response>
<D:href>/pbx/!svn/wbl/59f96956-2ec5-0310-9f55-ac48a1b6dc53/17</D:href>
<D:propstat>
<D:prop>
<ns1:log/>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>

0

PROPFIND /pbx HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Connection: TE
TE: trailers
Content-Length: 111
Content-Type: text/xml
Depth: 0
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><checked-in xmlns="DAV:"/></prop></propfind>HTTP/1.1 207 Multi-Status
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
Transfer-Encoding: chunked
Content-Type: text/xml; charset="utf-8"

176
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
<D:href>/pbx/</D:href>
<D:propstat>
<D:prop>
<lp1:checked-in><D:href>/pbx/!svn/ver/17/</D:href></lp1:checked-in>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>

0

CHECKOUT /pbx/!svn/ver/17/ HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Connection: TE
TE: trailers
Content-Length: 178
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

<?xml version="1.0" encoding="utf-8"?><D:checkout xmlns:D="DAV:"><D:activity-set><D:href>/pbx/!svn/act/59f96956-2ec5-0310-9f55-ac48a1b6dc53</D:href></D:activity-set></D:checkout>HTTP/1.1 201 Created
Date: Mon, 18 Aug 2003 17:26:30 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
Cache-Control: no-cache
Location: http://subversion/pbx/!svn/wrk/59f96956-2ec5-0310-9f55-ac48a1b6dc53/
Content-Length: 235
Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>201 Created</title>
</head><body>
<h1>Created</h1>
<p>Checked-out resource /pbx/!svn/wrk/59f96956-2ec5-0310-9f55-ac48a1b6dc53/ has been created.</p>
</body></html>
PROPFIND /pbx/test HTTP/1.1
Host: subversion
User-Agent: neon/0.23.9 SVN/0.26.0 (r6550)
Connection: TE
TE: trailers
Content-Length: 300
Content-Type: text/xml
Depth: 0
Authorization: Basic xxxxxxxxxxxxxxxxxxxx

HTTP/1.1 500 Internal Server Error
Date: Mon, 18 Aug 2003 17:26:31 GMT
Server: Apache/2.0.47 (Debian GNU/Linux) DAV/2 SVN/0.26.0 PHP/4.2.3
Content-Length: 305
Connection: close
Content-Type: text/xml; charset="utf-8"

<?xml version="1.0" encoding="utf-8"?>
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="165005">
Expected version '1' of repository; found no version at all; is `/var/lib/svn/error' a valid repository path?
</m:human-readable>
</D:error>
<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><version-controlled-configuration xmlns="DAV:"/><resourcetype xmlns="DAV:"/><baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/><repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/></prop></propfind>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 19 19:40:51 2003

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