svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

Nick Burkitt
I'm trying to make a local backup of a remote Subversion repo. I've tried
this so many times that I wrote this brain-dead Windows batch file:

============ begin ============
if %1x == x goto :EOF

set BACKUP_REPO=%1
set SOURCE_REPO=<url>

svnadmin create %BACKUP_REPO%
echo exit 0 > %BACKUP_REPO%\hooks\pre-revprop-change.bat
svnsync init file:///%BACKUP_REPO% %SOURCE_REPO%
svnsync sync file:///%BACKUP_REPO%
============ end ============

The operation proceeds without problems until it gets to revision 71, at
which point it fails with the error "svnsync: E175002: REPORT request on
'/<ROOT>/!svn/rev/71' failed". I've looked at all the related answers I
could find, but none of them address this specific problem.

This is what an (edited) attempt looks like:
============ begin ============
PS E:\svn> .\create_backup.bat E:\svn\backuprepo3
E:\svn>if E:\svn\backuprepo3x == x goto :EOF
E:\svn>set BACKUP_REPO=E:\svn\backuprepo3
E:\svn>set SOURCE_REPO=<url>
E:\svn>svnadmin create E:\svn\backuprepo3
E:\svn>echo exit 0  1>E:\svn\backuprepo3\hooks\pre-revprop-change.bat
E:\svn>svnsync init file:///E:\svn\backuprepo3 <url>
Copied properties for revision 0.
E:\svn>svnsync sync file:///E:\svn\backuprepo3
Committed revision 1.
Copied properties for revision 1.
Committed revision 2.
Copied properties for revision 2.
Committed revision 3.
Copied properties for revision 3.
Transmitting file data
............................................................................
............................................................................
.......................
<snip>
Committed revision 68.
Copied properties for revision 68.
Committed revision 69.
Copied properties for revision 69.
Transmitting file data ...............
Committed revision 70.
Copied properties for revision 70.
svnsync: E175002: REPORT request on '/<root>/!svn/rev/71' failed
PS E:\svn>
============ end ============

I'd be okay with losing the first 70 revisions, but I have no idea how to
get past this point.

The master is on a CollabNet CloudForge account, so I have no visibility
into the server side - not even SVN version. I can view revs 69 through 72
using the repo browser without detecting any problems.

The client is TortoiseSVN (command line utilities):
PS E:\svn> svnsync --version
svnsync, version 1.11.0 (r1845130)
compiled Oct 30 2018, 21:50:05 on x86-microsoft-windows

How do I go about analyzing this problem? Are there diagnostic tools? Log
files? Guys who just know the answer?

Thanks,

-Nick


Reply | Threaded
Open this post in threaded view
|

Re: svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

Daniel Shahaf-2
Nick Burkitt wrote on Fri, 14 Dec 2018 12:36 -0800:
> The operation proceeds without problems until it gets to revision 71, at
> which point it fails with the error "svnsync: E175002: REPORT request on
> '/<ROOT>/!svn/rev/71' failed". I've looked at all the related answers I
> could find, but none of them address this specific problem.
>

The error code is SVN_ERR_RA_DAV_REQUEST_FAILED, which doesn't add
information.

> I'd be okay with losing the first 70 revisions, but I have no idea how to
> get past this point.

I wouldn't resort to that yet.  Do you have previous backups of these
revisions?  Does «svn checkout %SOURCE_REPO%@71» succeed?  If either of
these works, you should be able to work around the error in r71.
Furthermore, —

> The master is on a CollabNet CloudForge account, so I have no visibility
> into the server side - not even SVN version. I can view revs 69 through 72
> using the repo browser without detecting any problems.
>

The standard next step is to look in the server's log for errors.  If
you don't have access to it yourself, then you should contact your
hosting provider.  If you do this, you hopefully wouldn't have to
discard the first 70 revisions (not to mention that based on the
information available, we can't rule out the possibility that _later_
revisions will have the same error).

> The client is TortoiseSVN (command line utilities):
> PS E:\svn> svnsync --version
> svnsync, version 1.11.0 (r1845130)
> compiled Oct 30 2018, 21:50:05 on x86-microsoft-windows
>
> How do I go about analyzing this problem? Are there diagnostic tools? Log
> files? Guys who just know the answer?

As I said, my first recommendation is to talk to your hosting provider.
If you do this, you might skip the middleman and ask them to run
'svnadmin dump --deltas foo' and send you the resulting file.  If you
they don't figure it out, _then_ would be the time to start doing
fancier things (wireshark, workarounds using previous backups and/or
'svn checkout', etc).

Cheers,

Daniel
Reply | Threaded
Open this post in threaded view
|

Re: svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

Daniel Shahaf-2
In reply to this post by Nick Burkitt
Nick Burkitt wrote on Fri, 14 Dec 2018 12:36 -0800:

> Committed revision 69.
> Copied properties for revision 69.
> Transmitting file data ...............
> Committed revision 70.
> Copied properties for revision 70.
> svnsync: E175002: REPORT request on '/<root>/!svn/rev/71' failed
> PS E:\svn>
> ============ end ============
>
> I'd be okay with losing the first 70 revisions, but I have no idea how to
> get past this point.

If you run 'svnsync sync file:///E:/svn/foo' again at this point, does
it fail again in the same way?
Reply | Threaded
Open this post in threaded view
|

RE: svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

Nick Burkitt
In reply to this post by Daniel Shahaf-2
Hi Daniel.

