【问题标题】:In ec2 machine-cap staging deploy:setup giving a (Errno::ETIMEDOUT: Operation timed out - connect(2))在 ec2 machine-cap staging deploy:setup 中给出 (Errno::ETIMEDOUT: Operation timed out - connect(2))
【发布时间】:2013-07-24 06:17:35
【问题描述】:

我使用的是 Ubuntu 12.04,我想在 ec2 实例中进行部署,但抛出以下错误并且无法执行部署过程

krs@ubuntu:~/a/anonymous-ui-deploy$ cap staging deploy:setup

触发加载回调

  • 2013-07-24 11:19:15 执行`staging'

    触发 `deploy:setup' 的启动回调

    • 2013-07-24 11:19:15 执行 `multistage:ensure'

    • 2013-07-24 11:19:15 执行`deploy:setup'

    • 执行“mkdir -p /home/ec2-user/apps/ano_stag /home/ec2-user/apps/ano_stag/releases /home/ec2-user/apps/ano_stag/shared /home/ec2- user/apps/ano_stag/shared/system /home/ec2-user/apps/ano_stag/shared/log /home/ec2-user/apps/ano_stag/shared/pids"

服务器:["ec2-xx-xx-xxx-xx.compute-1.amazonaws.com"] 连接失败:ec2-user@ec2-xx-xx-xxx-xx.compute-1.amazonaws.com (Errno::ETIMEDOUT: Connection timed out - connect(2))

请让我知道解决此问题的答案。提前致谢

【问题讨论】:

  • 您使用的是哪个操作系统,是 ubuntu 还是 Amazon linux?根据您的用户名应该更改。还要确保您的 ssh-agent 工作正常,除非 ssh-agent 响应 cap 无法连接到您的 ec2 实例
  • 我正在使用亚马逊 linux

标签: deployment amazon-ec2 setup-deployment gnome-terminal


【解决方案1】:

您的服务器似乎存在问题,其中一台服务器不允许另一台与之通信。

  1. 确保您能够从源服务器连接到目标服务器。
  2. 如果没有,请确保目标服务器的安全组具有允许 ssh 访问的入站规则 - 请参阅this link 了解更多信息。
  3. 确保目标服务器不包含阻止传入连接的防火墙。
  4. 验证两个服务器上的syslog 并确认一切正常。

【讨论】:

    猜你喜欢
    • 2012-02-22
    • 1970-01-01
    • 1970-01-01
    • 2021-12-06
    • 1970-01-01
    • 2012-03-15
    • 1970-01-01
    • 2015-09-11
    • 2014-01-25
    相关资源
    最近更新 更多