Strange error message: Unable to open an ra_local session to URL

View: New views
6 Messages — Rating Filter:   Alert me  

Strange error message: Unable to open an ra_local session to URL

by Zsolt Koppany :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

for one repository I get a strange error message:

the command below does work, thus it should be a javasvn bug:

svn list file:///home/codebeamer/cb4/repository/svn/intl_inc

I think .../intl_inc/db/format really does NOT exist but
.../intl_inc/format.

How can I fix the problem?

Zsolt




cv.scm.ScmException: org.tmatesoft.svn.core.SVNException: svn: Unable to
open an ra_local session to URL
svn: Unable to open repository
'file:///home/codebeamer/cb4/repository/svn/intl_inc'
svn: Can't read length line from file
/home/codebeamer/cb4/repository/svn/intl_inc/db/format:
/home/codebeamer/cb4/repository/svn/intl_inc/db/format (No such file or
directory)
    at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.jav
a:48)
    at
org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSReposito
ry.java:94)
    at
org.tmatesoft.svn.core.internal.io.fs.FSRepository.getLatestRevision(FSRepos
itory.java:138)
    at
org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.ja
va:306)
    at
org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:150)




Parent Message unknown RE: Strange error message: Unable to open an ra_local session to URL

by Alexander Kitaev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Zsolt,

Both repository/format and repository/db/format files should exists. Make
sure repository you're accessing is of 'fsfs' type, not 'bdb' (see
repository/db/fs-type file) - JavaSVN only supports those of 'fsfs' type.

> How can I fix the problem?
If the problem is in repository type, you may use "svnadmin dump/load"
commands to convert repository to another type. Also try running "svnadmin
verify" command to check that repository is not damaged.

Alexander Kitaev,
TMate Software,
http://tmate.org/

> -----Original Message-----
> From: Zsolt [mailto:zkoppanylist@...]
> Sent: Tuesday, September 05, 2006 11:22
> To: javasvn-users@...
> Subject: Strange error message: Unable to open an ra_local
> session to URL
>
> Hi,
>
> for one repository I get a strange error message:
>
> the command below does work, thus it should be a javasvn bug:
>
> svn list file:///home/codebeamer/cb4/repository/svn/intl_inc
>
> I think .../intl_inc/db/format really does NOT exist but
> .../intl_inc/format.
>
> How can I fix the problem?
>
> Zsolt
>
>
>
>
> cv.scm.ScmException: org.tmatesoft.svn.core.SVNException:
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository
> 'file:///home/codebeamer/cb4/repository/svn/intl_inc'
> svn: Can't read length line from file
> /home/codebeamer/cb4/repository/svn/intl_inc/db/format:
> /home/codebeamer/cb4/repository/svn/intl_inc/db/format (No
> such file or
> directory)
>     at
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNEr
> rorManager.jav
> a:48)
>     at
> org.tmatesoft.svn.core.internal.io.fs.FSRepository.openReposit
> ory(FSReposito
> ry.java:94)
>     at
> org.tmatesoft.svn.core.internal.io.fs.FSRepository.getLatestRe
> vision(FSRepos
> itory.java:138)
>     at
> org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVN
> BasicClient.ja
> va:306)
>     at
> org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateCl
> ient.java:150)
>
>
>
>


RE: Strange error message: Unable to open an ra_local session to URL

by Zsolt Koppany :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alexander,

The repository type is "fsfs". After storing "1" into db/format I didn't
have any problems but again, the command "svn ...." didn't have any
problems.

Zsolt

>-----Original Message-----
>From: Alexander Kitaev [mailto:alex@...]
>Sent: Tuesday, September 05, 2006 12:56 PM
>To: javasvn-users@...
>Subject: RE: Strange error message: Unable to open an ra_local session to
>URL
>
>Hello Zsolt,
>
>Both repository/format and repository/db/format files should exists. Make
>sure repository you're accessing is of 'fsfs' type, not 'bdb' (see
>repository/db/fs-type file) - JavaSVN only supports those of 'fsfs' type.
>
>> How can I fix the problem?
>If the problem is in repository type, you may use "svnadmin dump/load"
>commands to convert repository to another type. Also try running "svnadmin
>verify" command to check that repository is not damaged.
>
>Alexander Kitaev,
>TMate Software,
>http://tmate.org/
>
>> -----Original Message-----
>> From: Zsolt [mailto:zkoppanylist@...]
>> Sent: Tuesday, September 05, 2006 11:22
>> To: javasvn-users@...
>> Subject: Strange error message: Unable to open an ra_local
>> session to URL
>>
>> Hi,
>>
>> for one repository I get a strange error message:
>>
>> the command below does work, thus it should be a javasvn bug:
>>
>> svn list file:///home/codebeamer/cb4/repository/svn/intl_inc
>>
>> I think .../intl_inc/db/format really does NOT exist but
>> .../intl_inc/format.
>>
>> How can I fix the problem?
>>
>> Zsolt
>>
>>
>>
>>
>> cv.scm.ScmException: org.tmatesoft.svn.core.SVNException:
>> svn: Unable to open an ra_local session to URL
>> svn: Unable to open repository
>> 'file:///home/codebeamer/cb4/repository/svn/intl_inc'
>> svn: Can't read length line from file
>> /home/codebeamer/cb4/repository/svn/intl_inc/db/format:
>> /home/codebeamer/cb4/repository/svn/intl_inc/db/format (No
>> such file or
>> directory)
>>     at
>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNEr
>> rorManager.jav
>> a:48)
>>     at
>> org.tmatesoft.svn.core.internal.io.fs.FSRepository.openReposit
>> ory(FSReposito
>> ry.java:94)
>>     at
>> org.tmatesoft.svn.core.internal.io.fs.FSRepository.getLatestRe
>> vision(FSRepos
>> itory.java:138)
>>     at
>> org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVN
>> BasicClient.ja
>> va:306)
>>     at
>> org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateCl
>> ient.java:150)
>>
>>
>>
>>


