[result] svn: Can't open file '/root/.subversion/servers': Permission denied

2,001 views
Skip to first unread message

Daniel Remeseiro

unread,
Dec 3, 2008, 7:05:55 AM12/3/08
to fredistrano-discuss
i have installed fredistrano, when i try to do a deploy , always get
the same error:

[result] svn: Can't open file '/root/.subversion/servers': Permission
denied


ive checked the ./fredistrano dir and deploy.php on the root project,
but no success.

Daniel Remeseiro

unread,
Dec 4, 2008, 4:53:51 AM12/4/08
to fredistrano-discuss
aditionally i get a Error : [loadConfig] > Unable to find deploy.php

but i am sure the file ./fredistrano/deploy.php its on the project
root path

euphrate_ylb

unread,
Dec 4, 2008, 8:06:55 AM12/4/08
to fredistrano-discuss
Hi,

Thank you for trying fredistrano.

Concerning your problem, please, can you tell us:
- which user is running your apache web server?
- if you have used the configuration options 'configDirectory'?

To my opinion, your apache user is trying to access the file '/
root/.subversion/servers' when performing the 'svn export' command
line. If such file exists, you might give read permissions to the
apache user. That should fix the problem.

By the way, forget about the other error message ('Unable to find
deploy.php '). It is directly related to your initial problem.

Yann

On Dec 3, 1:05 pm, Daniel Remeseiro <daniel.remese...@gmail.com>
wrote:

Rob

unread,
Dec 11, 2008, 1:02:09 PM12/11/08
to fredistrano-discuss
I have this issue too.

I have set permissions to /root/.subversion/servers as you suggest and
there's no difference.

Shell access? I'm on a CPanel server and am wondering if my apache
user ("nobody") maybe doesn't have shell access? I'm not a linux guru
so maybe this doesn't make sense. I have no idea how to check or
change that manually. I'm on a dedicated server so I can if need be.
Maybe each project needs to have a setting "run svn as user: "?

Rob

Yann Le Blevec

unread,
Dec 11, 2008, 3:55:19 PM12/11/08
to fredistra...@googlegroups.com
Actually, we have added an option in the config file to tell svn which
folder should be used for its configuration. Therefore, you can add a
'.subversion' folder somewhere on the file system of the web server
(eg. /home/myuser/.subversion) and points to that folder in
fredistrano's configuration file
([FREDISTRANO_INST_DIR]/app/config/config.php) as follow:

$config['Subversion'] = array(
'user' => null,
//default subversion login
'passwd' => null,
//default subversion password
'configDirectory' => /home/myuser/.subversion,
//default subversion configuration directory
'parseResponse' => true,
//activate the command response parsing
);

Just make sure that this folder contains svn configuration files
(servers, config, and auth) and is at least readable by your user
'nobody' (if writable, fredistrano will be able to save authentication
cache).

Afterwards, it should no longer look for /root/.subversion/ stuff.

I hope it will help you... Don't hesitate to contact us for further
details or investigations.


euphrate_ylb

Rob

unread,
Dec 15, 2008, 5:36:26 PM12/15/08
to fredistrano-discuss
Thanks. I substituted the path to .subversion for the account user on
my server, and this error no longer appears.

Thanks.

euphrate_ylb

unread,
Dec 16, 2008, 4:54:42 AM12/16/08
to fredistrano-discuss
Great! Glad we could help you.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages