Elastic Beanstalk / ondeck没有更新/当前仍然显示404?

时间:2014-04-01 20:34:02

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

我目前在Ruby 2.1.1上有一个Rails 4.0.3 repo。我试图在我的EB环境中部署它。一切似乎都运行正常,我跑的时候没有错误:

eb start
git aws.push

但是,如果我通过SSH连接到我的服务器,即使运行/var/app/ondeck,我也看到我的git aws.push --environment myenv未使用我的git存储库进行更新。

当我在aws.push时,我在我的仪表板上看到了当前的git版本哈希,但是repo代码永远不会到达服务器......

另一个问题是我的/ var / app / current仍然是空的。有什么想法吗?

运行git aws.push后,唯一记录的是:

2014-04-02 05:45:02,567 [INFO] (5874 MainThread) [clearStaleLogPublishingRecords.py-38] [root clearStaleLogPublishingRecords main] Clearing stale log publish records publish log task with batch id ef7dd76a-ba29-11e3-bf20-12313913dae2
2014-04-02 05:45:02,568 [INFO] (5874 MainThread) [clearStaleLogPublishingRecords.py-48] [root clearStaleLogPublishingRecords main] Successfully cleared stale log publishing records
2014-04-02 05:50:01,874 [INFO] (5887 MainThread) [publishLogs.py-61] [root publishLogs main] Starting publish log task with batch id a1e453b6-ba2a-11e3-86ba-12313913dae2
2014-04-02 05:50:01,991 [INFO] (5887 MainThread) [publishLogs.py-86] [root publishLogs main] Log publication is disabled

运行eb update后,没有任何内容被放到日志中。

这些也有助于描述问题:

https://forums.aws.amazon.com/thread.jspa?messageID=336101 https://forums.aws.amazon.com/thread.jspa?messageID=357003

但是,我有最新的命令行eb,并尝试从git repo中分离HEAD,然后检查主人并再次推送,仍然没有运气:(

还试过"上传和部署"控制面板上的zip版本,没有更新。

2014-04-02 08:12:22,185 [ERROR] (1895 MainThread) [directoryHooksExecutor.py-34] [root directoryHooksExecutor error] Script failed with returncode 1
2014-04-02 08:12:22,246 [INFO] (1872 MainThread) [command.py-130] [root command execute] Command returned: (code: 1, stdout: Error occurred during build: Command hooks failed
, stderr: None)
2014-04-02 08:12:22,248 [DEBUG] (1872 MainThread) [commandWrapper.py-60] [root commandWrapper main] Command result: {'status': 'FAILURE', 'results': [{'status': 'FAILURE', 'config_sets': ['Infra-EmbeddedPreBuild', 'Hook-PreAppDeploy', 'Infra-EmbeddedPostBuild'], 'returncode': 1, 'events': [], 'msg': 'Error occurred during build: Command hooks failed\n'}], 'api_version': '1.0'}

1 个答案:

答案 0 :(得分:0)

我在俄勒冈数据中心(west-2)上切换到运行Rails 4.0.3的Ruby 2.0,它看起来很好。我认为它与钩子失败有关。例如,如果你有额外的钩子或命令需要GIT,并且git没有安装在服务器上,它将无声地失败或尖叫......这似乎就是这里发生的事情。