Convert Svn to Hg: svn.core.SubversionException: 180001 - Unable to connect to a repository at URL 'file:///var/lib/svn/trunk/ascii2psql'

Eric Siegerman davor at davor.org
Fri Dec 14 14:25:24 UTC 2012


On 12/14/2012 03:32 AM, Ambarish Sridharanarayanan wrote:
 > $ hg convert file:///var/lib/svn/trunk/ascii2psql
 > [...]
 > ** unknown exception encountered, please report by visiting
 > **  http://mercurial.selenic.com/wiki/BugTracker
 > [...]
 >   File "/usr/lib/python2.7/site-packages/libsvn/client.py", line 
1976, in svn_client_ls
 >     return _client.svn_client_ls(*args)
 > svn.core.SubversionException: 180001 - Unable to connect to a 
repository at URL 'file:///var/lib/svn/trunk/ascii2psql'
 > 180001 - Unable to open an ra_local session to URL
 > 180001 - Unable to open repository 'file:///var/lib/svn/trunk/ascii2psql'
 > 160029 - Berkeley DB error for filesystem '/var/lib/svn/db' while 
opening environment:
 >
 > 160029 - DB_RUNRECOVERY: Fatal error, run database recovery


Caveat: The below is based purely on a quick look at the relevant
"svnadmin help" output, *not* on personal experience.

I suspect data corruption in your svn repo.  Try running
"svnadmin verify" on it.  If that does indeed report problems
(well, maybe even if it doesn't...), look into "svnadmin
recover".

As always in such circumstances, tread carefully!  Take a backup
before attempting recovery, etc.  As with any such recovery tool,
there's always the risk that "svnadmin recover" might in fact
make things worse.

   - Eric




More information about the Mercurial mailing list