Nginx Passenger 500 Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn rails 500 error page more about Stack Overflow the company Business Learn more about hiring developers or posting rails 500 error no log ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community rails 500 error log Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to properly diagnose a 500 error (Rails, Passenger, Nginx, rails internal server error Postgres) up vote 3 down vote favorite 2 I'm having a real tough time diagnosing a 500 error from my application running in production. I've had it working before, but after re-deploying via Capastrano I am unable to get it going. Here are the facts: The server is setup with nginx + passenger, and I'm using PostgreSQL. Static assets are working properly, as in I'm able to access them
Rails 500 Internal Server Error
just fine in a browser. I can access the rails console via RAILS_ENV=production bundle exec rails console and perform Active Record actions (like retrieving data from the db). Within console, I can run app.get("/"), which returns a 500 error as well (after first showing the query that was run to load the model). The production.log file is never written to. I've set permissions 777 on it just for the hell of it. I've also set the log level to :debug with nothing to show for it. The nginx log (which passenger also uses) shows no indication of errors, it just notifies about cache misses. Because nothing of use is being logged, I have no idea what to do here. I've tried setting full permission on the entire app directory with no help. Restarted the server multiple times, nothing. The database is there and rails can clearly communicate with it. I'm not sure what I did to get it to run the first time around. I just don't know why rails isn't outputting anything to the log. ruby-on-rails ruby-on-rails-3 nginx passenger capistrano share|improve this question asked Apr 2 '12 at 1:49 Brian 1,95442247 add a comment| 3 Answers 3 active oldest votes up
Sign in Pricing Blog Support Search GitHub This repository Watch 137 Star 3,596 Fork 451 phusion/passenger Code Issues 155 Pull requests 5 Projects 0
Restart Passenger
Wiki Pulse Graphs New issue 500 error but no log messages. #500 Closed FooBarWidget opened this Issue May 29, 2014 · 3 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 1 participant Phusion B.V. member FooBarWidget commented May 29, 2014 From gokulj on October 09, 2009 11:27:50 Rails apps throws a 500 http://stackoverflow.com/questions/9970028/how-to-properly-diagnose-a-500-error-rails-passenger-nginx-postgres error but there is nothing in the production.log file. Rails version 2.3.3 Using Passenger 2.2.5 (Apache) with REE - ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 20090928 Ubuntu 8.04 With PassengerLogLevel of 3, I see no errors in apache's error.log as well. Other Rails apps (Rails 2.1.0, Rails 2.3.2) work fine. Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=400 Phusion B.V. https://github.com/phusion/passenger/issues/500 member FooBarWidget commented May 29, 2014 From adams.brad on April 09, 2010 11:15:45 Same for me. Debian Squeeze Rails 2.3.5 Passenger 2.2.11 REE 1.8.7 (2009-12-24 patchlevel 248) Nginx 0.8.35 Ngnix still hosts everything else, but any Passenger sites give me 500's with no Ngnix errors and nothing in my Rails app's production.log. Phusion B.V. member FooBarWidget commented May 29, 2014 From adams.brad on April 09, 2010 13:10:42 Looks like the non-logging is a Rails bug. https://rails.lighthouseapp.com/projects/8994/tickets/3577-failsafe-middleware-should-flush-the-logger Phusion B.V. member FooBarWidget commented May 29, 2014 From honglilai on April 12, 2010 03:17:07 Yes it is a Rails bug. I hope they'll release 2.3.6 soon. Status: Invalid FooBarWidget closed this May 29, 2014 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Web Dev @ Microsoft SEO By WooRank Books Courses Screencasts Newsletters Versioning https://www.sitepoint.com/deploying-rails-with-phusion-passenger-and-nginx-in-5-minutes/ Shop Forums Advertise Contribute Contact Us Our Story 995kSubscribers 132kFollowers 80kFollowers Ruby Article Deploying Rails with Phusion Passenger and Nginx in 5 minutes By Chris Howart April 16, 2012 When I first started with RoR, I used to wonder how developers deployed their application with such ease. Here's a guide which should come in handy if you 500 error want to deploy a Rails app with Nginx, without making the whole process look tedious. I could get this done in 5 minutes, how about you? Phusion Passenger / mod_rails Phusion Passenger is a robust module for Apache and Nginx servers, and is preferred over any other module for deploying web apps developed using the Rails rails 500 error framework. But if you’re running a Microsoft Windows platform, you might have to look for other alternatives since Phusion Passenger is compatible with anything but Windows. For this tutorial, I'll be using Ubuntu, but you can go anything unix-like. Choose between nginx and Apache Apache and Nginx are widely adopted web servers. Although Apache is the best known process based web server, Nginx is most suited if you’re in need of a fast, and responsive server. It performs miracles when the server is under heavy load. For this post I'll be relying on Nginx server, but if you have Apache in your stack, the method of hooking up is not much different from Nginx. Deploying Rails App with Phusion Passenger and Nginx First, download the latest stable version of Nginx from nginx.org. You will need its source code to install the Nginx module later. I’ll be using nginx-1.0.15 which is the latest stable release at the time of writing this tutorial. cd /tmp wget http://nginx.org/download/nginx-1.0.15.tar.gz tar -xvzf nginx-1.