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

Error When Starting Puppet Server 5 - metrics-webservice

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: SERVER 5.0.0
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
    • Environment:
    • Template:
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      After upgrading all Puppet packages from the latest public 4.x release (puppetserver-2.7.2) to Puppet 5.x (puppetserver-5.0.0), I received the following error when attempting to start the puppetserver service:

      2017-07-01 20:27:34,450 ERROR [async-dispatch-2] [p.t.internal] Error during service init!!!
      java.lang.IllegalArgumentException: service :puppetlabs.trapperkeeper.services.metrics.metrics-service/metrics-webservice does not appear in configuration
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at clojure.lang.Reflector.invokeConstructor(Reflector.java:180)
              at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_endpoint_and_server_from_config.invokeStatic(webrouting_service_core.clj:54)
              at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_endpoint_and_server_from_config.invoke(webrouting_service_core.clj:38)
              at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_route.invokeStatic(webrouting_service_core.clj:99)
              at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_route.invoke(webrouting_service_core.clj:96)
              at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$reify__34668$service_fnk__5261__auto___positional$reify__34676.get_route(webrouting_service.clj:37)
              at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval34398$fn__34562$G__34382__34568.invoke(webrouting_service.clj:10)
              at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval34398$fn__34562$G__34381__34575.invoke(webrouting_service.clj:10)
              at clojure.core$partial$fn__4759.invoke(core.clj:2515)
              at puppetlabs.trapperkeeper.services.metrics.metrics_service$reify__39318$service_fnk__5261__auto___positional$reify__39329.init(metrics_service.clj:64)
              at puppetlabs.trapperkeeper.services$eval5063$fn__5064$G__5051__5067.invoke(services.clj:8)
              at puppetlabs.trapperkeeper.services$eval5063$fn__5064$G__5050__5071.invoke(services.clj:8)
              at puppetlabs.trapperkeeper.internal$eval13831$run_lifecycle_fn_BANG___13838$fn__13839.invoke(internal.clj:204)
              at puppetlabs.trapperkeeper.internal$eval13831$run_lifecycle_fn_BANG___13838.invoke(internal.clj:187)
              at puppetlabs.trapperkeeper.internal$eval13860$run_lifecycle_fns__13865$fn__13866.invoke(internal.clj:238)
              at puppetlabs.trapperkeeper.internal$eval13860$run_lifecycle_fns__13865.invoke(internal.clj:215)
              at puppetlabs.trapperkeeper.internal$eval14330$build_app_STAR___14339$fn$reify__14349.init(internal.clj:588)
              at puppetlabs.trapperkeeper.internal$eval14376$boot_services_for_app_STAR__STAR___14383$fn__14384$fn__14386.invoke(internal.clj:616)
              at puppetlabs.trapperkeeper.internal$eval14376$boot_services_for_app_STAR__STAR___14383$fn__14384.invoke(internal.clj:615)
              at puppetlabs.trapperkeeper.internal$eval14376$boot_services_for_app_STAR__STAR___14383.invoke(internal.clj:609)
              at clojure.core$partial$fn__4761.invoke(core.clj:2521)
              at puppetlabs.trapperkeeper.internal$eval13899$initialize_lifecycle_worker__13910$fn__13911$fn__13997$state_machine__11871__auto____13998$fn__14000.invoke(internal.clj:255)
              at puppetlabs.trapperkeeper.internal$eval13899$initialize_lifecycle_worker__13910$fn__13911$fn__13997$state_machine__11871__auto____13998.invoke(internal.clj:255)
              at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:1012)
              at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:1011)
              at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:1016)
              at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:1014)
              at clojure.core.async$ioc_alts_BANG_$fn__12039.invoke(async.clj:383)
              at clojure.core.async$do_alts$fn__11985$fn__11988.invoke(async.clj:252)
              at clojure.core.async.impl.channels.ManyToManyChannel$fn__6795$fn__6796.invoke(channels.clj:95)
              at clojure.lang.AFn.run(AFn.java:22)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:748)
      2017-07-01 20:27:34,476 INFO  [main] [p.t.internal] Beginning shutdown sequence
      

      Though I understand the file below is not intended to be tampered with, I found that after commenting out the metrics-webservice in the bootstrap.cfg, then the puppetserver successfully started:

      // /opt/puppetlabs/server/apps/puppetserver/config/services.d/bootstrap.cfg
      #puppetlabs.trapperkeeper.services.metrics.metrics-service/metrics-webservice
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                naga sanjay naga
                Reporter:
                thespain Jake Spain
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: