![]() |
500 Errors with older sites after update to 4.0.10 etc.
I just installed a new site onto my server that uses Rails 2.3.4. In order to get it running, I had to upgrade to 4.0.10 with lsapi 3.5 and then manually transfer the RailsRunner.rb files over into /usr/local/lsws/fcgi-bin. That seemed to be the combo that worked,(though I did a lot more tweaking)
Now I have a bunch of older sites using Rails 1.2.3 and Mephisto 0.7x that are not working right. I've tweaked them to use the right rails gem and done a rake rails:update. Now they work partially. For some reason though, I get a 500 error every once in a while. It looks like the first time you hit an uncached page or something. Here's my error. What's up with that? It almost seems like the new RailsRunner.rb isn't compatible or something..? :confused: Code:
MissingSourceFile (no such file to load -- application):-Chris |
Looks like a problem between Gem and older Rails releases, nothing to do with the RailsRunder.rb .
|
Quote:
|
Oi, I don't understand why this works but this is what seems to be happening..
I had 503 errors on all my Mephisto sites and the solution to fixing that appears to be to set the RAILS_GEM_VERSION to 1.2.3 and then do Code:
rake rails:updateThis fixes the 503 errors and gets the site working. Unfortunately there is an intermittent 500 error that then occurs the first time you try to load a dynamic page. The error goes away on refresh. The solution? Apparently the rails:update command changes application.rb to application_controller.rb. I just renamed it back and now I have no 503 and no 500... I understand why renaming the file fixes the 500 error. I don't understand why I have to do rake rails:update to fix the 503 error. :confused: At least it works! :) |
| All times are GMT -7. The time now is 06:43 AM. |