处理请求时出现意外错误:getaddrinfo:名称解析暂时失败

时间:2013-03-15 14:50:18

标签: ruby-on-rails nginx thin

我有一个使用Ubuntu的Bitnami Rails堆栈。我正在使用5个瘦Web应用程序服务器设置Nginx。当我尝试通过浏览器访问我的Rails应用程序时,看起来Nginx正在将请求发送到Thin服务器上。但是,我在浏览器中收到“内部服务器错误”。

然后,thin.3000.log包含以下条目:

>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 127.0.0.1:3000, CTRL+C to stop
!! Unexpected error while processing request: getaddrinfo: Temporary failure in name resolution
!! Unexpected error while processing request: getaddrinfo: Temporary failure in name resolution

这是否意味着某种DNS问题?

这是我的thin.yml = https://dl.dropbox.com/u/35302780/thin.yml

这是我的nginx.conf = https://dl.dropbox.com/u/35302780/nginx.conf

这是ndex.conf中包含的ndeavor.conf = https://dl.dropbox.com/u/35302780/ndeavor.conf

感谢您的帮助!

UPDATE1

即使我只是单独运行Thin,我也会遇到同样的错误。

bitnami@linux:/opt/bitnami/projects/ndeavor/current$ thin -e production start
>> Using rack adapter
/opt/bitnami/projects/ndeavor/releases/20130314191109/config/application.rb:3:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.

[DEVISE] Devise.use_salt_as_remember_token is deprecated and has no effect. Please remove it.

>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
!! Unexpected error while processing request: getaddrinfo: Temporary failure in name resolution

1 个答案:

答案 0 :(得分:0)

它最终成为一个失败的DNS服务器。