部署 在 coding.net 上部署问题

hw676018683 · 2015年06月20日 · 最后由 tsl0922 回复于 2015年08月04日 · 2360 次阅读

想在 coding.net 上用 sidekiq 部署命令:bundle exec rake db:migrate && bundle exec sidekiq && bundle exec rails s -p $PORT 日志报错信息

2015-06-20T10:16:14.76+0800 [App/0]   OUT 2015-06-20T02:16:14.764Z 53 TID-oulr82s2s INFO: Booting Sidekiq 3.3.4 with redis options {:url=>"redis://96a45941-1764-43cd-9038-3cdc7ad27d50:REDACTED@10.9.21.212:5372/12"}
2015-06-20T10:16:15.71+0800 [App/0]   OUT 2015-06-20T02:16:15.712Z 53 TID-oulr82s2s INFO: Running in ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]
2015-06-20T10:16:15.93+0800 [App/0]   OUT 2015-06-20T02:16:15.712Z 53 TID-oulr82s2s INFO: See LICENSE and the LGPL-3.0 for licensing details.
2015-06-20T10:16:15.93+0800 [App/0]   OUT 2015-06-20T02:16:15.712Z 53 TID-oulr82s2s INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org/pro
2015-06-20T10:16:15.93+0800 [App/0]   OUT 2015-06-20T02:16:15.713Z 53 TID-oulr82s2s INFO: Starting processing, hit Ctrl-C to stop
2015-06-20T10:17:09.69+0800 [DEA]     OUT Instance (index 0) failed to start accepting connections
2015-06-20T10:17:09.70+0800 [API]     OUT App instance exited with guid 7ba44f26-71c6-4f21-a649-bb721682aa6e payload: {"cc_partition"=>"default", "droplet"=>"7ba44f26-71c6-4f21-a649-bb721682aa6e", "version"=>"fde69028-912e-4385-88b2-78c0bace1256", "instance"=>"d89477ad978e4940aa56396990a47ad5", "index"=>0, "reason"=>"CRASHED", "exit_status"=>-1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1434766629}
2015-06-20T10:17:18.12+0800 [DEA]     OUT Removing crash for app with id 7ba44f26-71c6-4f21-a649-bb721682aa6e
2015-06-20T10:17:18.12+0800 [DEA]     OUT Stopping app instance (index 0) with guid 7ba44f26-71c6-4f21-a649-bb721682aa6e
2015-06-20T10:17:18.12+0800 [DEA]     OUT Stopped app instance (index 0) with guid 7ba44f26-71c6-4f21-a649-bb721682aa6e
2015-06-20T10:18:04.04+0800 [DEA]     OUT Starting app instance (index 0) with guid 7ba44f26-71c6-4f21-a649-bb721682aa6e

接下来就是无限循环这个报错信息 sidekiq 的配置

require 'sidekiq'

redis_config = YAML.load_file("#{Rails.root}/config/redis.yml")[Rails.env]
sidekiq_url = "redis://#{redis_config['name']}:#{redis_config['password']}@#{redis_config['host']}:#{redis_config['port']}"

Sidekiq.configure_client do |config|
  config.redis = { url: sidekiq_url }
end

Sidekiq.configure_server do |config|
  config.redis = { url: sidekiq_url }
end

谁能帮忙解决下,不胜感激

coding 的部署比较麻烦,似乎也不大重视。还是考虑阿里云这样的好用些。

#1 楼 @chenge 阿里云免费的需要申请吧

应该就是 sidekiq 的问题吧。。。 我在 coding 是从来没用过这些服务,就是一个 postgreq 数据库。。。 建议你上 coding 自己的论坛问一下

已经在 coding 的网站上回答。

你好, 请移步 coding 的论坛提反馈, 这样你可以及时看到问题的跟进

coding feedback

#5 楼 @tsl0922 coding 上的回复在哪?能给链接么

#7 楼 @uynil这里 发讨论把你的问题描述清楚。

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册