Nginx - 502 Bad Gateway

时间:2014-10-27 00:45:49

标签: ruby-on-rails ruby nginx

我在Ruby on Rails环境中遇到Bad Gateway问题,我对Ruby一无所知。我将运行一个半星期的应用程序,并由一个没有合同的人设置此应用程序。

很抱歉,如果某个地方已有答案,我看到的所有内容都是针对PHP环境的,我需要在发布广告系列之前的24小时内解决这个问题,所以有点恐慌。 < / p>

正在运行的VPS:

104.131.241.16 | http://invite.teachtomarket.com
Ruby on Rails on 14.04 (Nginx + Unicorn)

上次发生的事情

我无法通过FTP或SSH进入服务器,因此我重置了root密码。我假设这导致了这个问题,因为该网站刚刚关闭。

其他信息

如果重要,域名将通过GoDaddy运行,并且A记录指向IP地址。

更新#1

当我使用命令行键入“unicorn”时,这就是它告诉我的,不知道这意味着什么:

/usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'rack' (~> 1.5.2) - did find: [rack-1.4.5] (Gem::LoadError)
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb:1295:in `block in activate_dependencies'
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb:1284:in `each'
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb:1284:in `activate_dependencies'
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb:1266:in `activate'
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb:1298:in `block in activate_dependencies'
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb:1284:in `each'
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb:1284:in `activate_dependencies'
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb:1266:in `activate'
    from /usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:54:in `gem'
    from /usr/local/rvm/gems/ruby-2.1.3/bin/rails:22:in `<main>'
    from /usr/local/rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
    from /usr/local/rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `<main>'

美国东部标准时间下午3:40更新(基于与BroiSatse的谈话

我们能够从502到504超时获得错误。

在此过程中#APP_ROOT=/home/rails已被注释掉,已经修复,现在是504网关超时。

0 个答案:

没有答案