Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-14

"Puppet::Error: Cannot determine basic system flavour" on OpenBSD

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SERVER 6.0.0
    • Component/s: None
    • Labels:
    • Environment:

      OpenBSD 5.6, Puppet 3.7.1

    • Release Notes:
      Known Issue
    • Release Notes Summary:
      Hide
      When updating the release notes for 6.0.0 the status of this was reviewed and we realized this should be resolved. The update to remove this from our documentation is here: https://github.com/puppetlabs/puppetserver/pull/1815
      Show
      When updating the release notes for 6.0.0 the status of this was reviewed and we realized this should be resolved. The update to remove this from our documentation is here: https://github.com/puppetlabs/puppetserver/pull/1815

      Description

      Running puppetserver 0.2.0 with:

      java -cp /usr/local/share/puppetserver/puppet-server-release.jar clojure.main -m puppetlabs.trapperkeeper.main services --config /etc/puppetserver/conf.d/ -b /etc/puppetserver/bootstrap.cfg

      results in:

      Cannot run on Microsoft Windows without the win32-process, win32-dir and win32-service gems: Win32API only supported on win32
      Puppet::Error: Cannot determine basic system flavour
      (root) at /usr/local/lib/ruby/site_ruby/2.0/puppet/feature/base.rb:32
      require at org/jruby/RubyKernel.java:1065
      (root) at /usr/local/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
      require at /usr/local/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
      Puppet at /usr/local/lib/ruby/site_ruby/2.0/puppet.rb:75
      require at org/jruby/RubyKernel.java:1065
      (root) at /usr/local/lib/ruby/site_ruby/2.0/puppet.rb:29
      (root) at /usr/local/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
      require at org/jruby/RubyKernel.java:1065
      require at /usr/local/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
      (root) at file:/usr/local/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1
      invoke at jruby_puppet_core.clj:118
      invoke at jruby_puppet_core.clj:131
      invoke at jruby_puppet_core.clj:121
      invoke at jruby_puppet_core.clj:222
      invoke at jruby_puppet_core.clj:210
      invoke at jruby_puppet_service.clj:29
      invoke at internal.clj:246
      invoke at internal.clj:230
      shutdown_on_error at internal.clj:285
      invoke at internal.clj:254
      invoke at internal.clj:254
      invoke at core.clj:619
      doInvoke at core.clj:2396
      invoke at jruby_puppet_service.clj:28
      invoke at core.clj:1836
      Exception in thread "main" java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool.
      at puppetlabs.services.jruby.jruby_puppet_core$eval6471$prime_pools_BANG__6472$fn_6473.invoke(jruby_puppet_core.clj:228) [103/249]
      at puppetlabs.services.jruby.jruby_puppet_core$eval6471$prime_pools_BANG___6472.invoke(jruby_puppet_core.clj:210)
      at puppetlabs.services.jruby.jruby_puppet_service$reify_6636$service_fnk5254auto_positional$reify6647$fn6648$fn_6649.invoke(jruby_puppet_service.clj:29)
      at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:246)
      at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:230)
      at puppetlabs.trapperkeeper.internal$shutdown_service$reify_5853$service_fnk5254auto_positional$reify_5858.shutdown_on_error(internal.clj:285)
      at puppetlabs.trapperkeeper.internal$eval5789$fn_5801$G5775_5809.invoke(internal.clj:254)
      at puppetlabs.trapperkeeper.internal$eval5789$fn_5801$G5774_5818.invoke(internal.clj:254)
      at clojure.lang.AFn.applyToHelper(AFn.java:167)
      at clojure.lang.AFn.applyTo(AFn.java:151)
      at clojure.core$apply.invoke(core.clj:619)
      at clojure.core$partial$fn__4190.doInvoke(core.clj:2396)
      at clojure.lang.RestFn.invoke(RestFn.java:421)
      at puppetlabs.services.jruby.jruby_puppet_service$reify_6636$service_fnk5254auto_positional$reify6647$fn_6648.invoke(jruby_puppet_service.clj:28)
      at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1836)
      at clojure.lang.AFn.call(AFn.java:18)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: org.jruby.embed.EvalFailedException: (Error) Cannot determine basic system flavour
      at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133)
      at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1317)
      at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1310)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
      at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
      at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:118)
      at puppetlabs.services.jruby.jruby_puppet_core$eval6346$create_jruby_instance_6347$fn_6348.invoke(jruby_puppet_core.clj:131)
      at puppetlabs.services.jruby.jruby_puppet_core$eval6346$create_jruby_instance__6347.invoke(jruby_puppet_core.clj:121)
      at puppetlabs.services.jruby.jruby_puppet_core$eval6471$prime_pools_BANG__6472$fn_6473.invoke(jruby_puppet_core.clj:222)
      ... 19 more
      Caused by: org.jruby.exceptions.RaiseException: (Error) Cannot determine basic system flavour
      at RUBY.(root)(/usr/local/lib/ruby/site_ruby/2.0/puppet/feature/base.rb:32)
      at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065)
      at RUBY.(root)(/usr/local/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1)
      at RUBY.require(/usr/local/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)
      at RUBY.Puppet(/usr/local/lib/ruby/site_ruby/2.0/puppet.rb:75)
      at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065)
      at RUBY.(root)(/usr/local/lib/ruby/site_ruby/2.0/puppet.rb:29)
      at RUBY.(root)(/usr/local/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1)
      at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065)
      at RUBY.require(/usr/local/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)
      at RUBY.(root)(file:/usr/local/share/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:1)
      at puppetlabs.services.jruby.jruby_puppet_core$create_scripting_container.invoke(jruby_puppet_core.clj:118)
      at puppetlabs.services.jruby.jruby_puppet_core$eval6346$create_jruby_instance_6347$fn_6348.invoke(jruby_puppet_core.clj:131)
      at puppetlabs.services.jruby.jruby_puppet_core$eval6346$create_jruby_instance__6347.invoke(jruby_puppet_core.clj:121)
      at puppetlabs.services.jruby.jruby_puppet_core$eval6471$prime_pools_BANG__6472$fn_6473.invoke(jruby_puppet_core.clj:222)
      at puppetlabs.services.jruby.jruby_puppet_core$eval6471$prime_pools_BANG___6472.invoke(jruby_puppet_core.clj:210)
      at puppetlabs.services.jruby.jruby_puppet_service$reify_6636$service_fnk5254auto_positional$reify6647$fn6648$fn_6649.invoke(jruby_puppet_service.clj:29)
      at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:246)
      at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:230)
      at puppetlabs.trapperkeeper.internal$shutdown_service$reify_5853$service_fnk5254auto_positional$reify_5858.shutdown_on_error(internal.clj:285)
      at puppetlabs.trapperkeeper.internal$eval5789$fn_5801$G5775_5809.invoke(internal.clj:254)
      at puppetlabs.trapperkeeper.internal$eval5789$fn_5801$G5774_5818.invoke(internal.clj:254)
      at clojure.core$apply.invoke(core.clj:619)
      at clojure.core$partial$fn__4190.doInvoke(core.clj:2396)
      at puppetlabs.services.jruby.jruby_puppet_service$reify_6636$service_fnk5254auto_positional$reify6647$fn_6648.invoke(jruby_puppet_service.clj:28)
      at clojure.core$binding_conveyor_fn$fn__4107.invoke(core.clj:1836)

      Having a quick look at puppet/feature/base.rb it seems that Puppet suddenly no longer recognizes OpenBSD as having the 'posix' feature? Running the Ruby puppetmaster on the same machine works.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jasper Jasper Lievisse Adriaanse
                  QA Contact:
                  Erik Dasher
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  14 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: