[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: can't "svnadmin load"

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Thu, 15 May 2008 01:11:11 -0500

On May 15, 2008, at 00:57, Daevid Vincent wrote:

> I am having all kinds of issues trying to import a dump from
> http://cvsdude.com.
> We've been using them, but now would like to move the subversion in-
> house.
>
> root_at_bugs:/tmp# svnadmin load help
> svnadmin: Can't open file 'help/format': No such file or directory
>
> root_at_bugs:/tmp# svnadmin load --force-uuid /var/local/svn/
> svn.mycompany.com
> < web.svn
> svnadmin: Valid UTF-8 data
> (hex:)
> followed by invalid UTF-8 sequence
> (hex: 96 2d 66 6f)
>
> root_at_bugs:/tmp# svnadmin load /var/local/svn/svn.mycompany.com <
> web.svn
>
> <<< Started new transaction, based on original revision 1
> svnadmin: File already exists: filesystem
> '/var/local/svn/svn.mycompany.com/db', transaction '2-1', path
> 'branches'
> * adding path : branches ...root_at_bugs:/tmp#
>
> I tried to delete the 'db' directory and that didn't work either:
> svnadmin: Can't open file '/var/local/svn/svn.mycompany.com/db/
> DB_CONFIG':
> No such file or directory
>
> I tried to point it right at the db and that failed too.
> # svnadmin load /var/local/svn/svn.mycompany.com/db < web.svn
> svnadmin: Expected repository format '3' or '5'; found format '2'
>
> What am I doing wrong? This shouldn't be so difficult.

The way to get help about the svnadmin load command is to type
"svnadmin help load" (not "svnadmin load help"). You can also read
the book at http://svnbook.org

svnadmin is having trouble converting non-UTF-8 data in the dumpfile
it seems? Do you have the LANG environment variable set to something
that makes sense for your system? If not, please do. Though I didn't
think the dumpfile should ever contain non-UTF-8 data... If it helps
you locate the source of the problem, the butes 96 2d 66 6f, if they
are in the ISO-8859-1 charset, are "-fo" -- that is, an en-dash, a
dash, the letter f, the letter o. Is that string present in one of
your filenames in the dump? Again it shouldn't be a problem; the
repository should be able to handle UTF-8 filenames. Just trying to
see where the message is coming from.

You're trying to load a complete repository dump into a new empty
local repository, yes? In that case, once svnadmin load fails, you
should delete the repository and recreate a new empty one before
attempting to load again. That should take care of the rest of the
errors you mentioned.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-15 08:11:41 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.