Parent Message unknown RE: Strange error message: Unable to open an ra_local session to URL

by Alexander Kitaev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Zsolt,

> The repository type is "fsfs". After storing "1" into
> db/format I didn't have any problems but again, the command
> "svn ...." didn't have any problems.
May be this repository was created by some old version of Subversion. What
version is stored in repository/format file?
Anyway, thank you for reporting this - I will make JavaSVN work the same way
as native Subversion.

Alexander Kitaev,
TMate Software,
http://tmate.org/

> -----Original Message-----
> From: Zsolt [mailto:zkoppanylist@...]
> Sent: Tuesday, September 05, 2006 17:09
> To: javasvn-users@...
> Subject: RE: Strange error message: Unable to open an
> ra_local session to URL
>
> Alexander,
>
> The repository type is "fsfs". After storing "1" into
> db/format I didn't have any problems but again, the command
> "svn ...." didn't have any problems.
>
> Zsolt
>
> >-----Original Message-----
> >From: Alexander Kitaev [mailto:alex@...]
> >Sent: Tuesday, September 05, 2006 12:56 PM
> >To: javasvn-users@...
> >Subject: RE: Strange error message: Unable to open an
> ra_local session
> >to URL
> >
> >Hello Zsolt,
> >
> >Both repository/format and repository/db/format files should exists.
> >Make sure repository you're accessing is of 'fsfs' type, not
> 'bdb' (see
> >repository/db/fs-type file) - JavaSVN only supports those of
> 'fsfs' type.
> >
> >> How can I fix the problem?
> >If the problem is in repository type, you may use "svnadmin
> dump/load"
> >commands to convert repository to another type. Also try running
> >"svnadmin verify" command to check that repository is not damaged.
> >
> >Alexander Kitaev,
> >TMate Software,
> >http://tmate.org/
> >
> >> -----Original Message-----
> >> From: Zsolt [mailto:zkoppanylist@...]
> >> Sent: Tuesday, September 05, 2006 11:22
> >> To: javasvn-users@...
> >> Subject: Strange error message: Unable to open an ra_local
> session to
> >> URL
> >>
> >> Hi,
> >>
> >> for one repository I get a strange error message:
> >>
> >> the command below does work, thus it should be a javasvn bug:
> >>
> >> svn list file:///home/codebeamer/cb4/repository/svn/intl_inc
> >>
> >> I think .../intl_inc/db/format really does NOT exist but
> >> .../intl_inc/format.
> >>
> >> How can I fix the problem?
> >>
> >> Zsolt
> >>
> >>
> >>
> >>
> >> cv.scm.ScmException: org.tmatesoft.svn.core.SVNException:
> >> svn: Unable to open an ra_local session to URL
> >> svn: Unable to open repository
> >> 'file:///home/codebeamer/cb4/repository/svn/intl_inc'
> >> svn: Can't read length line from file
> >> /home/codebeamer/cb4/repository/svn/intl_inc/db/format:
> >> /home/codebeamer/cb4/repository/svn/intl_inc/db/format (No
> such file
> >> or
> >> directory)
> >>     at
> >> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNEr
> >> rorManager.jav
> >> a:48)
> >>     at
> >> org.tmatesoft.svn.core.internal.io.fs.FSRepository.openReposit
> >> ory(FSReposito
> >> ry.java:94)
> >>     at
> >> org.tmatesoft.svn.core.internal.io.fs.FSRepository.getLatestRe
> >> vision(FSRepos
> >> itory.java:138)
> >>     at
> >> org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVN
> >> BasicClient.ja
> >> va:306)
> >>     at
> >> org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateCl
> >> ient.java:150)
> >>
> >>
> >>
> >>
>
>


