You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by William A Rowe Jr <wr...@rowe-clan.net> on 2022/01/13 21:14:55 UTC

httpd test framework svn repo borked?

I'm trying to work out how trunk on httpd test framework is busted on
Windows, irrespective
of using an msys2, sfl-ubuntu, or older win32 native svn build. The
problem always devolves
to something like shown below;

svn co -q -r 1896892
https://svn.apache.org/repos/asf/httpd/test/framework/trunk
httpdtest-1896892
svn: E000013: Can't move
'/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/tmp/svn-yIVLxQ'
to '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/pristine/b4/b4648076d6b2a3dfab889875d892252d5ed2594c.svn-base':
Permission denied
make: *** [../mak/Makefile.download:36: httpdtest-1896892] Error 1

The file it is attempting to move to already exists (why?) Any
guidance is appreciated, since
it is painful to grab this on a native ubuntu vm and slough it back to
windows to be able
to run the framework on windows.

Re: httpd test framework svn repo borked?

Posted by Johan Corveleyn <jc...@gmail.com>.
On Sat, Jan 15, 2022 at 12:56 AM William A Rowe Jr <wr...@rowe-clan.net> wrote:
>
> On Fri, Jan 14, 2022 at 4:08 AM Stefan Sperling <st...@apache.org> wrote:
> >
> > On Thu, Jan 13, 2022 at 07:17:27PM -0600, William A Rowe Jr wrote:
> > > Thanks Stefan, it's attempting [locally] to replace a file, which was
> > > just created during the
> > > checkout (which might even be open).
> >
> > Hmm. I assume SVN would close such files based on APR pool lifetime.
> >
> > Handling of the pristine installation step has been changed in SVN trunk:
> > https://svn.apache.org/r1886490
> > In particular:
> > """
> > On Windows, it uses the existing mechanism of installing the files
> > by handle, without having to reopen them.
> > """
>
> As indicated, this is in the ubuntu 18.04 SFU on windows, the msys2-64
> current distribution, as well as Windows "native". Very consistent.

Was browsing some mails and just saw this thread.

Not sure I'm doing the right thing, but I don't see this issue on my
Windows 10 machine (with standard NTFS filesystem, just your regular
Windows laptop), with a standard 1.14.0 SVN client (from TortoiseSVN).

[[[
C:\research>svn --version -q
1.14.0

C:\research>svn co  -q -r 1896892
https://svn.apache.org/repos/asf/httpd/test/framework/trunk

C:\research>cd trunk

C:\research\trunk>dir /b
Apache-Test
build
c-modules
LICENSE
Makefile.PL
Misc.pm
NOTICE
README
scripts
STATUS
t
]]]

-- 
Johan

Re: httpd test framework svn repo borked?

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
On Fri, Jan 14, 2022 at 4:08 AM Stefan Sperling <st...@apache.org> wrote:
>
> On Thu, Jan 13, 2022 at 07:17:27PM -0600, William A Rowe Jr wrote:
> > Thanks Stefan, it's attempting [locally] to replace a file, which was
> > just created during the
> > checkout (which might even be open).
>
> Hmm. I assume SVN would close such files based on APR pool lifetime.
>
> Handling of the pristine installation step has been changed in SVN trunk:
> https://svn.apache.org/r1886490
> In particular:
> """
> On Windows, it uses the existing mechanism of installing the files
> by handle, without having to reopen them.
> """

As indicated, this is in the ubuntu 18.04 SFU on windows, the msys2-64
current distribution, as well as Windows "native". Very consistent.

> If you are running 1.14 or an older release, perhaps try a client
> built from trunk to see if this issue has already been fixed for
> a future SVN 1.15 release?

I'm happy to have a look next week.

> > So it looks like some hash
> > collision or other
> > duplication issue where there are two attempts to emplace the same
> > hash svn-base image,
> > and linux is letting this happen without complaint, while windows refuses.
>
> Does the same file content (ignoring expanded keywords, if any) exist at
> multiple paths? If so, such paths would naturally share the same pristine
> based on the hash of file contents.

Re: httpd test framework svn repo borked?

Posted by Stefan Sperling <st...@apache.org>.
On Thu, Jan 13, 2022 at 07:17:27PM -0600, William A Rowe Jr wrote:
> Thanks Stefan, it's attempting [locally] to replace a file, which was
> just created during the
> checkout (which might even be open).

Hmm. I assume SVN would close such files based on APR pool lifetime.

Handling of the pristine installation step has been changed in SVN trunk:
https://svn.apache.org/r1886490
In particular:
"""
On Windows, it uses the existing mechanism of installing the files
by handle, without having to reopen them.
"""

If you are running 1.14 or an older release, perhaps try a client
built from trunk to see if this issue has already been fixed for
a future SVN 1.15 release?

> So it looks like some hash
> collision or other
> duplication issue where there are two attempts to emplace the same
> hash svn-base image,
> and linux is letting this happen without complaint, while windows refuses.

Does the same file content (ignoring expanded keywords, if any) exist at
multiple paths? If so, such paths would naturally share the same pristine
based on the hash of file contents.

Re: httpd test framework svn repo borked?

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
Thanks Stefan, it's attempting [locally] to replace a file, which was
just created during the
checkout (which might even be open). So it looks like some hash
collision or other
duplication issue where there are two attempts to emplace the same
hash svn-base image,
and linux is letting this happen without complaint, while windows refuses.

(At first I suspected a strange file perms issue or a conflicting file
name case issue, but
this is not the situation.)


