You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Igor Galić <i....@brainsware.org> on 2011/09/16 23:25:51 UTC

Couldn't open rep-cache database

Hey folks,

I did a commit to ATS today with my svn client from trunk (~one or two months old)

igalic@tynix ~/src/asf/trafficserver/lib/tsconfig % svn ci -m 'TS-953: consolidate string copy/concat for tsconfig.'
Authentication realm: <https://svn.apache.org:443> ASF Committers
Password for 'igalic':
Authentication realm: <https://svn.apache.org:443> ASF Committers
Username: igalic
Password for 'igalic':
Sending        TsErrataUtil.cc
Transmitting file data .
Committed revision 1171781.

Warning: post commit FS processing had error:
Couldn't open rep-cache database
igalic@tynix ~/src/asf/trafficserver/lib/tsconfig % ..
igalic@tynix ~/src/asf/trafficserver/lib % ..
igalic@tynix ~/src/asf/trafficserver (svn)-[trunk:1171778] % svn up
Updating '.':
subversion/svn/update-cmd.c:163: (apr_err=175002)
subversion/libsvn_client/update.c:610: (apr_err=175002)
subversion/libsvn_client/update.c:551: (apr_err=175002)
subversion/libsvn_client/update.c:412: (apr_err=175002)
subversion/libsvn_ra_serf/update.c:2392: (apr_err=175002)
subversion/libsvn_ra_serf/update.c:2392: (apr_err=175002)
subversion/libsvn_ra_serf/util.c:2094: (apr_err=175002)
subversion/libsvn_ra_serf/util.c:2094: (apr_err=175002)
svn: E175002: REPORT request on '/repos/asf/!svn/vcc/default' failed: 500 Internal Server Error
1 igalic@tynix ~/src/asf/trafficserver (svn)-[trunk:1171778] %

I talked to gstein, he asked me to provide the .svn directory:
  http://blag.esotericsystems.at/igor/hacks/my-wc.tar.bz2
Note that this is a client side problem with this working copy only:
I have a different checkout with of the same repo, and it's working fine. So far.

n.b.: I'm not subscribed to this list, if you have further questions
please CC me.

So long,
i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 571B 8B8A FC97 266D BDA3  EF6F 43AD 80A4 5779 3257

Re: Couldn't open rep-cache database

Posted by Philip Martin <ph...@wandisco.com>.
Philip Martin <ph...@wandisco.com> writes:

> Igor Galić <i....@brainsware.org> writes:
>
>> Transmitting file data .
>> Committed revision 1171781.
>>
>> Warning: post commit FS processing had error:
>> Couldn't open rep-cache database
>
> I would guess overlapping post-commit from two commits.  The normal
> error here is "database is locked" but perhaps if the timing is a bit
> different it produces a different error message.

That error is produced by svn_fs_fs__open_rep_cache but I don't know how
to trigger it.  It looks like we might only get the top-most error, not
the whole chain, so perhaps removing the svn_error_quick_wrap would give
us a more explicit SQLite error?

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com

Re: Couldn't open rep-cache database

Posted by Philip Martin <ph...@wandisco.com>.
Igor Galić <i....@brainsware.org> writes:

> I did a commit to ATS today with my svn client from trunk (~one or two months old)
>
> igalic@tynix ~/src/asf/trafficserver/lib/tsconfig % svn ci -m 'TS-953: consolidate string copy/concat for tsconfig.'
> Authentication realm: <https://svn.apache.org:443> ASF Committers
> Password for 'igalic':
> Authentication realm: <https://svn.apache.org:443> ASF Committers
> Username: igalic
> Password for 'igalic':
> Sending        TsErrataUtil.cc
> Transmitting file data .
> Committed revision 1171781.
>
> Warning: post commit FS processing had error:
> Couldn't open rep-cache database

I would guess overlapping post-commit from two commits.  The normal
error here is "database is locked" but perhaps if the timing is a bit
different it produces a different error message.

> igalic@tynix ~/src/asf/trafficserver/lib/tsconfig % ..
> igalic@tynix ~/src/asf/trafficserver/lib % ..
> igalic@tynix ~/src/asf/trafficserver (svn)-[trunk:1171778] % svn up
> Updating '.':
> subversion/svn/update-cmd.c:163: (apr_err=175002)
> subversion/libsvn_client/update.c:610: (apr_err=175002)
> subversion/libsvn_client/update.c:551: (apr_err=175002)
> subversion/libsvn_client/update.c:412: (apr_err=175002)
> subversion/libsvn_ra_serf/update.c:2392: (apr_err=175002)
> subversion/libsvn_ra_serf/update.c:2392: (apr_err=175002)
> subversion/libsvn_ra_serf/util.c:2094: (apr_err=175002)
> subversion/libsvn_ra_serf/util.c:2094: (apr_err=175002)
> svn: E175002: REPORT request on '/repos/asf/!svn/vcc/default' failed: 500 Internal Server Error
> 1 igalic@tynix ~/src/asf/trafficserver (svn)-[trunk:1171778] %

