You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jeremy Conlin <jl...@gmail.com> on 2010/03/15 21:12:07 UTC

Expected format problem

I'll bet this is an oft asked question on this list.  I'm getting the error:

svn: Expected FS format '2'; found format '4'

If I understand correctly, this means that my local version of svn
differs from the remote version of svn.  Is this right?  I installed
1.6.9 today on both my local version and my remote version and got the
above error.  Is there something else that I missed here?

Thanks,
Jeremy

local$ /opt/subversion/bin/svn --versionsvn, version 1.6.9 (r901367)
   compiled Jan 25 2010, 22:25:43

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme




remote$ svn --version
svn, version 1.6.9 (r901367)
   compiled Mar 15 2010, 13:27:12

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

Re: Expected format problem

Posted by Jeremy Conlin <jl...@gmail.com>.
On Mon, Mar 15, 2010 at 9:12 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
> On Mar 15, 2010, at 22:09, Jeremy Conlin wrote:
>> On Mon, Mar 15, 2010 at 6:06 PM, Ryan Schmidt wrote:
>>> No, it means the version of Subversion that is directly reading the repository is older than the version of Subversion that created the repository.
>>>
>>> "Directly reading" means probably the version of Subversion on the server, assuming you are using a repository access protocol other than file:///.
>>
>> I am accessing the repository via svn+ssh.  I think the problem is
>> that I have some version in /usr/bin and another version in
>> ~/usr/local/bin.  When I'm logged in, the version used is
>> ~/usr/local/bin and that is 1.6.9.  The version in /usr/bin is 1.4.2.
>> Is it possible that these versions are getting mixed up?
>
> Absolutely. The PATH you've defined for use when you log in via ssh interactively isn't necessarily the same PATH that will be used when connecting via ssh non-interactively (such as when using svn+ssh).
>
>

So what is the correct way to set the PATH?

Jeremy

Re: Expected format problem

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 15, 2010, at 22:09, Jeremy Conlin wrote:
> On Mon, Mar 15, 2010 at 6:06 PM, Ryan Schmidt wrote:
>> No, it means the version of Subversion that is directly reading the repository is older than the version of Subversion that created the repository.
>> 
>> "Directly reading" means probably the version of Subversion on the server, assuming you are using a repository access protocol other than file:///.
> 
> I am accessing the repository via svn+ssh.  I think the problem is
> that I have some version in /usr/bin and another version in
> ~/usr/local/bin.  When I'm logged in, the version used is
> ~/usr/local/bin and that is 1.6.9.  The version in /usr/bin is 1.4.2.
> Is it possible that these versions are getting mixed up?

Absolutely. The PATH you've defined for use when you log in via ssh interactively isn't necessarily the same PATH that will be used when connecting via ssh non-interactively (such as when using svn+ssh).

Re: Expected format problem

Posted by Jeremy Conlin <jl...@gmail.com>.
On Mon, Mar 15, 2010 at 6:06 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
> On Mar 15, 2010, at 16:12, Jeremy Conlin wrote:
>
>> I'll bet this is an oft asked question on this list.  I'm getting the error:
>>
>> svn: Expected FS format '2'; found format '4'
>>
>> If I understand correctly, this means that my local version of svn
>> differs from the remote version of svn.  Is this right?
>
> No, it means the version of Subversion that is directly reading the repository is older than the version of Subversion that created the repository.
>
> "Directly reading" means probably the version of Subversion on the server, assuming you are using a repository access protocol other than file:///.

I am accessing the repository via svn+ssh.  I think the problem is
that I have some version in /usr/bin and another version in
~/usr/local/bin.  When I'm logged in, the version used is
~/usr/local/bin and that is 1.6.9.  The version in /usr/bin is 1.4.2.
Is it possible that these versions are getting mixed up?

Thanks,
Jeremy

Re: Expected format problem

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 15, 2010, at 16:12, Jeremy Conlin wrote:

> I'll bet this is an oft asked question on this list.  I'm getting the error:
> 
> svn: Expected FS format '2'; found format '4'
> 
> If I understand correctly, this means that my local version of svn
> differs from the remote version of svn.  Is this right?

No, it means the version of Subversion that is directly reading the repository is older than the version of Subversion that created the repository.

"Directly reading" means probably the version of Subversion on the server, assuming you are using a repository access protocol other than file:///.

> I installed
> 1.6.9 today on both my local version and my remote version and got the
> above error.  Is there something else that I missed here?

What protocol are you using? If http:// or https:// you may have forgotten to update mod_dav_svn as well.