Import fails with svn: E160005: Cannot replace a directory from within

Configure is OK.
Other repos were imported OK (so, I guess my system conf is OK). I just need a one-time import.

Error occurs when processing the latest revisions (1065/1128) :

======
r1066
A Tags/Plugin OL 1&2 1.2.0 (from Trunk:1065)
======

[2021-01-12 14:39:50.935][subgit-import][1] svn: E160005: Cannot replace a directory from within
svn: E175002: REPORT of '/svn/LDM3000/!svn/vcc/default': 500 Internal Server Error (http://lmn-s-elara:81)
com.syntevo.svngitkit.core.b.i: svn: E160005: Cannot replace a directory from within
svn: E175002: REPORT of '/svn/LDM3000/!svn/vcc/default': 500 Internal Server Error (http://lmn-s-elara:81)
	at com.syntevo.svngitkit.core.b.i.a(SourceFile:29)
	at com.syntevo.svngitkit.core.c.C.b(SourceFile:738)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:436)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:396)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:342)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:169)
	at com.syntevo.svngitkit.core.c.O.c(SourceFile:43)
	at com.syntevo.svngitkit.core.c.O.b(SourceFile:36)
	at org.tmatesoft.translator.k.aj.a(SourceFile:1464)
	at org.tmatesoft.translator.k.aj.c(SourceFile:997)
	at org.tmatesoft.translator.k.aj.a(SourceFile:1020)
	at org.tmatesoft.translator.k.aj.b(SourceFile:1078)
	at org.tmatesoft.translator.k.aj.a(SourceFile:682)
	at org.tmatesoft.translator.k.aj.a(SourceFile:651)
	at org.tmatesoft.translator.k.d.g.a(SourceFile:244)
	at org.tmatesoft.translator.k.d.f.d(SourceFile:47)
	at org.tmatesoft.translator.a.I.b(SourceFile:136)
	at org.tmatesoft.translator.a.t.c(SourceFile:23)
	at org.tmatesoft.translator.b.a(SourceFile:193)
	at org.tmatesoft.translator.b.a(SourceFile:144)
	at org.tmatesoft.translator.b.a(SourceFile:54)
	at org.tmatesoft.translator.process.f.d(SourceFile:136)
	at org.tmatesoft.translator.process.f.c(SourceFile:106)
	at org.tmatesoft.translator.b.a(SourceFile:79)
	at org.tmatesoft.translator.b.a(SourceFile:70)
	at org.tmatesoft.translator.SubGit.main(SourceFile:10)
Caused by: org.tmatesoft.svn.core.SVNException: svn: E160005: Cannot replace a directory from within
svn: E175002: REPORT of '/svn/LDM3000/!svn/vcc/default': 500 Internal Server Error (http://lmn-s-elara:81)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
	at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runReport(DAVRepository.java:1363)
	at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update(DAVRepository.java:853)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:1893)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:1046)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:782)
	at com.syntevo.svngitkit.core.c.C.b(SourceFile:700)
	... 24 more
