[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: Thu, 28 Aug 2008 12:31:03 +0530 (IST)

Seems to be working now...Problem with ownership..

regards
Himanshu Raina

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

Could be a permission problem...

* Are you using Apache or svnserve as your Subversion server?
* Is viewvc being run by the same user as your Subversion server?

In our setup, we use Apache as our Subversion server, and viewvc runs
as a CGI under the same user Apache uses. However, I can imagine if
you're using svnserve that the viewvc program might not have the same
permissions in reading the repository.

Otherwise, I am not too sure. I'm not a Python developer, but it
appears that viewvc.py is using the standard Python/Subversion module,
and we had no problems getting viewvc to work. The hardest part was
setting up the CGI gateway in our Apache server since it is normally
not turned on by default. Otherwise, it was downloading viewvc, and
setting up the viewvc

--
David Weintraub
qazwart_at_gmail.com
On Wed, Aug 27, 2008 at 2:27 AM, Himanshu Raina
<raina_himanshu_at_yahoo.com> wrote:
> 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
>
>
> ________________________________
> Get an email ID as yourname_at_ymail.com or yourname_at_rocketmail.com. Click
> here.
Received on 2008-08-28 09:01:42 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.