Rails Elastic Beanstalk连接超时 - 美洲狮服务器

时间:2016-05-26 22:52:01

标签: ruby-on-rails amazon-web-services elastic-beanstalk puma

我搜索了网络和stackoverflow,但无法做到这一点。

我有一个rails应用程序并部署到弹性beanstalk。健康状况良好且绿色,但网址不起作用。它等了一会儿,页面说连接超时了。

当我输入eb open时 给出错误;

ERROR: OSError :: [Errno 10] No child processes

无法弄清楚为什么会这样。

当我eb deploy

INFO: Environment update is starting.                               
INFO: Deploying new version to instance(s).                         
INFO: Environment health has transitioned from Ok to Info. Application update in progress on 1 instance. 0 out of 1 instance completed (running for 4 seconds).
INFO: New application version was deployed to running EC2 instances.
INFO: Environment update completed successfully.   

负载均衡器可能有问题吗?我在哪里可以看到我的数据库是否已创建/迁移?

enter image description here

这里我看到错误消息:

enter image description here

宝石文件;

source 'https://rubygems.org'

gem 'rails',                '4.2.0'
gem 'json',             '~> 1.8.2'
gem 'bcrypt',               '3.1.7'
gem 'will_paginate',           '3.0.7'
gem 'bootstrap-will_paginate', '0.0.10'


gem 'carrierwave'
gem 'rmagick'
gem 'fog-aws'
#gem 'bootstrap-sass',       '3.2.0.0'
gem 'sass-rails',           '5.0.2'    #it is added to new Rails applications by default.


gem 'dropzonejs-rails'
gem 'figaro'

gem 'uglifier',             '2.5.3'
gem 'coffee-rails',         '4.1.0'
gem 'jquery-rails',         '4.0.3'
#gem 'jquery-ui-rails'
#//= require turbolinks TO ASSETS gem 'turbolinks',           '2.3.0'
gem 'jbuilder',             '2.2.3'
gem 'sdoc',                 '0.4.0', group: :doc

gem 'wicked'
gem 'geocoder'
gem "mailboxer"
gem 'toastr-rails'

#gem "select2-rails"
gem 'jquery-cookie-rails'



group :development, :test do
  gem 'sqlite3',     '1.3.9'
  gem 'byebug',      '3.4.0'
  gem 'web-console', '2.0.0.beta3'
  gem 'spring',      '1.1.3'
end

group :test do
  gem 'minitest-reporters', '1.0.5'
  gem 'mini_backtrace',     '0.1.3'
  gem 'guard-minitest',     '2.3.1'
end

group :production do
  gem 'pg',             '0.17.1'
  gem 'rails_12factor', '0.0.2'
  gem 'puma'
end

1 个答案:

答案 0 :(得分:0)

#findByStatusCodeNot(String statusCode); 更改为#findByLastnameNot 可以为我修复