You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rainer Dorsch <rd...@web.de> on 2010/04/17 14:58:10 UTC
svn+ssh: Expected FS format '2'; found format '4'
Hello,
I tried to checkout from a server via svn+ssh:
rd@blackbox:~/Managed/Daten$ svn checkout
svn+ssh://rdorsch@hdcl037/var/svn/OSSM/svn-repository/trunk OSSM
Enter passphrase for key '/home/rd/.ssh/id_rsa':
rdorsch@hdcl037's password:
svn: Expected FS format '2'; found format '4'
rd@blackbox:~/Managed/Daten$
I think the problem is that on the server there is a default installation of
svn:
hdcl037: rdorsch $ svn --version
svn, version 1.4.2 (r22196)
compiled Nov 20 2006, 07:17:37
Copyright (C) 2000-2006 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_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' scheme
- handles 'https' 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
hdcl037: rdorsch $
and a more recent version in a non-standard dir (which is added to my path
in .bash_profile)
hdcl037: rdorsch $ svn --version
svn, version 1.6.9 (r901367)
compiled Apr 16 2010, 15:19:25
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.
- 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
hdcl037: rdorsch $
I expect that .bash_profile is not executed when I do svn+ssh, but it is when
I do ssh into the host regularly.
I have now root access to the server containing the repository, I cannot use
keypair authentification.
Any suggestions are welcome.
Thanks,
Rainer
--
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch@web.de
jabber: rdorsch@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/
Re: svn+ssh: Expected FS format '2'; found format '4'
Posted by Jeremy Conlin <jl...@gmail.com>.
I recently had the same problem. I never quite got it figured out,
but you may have more success than I did. The important emails can be
found here:
http://mail-archives.apache.org/mod_mbox/subversion-users/201003.mbox/%3c2588da421003151412p115d5f3fo4324170d8b553b42@mail.gmail.com%3e
Jeremy
On Sat, Apr 17, 2010 at 8:58 AM, Rainer Dorsch <rd...@web.de> wrote:
> Hello,
>
> I tried to checkout from a server via svn+ssh:
>
> rd@blackbox:~/Managed/Daten$ svn checkout
> svn+ssh://rdorsch@hdcl037/var/svn/OSSM/svn-repository/trunk OSSM
>
> Enter passphrase for key '/home/rd/.ssh/id_rsa':
> rdorsch@hdcl037's password:
> svn: Expected FS format '2'; found format '4'
> rd@blackbox:~/Managed/Daten$
>
> I think the problem is that on the server there is a default installation of
> svn:
>
> hdcl037: rdorsch $ svn --version
> svn, version 1.4.2 (r22196)
> compiled Nov 20 2006, 07:17:37
>
> Copyright (C) 2000-2006 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_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
> - handles 'http' scheme
> - handles 'https' 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
>
> hdcl037: rdorsch $
>
> and a more recent version in a non-standard dir (which is added to my path
> in .bash_profile)
>
> hdcl037: rdorsch $ svn --version
> svn, version 1.6.9 (r901367)
> compiled Apr 16 2010, 15:19:25
>
> 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.
> - 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
>
> hdcl037: rdorsch $
>
> I expect that .bash_profile is not executed when I do svn+ssh, but it is when
> I do ssh into the host regularly.
>
> I have now root access to the server containing the repository, I cannot use
> keypair authentification.
>
> Any suggestions are welcome.
>
> Thanks,
> Rainer
>
> --
> Rainer Dorsch
> Lärchenstr. 6
> D-72135 Dettenhausen
> 07157-734133
> email: rdorsch@web.de
> jabber: rdorsch@jabber.org
> GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E
> Full GPG key: http://pgp.mit.edu/
>
Re: svn+ssh: Expected FS format '2'; found format '4'
Posted by B Smith-Mannschott <bs...@gmail.com>.
On Mon, Apr 19, 2010 at 08:08, B Smith-Mannschott <bs...@gmail.com> wrote:
> On Sat, Apr 17, 2010 at 16:58, Rainer Dorsch <rd...@web.de> wrote:
>
...
>> I have now root access to the server containing the repository, I cannot use
>> keypair authentification.
>
> This isn't relevant. Besides, you *are* using keypair authentification:
>
>> rd@blackbox:~/Managed/Daten$ svn checkout
>> svn+ssh://rdorsch@hdcl037/var/svn/OSSM/svn-repository/trunk OSSM
>>
>> Enter passphrase for key '/home/rd/.ssh/id_rsa':
>> rdorsch@hdcl037's password:
>> svn: Expected FS format '2'; found format '4'
On second thought, I stand corrected: You're *trying* to use keypair
authentification, but it's not working just as you said.
// Ben
Re: svn+ssh: Expected FS format '2'; found format '4'
Posted by Rainer Dorsch <rd...@web.de>.
Am Monday 19 April 2010 08:08:48 schrieb B Smith-Mannschott:
> > I expect that .bash_profile is not executed when I do svn+ssh, but it is
> > when I do ssh into the host regularly.
>
> Yup. But .bashrc should be sourced in both cases.
Worked well, many thanks.
Rainer
--
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
jabber: rdorsch@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/
Re: svn+ssh: Expected FS format '2'; found format '4'
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
B Smith-Mannschott wrote on Mon, 19 Apr 2010 at 08:08 +0200:
> On Sat, Apr 17, 2010 at 16:58, Rainer Dorsch <rd...@web.de> wrote:
>
> > and a more recent version in a non-standard dir (which is added to my path
> > in .bash_profile)
>
> add it to your path in .bashrc instead. .bash_profile only gets loaded
> by interactive login shells.
Other options: use a custom tunnel (svn+foo://) that takes care to run
the correct server-side svnserve. (In my case, I wrote server-side
scripts that ignore their argv and run svnserve or nc with the right
arguments.) Or use the 'command' authorized_keys directive to create
a keypair that can only be used for svn+ssh:// (see
<http://svn.apache.org/repos/asf/subversion/trunk/notes/ssh-tricks>).
Re: svn+ssh: Expected FS format '2'; found format '4'
Posted by B Smith-Mannschott <bs...@gmail.com>.
On Sat, Apr 17, 2010 at 16:58, Rainer Dorsch <rd...@web.de> wrote:
> and a more recent version in a non-standard dir (which is added to my path
> in .bash_profile)
add it to your path in .bashrc instead. .bash_profile only gets loaded
by interactive login shells.
> I expect that .bash_profile is not executed when I do svn+ssh, but it is when
> I do ssh into the host regularly.
Yup. But .bashrc should be sourced in both cases.
> I have now root access to the server containing the repository, I cannot use
> keypair authentification.
This isn't relevant. Besides, you *are* using keypair authentification:
> rd@blackbox:~/Managed/Daten$ svn checkout
> svn+ssh://rdorsch@hdcl037/var/svn/OSSM/svn-repository/trunk OSSM
>
> Enter passphrase for key '/home/rd/.ssh/id_rsa':
> rdorsch@hdcl037's password:
> svn: Expected FS format '2'; found format '4'
// ben