Thanks very much for your help!
I'll try getting in touch with CloudForge.
In the meantime, to address your questions:
*  No, I have no previous backups - this is my first attempt to create one.
*  Yes, I am able to check out version 71 - svn checkout %SOURCE_REPO%@71 reports no errors.
*  Yes, if I repeat the sync command, it fails with the same error:
        E:\svn>svnsync sync file:///E:/backuprepo_01
        svnsync: E175002: REPORT request on '<ROOT>!svn/rev/71' failed

Thanks again,

-Nick


-----Original Message-----
From: Daniel Shahaf [mailto:[hidden email]]
Sent: Monday, 17 December, 2018 01:56
To: Nick Burkitt <[hidden email]>; [hidden email]
Subject: Re: svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

Nick Burkitt wrote on Fri, 14 Dec 2018 12:36 -0800:
> The operation proceeds without problems until it gets to revision 71,
> at which point it fails with the error "svnsync: E175002: REPORT
> request on '/<ROOT>/!svn/rev/71' failed". I've looked at all the
> related answers I could find, but none of them address this specific problem.
>

The error code is SVN_ERR_RA_DAV_REQUEST_FAILED, which doesn't add information.

> I'd be okay with losing the first 70 revisions, but I have no idea how
> to get past this point.

I wouldn't resort to that yet.  Do you have previous backups of these revisions?  Does «svn checkout %SOURCE_REPO%@71» succeed?  If either of these works, you should be able to work around the error in r71.
Furthermore, —

> The master is on a CollabNet CloudForge account, so I have no
> visibility into the server side - not even SVN version. I can view
> revs 69 through 72 using the repo browser without detecting any problems.
>

The standard next step is to look in the server's log for errors.  If you don't have access to it yourself, then you should contact your hosting provider.  If you do this, you hopefully wouldn't have to discard the first 70 revisions (not to mention that based on the information available, we can't rule out the possibility that _later_ revisions will have the same error).

> The client is TortoiseSVN (command line utilities):
> PS E:\svn> svnsync --version
> svnsync, version 1.11.0 (r1845130)
> compiled Oct 30 2018, 21:50:05 on x86-microsoft-windows
>
> How do I go about analyzing this problem? Are there diagnostic tools?
> Log files? Guys who just know the answer?

As I said, my first recommendation is to talk to your hosting provider.
If you do this, you might skip the middleman and ask them to run 'svnadmin dump --deltas foo' and send you the resulting file.  If you they don't figure it out, _then_ would be the time to start doing fancier things (wireshark, workarounds using previous backups and/or 'svn checkout', etc).

Cheers,

Daniel

Reply | Threaded
Open this post in threaded view
|

RE: svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

Nick Burkitt
In reply to this post by Daniel Shahaf-2
Hi Daniel.

I contacted CollabNet, and while they didn't find a solution to the svnsync problem per se, they did provide instructions for creating a local backup using "snvrdump dump" and "svnadmin load."
Thanks again for your help!

-Nick

-----Original Message-----
From: Daniel Shahaf [mailto:[hidden email]]
Sent: Monday, 17 December, 2018 01:56
To: Nick Burkitt <[hidden email]>; [hidden email]
Subject: Re: svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

Nick Burkitt wrote on Fri, 14 Dec 2018 12:36 -0800:
> The operation proceeds without problems until it gets to revision 71,
> at which point it fails with the error "svnsync: E175002: REPORT
> request on '/<ROOT>/!svn/rev/71' failed". I've looked at all the
> related answers I could find, but none of them address this specific problem.
>

The error code is SVN_ERR_RA_DAV_REQUEST_FAILED, which doesn't add information.

> I'd be okay with losing the first 70 revisions, but I have no idea how
> to get past this point.

I wouldn't resort to that yet.  Do you have previous backups of these revisions?  Does «svn checkout %SOURCE_REPO%@71» succeed?  If either of these works, you should be able to work around the error in r71.
Furthermore, —

> The master is on a CollabNet CloudForge account, so I have no
> visibility into the server side - not even SVN version. I can view
> revs 69 through 72 using the repo browser without detecting any problems.
>

The standard next step is to look in the server's log for errors.  If you don't have access to it yourself, then you should contact your hosting provider.  If you do this, you hopefully wouldn't have to discard the first 70 revisions (not to mention that based on the information available, we can't rule out the possibility that _later_ revisions will have the same error).

> The client is TortoiseSVN (command line utilities):
> PS E:\svn> svnsync --version
> svnsync, version 1.11.0 (r1845130)
> compiled Oct 30 2018, 21:50:05 on x86-microsoft-windows
>
> How do I go about analyzing this problem? Are there diagnostic tools?
> Log files? Guys who just know the answer?

As I said, my first recommendation is to talk to your hosting provider.
If you do this, you might skip the middleman and ask them to run 'svnadmin dump --deltas foo' and send you the resulting file.  If you they don't figure it out, _then_ would be the time to start doing fancier things (wireshark, workarounds using previous backups and/or 'svn checkout', etc).

Cheers,

Daniel

Reply | Threaded
Open this post in threaded view
|

Re: svnsync: E175002: REPORT request on '/<ROOT>/!svn/rev/<N>' failed

Daniel Shahaf-2
Nick Burkitt wrote on Fri, 28 Dec 2018 10:19 -0800:
> I contacted CollabNet, and while they didn't find a solution to the
> svnsync problem per se, they did provide instructions for creating a
> local backup using "snvrdump dump" and "svnadmin load."

Interesting.  'svnrdump dump' and 'svnsync sync' use exactly the same
wire API (svn_ra_replay_range()), so it's surprising that one of them
works and one doesn't.

> Thanks again for your help!

You're welcome.

Cheers,

Daniel