i am trying to deploy my app rails hello_world from my svn to ec2 amazon server. i got trouble when excute deploy command:
- 1: i am using ec2 amazon for hosting and server like: ec2-xxx-xxx-xxx-xxx.comput
e-1.amazon
aws.com
- 2: i have 1 other server installed subversion (SVN) which store rails app (hello world) use for deploy to ec2 server (svn+ssh://root@yyy.yyy.yy
y.yyy/svn/
hello_worl
d)
- 3: first.. on my depvelopment computer, i will excute command :"cap deploy:setup" and it will setup core for app hello_world on ec2 server.
second: i will excute command "cap deploy" to deploy app hello_world from svn server to ec2 server
problem occur here:
--------------------------
----------
----------
----------
---
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
root@yyy.yyy.yyy.yyy's password:
* executing "if [ -d /usr/hello/shared/cached-c
opy ]; then svn update -q -r398 /usr/hello/shared/cached-c
opy; else svn checkout -q -r398 svn+ssh://root@yyy.yyy.yyy
.yyy/svn/h
ello_world
/usr/hello/shared/cached-c
opy; fi"
servers: ["ec2-xxx-xxx-xxx-xxx.comp
ute-1.amaz
onaws.com"
]
[ec2-xxx-xxx-xxx-xxx.compu
te-1.amazo
naws.com] executing command
** [err] reverse mapping checking getaddrinfo for yyy.yyy.yyy.yyy.com [yyy.yyy.yyy.yyy] failed - POSSIBLE BREAK-IN ATTEMPT!
** [err] Permission denied, please try again.
** [err] Permission denied, please try again.
** [err] Permission denied (publickey,gssapi-with-mic
,password)
.
** [err] svn: Connection closed unexpectedly
command finished
*** [deploy:update_code] rolling back
* executing "rm -rf /usr/hello/releases/200902
23091608; true"
servers: ["ec2-xxx-xxx-xxx-xxx.comp
ute-1.amaz
onaws.com"
]
[ec2-xxx-xxx-xxx-xxx.compu
te-1.amazo
naws.com] executing command
command finished
command "if [ -d /usr/hello/shared/cached-c
opy ]; then svn update -q -r398 /usr/hello/shared/cached-c
opy; else svn checkout -q -r398 svn+ssh://root@yyy.yyy.yyy
.yyy/svn/h
ello_world
/usr/hello/shared/cached-c
opy; fi" failed on ec2-xxx-xxx-xxx-xxx.comput
e-1.amazon
aws.com
--------------------------
----------
---
i tried to ssh to ec2 server and do command "svn co svn+ssh://root@yyy.yyy.yyy
.yyy/svn/h
ello_world
"
and it asking for enter password twice times. after that, it 's ok, i think problem in here
addition infor, i can stand on ec2 server to ssh to my svn server contains rails app
and below is deploy.rb file use for deploy.