[2021-01-12 14:39:52.250][subgit-import][1] Restoring refs to reflect SVN state.
[2021-01-12 14:39:53.834][subgit-import][1] Refs were successfully updated
[2021-01-12 14:39:53.836][subgit-import][1] svn: E160005: Cannot replace a directory from within
svn: E175002: REPORT of '/svn/LDM3000/!svn/vcc/default': 500 Internal Server Error (http://lmn-s-elara:81)
org.tmatesoft.translator.util.f: svn: E160005: Cannot replace a directory from within
svn: E175002: REPORT of '/svn/LDM3000/!svn/vcc/default': 500 Internal Server Error (http://lmn-s-elara:81)
	at org.tmatesoft.translator.util.f.c(SourceFile:109)
	at org.tmatesoft.translator.util.f.b(SourceFile:75)
	at org.tmatesoft.translator.k.aj.c(SourceFile:1000)
	at org.tmatesoft.translator.k.aj.a(SourceFile:1020)
	at org.tmatesoft.translator.k.aj.b(SourceFile:1078)
	at org.tmatesoft.translator.k.aj.a(SourceFile:682)
	at org.tmatesoft.translator.k.aj.a(SourceFile:651)
	at org.tmatesoft.translator.k.d.g.a(SourceFile:244)
	at org.tmatesoft.translator.k.d.f.d(SourceFile:47)
	at org.tmatesoft.translator.a.I.b(SourceFile:136)
	at org.tmatesoft.translator.a.t.c(SourceFile:23)
	at org.tmatesoft.translator.b.a(SourceFile:193)
	at org.tmatesoft.translator.b.a(SourceFile:144)
	at org.tmatesoft.translator.b.a(SourceFile:54)
	at org.tmatesoft.translator.process.f.d(SourceFile:136)
	at org.tmatesoft.translator.process.f.c(SourceFile:106)
	at org.tmatesoft.translator.b.a(SourceFile:79)
	at org.tmatesoft.translator.b.a(SourceFile:70)
	at org.tmatesoft.translator.SubGit.main(SourceFile:10)
Caused by: com.syntevo.svngitkit.core.b.i: svn: E160005: Cannot replace a directory from within
svn: E175002: REPORT of '/svn/LDM3000/!svn/vcc/default': 500 Internal Server Error (http://lmn-s-elara:81)
	at com.syntevo.svngitkit.core.b.i.a(SourceFile:29)
	at com.syntevo.svngitkit.core.c.C.b(SourceFile:738)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:436)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:396)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:342)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:169)
	at com.syntevo.svngitkit.core.c.O.c(SourceFile:43)
	at com.syntevo.svngitkit.core.c.O.b(SourceFile:36)
	at org.tmatesoft.translator.k.aj.a(SourceFile:1464)
	at org.tmatesoft.translator.k.aj.c(SourceFile:997)
	... 16 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: E160005: Cannot replace a directory from within
svn: E175002: REPORT of '/svn/LDM3000/!svn/vcc/default': 500 Internal Server Error (http://lmn-s-elara:81)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
	at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runReport(DAVRepository.java:1363)
	at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update(DAVRepository.java:853)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:1893)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:1046)
	at com.syntevo.svngitkit.core.c.C.a(SourceFile:782)
	at com.syntevo.svngitkit.core.c.C.b(SourceFile:700)
	... 24 more

Hello!

The error E160005 usually points to problems in the SVN repository. Could you please advise does ‘svn log -v’ shows the history normally for that repository, especially for the revision 1066? Does ‘svn log --diff -c 1066’ work well in this repository?

Hi Ildar, and thanks for your quick answer !
I’ve tried “svn log --diff -c 1066’” which seems to work fine, but the output is really big: it generates a 11MB file !

Hi!
Thank you for the confirmation! Looks like the repository is in good state, so we would need to investigate the issue further. May I ask you to share the ‘svn log -v’ output with us along with SubGit logs from the affected repository? I mean, the failed import log.

additionally, could you please advise what is the operating system on the SVN server and what is OS on the SubGit machine?

Hi,
The svn log -v gives this on revision 1066:

D:\Dev\LDM3000>svn log -v -c 1066
------------------------------------------------------------------------
r1066 | switz | 2019-07-30 09:07:12 +0200 (mar. 30 juil. 2019) | 1 ligne
Chemins modifi'sÿ:
   A /Tags/Plugin OL 1&2 1.2.0 (de /Trunk:1065)

Tag Pligin OL 1&2 1.2.0
------------------------------------------------------------------------

It seems to be the addition of a new tag, so I guess that’s why the svn diff command is so big ! I cannot provide you the full diff command.

SVN server runs on a 2008R2 Windows, SVN server version is 1.1.2
Subgit runs on WSL2 (Debian) over Win10

Hi,

actually, I didn’t mean the “svn log --diff -c 1066’” output, I meant the ‘svn log -v’ output, without diffs, it would give us a glue about what could be the cause of the issue. Could you please share it with us?

Hi Ildar, it’s 10 years of history and 16k lines !
svnlogvuser.lst (943.8 KB)

subgit error is :

SubGit version 3.3.10 ('Bobique') build #4368

Translating Subversion revisions to Git commits...

IMPORT FAILED

error: svn: E160005: Cannot replace a directory from within
error: svn: E175002: REPORT of '/svn/LDM3000/!svn/vcc/default': 500 Internal Server Error (http://lmn-s-elara:81)
error: Unexpected error has occurred; please report along with the logs ('/mnt/c/Dev/gitlab/svn-import/subgit-import-20210112-172744.zip')
error:   to http://issues.tmatesoft.com/, thank you!

and here is the log
subgit-import-20210112-172744.zip (345.7 KB)