On Thu, Jan 13, 2022 at 3:34 PM Stefan Sperling <st...@apache.org> wrote:
>
> On Thu, Jan 13, 2022 at 03:14:55PM -0600, William A Rowe Jr wrote:
> > I'm trying to work out how trunk on httpd test framework is busted on
> > Windows, irrespective
> > of using an msys2, sfl-ubuntu, or older win32 native svn build. The
> > problem always devolves
> > to something like shown below;
> >
> > svn co -q -r 1896892
> > https://svn.apache.org/repos/asf/httpd/test/framework/trunk
> > httpdtest-1896892
> > svn: E000013: Can't move
> > '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/tmp/svn-yIVLxQ'
> > to '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/pristine/b4/b4648076d6b2a3dfab889875d892252d5ed2594c.svn-base':
> > Permission denied
>
> This has nothing to do with the server, it is some problem with the
> working copy which is being checked out.
>
> It looks as if MoveFileExW is failing with EACCESS, see here:
> https://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/io.c?view=annotate#l4529
> Though depending on which version of svn you have installed, svn might
> be calling directly into APR instead and fail there.
>
> > make: *** [../mak/Makefile.download:36: httpdtest-1896892] Error 1
> >
> > The file it is attempting to move to already exists (why?) Any
> > guidance is appreciated, since
> > it is painful to grab this on a native ubuntu vm and slough it back to
> > windows to be able
> > to run the framework on windows.
> >

Re: httpd test framework svn repo borked?

Posted by Stefan Sperling <st...@apache.org>.
On Thu, Jan 13, 2022 at 03:14:55PM -0600, William A Rowe Jr wrote:
> I'm trying to work out how trunk on httpd test framework is busted on
> Windows, irrespective
> of using an msys2, sfl-ubuntu, or older win32 native svn build. The
> problem always devolves
> to something like shown below;
> 
> svn co -q -r 1896892
> https://svn.apache.org/repos/asf/httpd/test/framework/trunk
> httpdtest-1896892
> svn: E000013: Can't move
> '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/tmp/svn-yIVLxQ'
> to '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/pristine/b4/b4648076d6b2a3dfab889875d892252d5ed2594c.svn-base':
> Permission denied

This has nothing to do with the server, it is some problem with the
working copy which is being checked out.

It looks as if MoveFileExW is failing with EACCESS, see here:
https://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/io.c?view=annotate#l4529
Though depending on which version of svn you have installed, svn might
be calling directly into APR instead and fail there.

> make: *** [../mak/Makefile.download:36: httpdtest-1896892] Error 1
> 
> The file it is attempting to move to already exists (why?) Any
> guidance is appreciated, since
> it is painful to grab this on a native ubuntu vm and slough it back to
> windows to be able
> to run the framework on windows.
> 

Re: httpd test framework svn repo borked?

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
Good point, thanks. Unfortunately an extra step is required if
Apache::Testcompat5005
isn't provisioned, checking out ApacheTest under this repository root
isn't automatic
with git, as with svn. Decided that Testcompat5005 is trivially
available from CPAN
and should just become another build machine prereq.

On Thu, Jan 13, 2022 at 3:28 PM Eric Covener <co...@gmail.com> wrote:
>
> On Thu, Jan 13, 2022 at 4:15 PM William A Rowe Jr <wr...@rowe-clan.net> wrote:
> >
> > I'm trying to work out how trunk on httpd test framework is busted on
> > Windows, irrespective
> > of using an msys2, sfl-ubuntu, or older win32 native svn build. The
> > problem always devolves
> > to something like shown below;
> >
> > svn co -q -r 1896892
> > https://svn.apache.org/repos/asf/httpd/test/framework/trunk
> > httpdtest-1896892
> > svn: E000013: Can't move
> > '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/tmp/svn-yIVLxQ'
> > to '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/pristine/b4/b4648076d6b2a3dfab889875d892252d5ed2594c.svn-base':
> > Permission denied
> > make: *** [../mak/Makefile.download:36: httpdtest-1896892] Error 1
> >
> > The file it is attempting to move to already exists (why?) Any
> > guidance is appreciated, since
> > it is painful to grab this on a native ubuntu vm and slough it back to
> > windows to be able
> > to run the framework on windows.
>
> No clue on the error but the r/o git mirror is at least something else
> to try: git@github.com:apache/httpd-tests.git
> When we had intermittent SVN errors in the travis builds, we pulled
> from this instead.

Re: httpd test framework svn repo borked?

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jan 13, 2022 at 4:15 PM William A Rowe Jr <wr...@rowe-clan.net> wrote:
>
> I'm trying to work out how trunk on httpd test framework is busted on
> Windows, irrespective
> of using an msys2, sfl-ubuntu, or older win32 native svn build. The
> problem always devolves
> to something like shown below;
>
> svn co -q -r 1896892
> https://svn.apache.org/repos/asf/httpd/test/framework/trunk
> httpdtest-1896892
> svn: E000013: Can't move
> '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/tmp/svn-yIVLxQ'
> to '/c/Users/wrowe/dev/oss-httpd-build/src/httpdtest-1896892/.svn/pristine/b4/b4648076d6b2a3dfab889875d892252d5ed2594c.svn-base':
> Permission denied
> make: *** [../mak/Makefile.download:36: httpdtest-1896892] Error 1
>
> The file it is attempting to move to already exists (why?) Any
> guidance is appreciated, since
> it is painful to grab this on a native ubuntu vm and slough it back to
> windows to be able
> to run the framework on windows.

No clue on the error but the r/o git mirror is at least something else
to try: git@github.com:apache/httpd-tests.git
When we had intermittent SVN errors in the travis builds, we pulled
from this instead.