That's what serf reports when the slave is out of date w.r.t. the
master:

$ svn up wc --config-option servers:global:http-library=serf
Updating 'wc':
svn: E175002: REPORT request on '/slave/!svn/vcc/default' failed: 500 Internal Server Error

With neon you get a more informative error message:

$ svn up wc --config-option servers:global:http-library=neon
Updating 'wc':
svn: E000000: A reported revision is higher than the current repository HEAD revision.  Perhaps the repository is out of date with respect to the master repository?



-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com

Re: Couldn't open rep-cache database

Posted by Philip Martin <ph...@wandisco.com>.
Greg Stein <gs...@gmail.com> writes:

> On IRC, Igor reports that his WC has magically healed itself:

The slave has caught up to the committed revision.

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com

Re: Couldn't open rep-cache database

Posted by Greg Stein <gs...@gmail.com>.
On IRC, Igor reports that his WC has magically healed itself:

igalic@tynix ~/src/asf/trafficserver/lib/records % svn ci -m 'TS-953:
consolidate string copy/concat for lib/records.'
Authentication realm: <https://svn.apache.org:443> ASF Committers
Password for 'igalic':
Sending        RecCompatibility.cc
Sending        RecCore.cc
Transmitting file data ..
Committed revision 1171797.
igalic@tynix ~/src/asf/trafficserver/lib/records % svn up
Updating '.':
At revision 1171797.
igalic@tynix ~/src/asf/trafficserver/lib/records % ..
igalic@tynix ~/src/asf/trafficserver/lib % ..
igalic@tynix ~/src/asf/trafficserver (svn)-[trunk:1171778] % svn up
Updating '.':
U    proxy/hdrs/HdrTest.cc
Updated to revision 1171797.
igalic@tynix ~/src/asf/trafficserver (svn)-[trunk:1171797] %



My original supposition (and thus, the request for a copy of wc.db) is
that something in the UPDATE report from the working copy is (say)
referring to a bad revision and making the server choke. Something in
the rep-cache code path making it look like there is a problem opening
that db.

Any ideas, people?

Cheers,
-g

2011/9/16 Igor Galić <i....@brainsware.org>:
>
> Hey folks,
>
> I did a commit to ATS today with my svn client from trunk (~one or two months old)
>
> igalic@tynix ~/src/asf/trafficserver/lib/tsconfig % svn ci -m 'TS-953: consolidate string copy/concat for tsconfig.'
> Authentication realm: <https://svn.apache.org:443> ASF Committers
> Password for 'igalic':
> Authentication realm: <https://svn.apache.org:443> ASF Committers
> Username: igalic
> Password for 'igalic':
> Sending        TsErrataUtil.cc
> Transmitting file data .
> Committed revision 1171781.
>
> Warning: post commit FS processing had error:
> Couldn't open rep-cache database
> igalic@tynix ~/src/asf/trafficserver/lib/tsconfig % ..
> igalic@tynix ~/src/asf/trafficserver/lib % ..
> igalic@tynix ~/src/asf/trafficserver (svn)-[trunk:1171778] % svn up
> Updating '.':
> subversion/svn/update-cmd.c:163: (apr_err=175002)
> subversion/libsvn_client/update.c:610: (apr_err=175002)
> subversion/libsvn_client/update.c:551: (apr_err=175002)
> subversion/libsvn_client/update.c:412: (apr_err=175002)
> subversion/libsvn_ra_serf/update.c:2392: (apr_err=175002)
> subversion/libsvn_ra_serf/update.c:2392: (apr_err=175002)
> subversion/libsvn_ra_serf/util.c:2094: (apr_err=175002)
> subversion/libsvn_ra_serf/util.c:2094: (apr_err=175002)
> svn: E175002: REPORT request on '/repos/asf/!svn/vcc/default' failed: 500 Internal Server Error
> 1 igalic@tynix ~/src/asf/trafficserver (svn)-[trunk:1171778] %
>
> I talked to gstein, he asked me to provide the .svn directory:
>  http://blag.esotericsystems.at/igor/hacks/my-wc.tar.bz2
> Note that this is a client side problem with this working copy only:
> I have a different checkout with of the same repo, and it's working fine. So far.
>
> n.b.: I'm not subscribed to this list, if you have further questions
> please CC me.
>
> So long,
> i
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@brainsware.org
> URL: http://brainsware.org/
> GPG: 571B 8B8A FC97 266D BDA3  EF6F 43AD 80A4 5779 3257
>