Cap Deploy从新客户端计算机失败

时间:2012-06-26 11:02:10

标签: ruby-on-rails ubuntu capistrano

我有一个Ruby On Rails应用程序,已经持续了大约9个月。生产环境是使用Apache和Passenger的Ubuntu服务器。 我使用Capistrano部署,使用我的Git存储库工作正常。 我刚刚更改了开发机器,现在当我尝试部署时,我收到了超时错误。我不确定错误在哪里,但我觉得它可能是某种安全性。 我的开发机器是ubuntu 12.04桌面。 'cap deploy'的终端输出如下:

 * executing `deploy`
 * executing `deploy:update`
** transaction: start
* executing `deploy:update_code`
updating the cached checkout on all servers
executing locally: "git ls-remote git@github.com:nicko777/Tata.git HEAD"
command finished in 4260ms
* executing "if [ -d /home/passenger/Tata/shared/cached-copy ]; then cd /home/passenger/Tata/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 34350075132fff5c0bd8a831667680f6c912ef23 && git clean -q -d -x -f; else git clone -q git@github.com:nicko777/Tata.git /home/passenger/Tata/shared/cached-copy && cd /home/passenger/Tata/shared/cached-copy && git checkout -q -b deploy 34350075132fff5c0bd8a831667680f6c912ef23; fi"
servers: ["10.1.1.21"]
Password: 
[10.1.1.21] executing command
 ** [10.1.1.21 :: out] Write failed: Broken pipe
 ** fatal: The remote end hung up unexpectedly
command finished in 1033137ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/passenger/Tata/releases/20120626103643; true"
servers: ["10.1.1.21"]
[10.1.1.21] executing command
command finished in 16ms
failed: "sh -c 'if [ -d /home/passenger/Tata/shared/cached-copy ]; then cd /home/passenger/Tata/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 34350075132fff5c0bd8a831667680f6c912ef23 && git clean -q -d -x -f; else git clone -q git@github.com:nicko777/Tata.git /home/passenger/Tata/shared/cached-copy && cd /home/passenger/Tata/shared/cached-copy && git checkout -q -b deploy 34350075132fff5c0bd8a831667680f6c912ef23; fi'" on 10.1.1.21

1 个答案:

答案 0 :(得分:1)

解决了这个问题。当我创建新机器时,它将Capistrano升级到版本2.12.0,我检查了服务器,它的版本为2.9.0。 我将新机器上的版本降级到2.9.0,现在上限工作正常。