What steps will reproduce the problem?
1. Introducing Google Authentication
2.
3.
What version of RubyCAS-Server are you using? How is it installed (rubygem,
manual install)? How are you running it (webrick, mongrel, passenger,
etc.)?
SocketError at /cas/login
getaddrinfo: Name or service not known
If relevant, please paste your RubyCAS-Server config.yml file here.
Please provide any additional information below.
SocketError at /cas/login
getaddrinfo: Name or service not known
Traceback (innermost first)
* /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/http.rb: in
initialize
553. connect
554. @started = true
555. end
556. private :do_start
557.
558. def connect
559. D "opening connection to #{conn_address()}..."
560. s = timeout(@open_timeout) { TCPSocket.open(conn_address(),
conn_port()) }...
561. D "opened"
562. if use_ssl?
563. unless @ssl_context.verify_mode
564. warn "warning: peer certificate won't be verified in this SSL
session"
565. @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
566. end
567. s = OpenSSL::SSL::SSLSocket.new(s, @ssl_context)
* /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/http.rb: in open
553. connect
554. @started = true
555. end
556. private :do_start
557.
558. def connect
559. D "opening connection to #{conn_address()}..."
560. s = timeout(@open_timeout) { TCPSocket.open(conn_address(),
conn_port()) }...
561. D "opened"
562. if use_ssl?
563. unless @ssl_context.verify_mode
564. warn "warning: peer certificate won't be verified in this SSL
session"
565. @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
566. end
567. s = OpenSSL::SSL::SSLSocket.new(s, @ssl_context)
......
*
...
* /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/webrick/server.rb: in
start
16.
17. module WEBrick
18.
19. class ServerError < StandardError; end
20.
21. class SimpleServer
22. def SimpleServer.start
23. yield...
24. end
25. end
26.
27. class Daemon
28. def Daemon.start
29. exit!(0) if fork
30. Process::setsid
* /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/webrick/server.rb: in
start
75. @listeners += Utils::create_listeners(address, port, @logger)
76. end
77.
78. def start(&block)
79. raise ServerError, "already started." if @status != :Stop
80. server_type = @config[:ServerType] || SimpleServer
81.
82. server_type.start{...
83. @logger.info \
84. "#{self.class}#start: pid=#{$$} port=#{@config[:Port]}"
85. call_callback(:StartCallback)
86.
87. thgroup = ThreadGroup.new
88. @status = :Running
89. while @status == :Running
* /opt/rubygems/gems/rack-1.1.0/lib/rack/handler/webrick.rb: in run
7. class WEBrick < ::WEBrick::HTTPServlet::AbstractServlet
8. def self.run(app, options={})
9. options[:BindAddress] = options.delete(:Host) if options[:Host]
10. server = ::WEBrick::HTTPServer.new(options)
11. server.mount "/", Rack::Handler::WEBrick, app
12. trap(:INT) { server.shutdown }
13. yield server if block_given?
14. server.start...
15. end
16.
17. def initialize(server, app)
18. super server
19. @app = Rack::ContentLength.new(app)
20. end
21.
* /opt/rubygems/gems/picnic-0.8.1.20100201/lib/picnic/server.rb: in start
15. end
16.
17. # preload the apps in order to show any startup errors when
18. # the app is run from the command line (otherwise they would only
19. # show up after the first request to the web server)
20. reload!
21.
22. handler.run(self, conf) ...
23. end
24.
25.
26. def app
27. reload!
28.
29. rapp = apps.values.first
* /opt/rubygems/gems/picnic-0.8.1.20100201/lib/picnic/cli.rb: in
handle_cli_input
155. File.open($PID_FILE, 'w'){ |f| f.write("#{Process.pid}") }
156. at_exit { File.delete($PID_FILE) if File.exist?($PID_FILE) }
157. end
158.
159. $CONF.database = :unused if $CONF.database.blank?
160.
161. server = Picnic::Server::Base.new($CONF, [options[:app_file]])
162. server.start...
163. end
164. end
165. end
166.
167.
* /opt/rubyCASserverCurrent/bin/rubycas-server: in nil
6.
7. cli = Picnic::Cli.new(
8. 'rubycas-server',
9. :app_module => 'CASServer',
10. :app_file =>
File.expand_path(File.dirname(__FILE__)+"/../lib/casserver.rb")
11. )
12.
13. cli.handle_cli_input
--------------------------
lt
"LT-1275570185r524D77BB28AD4EB5E2"
password
"*******"
service
""
username
"nambiarsu@gmail.com"
Original issue reported on code.google.com by nambia...@gmail.com on 3 Jun 2010 at 1:00
Original issue reported on code.google.com by
nambia...@gmail.com
on 3 Jun 2010 at 1:00