[loadConfig] > Unable to find deploy.php

47 views
Skip to first unread message

MikeMnD

unread,
Jul 26, 2009, 1:52:20 PM7/26/09
to fredistrano-discuss
[loadConfig] > Unable to find deploy.php
This happens on fredistrano example, and on my project too both have
the .fredistrano folder with the deploy.php.
This is what i recieve on brand new instalation.
I've try deploying from my svn server and the result is the same.
So can someone explain why fredistrano is not working ???


--STEP--------------------------------
[step name] export uuid=f8579aa2a4a672ccd648df0ffa730c7e
[took] 0.009 secondes
Error : [loadConfig] > Unable to find deploy.php
--------------
[user] 1
--ACTION------------------------------
[name] export [type] SvnAction
[description] http://fredistrano.googlecode.com/svn/trunk
[took] 0.004 secondes
[command] svn export --non-interactive http://fredistrano.googlecode.com/svn/trunk
tmpDir 2>&1
[result] sh: svn: command not found
--ACTION------------------------------
[name] loadConfig [type] PhpAction
[description]
[took] 0.002 secondes
Error : Unable to find deploy.php
--------------
[command]
[result]

fred

unread,
Jul 27, 2009, 3:33:08 AM7/27/09
to fredistrano-discuss
Hi,

The error displayed in the log "svn: command not found".

Actually, Fredistrano was not able to execute the svn export. You
should check that svn is installed on your server. It must also be
available for the user is running apache.

Regards


On Jul 26, 7:52 pm, MikeMnD <mike8...@gmail.com> wrote:
> [loadConfig] > Unable to find deploy.php
> This happens on fredistrano example, and on my project too both have
> the .fredistrano folder with the deploy.php.
> This is what i recieve on brand new instalation.
> I've try deploying from my svn server and the result is the same.
> So can someone explain why fredistrano is not working ???
>
> --STEP--------------------------------
> [step name] export uuid=f8579aa2a4a672ccd648df0ffa730c7e
> [took] 0.009 secondes
> Error : [loadConfig] > Unable to find deploy.php
> --------------
> [user] 1
> --ACTION------------------------------
> [name] export [type] SvnAction
> [description]http://fredistrano.googlecode.com/svn/trunk
> [took] 0.004 secondes
> [command] svn export --non-interactivehttp://fredistrano.googlecode.com/svn/trunk

gabe

unread,
Sep 13, 2009, 3:14:31 PM9/13/09
to fredistrano-discuss
i having the same problem - getting the svn: command not found when it
tries to run the export command. there is no doubt that subversion is
installed on this server, and i even tried copying the whole command
from the fredistrano console (i.e. svn export --non-interactive...)
and running in my ssh console and it works fine. what am i missing?

--STEP--------------------------------
[step name] export uuid=9b062838d3c000ece8a68e4a1309ca09
[took] 0.017 secondes
Error : [loadConfig] > Unable to find deploy.php
--------------
[user] 1
--ACTION------------------------------
[name] export [type] SvnAction
[description] svn+ssh://username@domain/home/username/svn/appname/
trunk
[took] 0.005 secondes
[command] svn export --non-interactive --username userName --password
***** svn+ssh://username@domain/home/username/svn/appname/trunk tmpDir
2>&1
[result] sh: svn: command not found
--ACTION------------------------------
[name] loadConfig [type] PhpAction
[description]
[took] 0.006 secondes
Error : Unable to find deploy.php
--------------
[command]
[result]

fred

unread,
Sep 14, 2009, 3:47:24 AM9/14/09
to fredistrano-discuss
hi gabe,

I think that svn is not in the path of the apache user.

For instance, you can execute the following command to check if the
apache user has access to svn:

> sudo -u www svn --help

replace www by your apache user.

Regards

fred

gabe

unread,
Sep 14, 2009, 3:21:11 PM9/14/09
to fredistrano-discuss
fred,

thx for your help.

sudo is not supported on my hosting provider's server, but if i login
to my ssh access w/ the user i'm using for fredistrano, i can
successfully execute svn --help.
terminal example where www is username:
login as: www
w...@domain.com's password:
Last login: Sun Sep 13 16:11:34 2009 from [ipaddress]
w...@domain.com [~]# sudo -u www svn --help
-bash: sudo: command not found
w...@domain.com [~]# sudo -u www svn --help
-bash: sudo: command not found
w...@domain.com [~]# svn --help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.6.5.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
or 'svn --version --quiet' to see just the version number.

Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
add
blame (praise, annotate, ann)
cat
changelist (cl)
checkout (co)
cleanup
commit (ci)
copy (cp)
delete (del, remove, rm)
diff (di)
export
help (?, h)
import
info
list (ls)
lock
log
merge
mergeinfo
mkdir
move (mv, rename, ren)
propdel (pdel, pd)
propedit (pedit, pe)
propget (pget, pg)
proplist (plist, pl)
propset (pset, ps)
resolve
resolved
revert
status (stat, st)
switch (sw)
unlock
update (up)

Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/
w...@domain.com [~]#


isn't that good enough?

