Problems with getting started, part 2

Arnold Daniels <[email protected]> Mon, 18 Feb 2008 22:44:25 +0100
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hi All,

After the last attempt back in November, I have installed up to date 
(and compatible) versions of ruby and rails. Ruby on rail now runs as 
CGI, but I still can't get it to  run with mod_ruby. I've changed the 
dispatch.rb to include the full path for dispatcher. However I get 
"Rails application failed to start properly" as output. The apache error 
log gives the errors pasted below this e-mail. If I would have to guess 
I would say that there are still some compatibility issues. However, a 
simple hello world app processed with mod_ruby, works fine.

I have also seen that I might need to add some configuration to make 
mod_ruby work with Rails. Can some tell me some more about this?

Thanks a lot for any information.

Best regards,
Arnold

PS. I don't see that much activity around mod_ruby (mailinglist, 
releases), nor do I see this being used as a common solution. Is this 
module not really good and there for abandoned or is there some other 
reason? Please give me a reassuring word for choosing mod_ruby.

-------------

Apache 2.0.55
ruby 1.8.6
Rails 2.0.2
mod_ruby 1.2.6

-------------

[Mon Feb 18 22:19:01 2008] [error] mod_ruby: error in ruby
[Mon Feb 18 22:19:01 2008] [error] mod_ruby: 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:157:in 
`file?': Insecure operation - file? (SecurityError)
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:157:in 
`search_for_file'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:155:in 
`each'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:155:in 
`search_for_file'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:246:in 
`load_missing_constant'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in 
`const_missing'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/www/nl/adaniels/rails.hello/public/dispatch.rb:9
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in 
`load'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in 
`load'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in 
`new_constants_in'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in 
`load'
[Mon Feb 18 22:19:01 2008] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler'