SVN Error: Expected fs format between '1' and '3'; found format '4'
Asked Answered
S

10

20

Here's what I did, I have installed svnserve as a service and I started it with the net start svn service command. I typed svn ls svn://localhost to test the service but it returned the error as stated in the title of this post.

I entered svn --version and svnserve --version on my computer to find out the version numbers and the client and the server version is the same, version 1.5.6. I'm guessing the error appears due to different versions of the server and the client.

When I start the server using svnserve --daemon --root command in cmd, The error still appears.

Why does the error appear? Thanks

Sudatorium answered 8/5, 2009 at 5:41 Comment(0)
A
13

Which Subverson tool did you use to create the repository? TortoiseSVN? Your TortoiseSVN may be newer, a 1.6.x release, then your 1.5 command line client and svnserve, so svnserve 1.5.x cannot serve a 1.6.x repository.

In my fsfs repository created with svnadmin 1.6.1, the db/format file contains

$ cat repos/db/format 
4
layout sharded 1000
Atonal answered 8/5, 2009 at 5:48 Comment(2)
I created the repository using the command line, and my TortoiseSVN is version 1.6. Well, I'll just update my Subversion installation to 1.6 then?Sudatorium
I installed my Subversion by extracting binaries. To uninstall it, do I just delete the folders where I extracted it? I'm going to install CollabnetSudatorium
C
7

I have the same problem but I had resolve it with a different approach

The issue mainly is the db/format file where it expects a "2" best way to check is to ope the file

$ vi db/format 

If you get this

4
layout sharded 1000

Then you should change them to say

2

Its better to also check you current file

$ vi db/current

It you get only this (e.g. 0 meaning reviosion number 0)

0

Then you should change them to just say (e.g. 0 meaning revision number append "nx" and also "2" )

0 nx 2

Finally Check also if your directory structure for the revs and revprops is sharded or looks something like this

db/revs/0/0

change it to a non folder structure

db/revs/0

Note: the revision file (e.g. 0) is just inside the revs directory, no more other folder should be there

Same goes with revprops change

db/revprops/0/0

to

db/revprops/0
Cota answered 14/4, 2011 at 5:52 Comment(0)
K
2

I delete my old repository and create a new one using command line -> svnadmin create C:\SvnRepository

*old repository was created by right clicking on the folder and click "Create Repository here"

Kylakylah answered 5/9, 2009 at 2:18 Comment(0)
S
1

I installed (the Collabnet install of) SVN 1.5.5 and it was running fine with TortoiseSVN 1.6.1. After upgrading SVN to 1.6.2 I'm getting the same error (Expected fs format between ‘1’ and ‘3’; found format ‘4’) when I try to access it through Trac. This lends credibility to Blair's answer. I'll let you know how I get it running again.

Update: Blair's answer worked for me, too: the message says that an old version of SVN is trying to access the repository, so find it and delete it. The specifics for me were that the error only occurred when I used Trac, so I re-installed Trac on Windows (http://trac.edgewall.org/wiki/TracOnWindows) with the latest installer I could find (svn-python-1.6.1.win32-py2.5.exe) and deleted old eggs from the Python site-packages folder. After a reboot and resync, I was up and running again.

Steamboat answered 13/5, 2009 at 0:12 Comment(0)
C
1

The latest version of Zend Studio (8.x) has an SVN tool which gives the same error about finding format 4, but expecting format 1-3. I had created my repository using CollabNet SVN (about a year ago) and was unable to open the repository from within Zend Studio.

I think the best solution (at least for my case where I want to work with Zend Studio and not fight with it) is to recreate your repository with the old version of SVN. The URL for SVN 1.3 for Windows is:

http://subversion.tigris.org/files/documents/15/32856/svn-1.3.2-setup.exe

After installing this, make sure you are executing the svnadmin.exe and svn.exe in the newly installed version 1.3 directory in case you have already installed CollabNet SVN (which has a default install directory of c:/csvn).

Canzone answered 17/8, 2011 at 6:22 Comment(0)
R
0

Make sure you are using the correct svnadmin. For example, if you installed VisualSVN, you will need to use the svnadmin located in the bin folder of the installation directory. I had installed the command line version of SVN...and when I used this version of the svnadmin tool, I got the same error.

Rhinestone answered 27/9, 2009 at 3:11 Comment(0)
O
0

Thanks, Joe. I had both CollabNet SVN server and VisualSVN installed and was getting errors until I made sure I was using the version of svnadmin that came with VisualSVN (which I had used to create the repositories).

Orgeat answered 14/11, 2009 at 11:14 Comment(0)
P
0

I was able to fix this by updating Subversion on the server. I also made the adjustment on the db file. Then I pushed everything backup onto the server as an overwrite. I actually (on windows) did a checkout locally, then the files that were generated in creating that repo, I edited the db, then grabbed all files and pushed them up to SVN on the server.

That seemed to have done the trick.

Plod answered 23/9, 2011 at 12:14 Comment(0)
D
0

well i have also faced the same problem. just open your svn remote folder you have made. in your db folder you have format file. just replace the no. with 1. if it does not work try 2, and 3.

Domicile answered 6/8, 2015 at 8:37 Comment(0)
D
0

If you are using VisualSVN server, Make sure your command looks similar as below

Sample Command: C:\Program Files\VisualSVN Server\bin>svnadmin dump c:\repo > c:\backup\svnbacku p.dump

Dubuffet answered 18/8, 2016 at 14:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.