Passenger 500 Internal Server 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
Rails Completed 500 Internal Server Error
of this site About Us Learn more about Stack Overflow the company rails internal server error Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community 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 500 Internal Server Error with Rails Production up vote 2 down vote favorite I recently uploaded some new files to my production server (and overriding the old ones) and am now getting 500 Internal Server Error. The server is running phusion passenger (even though I am not getting that error message anymore) and in my local test environment everything seems to be working fine. Here is the site: http://www.pandonews.com/ When I looked in my apache log i see this error: [ pid=3106 thr=140057117177664 file=ext/apache2/Hooks.cpp:884 time=2013-09-01 17:37:24.84 ]: Unexpected error in mod_passenger: Cannot spawn application '/var/www/feedme': The spawn server died unexpectedly, and restarting it failed. Backtrace: in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:742) in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:312) in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:585) I have no idea what the problem is. It has been running fine up until now. I don't really know where to start in order to fix this. I tried running gem passenger install again but nothing happened. Recent activities: Installed pg gem (but removed it from gem file after deciding to stay with sqlite3 for now) the yml file should be ok... Tried running bundle update on server and locally but it keeps hanging Changed some javascript and css files... Tried resetting the server with RAILS_ENV=production rake:db reset - no change! EDIT: when running rails s production i get the following error: /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rack/handler/production (LoadError) from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:251:in `block in require' from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:236:in `load_dependency' from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:251:in `require' from
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 more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/18561245/500-internal-server-error-with-rails-production minute: Sign up Phusion Passenger internal server error up vote 9 down vote favorite I'm using Apache + Passenger on my Linode server, with a Postgresql-9.4 database. Every so often, I get the following error, but it is unpredictable and rights itself a few minutes later with no actions taken, so it is extremely hard to debug: Internal server error Phusion Passenger http://stackoverflow.com/questions/30059300/phusion-passenger-internal-server-error has listed more information about the error below. An error occurred while starting the web application. It sent an unknown response type "". Has anyone else run into an error like this, or know what it could imply? apache postgresql server passenger linode share|improve this question edited May 7 '15 at 19:05 asked May 5 '15 at 17:16 Joe Morano 13711134 Memory issues? What's the size of your Linode and is there any free memory left when you get this error? –Capsule May 8 '15 at 1:12 @Capsule My linode has 0.5 gb of RAM. There's no Swap Memory left when I get an error, but there is usually around 20000k Memory left. Which is odd, because I thought Memory ran out first, and Swap acted as a backup... –Joe Morano May 9 '15 at 18:46 It's possible the kernel reserves some memory so the system doesn't crash, but you obviously have no memory left for applications once you've reach the bottom of the swap. Anyway, even if your applications were able to use the remaining 20MB,
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta http://serverfault.com/questions/316103/problem-with-apache-passenger-500-error-where-to-look Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a internal server minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top problem with Apache / Passenger - 500 error - where to look? up vote 1 down vote favorite I installed passenger with rails 1.9.2 in a rvm but I'm getting errors when internal server error trying to load anything. (We're sorry but something went wrong). I'm able to load a txt file out of the public directory. It looks like passenger is working: jon@ve:~$ apache2ctl -t -D DUMP_MODULES Loaded Modules: ... passenger_module (shared) Syntax OK jon@ve:~$ In the top level apache error log, I see the non-descript: cache: [GET /jt] miss [Tue Sep 27 13:36:50 2011] [notice] caught SIGTERM, shutting down The vhost container is: