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

NameError: uninitialized constant Picnic::Config when trying to run rubycas-server #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
* What steps will reproduce the problem?

Using cloned git repos as of today.  Manual setup worked fine.  Had to edit
/usr/bin/rubycas-server as the lib path was not detected properly during
config+install (at least it didn't work on debian).  Once that was fixed,
and a barebones config.yaml was created, trying to run rubycas-server gets
this:

mculbert@iridium / $ /usr/bin/rubycas-server
Loading picnic from rubygems...             
Loading "rubycas-server" code from "/usr/lib/ruby/1.8"...
Loading configuration for "rubycas-server" from
"/etc/rubycas-server/config.yml"...
!! Error loading /usr/lib/ruby/1.8/casserver.rb:                          

NameError: uninitialized constant Picnic::Config                          

/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:44
5:in
`load_missing_constant'
/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77
:in
`const_missing'         
/usr/lib/ruby/1.8/casserver/conf.rb:36                                    

/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' 

/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'              

/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:15
3:in
`require'              
/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:52
1:in
`new_constants_in'     
/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:15
3:in
`require'              
/usr/lib/ruby/1.8/casserver.rb:11                                         

/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:14
2:in
`load_without_new_constant_marking'
/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:14
2:in
`load'                             
/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:52
1:in
`new_constants_in'
/var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:14
2:in
`load'
/var/lib/gems/1.8/gems/picnic-0.8.1/lib/../vendor/zuk-camping-2.0.20090429/lib/c
amping/reloader.rb:77:in
`load_apps'
/var/lib/gems/1.8/gems/picnic-0.8.1/lib/../vendor/zuk-camping-2.0.20090429/lib/c
amping/reloader.rb:164:in
`update'
/var/lib/gems/1.8/gems/picnic-0.8.1/lib/../vendor/zuk-camping-2.0.20090429/lib/c
amping/reloader.rb:158:in
`map'
/var/lib/gems/1.8/gems/picnic-0.8.1/lib/../vendor/zuk-camping-2.0.20090429/lib/c
amping/reloader.rb:158:in
`update'
/var/lib/gems/1.8/gems/picnic-0.8.1/lib/../vendor/zuk-camping-2.0.20090429/lib/c
amping/server.rb:32:in
`find_scripts'
/var/lib/gems/1.8/gems/picnic-0.8.1/lib/../vendor/zuk-camping-2.0.20090429/lib/c
amping/server.rb:130:in
`reload!'
/var/lib/gems/1.8/gems/picnic-0.8.1/lib/picnic/server.rb:20:in `start'
/var/lib/gems/1.8/gems/picnic-0.8.1/lib/picnic/cli.rb:162:in `handle_cli_input'
/usr/bin/rubycas-server:13
!! Error loading /usr/lib/ruby/1.8/casserver.rb, see backtrace above
[2009-05-04 13:54:30] INFO  WEBrick 1.3.1
[2009-05-04 13:54:30] INFO  ruby 1.8.7 (2008-08-11) [x86_64-linux]
[2009-05-04 13:54:30] INFO

Certificate follows, and the web server does run but serves no pages,
responding with:

NoMethodError at /
undefined method `call' for nil:NilClass

On any attempt to hit a page

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

git, manual install.  0.7.1 would not run for us at all (different issues)

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

server: webrick
port: 8443
ssl_cert: /etc/rubycas-server/rubycas-server-demo.pem
uri_path: /cas
database:
  adapter: postgresql
  database: rubycas
  username: myuser
  password: *******
  host: localhost
theme: simple
organization: CAS
infoline: Powered by <a
href="http://code.google.com/p/rubycas-server/">RubyCAS-Server</a>
default_locale: en
log:
  file: /var/log/casserver.log
  level: INFO

* Please provide any additional information below.

mculbert@iridium / $ gem list

*** LOCAL GEMS ***

actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
builder (2.1.2)
hoe (1.12.2)
markaby (0.5)
picnic (0.8.1)
rack (1.0.0)
rails (2.2.2)
rake (0.8.4)
rubyforge (1.0.3)

Original issue reported on code.google.com by mike...@gmail.com on 4 May 2009 at 8:59

GoogleCodeExporter commented 8 years ago
Worked past this.   This problem: "NameError: uninitialized constant 
Picnic::Config"
was preventing the preceding error message from being printed that informed me 
that
there was no authenticator configured in config.yaml.  Properly configuring an
authenticator made that error go away, though line 37 in conf.rb seems to still 
not
be valid:

raise Picnic::Config::Error, err

-M

Original comment by mike...@gmail.com on 4 May 2009 at 9:45

GoogleCodeExporter commented 8 years ago
This was recently fixed in the master branch on github.

Original comment by matt.zuk...@gmail.com on 6 May 2009 at 1:14