Phusion Passenger and RailsSpawnMethod
I've installed RedMine on my Macintosh OS X machine using Apache 2 and Phusion Passenger.
However, when I access the homepage, I get the following error:
Error message: superclass must be a Class (Module given) Exception class: TypeError Application root: /redmine
When I change the RailsSpawnMethod setting of Passenger to "conservative", it works just fine (but slower).I'm using:
- Mac OS X 10.5.4
- Apache 2.2.8
- Ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
- Rails 2.1.0
- Redmine from svn (r1709)
The Apache config that does not work:
# Load mod_passenger LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.0.2/ext/apache2/mod_passenger.so PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.0.2 PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby # Load redmine RailsBaseURI /redmine
The Apache config that does work:
# Load mod_passenger LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.0.2/ext/apache2/mod_passenger.so PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.0.2 PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby # Configure mod_passenger RailsSpawnMethod conservative # Load redmine RailsBaseURI /redmine
I've attached a screenshot with more information about the error.
#1 Updated by Billy Ma almost 10 years ago
I was able to duplicate the problem on my Mac OS X.
This problem is related to RedCloth. I was told that RedCloth did a complete rewrite of their code with version 3.0.4, which Redmine depends on.
You can do one of the following to solve the problem:
1. Remove all the previous version of RedCloth and keep version 3.0.4.
2. Remove all versions of RedCloth and use the file that comes with Redmine
You should be able to run it with any problem.
#3 Updated by Gerrit Kaiser almost 10 years ago
Pieter Claerhout wrote:
I removed all versions of RedCloth I've had installed and now it's working fine.
What's strange however that the only versions I had installed were 3.0.4 and 4.0.1.
RedCloth had a major update with 4.0, so no surprise it breaks. Weird is, however, that Redmine apparently only tries loads version 4 of the RedCloth gem when running under Passenger.
So this might well be a Passenger bug, not a Redmine one, but I don't think this issue is resolved yet. Uninstalling RedCloth is a workaround at best.