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

Re: svnadmin: Expected repository format '3' or '5'; found format '4'

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 14 Oct 2009 03:44:17 -0500

On Oct 13, 2009, at 22:54, Tena Sakai wrote:

> I have a subversion repository on a linux machine.
> The path to the repository is /usr/local/svn/tsakai.
> I have a project which is under ~/Projects/pivot and
> I want to check in everything in this directory.
> I issued:
>
> $ svn import ~/Projects/pivot file:///usr/local/svn/tsakai -m
> "initial import"
>
> The machine's response was:
> svn: Can't open file '/usr/local/svn/tsakai/db/txn-current-lock':
> Permission denied

It sounds like the files and/or directories in /usr/local/svn/tsakai
are not owned by you, hence permission denied. Change their ownership
to you, or if this repository is for more than just testing out
Subversion's functionality, then set up svnserve or apache and change
the ownership of the files to the user you run svnserve or apache as.

> I asked:
> $ svnadmin lslocks /usr/local/svn/tsakai/db
>
> And the response was:
> svnadmin: Expected repository format '3' or '5'; found format '4'
>
> I asked a slightly different question:
> $ svnadmin lstxns /usr/local/svn/tsakai/db
>
> and I got the same response:
> svnadmin: Expected repository format '3' or '5'; found format '4'

svnadmin needs to be pointed at the repository directory, not its db
subdirectory, so if you want to list the locks and transactions, you
need

svnadmin lslocks /usr/local/svn/tsakai

and

svnadmin lstxns /usr/local/svn/tsakai

> I don't want anything fancy. I don't want to use apache
> portable library; I don't want to use berkeley db. I want
> to use something really basic (for now anyway).

You are already using the Apache Portable Runtime library. It is not
possible to use Subversion without it. It has nothing to do with using
the Apache Web Server, which is of course optional.

> Oh, one more thing. When I issue:
> $ svn --version
>
> It says:
> svn: could not initialize the SASL library

Do you have SASL installed? What version? How was it installed?

> And when I type:
> $ svn
>
> It melts down:
> Segmentation fault
>
> Does this mean I don't have command line client?

It means you have the command line client, and it crashes when you try
to use it. That should not happen, of course. My first suggestion
would be to investigate the SASL problem you already found.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2407453

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-14 10:45:39 CEST

This is an archived mail posted to the Subversion Users mailing list.