thx,
gabe

euphrate_ylb

unread,
Sep 14, 2009, 3:56:06 PM9/14/09
to fredistrano-discuss
Hi Gabe,

It looks great.

Let's try something else:
1. Create a file on your domain: test_svn.php

2. Fill it with the following code:
<?php

echo(shell_exec('svn --help'));

?>

3. Access the url of test_svn.php with your browser

4. Tell us if the svn command is still found.

Regards,

euphrate_ylb
> For additional information, seehttp://subversion.tigris.org/

gabe

unread,
Sep 14, 2009, 9:55:28 PM9/14/09
to fredistrano-discuss
thx for your help.

i did what you suggested and it outputs nothing. i also tried
shell_exec('ls') and it worked. what does this mean?

thx,
gabe

euphrate_ylb

unread,
Sep 19, 2009, 2:54:44 PM9/19/09
to fredistrano-discuss
Sorry for the delay... I have been busy during the last few days.

First of all, I'll try to release ASAP a simple script that would
validate an installation of fredistrano. It will surely help users to
get much more easily through the installation process. Moreover, it
will produce a detailed output that will provide us important
information for helping you guys with your problems.

Concerning your problem:
1. I assume that if you execute the following script, you'll get this
time the "svn not found" error message.
<?php

echo '<h1>Fredistrano installation checker</h1>';

echo '<h2>Shell commands</h2>';
echo '<br/> - SVN: '.shell_exec('svn --help 2>&1');
echo '<br/> - find: '.shell_exec('find --help 2>&1');

echo '<h2>Environment information</h2>';
echo '<br/> - apache user: '.shell_exec('whoami 2>&1');
echo '<br/> - PATH: '.$_SERVER['PATH'];
echo '<br/>More...<br/>';
phpinfo();

?>

As a result, the svn command is not in the apache user path (exactly
like http://drupal.org/node/548724). This is rather a configuration
issue rather than something specific to fredistrano. After checking
the name of the apache user displayed by the script, I would suggest
you to contact the support of your host provider. This must be a
simple question for them.

I hope it may help. Don't give up with fredistrano you are almost
done!

euphrate_ylb

gabe

unread,
Sep 21, 2009, 4:14:00 PM9/21/09
to fredistrano-discuss
thx so much for the reply.

i have had a week long dialog w/ my hosting provider's support, and
the bottom-line is that i must specify the full execution path to run
these commands from php scripts (i.e. shell_exec(~/bin/bin/svn)). is
there a way to configure fredistrano to give the svn commands w/ a
path prefix?


On Sep 19, 2:54 pm, euphrate_ylb <yann.leble...@gmail.com> wrote:
> Sorry for the delay... I have been busy during the last few days.
>
> First of all, I'll try to release ASAP a simple script that would
> validate an installation of fredistrano. It will surely help users to
> get much more easily through the installation process. Moreover, it
> will produce a detailed output that will provide us important
> information for helping you guys with your problems.
>
> Concerning your problem:
> 1. I assume that if you execute the following script, you'll get this
> time the "svn not found" error message.
> <?php
>
> echo '<h1>Fredistrano installation checker</h1>';
>
> echo '<h2>Shell commands</h2>';
> echo '<br/> - SVN: '.shell_exec('svn --help 2>&1');
> echo '<br/> - find: '.shell_exec('find --help 2>&1');
>
> echo '<h2>Environment information</h2>';
> echo '<br/> - apache user: '.shell_exec('whoami 2>&1');
> echo '<br/> - PATH: '.$_SERVER['PATH'];
> echo '<br/>More...<br/>';
> phpinfo();
>
> ?>
>
> As a result, the svn command is not in the apache user path (exactly
> likehttp://drupal.org/node/548724). This is rather a configuration

euphrate_ylb

unread,
Sep 21, 2009, 4:37:45 PM9/21/09
to fredistrano-discuss
Not yet... I ll try to find a simple and generic solution ASAP.

euphrate_ylb

gabe

unread,
Sep 21, 2009, 5:13:48 PM9/21/09
to fredistrano-discuss
i think i figured out something that i will suggest here. i added a
configuration to the default config.php file:

$config['Subversion'] = array(
'user' => null, //default subversion login
'passwd' => null, //default subversion password
'configDirectory' => null, //default subversion configuration
directory
'parseResponse' => true, //activate the command response parsing
'fullExecutionPath' => '~/bin/bin/' // ADDED - this can
default to null or empty string, but can be set w/ trailing slash for
use in commands.php
);

and then in commands.php on line the SvnAction methods you can prefix
each command string w/ the value from config.php like this:

$command = Configure::read('Subversion.fullExecutionPath')."svn export
--non-interactive $configDirectory $revision $authentication $svnUrl
$targetDir 2>&1";

what do you think?

this worked for me, but now i'm getting a different error on the
export command: "svn: Network connection closed unexpectedly". does
this have something to do w/ interactivity and the password? i copied
and pasted the command into my ssh terminal and ran it and it prompted
me for a password still.
Reply all
Reply to author
Forward
0 new messages