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

RUBYCAS-Server error #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. http://<myserveraddress>:<port>/cas

What version of RubyCAS-Server are you using? How is it installed (rubygem,
manual install)? How are you running it (webrick, mongrel, passenger,
etc.)?

I have gunark-rubycas-server installed 

If relevant, please paste your RubyCAS-Server config.yml file here.

attached !!

Please provide any additional information below.

If I use http://localhost:8084/cas 

Then it gives 

Camping Error !    cas

if I use http://localhost:8084

The the login page is shown.  

But After login, I get the following on the screen :

(As attached)
NoMethodError at /login
undefined method `connection_pool' for nil:NilClass
Ruby 
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/casserver/authenticato
rs/sql.rb:
in validate, line 85
Web     POST 10.146.64.159/login
Jump to:

    * GET
    * POST
    * Cookies
    * ENV

Traceback (innermost first)

    *
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/casserver/authenticato
rs/sql.rb:
in validate
        78. raise_if_not_configured
        79.
        80. user_model = self.class.user_model
        81.
        82. username_column = @options[:username_column] || 'username'
        83. password_column = @options[:password_column] || 'password'
        84.
        85. $LOG.debug "#{self.class}: [#{user_model}] " + "Connection pool
size:
#{user_model.connection_pool.instance_variable_get(:@checked_out).length}/#{user
_model.connection_pool.instance_variable_get(:@connections).length}"...
        86. results = user_model.find(:all, :conditions =>
["#{username_column} = ? AND #{password_column} = ?", @username, @password])
        87. user_model.connection_pool.checkin(user_model.connection)
        88.
        89. if results.size > 0
        90. $LOG.warn("#{self.class}: Multiple matches found for user
....
....
(as attached)
....
....

You're seeing this error because you use Rack::ShowExceptions.

Original issue reported on code.google.com by nambia...@gmail.com on 30 May 2010 at 12:21

Attachments:

GoogleCodeExporter commented 8 years ago
Please install the standard rubycas-server gem via:

  gem install rubycas-server

The gunark-rubycas-server one is old and probably no longer works.

Original comment by matt.zuk...@gmail.com on 31 May 2010 at 3:58

GoogleCodeExporter commented 8 years ago
That was resolved.  Thank you very much Mr. Matt.Zukowski.

Original comment by nambia...@gmail.com on 2 Jun 2010 at 4:50

GoogleCodeExporter commented 8 years ago

Original comment by matt.zuk...@gmail.com on 2 Jun 2010 at 5:38