Letractively / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Cannot run rubycas-server if Rails 3 gems (activerecord and activesupport) are installed #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
> What steps will reproduce the problem?
1. install and configure rubycas-server using QuickStart instructions.
2. install Rails 3 (sudo gem install rails --pre)
3. run the server with sudo rubycas-server

> What version of RubyCAS-Server are you using? How is it installed (rubygem,
> manual install)? How are you running it (webrick, mongrel, passenger,
> etc.)?
rubycas-server-0.7.999999.20100202
installed as a gem
using webrick

> Please provide any additional information below.

From the gem list output (excerpt):

actionmailer (3.0.0.beta, 2.3.5)
actionpack (3.0.0.beta, 2.3.5)
activemodel (3.0.0.beta)
activerecord (3.0.0.beta, 2.3.5)
activeresource (3.0.0.beta, 2.3.5)
activesupport (3.0.0.beta, 2.3.5)
picnic (0.8.1.20100201)
rails (3.0.0.beta, 2.3.5)
railties (3.0.0.beta)
rake (0.8.7)
rubycas-client (2.1.0)
rubycas-server (0.7.999999.20100202)

When I try to run the server, this error is thrown:

sudo rubycas-server
Loading picnic from rubygems...
/usr/local/lib/site_ruby/1.8/rubygems.rb:230:in `activate': can't activate
activesupport (= 2.3.5, runtime) for [], already activated
activesupport-3.0.0.beta for ["rubycas-server-0.7.999999.20100202"]
(Gem::LoadError)
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:35:in `require'
    from /usr/lib/ruby/gems/1.8/gems/picnic-0.8.1.20100201/lib/picnic.rb:2
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/lib/ruby/gems/1.8/gems/picnic-0.8.1.20100201/lib/picnic/cli.rb:3
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from
/usr/lib/ruby/gems/1.8/gems/rubycas-server-0.7.999999.20100202/bin/rubycas-serve
r:5
    from /usr/bin/rubycas-server:19:in `load'
    from /usr/bin/rubycas-server:19

After removing the activesupport gem (version 3.0.0.beta):

sudo rubycas-server
/usr/local/lib/site_ruby/1.8/rubygems.rb:777:in `report_activate_error':
RubyGem version error: activesupport(2.3.5 not = 3.0.0.beta) (Gem::LoadError)
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:211:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:246:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:245:in `each'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:245:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:246:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:245:in `each'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:245:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:1056:in `gem'
    from /usr/bin/rubycas-server:18

When I also remove the activerecord gem (version 3.0.0.beta), server runs
successfully.

Original issue reported on code.google.com by valentin...@gmail.com on 12 Mar 2010 at 9:38

GoogleCodeExporter commented 8 years ago
I think I need to revisit how all the dependencies are loaded, maybe as part of 
the 
upgrade to official Camping 2.0.

Original comment by matt.zuk...@gmail.com on 18 May 2010 at 4:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Any update on this ? 

Original comment by arpitjai...@gmail.com on 4 Aug 2010 at 7:16

GoogleCodeExporter commented 8 years ago
Any update on this?

Original comment by dwayne...@gmail.com on 10 Sep 2010 at 10:11

GoogleCodeExporter commented 8 years ago
I'm working on a re-write of RubyCAS-Server in Sinatra. It uses Bundler, which 
should solve any future gem dependency version issues.

The Sinatra version is not really usable in production yet, but you can track 
its progress here: http://github.com/gunark/rubycas-server/tree/sinatra

Original comment by matt.zuk...@gmail.com on 10 Sep 2010 at 10:18

GoogleCodeExporter commented 8 years ago
wonderfull!!!

Original comment by dwayne...@gmail.com on 10 Sep 2010 at 10:26

GoogleCodeExporter commented 8 years ago
do you have an estimate for when it'll be production ready?

Original comment by dwayne...@gmail.com on 10 Sep 2010 at 10:47

GoogleCodeExporter commented 8 years ago
Probably a week or two.

Original comment by matt.zuk...@gmail.com on 11 Sep 2010 at 6:14

GoogleCodeExporter commented 8 years ago
Is it production ready already?

Original comment by dwayne...@gmail.com on 30 Sep 2010 at 2:07

GoogleCodeExporter commented 8 years ago
where can we see documentation for this new implementation?
or is configuration, etc still the same?

Original comment by dwayne...@gmail.com on 30 Sep 2010 at 2:08

GoogleCodeExporter commented 8 years ago
configuration is still the same. the idea is that the new system should be a 
drop-in replacement, so your old config file should work the same

I have a working version up and running now, and it's in github. You can 
install it and run bin/rubycas-server and it should load your old config file 
from /etc/rubycas-server/config.yml

Theoretically it should also work as-is with Passenger, but I haven't tried it 
yet on my end.

Original comment by matt.zuk...@gmail.com on 30 Sep 2010 at 6:26

GoogleCodeExporter commented 8 years ago

Original comment by matt.zuk...@gmail.com on 30 Sep 2010 at 6:27

GoogleCodeExporter commented 8 years ago
I've tried it and run into some errors.

at /logout :error message "undefined method `enable_single_sign_out' for 
nil:NilClass"
at / : error message "Sinatra doesn't know this ditty."
at /login?service=... : error message:"can't convert Array into String"

at /login : uses other theme (this isn't actually an error)

Original comment by dwayne...@gmail.com on 9 Oct 2010 at 5:14

GoogleCodeExporter commented 8 years ago
comment 13 is based on http://github.com/gunark/rubycas-server on branch 
sinatra.
I cloned the repository today.

Original comment by dwayne...@gmail.com on 9 Oct 2010 at 5:16

GoogleCodeExporter commented 8 years ago
Ouch. I merged in a bunch of stuff recently that maybe broke things. In any 
case it's definitely not production ready yet. I should have another few hours 
tomorrow morning to keep working on it. Right now I'm only getting about 6 
hours a week so it's slow going. A couple of other people have joined in the 
dev effort, but I end up having to review and merge all of the incoming code so 
it's not really saving time on my end at the moment.

Original comment by matt.zuk...@gmail.com on 13 Oct 2010 at 6:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Issue 106 has been merged into this issue.

Original comment by matt.zuk...@gmail.com on 1 Nov 2010 at 3:53

GoogleCodeExporter commented 8 years ago
New Sinatra version of RubyCAS-Server should address this since it uses Bundler.

Original comment by matt.zuk...@gmail.com on 21 Dec 2010 at 9:12