Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
CentOS 7
-
Puppetserver 6.9.2
-
Froyo
-
Needs Assessment
-
Bug Fix
-
Previously, when querying environments without an `environments` directory, Puppet Server would report a 406 due to an `undefined method` error. Now we accurately report an empty environments list.
-
Needs Assessment
Description
Upgraded Puppet Server from 6.5.1 to 6.9.2
We are seeing a error when trying to query for environments. "Error: undefined method `collect' for nil:NilClass". API is reporting a 406 error.
Check the SSL and auth.conf.
Dump for the puppet server logs:
2020-04-01T14:30:31.118-07:00 ERROR [qtp1259599435-40] [puppetserver] Puppet Server Error: undefined method `collect' for nil:NilClass
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:204:in `list'
|
org/jruby/RubyArray.java:2579:in `collect'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:275:in `list'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:351:in `list'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/master/v3/environments.rb:11:in `call'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/master/v3/authorization.rb:14:in `block in wrap'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:82:in `block in process'
|
org/jruby/RubyArray.java:1800:in `each'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:81:in `process'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:88:in `process'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:88:in `process'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:87:in `block in process'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:70:in `block in with_request_profiling'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:66:in `with_request_profiling'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:86:in `block in process'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:93:in `respond_to_errors'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:85:in `process'
|
uri:classloader:/puppetserver-lib/puppet/server/master.rb:64:in `block in handleRequest'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'
|
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:290:in `override'
|
uri:classloader:/puppetserver-lib/puppet/server/master.rb:63:in `handleRequest'
|
Attachments
Issue Links
- is caused by
-
PUP-10255 Make Puppet understand symlinks pointing to versioned envs
-
- Resolved
-