You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Nathan Fiedler <nf...@bluemarsh.com> on 2002/09/01 16:32:48 UTC

what causes "File exists: file not found"?

A college student is doing a project related to Subversion and has
decided to use my site as part of her research. Unfortunately this has
created a great many errors in my Apache log file. What causes these and
how do I fix them?

[Wed Aug 28 15:39:49 2002] [error] [client XX.XXX.XX.XX] (17)File
exists: file not found: revision `0', path `/benoit'  [404, #160013]
[Wed Aug 28 15:40:09 2002] [error] [client XX.XXX.XX.XX] Could not fetch
resource information.  [404, #0]
[Wed Aug 28 15:40:09 2002] [error] [client XX.XXX.XX.XX] could not
determine resource kind  [404, #160013]

[Wed Aug 28 15:43:50 2002] [error] [client XX.XXX.XX.XX] A failure
occurred during the completion and response generation for the update
report.  [404, #160013]
[Wed Aug 28 15:43:50 2002] [error] [client XX.XXX.XX.XX] (17)File
exists: file not found: revision `0', path `/benoit'  [404, #160013]

nathan



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Joachim Hofer <jo...@imbus.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks a lot. Using the latest snapshots of Apache, APR and APR-util, it
finally all works fine on my Linux box!

I guess this also means that the Win32 version of Subversion is not
going to work without compiling the latest Apache/APR/APR-util or even
Subversion sources?

joachim

Greg Stein wrote:
| [...]
| In essence, Subversion requires Apache 2.0.41-dev or later (-dev means
that
| it is between .40 and .41). Subversion also requires APR 0.9.1-dev or
later
| (the CVS version).
|
| We have not (yet) put these requirements into our buildcheck or
| configuration process, but will shortly. Now that APR is actually getting
| versioned, then we can start relying on using those numbers to specify
| minimum requirements.
|
|
| And yes: I know this is the exact cause of the problem because it
frustrated
| me for about four hours over the weekend...
|
| Cheers,
| -g
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
Comment: Using GnuPG with Beonex - http://enigmail.mozdev.org

iD8DBQE9dyjXBHtUX1EO3EoRAmaiAKDwIA+DHOj7W1iLwl1u6LzG35IxYgCghPVF
Ulp4REeRVJkIzHXKtOB5TNY=
=Wxa9
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Greg Stein <gs...@lyra.org>.
On Wed, Sep 04, 2002 at 03:33:54PM +0200, Joachim Hofer wrote:
>...
> |>I am trying to get Subversion to run on SuSE-Linux. I am using Apache
> |>2.0.40 and Subversion 0.14.2. I also tried substituting the apr and
> |>apr-util libraries of Apache with those of Subversion (as those seemed
> |>newer), but to no avail. - I am by no means a linux expert,
> |>unfortunately, so I don't know much about any magic library conflicts
> |>that may happen...
> |
> | Have you tried using the latest CVS versions of apache, apr, and
> | apr-util?
> 
> No I haven't. I have downloaded the "2.0.40" tarball. I can try this
> next, though.

The 2.0.40 tarball doesn't work for Subversion. The error codes in APR
changed a little while ago, and those are not incorporated into 2.0.40.
Thus, you end up with a mismatch of error codes between Apache and
Subversion (since the latter is built against a newer APR).

In essence, Subversion requires Apache 2.0.41-dev or later (-dev means that
it is between .40 and .41). Subversion also requires APR 0.9.1-dev or later
(the CVS version).

We have not (yet) put these requirements into our buildcheck or
configuration process, but will shortly. Now that APR is actually getting
versioned, then we can start relying on using those numbers to specify
minimum requirements.


And yes: I know this is the exact cause of the problem because it frustrated
me for about four hours over the weekend...

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Joachim Hofer <jo...@imbus.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi and thanks for your quick response!

|>I am trying to get Subversion to run on SuSE-Linux. I am using Apache
|>2.0.40 and Subversion 0.14.2. I also tried substituting the apr and
|>apr-util libraries of Apache with those of Subversion (as those seemed
|>newer), but to no avail. - I am by no means a linux expert,
|>unfortunately, so I don't know much about any magic library conflicts
|>that may happen...
|
| Have you tried using the latest CVS versions of apache, apr, and
| apr-util?

No I haven't. I have downloaded the "2.0.40" tarball. I can try this
next, though.

|>I also tried to get it to run on Windows NT (same versions), but that
|>also still fails (different error messages).
|
| ?

Ok, here goes:
I am using Apache 2.0.40, Subversion 0.14.2 (not self-compiled, just the
downloadable binary executable versions).

Creating a repository works. Accessing via file system works, too. For
example:
| E:\test_jh>svn list file:///E:/svndav/svnrepo
| test_jh/
|
(I had successfully imported test_jh/ before)

However, accessing the repository via HTTP fails:
| E:\test_jh>svn list http://capella/svn/svnrepo
| svn: Bad URL passed to RA layer
| svn: No part of path '/svn/svnrepo' was found in repository HEAD.
|

The respective apache log file snippet:
| [Wed Sep 04 15:18:21 2002] [error] [client x.x.x.x]Could not fetch
resource information.  [500, #0]
| [Wed Sep 04 15:18:21 2002] [error] [client x.x.x.x] Could not open the
SVN filesystem at E:/svndav/svnrepo  [500, #165005]
| [Wed Sep 04 15:18:21 2002] [error] [client x.x.x.x] Expected version
'1' of repository; found no version at all; is `E:/svndav/svnrepo' a
valid repository path?  [500, #165005]

The respective httpd.conf snippet (running ok with mod_dav_svn):
| <Location /svn/svnrepo>
|    DAV svn
|    SVNPath E:/svndav/svnrepo
| </Location>
(I also tried /svndav/svnrepo, e:\svndav\svnrepo, e:\\svndav\\svnrepo...
for SVNPath)

Also, accessing the repository via browser
("http://x.x.x.x/svn/svnrepo") also yields:
| Expected version '1' of repository; found no version at all; is
`/svndav/svnrepo' a valid repository path?

Hope you can help,
Joachim Hofer

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
Comment: Using GnuPG with Beonex - http://enigmail.mozdev.org

iD8DBQE9dgvBBHtUX1EO3EoRAgDxAJ0QtoMzLZBVhLAVkLN19bP+sY//xACgkCHS
BVmaoP1w5wSRV2J9tZsZOyk=
=xGiW
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Ben Collins-Sussman <su...@collab.net>.
Joachim Hofer <jo...@imbus.de> writes:

> Michael Wood wrote:
> | On Tue, Sep 03, 2002 at 10:23:35AM -0500, Ben Collins-Sussman wrote:
> |
> |>Nathan Fiedler <nf...@bluemarsh.com> writes:
> |>
> |
> | [snip]
> |
> |>>[Wed Aug 28 15:43:50 2002] [error] [client XX.XXX.XX.XX] (17)File
> |>>exists: file not found: revision `0', path `/benoit'  [404, #160013]
> |>
> |>I've been seeing these non-fatal errors in my logfile for a while too.
> 
> I get this error message too, but for me, it is not "non-fatal": It
> happens upon the basic import. Importing through the filesystem works
> fine, but importing over http fails with the above error message. Any
> ideas why this happens?

That seems strange, hm.

> 
> I am trying to get Subversion to run on SuSE-Linux. I am using Apache
> 2.0.40 and Subversion 0.14.2. I also tried substituting the apr and
> apr-util libraries of Apache with those of Subversion (as those seemed
> newer), but to no avail. - I am by no means a linux expert,
> unfortunately, so I don't know much about any magic library conflicts
> that may happen...

Have you tried using the latest CVS versions of apache, apr, and
apr-util?


> 
> I also tried to get it to run on Windows NT (same versions), but that
> also still fails (different error messages).

?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Joachim Hofer <jo...@imbus.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Wood wrote:
| On Tue, Sep 03, 2002 at 10:23:35AM -0500, Ben Collins-Sussman wrote:
|
|>Nathan Fiedler <nf...@bluemarsh.com> writes:
|>
|
| [snip]
|
|>>[Wed Aug 28 15:43:50 2002] [error] [client XX.XXX.XX.XX] (17)File
|>>exists: file not found: revision `0', path `/benoit'  [404, #160013]
|>
|>I've been seeing these non-fatal errors in my logfile for a while too.

I get this error message too, but for me, it is not "non-fatal": It
happens upon the basic import. Importing through the filesystem works
fine, but importing over http fails with the above error message. Any
ideas why this happens?

I am trying to get Subversion to run on SuSE-Linux. I am using Apache
2.0.40 and Subversion 0.14.2. I also tried substituting the apr and
apr-util libraries of Apache with those of Subversion (as those seemed
newer), but to no avail. - I am by no means a linux expert,
unfortunately, so I don't know much about any magic library conflicts
that may happen...

I also tried to get it to run on Windows NT (same versions), but that
also still fails (different error messages).

I'd much like to work on something like a Java client for subversion,
but as of now, I'm just getting frustrated with installation issues.

joachim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
Comment: Using GnuPG with Beonex - http://enigmail.mozdev.org

iD8DBQE9dcF1BHtUX1EO3EoRAjJ7AKChrooIANHMq0s3wMq7oF7RP7tvbQCdHt1m
m9R7aoK6sSkGqMv8aionRUM=
=phdv
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Greg Hudson <gh...@MIT.EDU>.
On Wed, 2002-09-04 at 16:46, Greg Stein wrote:
> The errno was non-zero ("File exists"), so it got logged. The message that
> was logged, however, was "file not found".

Ew, error-reporting routines which gratuitously look at errno.  A common
source of confusing error messages.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Greg Stein <gs...@lyra.org>.
On Wed, Sep 04, 2002 at 09:46:10AM +0200, Michael Wood wrote:
>...
> What does "File exists: file not found" mean anyway? :)

The errno was non-zero ("File exists"), so it got logged. The message that
was logged, however, was "file not found".

It seems that something needs to set that error to zero... Where? Dunno.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Tue, Sep 03, 2002 at 10:23:35AM -0500, Ben Collins-Sussman wrote:
> Nathan Fiedler <nf...@bluemarsh.com> writes:
> 
[snip]
> > [Wed Aug 28 15:43:50 2002] [error] [client XX.XXX.XX.XX] (17)File
> > exists: file not found: revision `0', path `/benoit'  [404, #160013]
> 
> I've been seeing these non-fatal errors in my logfile for a while too.
> I think they have something to do with ra_dav_get_baseline_info making
> all sorts of existence queries on different URLs;  it's perfectly fine
> for an existence check to come up empty, but the server shouldn't log
> it as an error.  
[snip]

What does "File exists: file not found" mean anyway? :)

Apache: "I know it's here somewhere...  Where did I put it?"

-- 
Michael Wood <mw...@its.uct.ac.za>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Greg Stein <gs...@lyra.org>.
On Tue, Sep 03, 2002 at 10:23:35AM -0500, Ben Collins-Sussman wrote:
>...
> Is there any way to make mod_dav_svn recognize the difference between
> an *unexpected* failure to find a resource, vs. an unimportant
> existence check?

Not really, no. You asked for a resource, and it wasn't there. Simple as
that, so it logs the error.

That said, you could add a header like 'X-SVN-Existence-Probe: yes' into the
stream, have mod_dav_svn recognize that, and avoid logging most of the
errors. However, Apache itself is still going to log the 404.

[ hmm. maybe not... we could always get mod_dav to generate an error
  response, which would include/exclude logging, but I'd rather not ]

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: what causes "File exists: file not found"?

Posted by Ben Collins-Sussman <su...@collab.net>.
Nathan Fiedler <nf...@bluemarsh.com> writes:

> A college student is doing a project related to Subversion and has
> decided to use my site as part of her research. Unfortunately this has
> created a great many errors in my Apache log file. What causes these and
> how do I fix them?
> 
> [Wed Aug 28 15:39:49 2002] [error] [client XX.XXX.XX.XX] (17)File
> exists: file not found: revision `0', path `/benoit'  [404, #160013]
> [Wed Aug 28 15:40:09 2002] [error] [client XX.XXX.XX.XX] Could not fetch
> resource information.  [404, #0]
> [Wed Aug 28 15:40:09 2002] [error] [client XX.XXX.XX.XX] could not
> determine resource kind  [404, #160013]
> 
> [Wed Aug 28 15:43:50 2002] [error] [client XX.XXX.XX.XX] A failure
> occurred during the completion and response generation for the update
> report.  [404, #160013]
> [Wed Aug 28 15:43:50 2002] [error] [client XX.XXX.XX.XX] (17)File
> exists: file not found: revision `0', path `/benoit'  [404, #160013]

I've been seeing these non-fatal errors in my logfile for a while
too.  I think they have something to do with ra_dav_get_baseline_info
making all sorts of existence queries on different URLs;  it's
perfectly fine for an existence check to come up empty, but the server
shouldn't log it as an error.  

Is there any way to make mod_dav_svn recognize the difference between
an *unexpected* failure to find a resource, vs. an unimportant
existence check?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org