Capistrano错误:主机不存在/ svn:连接意外关闭

时间:2010-01-03 18:40:44

标签: ruby-on-rails ruby capistrano deployment

我使用以下命令从Windows Vista计算机运行:

  • 最新的铁轨(截至2010年1月2日),
  • Capistrano 2.5.10,
  • 颠覆性插件,
  • TortoiseSVN的

到目前为止,我有:

  • 创建了远程存储库
  • 创建了ssh密钥,
  • 编辑了TortoiseSVN配置文件。

(我不确定我是否遗漏了任何东西。)

以下是我尝试使用Capistrano进行部署时收到的错误消息:

* executing `deploy:cold'

  * executing `deploy:update'

 ** transaction: start

  * executing `deploy:update_code'

    executing locally: "svn info svn+ssh://mydomain.com/home/45454/data/svn/repository/  -rHEAD"

checking for svn... yes

Unable to open connection:

Host does not exist

svn: Connection closed unexpectedly

*** [deploy:update_code] rolling back

  * executing "rm -rf /home/45454/containers/rails/wcn/releases/20091230175413; true"

    servers: ["mydomain.com"]

    [mydomain.com] executing command

    command finished

C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/subversion.rb:58:in `query_revision': tried to run `svn info svn+ssh://mydomain.com/home/45454/data/svn/repository/  -rHEAD' and got unexpected result "" (RuntimeError)

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in `send'

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:63:in `local'

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy.rb:38:in `load'

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:87:in `call'

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:87:in `fetch'

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:110:in `protect'

                 ... 38 levels...

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/cli/execute.rb:14:in `execute'

                from C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/bin/cap:4

                from C:/Ruby/bin/cap:19:in `load'

                from C:/Ruby/bin/cap:19

关于我接下来应该尝试什么的任何想法?

1 个答案:

答案 0 :(得分:1)

看起来当svn检查代码时,它无法解析:repository定义的主机名,或者无法ssh到“mydomain.com”。

executing locally: "svn info svn+ssh://mydomain.com/home/45454/data/svn/repository/  -rHEAD"
     

检查svn ...是

     

无法打开连接:   主机不存在vn:连接意外关闭

如果您要部署到自己的Windows计算机,请尝试使用local svn reference