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

Re: Corrupt svn database on MacOSX

From: D'Arcy Norman <dlnorman_at_ucalgary.ca>
Date: 2004-08-26 00:22:51 CEST

On Aug 25, 2004, at 4:05 PM, Travis P wrote:

>
> On Aug 25, 2004, at 4:21 PM, D'Arcy Norman wrote:
>
>> ... I had to run svnadmin as root, because the files are owned by the
>> "www" user, which is a non-human user on MacOSX Server, so I don't
>> have its password...
>
> You don't need www's password. Just use sudo to do everything as www.
> For example:
> sudo -u www /usr/bin/whoami
>
> This list has seen many times how running as root just messes things
> up. Pick a dedicated user and always use that user id.
>
> Now that you have done things as root, you'll probably want to use
> chmod -R to make sure that everything is owned by 'www' again before
> you proceed.

Thanks for the tip. I'd chmod'ed and chgrp'ed after attempting
recovery... Still didn't work, though.

Here's what I get now:

$ sudo -u www /usr/local/subversion/bin/svnadmin recover
/Library/Subversion
Please wait; recovering the repository may take some time...
subversion/libsvn_fs/bdb/bdb-err.c:51: (apr_err=160029)
svn: DB_RUNRECOVERY: Fatal error, run database recovery

All files and directories are owned by www:admin and are
readable/writable by that user.

I just tried a svnadmin dump of the repository, and it spewed a whole
bunch of text to the shell, but didn't put any files on the filesystem.
Do I just > svndump to store it, or is it doing something magical?

- D'Arcy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 26 00:23:32 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.