【问题标题】:rubber fails in 'deploy:update_code'橡胶在“部署:更新代码”中失败
【发布时间】:2014-03-05 16:07:06
【问题描述】:

尝试使用橡胶部署一个简单的导轨以在 ec2 上暂存。进程失败并出现以下错误。几天来一直在尝试寻找解决方案,但无法弄清楚。

有人知道为什么会失败吗?

 * 2014-03-05 15:20:13 executing `deploy:setup'
  * executing "sudo -p 'sudo password: ' mkdir -p /mnt/bott.ly-production /mnt/bott.ly-production/releases /mnt/bott.ly-production/shared /mnt/bott.ly-production/shared/system /mnt/bott.ly-production/shared/log /mnt/bott.ly-production/shared/pids"
    servers: ["staging.bott.ly"]
    [staging.bott.ly] executing command
    command finished in 1134ms
  * executing "sudo -p 'sudo password: ' chmod g+w /mnt/bott.ly-production /mnt/bott.ly-production/releases /mnt/bott.ly-production/shared /mnt/bott.ly-production/shared/system /mnt/bott.ly-production/shared/log /mnt/bott.ly-production/shared/pids"
    servers: ["staging.bott.ly"]
    [staging.bott.ly] executing command
    command finished in 1439ms
    triggering after callbacks for `rubber:bootstrap'
  * 2014-03-05 15:20:17 executing `rubber:collectd:bootstrap'
  * executing "echo $(grep Rubber /etc/collectd/collectd.conf 2> /dev/null)"
    servers: ["staging.bott.ly"]
    [staging.bott.ly] executing command
    command finished in 1208ms
  * 2014-03-05 15:20:20 executing `deploy:setup'
  * executing "sudo -p 'sudo password: ' mkdir -p /mnt/bott.ly-production /mnt/bott.ly-production/releases /mnt/bott.ly-production/shared /mnt/bott.ly-production/shared/system /mnt/bott.ly-production/shared/log /mnt/bott.ly-production/shared/pids"
    servers: ["staging.bott.ly"]
    [staging.bott.ly] executing command
    command finished in 1187ms
  * executing "sudo -p 'sudo password: ' chmod g+w /mnt/bott.ly-production /mnt/bott.ly-production/releases /mnt/bott.ly-production/shared /mnt/bott.ly-production/shared/system /mnt/bott.ly-production/shared/log /mnt/bott.ly-production/shared/pids"
    servers: ["staging.bott.ly"]
    [staging.bott.ly] executing command
    command finished in 269ms
 ** updating code for bootstrap
  * 2014-03-05 15:20:24 executing `deploy:update_code'
  * getting (via checkout) revision  to C:/Users/solanmi/AppData/Local/Temp/20140305142024
    executing locally: xcopy . "C:/Users/solanmi/AppData/Local/Temp/20140305142024" /S/I/Y/Q/E
378 File(s) copied
    command finished in 4328ms
  * processing exclusions...
  * Compressing C:/Users/solanmi/AppData/Local/Temp/20140305142024 to C:/Users/solanmi/AppData/Local/Temp/20140305142024.tar.gz
    executing locally: tar czf 20140305142024.tar.gz 20140305142024
    command finished in 51ms
shell command failed with return code pid 8760 exit 53

【问题讨论】:

    标签: ruby-on-rails amazon-ec2 rubber


    【解决方案1】:

    看起来您是从 Windows 部署的,您可能在本地缺少 tar 命令,或者它不在您的 $PATH

    如果您想使用Cygwin,我建议您使用它的Setup64Setup-x86 程序安装它。我相信tar 包是默认安装的包之一。如果没有,你可以在这里找到它:http://gnuwin32.sourceforge.net/packages/gtar.htm

    【讨论】:

    • 嗨,你是对的,这就是问题所在...安装 bsdtar 并没有解决它,因为还有其他错误。有很大帮助的是在 github johnnyshields/rubber 上使用橡胶端口连接到 windows...
    • 这很酷。那么,如果这是满意的答案,你能接受吗?
    猜你喜欢
    • 1970-01-01
    • 2016-07-10
    • 2014-06-04
    • 1970-01-01
    • 1970-01-01
    • 2016-09-29
    • 2020-06-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多