deploy failed, why?

10 views
Skip to first unread message

blandy

unread,
Jan 8, 2009, 12:21:05 AM1/8/09
to fredistrano-discuss, lantia...@gmail.com
Just now I download the latest version, install it and try to deploy,
it seems all things goes well, but in the 2nd step it failed.

1. I use MacOS, when deploy the 1st step goes smoothly, it get all the
code from svn:

--STEP--------------------------------
[step name] export uuid=f1b511798f322ddae4a4c41c084fdaf6
[took] 53.115 secondes
[user] 2
--ACTION------------------------------
[name] remove [type] ShellAction
[description] Deleting content under /Applications/MAMP/htdocs/
fredistrano/files/tmp/FredistranoExample/tmpDir (recursivity=1)
[took] 0.429 secondes
[command] rm -fr /Applications/MAMP/htdocs/fredistrano/files/tmp/
FredistranoExample/tmpDir
[result]
--ACTION------------------------------
[name] export [type] SvnAction
[description] http://fredistrano.googlecode.com/svn/trunk
[took] 52.452 secondes
[command] svn export --non-interactive http://fredistrano.googlecode.com/svn/trunk
tmpDir 2>&1
[result]
A tmpDir
A tmpDir/app
A tmpDir/app/locale
A tmpDir/app/locale/default.pot
A tmpDir/app/locale/eng
.......
A tmpDir/.fredistrano/deploy.php Exported revision 356.
--ACTION------------------------------
[name] loadConfig [type] PhpAction
[description]
[took] 0.107 secondes
[command]
[result]

2.2nd Syncronization

--STEP--------------------------------
[step name] synchronize uuid=c7db88f0a8a8a4297c930c0e7f184c51
[took] 0.331 secondes
[user] 2
--ACTION------------------------------
[name] loadConfig [type] PhpAction
[description]
[took] 0 secondes
[command]
[result]
--ACTION------------------------------
[name] synchronizeContent [type] ShellAction
[description] Synchronizing /Applications/MAMP/htdocs/fredistrano/
files/tmp/FredistranoExample/tmpDir/ with /Applications/MAMP/htdocs/
deploytest/
[took] 0.306 secondes
[command] rsync -rtvn --delete --exclude-from=/Applications/MAMP/
htdocs/fredistrano/files/tmp/FredistranoExample/exclude_file.txt /
Applications/MAMP/htdocs/fredistrano/files/tmp/FredistranoExample/
tmpDir/ /Applications/MAMP/htdocs/deploytest/ 2>&1
[result] dyld: lazy symbol binding failed: Symbol not found:
_locale_charset Referenced from: /usr/bin/rsync Expected in: /
Applications/MAMP/Library/lib/libiconv.2.dylib dyld: Symbol not found:
_locale_charset Referenced from: /usr/bin/rsync Expected in: /
Applications/MAMP/Library/lib/libiconv.2.dylib rsync:
writefd_unbuffered failed to write 79 bytes [receiver]: Broken pipe
(32) rsync error: error in rsync protocol data stream (code 12) at /
SourceCache/rsync/rsync-35.2/rsync/io.c(1121) [receiver=2.6.9]
--ACTION------------------------------
[name] createFilesListToChmod [type] PhpAction
[description] files_to_chmod.txt and dir_to_chmod.txt
[took] 0.001 secondes
[command]
[result]

Why is it like this??? How to fix?Thank you.

fred

unread,
Jan 8, 2009, 1:33:30 PM1/8/09
to fredistrano-discuss
I have tried to reproduce your issue

For that I have used :
- MAMP 1.7.1 under Mac OS X 10.5.5 (9F33) with rsync version 2.6.9
protocol version 29
- the last svn version of Fredistrano ( use this command to get it :
svn export -r 325 http://fredistrano.googlecode.com/svn/trunk/
fredistrano )
in this revision there is a new option in the config file :

$config['Rsync'] = array(
'optionalOptions' => 'O' //rsync option not supported on all OS,
comment this line if you get an issue during the rsync command
);


With this context the rsync command has been executed as expected
during the 2nd step :

<command>
rsync -rtvnO --delete --exclude-from=/Users/fred/Sites/dev/fredistrano/
files/tmp/bugrsyncmamp/exclude_file.txt /Users/fred/Sites/dev/
fredistrano/files/tmp/bugrsyncmamp/tmpDir/ /Users/fred/Sites/_test/
fredistrano/ 2>&1
</command>
-
<result>
building file list ... done
.htaccess
CHANGELOG
INSTALL
VERSION
index.php
app/
app/.htaccess
app/app_controller.php
...


Try to get the same revision of Fredistrano and check your rsync
version (command: rsync --version)

I hope it will help you.

For information we don't test Fredistrano with MAMP, because MAMP is
not on production servers. On my MacBook I use most of the time, the
installed Apache.







