You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after setup new puppet server we receive errors in /var/log/messages like:
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb:108: warning: already initialized constant DEFAULT_ENTITIES
Answer: The reason for this is, that you’re using XmlSimple explicitly in a rails app. XmlSimple is part of rails (you can find it in ./actionpack-1.12.5/lib/action_controller/vendor/xml_simple.rb). Unfortunately, the library is named "xml_simple.rb" and not "xmlsimple.rb". Ruby’s "require" prevents you from loading a library two times and it does so by checking if a file name occurs more than once. In your case somewhere in the rails framework "require 'xml_simple'" is performed and you run "require 'xmlsimple'" afterwards. Hence, the library is loaded twice and all constants are redefined.
A solution is to only require xml-simple unless XmlSimple has not been defined already.
Also the worst thing is:
ERROR [qtp222747617-2185] [puppetserver] Puppet Could not autoload puppet/parser/functions/clickhouse_config: load error: rexml/document -- java.lang.StackOverflowError: null
ERROR [qtp222747617-2185] [puppetserver] Puppet Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/clickhouse_config: load error: rexml/document -- java.lang.StackOverflowError: null (file: /etc/puppetlabs/code/environments/production/modules/cluster/manifests/user.pp, line: 149, column: 24) (file: /etc/puppetlabs/code/environments/production/modules/cluster/manifests/init.pp, line: 31) on node xxxx.be.core.pw
currently we downgraded xml-simple to 1.1.8, but I suppose that require 'xmlsimple' should be changed to something different in lib/puppet/parser/functions/clickhouse_config.rb
The text was updated successfully, but these errors were encountered:
after setup new puppet server we receive errors in /var/log/messages like:
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb:108: warning: already initialized constant DEFAULT_ENTITIES
https://github.com/maik/xml-simple FAQ
Answer: The reason for this is, that you’re using XmlSimple explicitly in a rails app. XmlSimple is part of rails (you can find it in ./actionpack-1.12.5/lib/action_controller/vendor/xml_simple.rb). Unfortunately, the library is named "xml_simple.rb" and not "xmlsimple.rb". Ruby’s "require" prevents you from loading a library two times and it does so by checking if a file name occurs more than once. In your case somewhere in the rails framework "require 'xml_simple'" is performed and you run "require 'xmlsimple'" afterwards. Hence, the library is loaded twice and all constants are redefined.
A solution is to only require xml-simple unless XmlSimple has not been defined already.
Also the worst thing is:
ERROR [qtp222747617-2185] [puppetserver] Puppet Could not autoload puppet/parser/functions/clickhouse_config: load error: rexml/document -- java.lang.StackOverflowError: null
ERROR [qtp222747617-2185] [puppetserver] Puppet Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/clickhouse_config: load error: rexml/document -- java.lang.StackOverflowError: null (file: /etc/puppetlabs/code/environments/production/modules/cluster/manifests/user.pp, line: 149, column: 24) (file: /etc/puppetlabs/code/environments/production/modules/cluster/manifests/init.pp, line: 31) on node xxxx.be.core.pw
currently we downgraded xml-simple to 1.1.8, but I suppose that require 'xmlsimple' should be changed to something different in lib/puppet/parser/functions/clickhouse_config.rb
The text was updated successfully, but these errors were encountered: