我有一个使用 Ubuntu 的 Bitnami Rails 堆栈。我正在使用 5 个瘦 Web 应用程序服务器设置 Nginx。当我尝试通过浏览器访问我的 Rails 应用程序时,看起来 Nginx 正在将请求发送到瘦服务器。但是,我在浏览器中得到“内部服务器错误”。
然后,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
这是包含在 nginx.conf = https://dl.dropbox.com/u/35302780/ndeavor.conf中的 ndeavor.conf
谢谢您的帮助!
更新1
即使我只是单独运行 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