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

Re: database corruption

From: Federico Di Gregorio <fog_at_initd.org>
Date: 2004-10-19 15:12:30 CEST

On Tue, 2004-10-19 at 06:38 -0600, Jani Averbach wrote:
> On 2004-10-19 13:55+0200, Federico Di Gregorio wrote:
> >
> > i finally installed 1.0.9 and after 20 minutes of web access (the
> > svnlook widget) and commits the db was corrupted in an unrecoverable
> > way again.
>
> How did you upgrade your system to 1.0.9? Are you absolutely positive
> that you don't have any old libraries laying around?

yes. note that we have another 2 (private) repositories that always
worked. the only difference is the svnlook on the public repository. I
just commited, checked out and generally done a lot of work one one of
the other repos and everything is right.

> Do you know if this happens from first time when you use widget or
> only after some time? Do they have to happen at same time or could
> your widget alone corrupt the repository?

after some time. note that we have the db directory with g+sw
permissions, apache with umask 002 and the twisted server running the
svnlook widget code member of the www-data group (primary group for
apache). after some web page accesses and some commits the system starts
to wedge. "shut down apache, svnadmin recover, start apache" can be
repeated from 5 to 10 times then there is the unrecoverable corruption.

> So if you do 'head -n 2 db/nodes' you will get something like that:
>
> > > svn: File not found: revision '531', path 'psycopg'
> > > <EE><91>^^^@I^C^@^@d^UaA^>^@^@^@^@^@^@^@^@^@^@^B^@^@^@^@^@^@^@ ^@^

yes. i can send the corrupted archive if anybody bothers.

> > probably i am using svnlook in a non standard way but i don't
> > understand what the problem is.
>
> There should be absolutely any standard non-standard way to get this
> kind of mess. I like to take look of your widget.

I attached the code to this mail. I know that svn has python bindings
but using svnlook was just easier to start with. I was planning to move
to the bindings when I had the time to study them.

> > i am really scared of continuing to use svn now. :(
>
> I understand, however this is quite exceptional and out of the
> ordinary, which of cource doesn't help you at all...

I am pretty happy with svn on the two other repositories. I am just a
little bit scared: what if an badly placed svnlook during a commit just
make me loose all my work? :(

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                fog@debian.org
INIT.D Developer                                           fog@initd.org
  99.99999999999999999999% still isn't 100% but sometimes suffice. -- Me

  • application/x-python attachment: svn.py
Received on Wed Oct 20 15:42:14 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.