You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ben Elliston <bj...@air.net.au> on 2020/06/27 13:04:18 UTC

upgrading from repo format 1

I was a very early SVN user. I have a repo last timestamped January
2003 that I want to get files and data out of. When I run svn upgrade,
I get:

svnadmin: E165005: Expected repository format '3' or '5'; found format '1'

Do I need to install an intermediate version of SVN in order to
upgrade? If so, which version would you advise that I use?

Thanks,
Ben

Re: upgrading from repo format 1

Posted by Ben Elliston <bj...@air.net.au>.
Hi Nico

Thanks for your suggestion, which gave me an idea: I can copy the repo
on a USB drive, boot an old live system of some kind, and checkout the
repo onto my USB drive. It's just a matter of which version I need to
support the version 1 repository format.

Cheers, Ben

Re: upgrading from repo format 1

Posted by Ben Elliston <bj...@air.net.au>.
On Sat, Jun 27, 2020 at 11:20:37PM -0400, Nico Kadel-Garcia wrote:

> What version of subversion on what operating system was your
> original server? And what are you tyring to upgrade to?

I have been using SVN since version 1.0. On the server where the repo
lives, SVN is now 1.13 (it has just been upgraded over the years).
It's just that the repo was left behind.

Ben

Re: upgrading from repo format 1

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Sat, Jun 27, 2020 at 9:06 AM Ben Elliston <bj...@air.net.au> wrote:
>
> I was a very early SVN user. I have a repo last timestamped January
> 2003 that I want to get files and data out of. When I run svn upgrade,
> I get:

The year is pretty irrelevant. But the version of subversion on your
old server is, and the modern subversion may not support the obsolete
format.

What version of subversion on what operating system was your original
server? And what are you tyring to upgrade to?

> svnadmin: E165005: Expected repository format '3' or '5'; found format '1'

See above. There are obsolete versions of subversion on various
obsolete operating systems, which may be possible to virtualize easily
to gain access ot old software rather than recompoiling.

Re: upgrading from repo format 1

Posted by Branko Čibej <br...@apache.org>.
On 28.06.2020 13:35, Ben Elliston wrote:
> On Sun, Jun 28, 2020 at 11:04:18AM +0000, Daniel Shahaf wrote:
>
>> Branko ??ibej wrote on Sun, 28 Jun 2020 11:20 +0200:
>> What are the differences between f1 and f3?  Would «echo 3 > format»
>> (plus perhaps some manual edits) allow current svnadmin's to dump the
>> repository?
> Nope, after echo 3 > format:
>
> svn: E160027: Malformed node-revision skeleton

Right, for pre-1.0 format bumps it's pretty much a given that the
repositories are not compatible.

-- Brane


Re: upgrading from repo format 1

Posted by Ben Elliston <bj...@air.net.au>.
On Sun, Jun 28, 2020 at 11:04:18AM +0000, Daniel Shahaf wrote:

> Branko ??ibej wrote on Sun, 28 Jun 2020 11:20 +0200:

> What are the differences between f1 and f3?  Would «echo 3 > format»
> (plus perhaps some manual edits) allow current svnadmin's to dump the
> repository?

Nope, after echo 3 > format:

svn: E160027: Malformed node-revision skeleton

Ben

Re: upgrading from repo format 1

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Branko Čibej wrote on Sun, 28 Jun 2020 11:20 +0200:
> On 27.06.2020 15:04, Ben Elliston wrote:
> > I was a very early SVN user. I have a repo last timestamped January
> > 2003 that I want to get files and data out of. When I run svn upgrade,
> > I get:
> >
> > svnadmin: E165005: Expected repository format '3' or '5'; found format '1'  
> 
> 
> Repository format 1 is really, really old; older, in fact, than
> Subversion 1.0, which used format 3 and did not offer backward
> compatibility with pre-1.0 repositories.
> 
> 
> > Do I need to install an intermediate version of SVN in order to
> > upgrade? If so, which version would you advise that I use?  
> 
> The latest version that I can find that used format 1 is 0.27.0:
> 
> https://svn.apache.org/repos/asf/subversion/tags/0.27.0
> 
> If you can build that version (which is probably going to be quite
> challenging, given its dependencies -- IIRC we still used APR-0.9 and
> some old, probably now unavailable version of Berkeley DB), you can then
> dump the repository with that old version of 'svnadmin'. It's likely
> that the current svnadmin can read such old dumps.
> 
> (And if not -- surely that's a bug and can be fixed because we do
> promise to support repository dump formats indefinitely.)

What are the differences between f1 and f3?  Would «echo 3 > format»
(plus perhaps some manual edits) allow current svnadmin's to dump the
repository?

Re: upgrading from repo format 1

Posted by Branko Čibej <br...@apache.org>.
On 27.06.2020 15:04, Ben Elliston wrote:
> I was a very early SVN user. I have a repo last timestamped January
> 2003 that I want to get files and data out of. When I run svn upgrade,
> I get:
>
> svnadmin: E165005: Expected repository format '3' or '5'; found format '1'


Repository format 1 is really, really old; older, in fact, than
Subversion 1.0, which used format 3 and did not offer backward
compatibility with pre-1.0 repositories.


> Do I need to install an intermediate version of SVN in order to
> upgrade? If so, which version would you advise that I use?

The latest version that I can find that used format 1 is 0.27.0:

https://svn.apache.org/repos/asf/subversion/tags/0.27.0

If you can build that version (which is probably going to be quite
challenging, given its dependencies -- IIRC we still used APR-0.9 and
some old, probably now unavailable version of Berkeley DB), you can then
dump the repository with that old version of 'svnadmin'. It's likely
that the current svnadmin can read such old dumps.

(And if not -- surely that's a bug and can be fixed because we do
promise to support repository dump formats indefinitely.)

-- Brane


Re: upgrading from repo format 1

Posted by Ben Elliston <bj...@air.net.au>.
On Sat, Jun 27, 2020 at 08:19:59PM +0000, Daniel Shahaf wrote:

> I don't know offhand what SVN_REPOS__FORMAT_NUMBER was in 2003 —
> that's several years before I joined the project — but first things
> first, I'd like to confirm that you aren't running into
> https://subversion.apache.org/issue3744.  Did you run «svnadmin
> upgrade /path/to/repo/db» or «svnadmin upgrade /path/to/repo»?  The
> latter would be correct.

I ran 'svnadmin upgrade /path/to/repo'.

BTW, repo/format says "1".

Ben

Re: upgrading from repo format 1

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Ben Elliston wrote on Sat, 27 Jun 2020 23:04 +1000:
> I was a very early SVN user. I have a repo last timestamped January
> 2003 that I want to get files and data out of. When I run svn upgrade,
> I get:
> 
> svnadmin: E165005: Expected repository format '3' or '5'; found format '1'
> 
> Do I need to install an intermediate version of SVN in order to
> upgrade? If so, which version would you advise that I use?

I don't know offhand what SVN_REPOS__FORMAT_NUMBER was in 2003 — that's
several years before I joined the project — but first things first, I'd
like to confirm that you aren't running into https://subversion.apache.org/issue3744.
Did you run «svnadmin upgrade /path/to/repo/db» or «svnadmin
upgrade /path/to/repo»?  The latter would be correct.

Cheers,

Daniel