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

Re: SVN 1.5 - Can't access repository upgraded from 1.4.x format

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Fri, 27 Jun 2008 16:24:57 -0500

On Jun 27, 2008, at 11:05, Rush Manbert wrote:

> On Jun 27, 2008, at 8:34 AM, Dave Lawrence wrote:
>
>> Rush Manbert wrote:
>>
>>> I hope I'm doing something stupid and easily remedied.
>>> I have a repository that was created under 1.4.x. I have moved a
>>> copy of that repository to a different machine and verified that
>>> I can access it using the 1.4.x client, both on the local machine
>>> and from a different machine. I am using the svn+ssh protocol in
>>> both cases.
>>> After verifying correct operation with svn 1.4.x, I installed the
>>> 1.5.0 release. I verified that "svn --version", "svnadmin --
>>> version", and "svnserve --version" all report 1.5.0 on the test
>>> machine.
>>> I could still access my 1.4.x format repository from the test
>>> machine using SVN 1.5.
>>> Here is where things started to go wrong.
>>> I made a copy of the 1.4 repository and verified that I could
>>> access it using the 1.5 release.
>>> I converted my 1.4 copy to 1.5 format by running svnadmin upgrade
>>> on it.
>>> I could not access the upgraded repository:
>>> svn info svn+ssh://localhost/Users/rmanbert/svn15/il6-1185-svn15-
>>> upgraded
>>> svn: Expected FS format '2'; found format '3'
>>> I tried upgrading the repository by doing a svnadmin dump on the
>>> 1.4 format repository, then loading it into a newly created
>>> repository. I did this on the machine that is now running SVN
>>> 1.5. When I attempt to access the resulting repository, I get the
>>> same result.
>>> I tried doing svnadmin dump on the repository copy that I had
>>> originally moved to the test machine. I did the dump from the
>>> original machine that is my repository server, so it was dumped
>>> by SVN 1.4.4. I copied the dumpfile to the test machine and
>>> loaded it into a newly created repository using SVN 1.5. When I
>>> try to access the new repository I get the same error.
>>> So, to summarize, I have upgraded my repository to 1.5 format
>>> three different ways:
>>> 1.4 --> svnadmin(1.5) upgrade --> 1.5
>>> 1.4 --> svnadmin(1.5) dump --> svnadmin(1.5) create newRepo -->
>>> svnadmin(1.5) load newRepo --> 1.5
>>> 1.4 --> svnadmin(1.4.4) dump --> svnadmin(1.5) create newRepo -->
>>> svnadmin(1.5) load newRepo --> 1.5
>>> In all cases, when I try to access the 1.5 repository, I get the
>>> error
>>> svn: Expected FS format '2'; found format '3'
>>> Can someone please tell me what I'm doing that is wrong?
>>
>> It looks to me like you have successfully upgraded your repository
>> but not your server. Not sure how you managed to upgrade svnadmin
>> but not svnserve however -- maybe you just need a reboot?
>>
>> try svnserve --version to confrim.
>
> Rebooting did not make the problem go away.
>
> I have verified that svnserve --version reports "svnserve, version
> 1.5.0 (r31699)"
>
> ps -A immediately after I logged in shows that svnserve is not
> running. (I checked in case the system somehow started a downrev
> version behind my back.)

That's totally normal. With svn+ssh, you don't have an always-running
svnserve. Instead, ssh starts svnserve when you initiate a
connection, and stops it when the connection is done.

> I first tried accessing my 1.4 version repository, which worked.
> After that I ran ps -A again to see if svnserve was running. It was
> not. IIRC, it gets run every time you access the repository, then
> completes and exits.

Exactly.

> The test machine is running OS X 10.4, in case that makes any
> difference.

You must have multiple versions of svnserve on your Mac then. The
version of svnserve that ssh is finding is too old. Subversion didn't
come with Mac OS X until version 10.5, so check any copies of
Subversion you might have installed yourself. Check in /usr/local/
bin, /opt/local/bin, /sw/bin, even /usr/bin or any other paths in
your $PATH. Check your ssh configuration files.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-27 23:25:26 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.