Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to autoload puppet/provider/elasticsearch_user_file/xpack on first catalog #1069

Open
sysadmin1139 opened this issue Feb 7, 2020 · 0 comments

Comments

@sysadmin1139
Copy link

  • Module version: 6.4.0
  • PuppetServer version: 5.3.10
  • OS and version: Ubuntu 16.04

Bug description

On the first compiled catalog after the puppetserver is reloaded, we're getting a series of errors and stack-traces.

2020-02-07 20:15:57,357 ERROR [qtp649028237-795] [puppetserver] Puppet Could not autoload puppet/provider/elasticsearch_user_file/xpack: no such file to load -- puppet/provider/elastic_parsedfile
org/jruby/RubyKernel.java:1040:in `require'
/opt/puppetlabs/server/apps/puppetserver/jruby-1_7.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/puppet/code/modules/elasticsearch/lib/puppet/provider/elasticsearch_user_file/xpack.rb:1:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:1:in `(root)'
2020-02-07 20:15:57,381 ERROR [qtp649028237-795] [puppetserver] Puppet Could not autoload puppet/type/elasticsearch_user_file: Could not autoload puppet/provider/elasticsearch_user_file/xpack: no such file to load -- puppet/provider/elastic_parsedfile
org/jruby/RubyKernel.java:1040:in `require'
/opt/puppetlabs/server/apps/puppetserver/jruby-1_7.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/puppet/code/modules/elasticsearch/lib/puppet/provider/elasticsearch_user_file/xpack.rb:1:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:1:in `(root)'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:68:in `load_file'
2020-02-07 20:15:57,384 ERROR [qtp649028237-795] [puppetserver] Puppet Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/elasticsearch_user_file: Could not autoload puppet/provider/elasticsearch_user_file/xpack: no such file to load -- puppet/provider/elastic_parsedfile (file: /etc/puppetlabs/code/modules/elasticsearch/manifests/init.pp, line: 567, column: 6) on node 2002071944_ip-172-19-10-179.ec2.internal
2020-02-07 20:15:57,385 ERROR [qtp649028237-795] [puppetserver] Puppet Server Error: Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/elasticsearch_user_file: Could not autoload puppet/provider/elasticsearch_user_file/xpack: no such file to load -- puppet/provider/elastic_parsedfile (file: /etc/puppetlabs/code/modules/elasticsearch/manifests/init.pp, line: 567, column: 6) on node 2002071944_ip-172-19-10-179.ec2.internal
org/jruby/RubyKernel.java:1040:in `require'
/opt/puppetlabs/server/apps/puppetserver/jruby-1_7.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54:in `require'
/etc/puppetlabs/code/modules/elasticsearch/lib/puppet/provider/elasticsearch_user_file/xpack.rb:1:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:1:in `(root)'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:68:in `load_file'

The second and subsequent catalog-attempts will safely compile, it only impacts the very first one after a reload of the puppetserver (done after a code-push).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant