[kforge-user] svnadmin: Can't open file '/root/.subversion/servers'

Gunnar Johansson info at gunnar-johansson.se
Sat Feb 17 17:19:47 UTC 2007

To finish off this thread, I have a solution which works for me at the
moment. I added a --config-dir parameter to svnadmin to explicitly force
reading the settings from another folder. So, for my case, the corresponding
line in plugins/svn.py reads:

cmd = 'svnadmin create %s --config-dir /home/kforge --fs-type %s' %
(fullPath, type)

This is a hack, but it works for me at the time being. Since running
'svnadmin create' from a php application works, I can only assume my problem
has to do with the context in which mod_python executes for the apache user.

Now I have some further comments, but I'll continue in another posting.


On 2/13/07, Gunnar Johansson <info at gunnar-johansson.se> wrote:
> On 2/12/07, Rufus Pollock <rufus.pollock at okfn.org> wrote:
> >
> >
> > Have you seen:
> >
> > http://svn.haxx.se/users/archive-2004-12/0498.shtml
> >
> > In particular:
> >
> > <quote>
> > If you create configuration files outside the /etc directory which
> > mod_dav_svn or apache httpd needs to read you must change the security
> > context type to etc_t with the command 'chcon -t etc_t <file path>'
> > </quote>
> >
> > I know this is about FC3 but assume there might be similar issues with
> > current RHEL. Also, don't think giving httpd appropriate read
> > permissions on /root/.subversion is that dangerous (just don't give
> > permissions on /root generally!)
> Thanks for the hint, but we're running a pretty old version of RHEL which
> doesn't have SELinux, so no luck there. An odd (or promising?) thing is that
> I've tried out another web based svn manager (
> http://svnmanager.sourceforge.net/) which basically executes "svnadmin
> create..." through php. And this works fine.  This leads me to believe that
> there are differences in the way php and python execute shell commands. I
> don't have time to investigate this further this week, but will get back to
> you if I find a solution to it.
> Note also, that executing "trac-admin <path> initenv.." through KForgeworks fine, though the parameter list has changed in recent versions of trac
> (you need to specify the repository type "svn" as an additional parameter).
> Thanks,
> Gunnar
> Regards,
> >
> > Rufus
> >
> >
> >
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/kforge-user/attachments/20070217/913a899b/attachment-0003.html>

More information about the kforge-user mailing list