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

Re: SVN + viewvc

From: Himanshu Raina <raina_himanshu_at_yahoo.com>
Date: Wed, 27 Aug 2008 11:57:30 +0530 (IST)

Hi,

Guess you have got it all wrong. My query was how to make my server (running subversion) accessible over http using viewvc. I have made relevant changes in the httpd.conf and everything seems fine as far as the configuration goes. The only botheration has been the error "Berkeley DB error for filesystem /home/subversion/intranet/db while opening environment:\nPermission denied', 160029)".. How do I get rid of this ?

Regards
Himanshu Raina

--- On Fri, 22/8/08, David Weintraub <qazwart_at_gmail.com> wrote:
From: David Weintraub <qazwart_at_gmail.com>
Subject: Re: SVN + viewvc
To: "Ryan Schmidt" <subversion-2008c_at_ryandesign.com>
Cc: raina_himanshu_at_yahoo.com, users_at_subversion.tigris.org
Date: Friday, 22 August, 2008, 10:21 PM

On Aug 22, 2008, at 11:02, David Weintraub wrote:
>> Here's a possible solution:
>>
>> Run a cronjob to
>>
>> 1). Do a hotcopy of your subversion repository
>> 2). Do a chown to the viewvc user
>> 3). Do an rsync to a copy of your Subversion repository on your server
>> where viewvc runs.
>>
>> This means that your commit results won't show up on viewvc until
the
>> next sync, but if you run the cronjob every ten minutes or so, it
>> might be good enough.

On Fri, Aug 22, 2008 at 12:25 PM, Ryan Schmidt
<subversion-2008c_at_ryandesign.com> wrote:
>
> If you're going to do that, you may as well use svnsync in the
post-commit
> hook to get the copy of the repository on the viewvc server to be always
up
> to date.

I was going to mention that svnsync doesn't do what Himanshu needs:
Having different users for both the source and destination
repositories. I looked at the command when it first came out in
Subversion 1.4, and simply didn't find it all that useful because of
this issue.

However, when checking out the Subversion book for revision 1.5, I see
that svnsync now does handle different users in both the original and
mirror repositories. Thus making it much more useful.

So, the best solution is using "svnsync" to sync the two
repositories:
One the actual Subversion repository, and the other a mirror
repository for ViewVC use. Getting SvnSync to work can take a little
tinkering to get to work, but really no more than ViewVC (especially
if you didn't have CGI scripting enabled in your Apache repository)
and certainly a lot less than FishEye. Plus, the Subversion book is
pretty clear about the steps to get it to work. See
<http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.replication>
for details.

--
David Weintraub
qazwart_at_gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-27 08:27:56 CEST

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.