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

RE: Re: Suddenly corrupted Subversion repository.

From: Natalya Pyalling <npyalling_at_valuecommerce.ne.jp>
Date: 2004-05-26 09:50:44 CEST

> -----Original Message-----
> From: John Szakmeister [mailto:john@szakmeister.net]
> Sent: Wednesday, May 26, 2004 11:42 AM
> To: users@subversion.tigris.org
> Subject: Re: Suddenly corrupted Subversion repository.
>
> On Wednesday 26 May 2004 03:22, Natalya Pyalling wrote:
> [snip]
> > Now we have problem with any access to specific directory. (for
example
> > /svn/repos/trunk/Code/xsys/control).
> > After 'svnadmin recover' always is ok. Browser, svnlook can access
to
> > this directory.
> >
> > On the client side.
> > After issuing 'svn update' for this directory, svn said 'Time for
> > waiting' and died. Then any access to all repository is blocked.
> >
> > On the server side.
> > Httpd took too much time of CPU (99,9%) and worked too long. Svnlook
and
> > browser and svn didn't have any access to repository.
> >
> > If I stop Apache and issue 'svnadmin recover', always will be ok.
When
> > somebody tried to access /svn/repos/trunk/Code/xsys/control, the
case
> > repeats.
>
> Did you perform recover using the apache user? If not, then you
probably
> have
> a permissions problem here. You need to make sure that Apache can
> read/write
> to all parts of the database and activity file. I imagine you fixed
one
> problem by running 'svnadmin recover', but created another by running
that
> as
> root.
>
> -John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

Hi John,
Thank you very much.

However, I have user svn for administarative work on Subversion
repository, user apache for httpd process.

In /etc/group
svn:x:504:pyal,apache

So I checked the permissions in my repository. Here is the output.
[svn@vcs usual]$ ls -lR /var/Repository/repos
/var/Repository/repos:
total 28
drwxrwsr-x 2 svn svn 4096 Apr 2 10:24 conf
drwxrwsr-x 2 svn svn 4096 Apr 5 12:28 dav
drwxrwsr-x 2 svn svn 4096 May 26 10:53 db
-rw-rw-r-- 1 svn svn 2 Apr 2 10:24 format
drwxrwsr-x 2 svn svn 4096 Apr 20 15:20 hooks
drwxrwsr-x 2 svn svn 4096 Apr 2 10:24 locks
-rw-rw-r-- 1 svn svn 376 Apr 2 10:24 README.txt

/var/Repository/repos/conf:
total 4
-rw-rw-r-- 1 svn svn 1101 Apr 2 10:24 svnserve.conf

/var/Repository/repos/dav:
total 8
-rw-rw-r-- 1 apache svn 4096 May 21 17:34 activities.dir
-rw-rw-r-- 1 apache svn 4096 May 26 04:51 activities.pag

/var/Repository/repos/db:
total 2932360
-rw-rw-r-- 1 svn svn 33140736 May 26 11:01 changes
-rw-rw-r-- 1 svn svn 3084288 May 26 11:01 copies
-rw-rw-r-- 1 svn svn 16384 May 25 20:49 __db.001
-rw-rw-r-- 1 svn svn 278528 May 25 20:49 __db.002
-rw-rw-r-- 1 svn svn 327680 May 25 20:49 __db.003
-rw-rw-r-- 1 svn svn 892928 May 25 20:49 __db.004
-rw-rw-r-- 1 svn svn 16384 May 25 20:49 __db.005
-rw-rw-r-- 1 svn svn 1738 Apr 2 10:24 DB_CONFIG
-rw-rw-r-- 1 apache svn 1048567 May 26 10:53 log.0000014239
-rw-rw-r-- 1 apache svn 19419 May 26 11:01 log.0000014240
-rw-rw-r-- 1 svn svn 45895680 May 26 11:01 nodes
-rw-rw-r-- 1 svn svn 36950016 May 26 11:01 representations
-rw-rw-r-- 1 svn svn 491520 May 26 11:01 revisions
-rw-rw-r-- 1 svn svn 2871267328 May 26 11:01 strings
-rw-rw-r-- 1 svn svn 6844416 May 26 11:01 transactions
-rw-rw-r-- 1 svn svn 8192 May 26 11:01 uuids

/var/Repository/repos/hooks:
total 28
-rw-r--r-- 1 akharchenko svn 7240 Apr 20 15:07 mailer.conf
-rw-rw-r-- 1 svn svn 1411 Apr 2 10:24 post-commit.tmpl
-rw-rw-r-- 1 svn svn 1475 Apr 2 10:24 post-revprop-change.tmpl
-rw-rw-r-- 1 svn svn 2216 Apr 2 10:24 pre-commit.tmpl
-rw-rw-r-- 1 svn svn 1952 Apr 2 10:24 pre-revprop-change.tmpl
-rw-rw-r-- 1 svn svn 1500 Apr 2 10:24 start-commit.tmpl

/var/Repository/repos/locks:
total 8
-rw-rw-r-- 1 svn svn 460 Apr 2 10:24 db.lock
-rw-rw-r-- 1 svn svn 295 Apr 2 10:24 db-logs.lock
[svn@vcs usual]$

Always is ok in my point of view. And it worked fine before. :(

Any ideas?

Many thanks, Natalya.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 26 09:51:49 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.