RE: Strange error message: Unable to open an ra_local session to URL

by Zsolt Koppany :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alexander,

cat format
3

Zsolt

>-----Original Message-----
>From: Alexander Kitaev [mailto:alex@...]
>Sent: Tuesday, September 05, 2006 5:14 PM
>To: javasvn-users@...
>Subject: RE: Strange error message: Unable to open an ra_local session to
>URL
>
>Hello Zsolt,
>
>> The repository type is "fsfs". After storing "1" into
>> db/format I didn't have any problems but again, the command
>> "svn ...." didn't have any problems.
>May be this repository was created by some old version of Subversion. What
>version is stored in repository/format file?
>Anyway, thank you for reporting this - I will make JavaSVN work the same
>way
>as native Subversion.
>
>Alexander Kitaev,
>TMate Software,
>http://tmate.org/
>
>> -----Original Message-----
>> From: Zsolt [mailto:zkoppanylist@...]
>> Sent: Tuesday, September 05, 2006 17:09
>> To: javasvn-users@...
>> Subject: RE: Strange error message: Unable to open an
>> ra_local session to URL
>>
>> Alexander,
>>
>> The repository type is "fsfs". After storing "1" into
>> db/format I didn't have any problems but again, the command
>> "svn ...." didn't have any problems.
>>
>> Zsolt
>>
>> >-----Original Message-----
>> >From: Alexander Kitaev [mailto:alex@...]
>> >Sent: Tuesday, September 05, 2006 12:56 PM
>> >To: javasvn-users@...
>> >Subject: RE: Strange error message: Unable to open an
>> ra_local session
>> >to URL
>> >
>> >Hello Zsolt,
>> >
>> >Both repository/format and repository/db/format files should exists.
>> >Make sure repository you're accessing is of 'fsfs' type, not
>> 'bdb' (see
>> >repository/db/fs-type file) - JavaSVN only supports those of
>> 'fsfs' type.
>> >
>> >> How can I fix the problem?
>> >If the problem is in repository type, you may use "svnadmin
>> dump/load"
>> >commands to convert repository to another type. Also try running
>> >"svnadmin verify" command to check that repository is not damaged.
>> >
>> >Alexander Kitaev,
>> >TMate Software,
>> >http://tmate.org/
>> >
>> >> -----Original Message-----
>> >> From: Zsolt [mailto:zkoppanylist@...]
>> >> Sent: Tuesday, September 05, 2006 11:22
>> >> To: javasvn-users@...
>> >> Subject: Strange error message: Unable to open an ra_local
>> session to
>> >> URL
>> >>
>> >> Hi,
>> >>
>> >> for one repository I get a strange error message:
>> >>
>> >> the command below does work, thus it should be a javasvn bug:
>> >>
>> >> svn list file:///home/codebeamer/cb4/repository/svn/intl_inc
>> >>
>> >> I think .../intl_inc/db/format really does NOT exist but
>> >> .../intl_inc/format.
>> >>
>> >> How can I fix the problem?
>> >>
>> >> Zsolt
>> >>
>> >>
>> >>
>> >>
>> >> cv.scm.ScmException: org.tmatesoft.svn.core.SVNException:
>> >> svn: Unable to open an ra_local session to URL
>> >> svn: Unable to open repository
>> >> 'file:///home/codebeamer/cb4/repository/svn/intl_inc'
>> >> svn: Can't read length line from file
>> >> /home/codebeamer/cb4/repository/svn/intl_inc/db/format:
>> >> /home/codebeamer/cb4/repository/svn/intl_inc/db/format (No
>> such file
>> >> or
>> >> directory)
>> >>     at
>> >> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNEr
>> >> rorManager.jav
>> >> a:48)
>> >>     at
>> >> org.tmatesoft.svn.core.internal.io.fs.FSRepository.openReposit
>> >> ory(FSReposito
>> >> ry.java:94)
>> >>     at
>> >> org.tmatesoft.svn.core.internal.io.fs.FSRepository.getLatestRe
>> >> vision(FSRepos
>> >> itory.java:138)
>> >>     at
>> >> org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVN
>> >> BasicClient.ja
>> >> va:306)
>> >>     at
>> >> org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateCl
>> >> ient.java:150)
>> >>
>> >>
>> >>
>> >>
>>
>>


Re[2]: Strange error message: Unable to open an ra_local session to URL

by Alexander Sinyushkin-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, Zsolt.

Fixed this problem in trunk. Now JavaSVN should work ignoring miss of
a db/format file.

Zsolt> Alexander,

Zsolt> cat format
Zsolt> 3

Zsolt> Zsolt


--
 Alexander Sinyushkin,
 TMate Software