On Jan 8, 6:21 am, blandy <lantian125...@gmail.com> wrote:
> Just now I download the latest version, install it and try to deploy,
> it seems all things goes well, but in the 2nd step it failed.
>
> 1. I use MacOS, when deploy the 1st step goes smoothly, it get all the
> code from svn:
>
> --STEP--------------------------------
> [step name] export uuid=f1b511798f322ddae4a4c41c084fdaf6
> [took] 53.115 secondes
> [user] 2
> --ACTION------------------------------
> [name] remove [type] ShellAction
> [description] Deleting content under /Applications/MAMP/htdocs/
> fredistrano/files/tmp/FredistranoExample/tmpDir (recursivity=1)
> [took] 0.429 secondes
> [command] rm -fr /Applications/MAMP/htdocs/fredistrano/files/tmp/
> FredistranoExample/tmpDir
> [result]
> --ACTION------------------------------
> [name] export [type] SvnAction
> [description]http://fredistrano.googlecode.com/svn/trunk
> [took] 52.452 secondes
> [command] svn export --non-interactivehttp://fredistrano.googlecode.com/svn/trunk

blandy

unread,
Jan 8, 2009, 10:36:33 PM1/8/09
to fredistrano-discuss
Thank you! Seems you did not get the same trouble as I do.
Lucky my Mac have the same software as yours:
rsync version 2.6.9 protocol version 29
MAMP 1.7.1 under Mac OS X 10.5.6

As you suggested, I download the latest version of fredistrano.
svn export -r 356 http://fredistrano.googlecode.com/svn/trunk/
$config['Rsync'] = array(
'optionalOptions' => 'O'
);
It really makes a change with the command line. but still the error
occur, I don`t understand where is it come from, if I can take my
computer in front of you it is better:)
[command] rsync -rtvnO --delete --exclude-from=/Applications/MAMP/
htdocs/fredistrano2/files/tmp/FredistranoExample/exclude_file.txt /
Applications/MAMP/htdocs/fredistrano2/files/tmp/FredistranoExample/
tmpDir/ /Applications/MAMP/htdocs/deploytest/ 2>&1
[command] rsync -rtvn --delete --exclude-from=/Applications/MAMP/
htdocs/fredistrano2/files/tmp/FredistranoExample/exclude_file.txt /
Applications/MAMP/htdocs/fredistrano2/files/tmp/FredistranoExample/
tmpDir/ /Applications/MAMP/htdocs/deploytest/ 2>&1

[result] dyld: lazy symbol binding failed: Symbol not found:
_locale_charset
Referenced from: /usr/bin/rsync
Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib

dyld: Symbol not found: _locale_charset
Referenced from: /usr/bin/rsync
Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib

rsync: writefd_unbuffered failed to write 79 bytes [receiver]: Broken
pipe (32)
rsync error: error in rsync protocol data stream (code 12) at /
SourceCache/rsync/rsync-35.2/rsync/io.c(1121) [receiver=2.6.9]

I tried the command line produced by fredistrano on Terminal, they
work all right:
heydude:~ blandy$ rsync -rtvnO --delete --exclude-from=/Applications/
MAMP/htdocs/fredistrano2/files/tmp/FredistranoExample/
exclude_file.txt /Applications/MAMP/htdocs/fredistrano2/files/tmp/
FredistranoExample/tmpDir/ /Applications/MAMP/htdocs/deploytest/ 2>&1
building file list ... done
.htaccess
CHANGELOG
INSTALL
VERSION
index.php
app/
app/.htaccess
....

heydude:~ blandy$ rsync -rtvn --delete --exclude-from=/Applications/
MAMP/htdocs/fredistrano2/files/tmp/FredistranoExample/
exclude_file.txt /Applications/MAMP/htdocs/fredistrano2/files/tmp/
FredistranoExample/tmpDir/ /Applications/MAMP/htdocs/deploytest/ 2>&1
building file list ... done
.htaccess
CHANGELOG
INSTALL
VERSION
index.php
app/
app/.htaccess
....
Why not in fredistrano? Very strange!!!How can I do a further test to
fix this?

On Jan 9, 2:33 am, fred <fbol...@gmail.com> wrote:
> I have tried to reproduce your issue
>
> For that I have used :
> - MAMP 1.7.1 under Mac OS X 10.5.5 (9F33) with rsync  version 2.6.9
> protocol version 29
> - the last svn version of Fredistrano ( use this command to get it :
> svn export -r 325http://fredistrano.googlecode.com/svn/trunk/

euphrate_ylb

unread,
Jan 9, 2009, 8:39:07 AM1/9/09
to fredistrano-discuss
Hi,

I am facing a similar with MAMP 1.7.2 (see
http://code.google.com/p/fredistrano/issues/detail?id=60). I guess it
has nothing to do with fredsitrano but it is related to how MAMP is
"built". Actually, it is the only environment with which we still have
unsolved problems.

Nevertheless, I will try to investigate the issue this week end but I
can't swear I'll find a solution...

Regards,

euphrate_ylb

On Jan 9, 4:36 am, blandy <lantian125...@gmail.com> wrote:
> Thank you! Seems you did not get the same trouble as I do.
> Lucky my Mac have the same software as yours:
> rsync  version 2.6.9  protocol version 29
> MAMP 1.7.1 under Mac OS X 10.5.6
>
> As you suggested, I download the latest version of fredistrano.
> svn export -r 356http://fredistrano.googlecode.com/svn/trunk/
Reply all
Reply to author
Forward
0 new messages