Rails 500 Error Not Logged
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 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
Rails 500 Error Json
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
Rails 500 Error Page
minute: Sign up My Rails app is returning HTTP 500 for all its URLs, but nothing shows up in the log file. How can I diagnose the problem? up vote 9 down vote favorite 1 I have a Rails app that
Rails Custom 500 Error
is running on a production server with Apache and Phusion Passenger. The app works fine locally when using Mongrel, but whenever I try to load a URL on the production server, it returns HTTP 500. I know the server is working properly, because I can get the static elements of the application (e.g., JavaScript files, stylesheets, images) just fine. I've also checked the Passenger status and it is loading the app (it must be, since the app's 500 Internal Server Error page is rails render 500 error returned, not just the default Apache one). Also, when I load the app via script/console production and do something like app.get("/"), 500 is also returned. The problem is that there is nothing in the log files to indicate the problem. production.log is empty. The Apache error logs show no problems with Apache, either. I'm stumped as to what's going on and I'm not sure how to diagnose the problem. I know I may have been a bit vague, but can anyone give a suggestion on what the problem may be? Or at least a way I can go about diagnosing it? ruby-on-rails share|improve this question asked Feb 25 '10 at 14:19 mipadi 215k51383403 add a comment| 6 Answers 6 active oldest votes up vote 6 down vote accepted The answer for this specific situation was a problem with my app. One of the model classes used a different database connection than the rest of the app. This database connection was not configured properly. I think the reason why nothing was written to the log files is that Rails bailed out without having any idea what to do. Since it may be helpful for others to see how I diagnosed this problem, here was my thought process: The issue couldn't be with Apache: no errors were written into the Apache log files. The issue probably wasn't with Passenger: Passenger wasn't writing any errors to the Apache log file, and it seemed to be loading my ap
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and rails write to log policies of this site About Us Learn more about Stack Overflow the company rails config log_level Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users rails internal server error 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/2334564/my-rails-app-is-returning-http-500-for-all-its-urls-but-nothing-shows-up-in-the minute: Sign up 500 Internal Server Error for rails app with no errors recorded in any log file up vote 0 down vote favorite I have a rails application that is giving a 500 Internal Server Error page when I try and visit it (it's at http://www.helendan.rtwilson.com), however I can't find any details on the error in any of the log http://stackoverflow.com/questions/8772425/500-internal-server-error-for-rails-app-with-no-errors-recorded-in-any-log-file files. I've tried looking inside ./log in the rails application directory and there is nothing in any of the log files there. I've also tried looking at the web server logs themselves, and the access.log file shows an access to / and a request for the favicon, but nothing else, and the error.log is completely blank. I have run rails console and checked that I can do some basic things with my application. For example: >> rails console Loading development environment (Rails 3.0.3) irb(main):001:0> @p = Present.find(1) => #
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
have one accepted answer. Are you sure you want to replace the current answer with this one? Yes, I'm sure. Changed your mind? You previously marked this answer as accepted. Are you sure you want to unaccept it? Yes, I'm sure. Sign Up Log In submit Tutorials Questions Projects Meetups Main Site logo-horizontal DigitalOcean Community Menu Tutorials Questions Projects Meetups Main Site Sign Up Log In submit View All Results By: cj.miyake Subscribe Subscribed Share 0 Rails silent 500 error December 16, 2013 2.4k views I started up a new rails project just to follow the tutorial posted on https://coderwall.com/p/yz8cha Everything went well, capistrano deploy cold and updates are running fine (at least with no errors), however when I go to my site it displays a rails 500 error. Just to make sure I'm understanding it correctly if it displays the rails 500 error than the problem isn't with unicorn or nginx correct? The frustrating part is that when i check the production.log it is blank...unicorn blank as well. When i run rake db:migrate in the rails root it throws an error that no database adapter is specified... here is my database.yml file: development: adapter: postgresql username: *** password: *** database: stimuliproject_development host: localhost test: adapter: postgresql username: *** password: *** database: stimuliproject_test host: localhost production: adapter: postgresql username: *** password: *** database: stimuliproject_production host: localhost Anyone know where to look or check? Log In to Comment Leave a Comment Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below. Log In to Comment 3 Answers 0 kamaln7 MOD December 16, 2013 Check the unicorn.log file. Does it contain any errors? Reply Log In to Comment 0 cj.miyake December 16, 2013 I, [2013-12-12T19:45:54.866116 #15914] INFO -- : listening on addr=/tmp/unicorn.projectname.sock fd=10 I, [2013-12-12T19:45:54.866641 #15914] INFO -- : worker=0 spawning... I, [2013-12-12T19:45:54.868026 #15914] INFO -- : worker=1 spawning... I, [2013-12-12T19:45:54.870411 #15914] INFO -- : master process ready I, [2013-12-12T19:45:54.869321 #15917] INFO -- : worker=0 spawned pid=15917 I, [2013-12-12T19:45:54.885785 #15917] INFO -- : Refreshing Gem list I, [2013-12-12T19:45:54.894825 #15920] INFO -- : worker=1 spawned pid=15920 I, [2013-12-12T19:45:54.895155 #15920] INFO -- : Refreshing Gem list I, [2013-12-12T19:45:59.307398 #15920] INFO -- : worker=1 ready I, [2013-12-12T19:45: