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

Re: Problems after upgrade 1.1.4 -> 1.2.0

From: Felix Brack <fb_at_ltec.ch>
Date: 2005-06-24 13:57:29 CEST

First of all, thanks for your help that put me on the right way. After
some analyzing I can now tell what's happening:

Apache is started as root, it's child processes run with privileges of
user 'nobody'. Therefore when websvn executes the subversion command
'svn ...', it does this 'as user nobody'. 'svn' then tries to access
$HOME/.subversion. Since $HOME points to /root and not to /home/nobody, the
access fails with 'permission denied'. Changing the call from 'svn ...'
to 'svn --config-dir /home/nobody ...' solves the problem.

Conclusion: this is definitely not a problem of subversion.

There is just one question remaining here; maybe someone can give me
an answer: did anything change from subversion 1.1.4 to 1.2.0 that
could explain the problem? Since subversion is the only component I
upgraded (apache httpd, php and websvn are unchanged) the answer to
this question would really help me to fix the problem where it really


Felix Brack wrote:

FB> I used subversion 1.1.x for quite a while together with 'tortoise' and
FB> 'websvn'. After upgrading to subversion 1.2.0 'tortoise' still works,
FB> but I do have permission problems with 'websvn'.
FB> My apache 2 server runs as user 'nobody' and group 'svn'. 'nobody' is
FB> member of group 'svn'.

FB> I use the following PHP script to reproduce the error:

FB> 01 <?php
FB> 02 $fp= popen("/usr/local/bin/svn list
FB> 'file:////home/svnroot/repositories/test/'", "r");
FB> 03 // $fp= popen("/usr/local/bin/svn list
FB> 'http://svn.jupiter.ltec/svn/test/'", "r");
FB> 04 // $fp= popen("ls -l", "r");
FB> 05
FB> 06 while (!feof($fp)) {
FB> 07 $line= fgets($fp);
FB> 08 echo "Line: ${line}<br>";
FB> 09 }
FB> 10
FB> 11 pclose($fp);
12 ?>>

FB> If this script is executed by apache, I can't see any output and
FB> apache's error log says:
FB> 'svn: Can't check path '/root/.subversion': Permission denied'
FB> Why is something (?) accessing this path?

FB> When I open a console on the server hosting the svn repository,
FB> log in as 'nobody' and run the script above through the PHP
FB> interpreter, everything is fine.

FB> There is no change if I replace the 'file:' syntax by the 'http:'
FB> syntax.
FB> The test command 'ls -l' works fine, no matter if I use apache or the
FB> console to invoke it.
FB> Even after reading
FB> http://subversion.tigris.org/faq.html#reposperms
FB> and http://svnbook.red-bean.com/en/1.0/ch06s05.html and don't have any
FB> idea what I'm doing wrong.

FB> -------------------------

FB> Felix

FB> ---------------------------------------------------------------------
FB> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
FB> For additional commands, e-mail: users-help@subversion.tigris.org

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 24 13:59:34 2005

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.