简体   繁体   English

使用Nginx将Rails应用程序部署到VPS。 尝试访问动态页面时出错

[英]Deploying Rails app to VPS using nginx. Error when trying to access dynamic pages

I'm trying to deploy a Ruby on Rails app to my VPS for the first time. 我正在尝试第一次将Ruby on Rails应用程序部署到我的VPS。 I'm following this guide. 我正在遵循本指南。

Everything seems to be working on my local machine. 一切似乎都在我的本地计算机上运行。

I'm currently at the "Testing the VPS" part of the guide. 我目前在指南的“测试VPS”部分。

On my VPS, static pages that I have in my public folder work fine. 在我的VPS上,公用文件夹中的静态页面可以正常工作。 However, I'm receiving an error message when I try to access a dynamic page. 但是,当我尝试访问动态页面时,我收到一条错误消息。

When trying to go to http://server-ip-address.com/users (as specified by the guide) I am encountering this error from nginx: 当尝试转到http://server-ip-address.com/users (由指南指定)时,我从nginx遇到此错误:

An error occurred. 发生错误。

Sorry, the page you are looking for is currently unavailable. 抱歉,您要查找的页面当前不可用。 Please try again later. 请稍后再试。

If you are the system administrator of this resource then you should check the error log for details. 如果您是此资源的系统管理员,则应检查错误日志以获取详细信息。

The logs at /opt/nginx/logs/error.log state: /opt/nginx/logs/error.log的日志状态:

2013/07/08 20:47:32 [crit] 17760#0: *151 connect() to /tmp/passenger.1.0.12435/generation-    0/request failed (2: No such file or directory) while connecting to upstream, client: client-    ip-address, server: server-ip-address, request: "GET /user HTTP/1.1", upstream:     "passenger:/tmp/passenger.1.0.12435/generation-0/request:", host: "server-ip-address"

I'm not sure how to fix this. 我不确定如何解决此问题。 Any help? 有什么帮助吗?

Thank you! 谢谢!

This is a bug in 4.0.7. 这是4.0.7中的错误。 Fixed in 4.0.8, which was released an hour ago. 已在一个小时前发布的4.0.8中修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM