java.lang.IllegalArgumentException: service :puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service does not appear in configuration

JIRA | Brandon Rochon | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Server 2.1 ships with puppetlabs.services.legacy-routes.legacy-routes-service/legacy-routes-service enabled in bootstrap.cfg. If you disable the internal ca ( puppetlabs.services.ca.certificate-authority-service/certificate-authority-service ) and enable external CA support (puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service) per the docs (and which worked fine in 2.0 which doesn't have the legacy routes service), puppet server cannot start due to: {noformat} 2015-06-09 15:12:33,189 INFO [main] [p.s.c.puppet-server-config-core] Not overriding webserver settings with values from core Puppet 2015-06-09 15:12:33,222 ERROR [main] [p.t.internal] Error during service init!!! java.lang.IllegalArgumentException: service :puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service does not appear in configuration at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_endpoint_and_server_from_config.invoke(webrouting_service_core.clj:52) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_route.invoke(webrouting_service_core.clj:96) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$reify__9567$service_fnk__4090__auto___positional$reify__9575.get_route(webrouting_service.clj:35) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval9343$fn__9482$G__9327__9488.invoke(webrouting_service.clj:10) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval9343$fn__9482$G__9326__9495.invoke(webrouting_service.clj:10) ~[na:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [puppet-server-release.jar:na] at clojure.lang.AFn.applyTo(AFn.java:144) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:626) [puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) ~[puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408) [puppet-server-release.jar:na] at puppetlabs.services.legacy_routes.legacy_routes_service$reify__17272$service_fnk__4090__auto___positional$reify__17283.init(legacy_routes_service.clj:23) ~[na:na] at puppetlabs.trapperkeeper.services$eval3926$fn__3927$G__3918__3930.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval3926$fn__3927$G__3917__3934.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:180) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__5493.init(internal.clj:444) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__5505.invoke(internal.clj:470) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:469) [na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:113) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:482) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:401) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:171) [puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [puppet-server-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) [puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:482) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:401) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:171) [puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [puppet-server-release.jar:na] at clojure.main$main_opt.invoke(main.clj:315) [puppet-server-release.jar:na] at clojure.main$main.doInvoke(main.clj:420) [puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:551) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:419) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:186) [puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [puppet-server-release.jar:na] at clojure.main.main(main.java:37) [puppet-server-release.jar:na] 2015-06-09 15:12:33,225 INFO [main] [p.t.internal] Beginning shutdown sequence {noformat} If I comment out the legacy routes service, things startup just fine. So either this service completely breaks things or perhaps something for the ca-disabled service needs to explicitly added to web-routes.conf or something? I haven't experimented, but if that's the case then the default web-routes.conf file that ships should be updated with the needed route or the docs for enabling external CA need to be updated with whatever one is supposed to do (unless one is content to disable the legacy-routes service like me, which BTW I'm only assuming should cause no issues provided one has >=4.0 agents?)

    JIRA | 2 years ago | Brandon Rochon
    java.lang.IllegalArgumentException: service :puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service does not appear in configuration
  2. 0

    Server 2.1 ships with puppetlabs.services.legacy-routes.legacy-routes-service/legacy-routes-service enabled in bootstrap.cfg. If you disable the internal ca ( puppetlabs.services.ca.certificate-authority-service/certificate-authority-service ) and enable external CA support (puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service) per the docs (and which worked fine in 2.0 which doesn't have the legacy routes service), puppet server cannot start due to: {noformat} 2015-06-09 15:12:33,189 INFO [main] [p.s.c.puppet-server-config-core] Not overriding webserver settings with values from core Puppet 2015-06-09 15:12:33,222 ERROR [main] [p.t.internal] Error during service init!!! java.lang.IllegalArgumentException: service :puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service does not appear in configuration at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_endpoint_and_server_from_config.invoke(webrouting_service_core.clj:52) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_route.invoke(webrouting_service_core.clj:96) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$reify__9567$service_fnk__4090__auto___positional$reify__9575.get_route(webrouting_service.clj:35) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval9343$fn__9482$G__9327__9488.invoke(webrouting_service.clj:10) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval9343$fn__9482$G__9326__9495.invoke(webrouting_service.clj:10) ~[na:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [puppet-server-release.jar:na] at clojure.lang.AFn.applyTo(AFn.java:144) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:626) [puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) ~[puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408) [puppet-server-release.jar:na] at puppetlabs.services.legacy_routes.legacy_routes_service$reify__17272$service_fnk__4090__auto___positional$reify__17283.init(legacy_routes_service.clj:23) ~[na:na] at puppetlabs.trapperkeeper.services$eval3926$fn__3927$G__3918__3930.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval3926$fn__3927$G__3917__3934.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:180) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__5493.init(internal.clj:444) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__5505.invoke(internal.clj:470) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:469) [na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:113) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:482) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:401) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:171) [puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [puppet-server-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) [puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:482) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:401) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:171) [puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [puppet-server-release.jar:na] at clojure.main$main_opt.invoke(main.clj:315) [puppet-server-release.jar:na] at clojure.main$main.doInvoke(main.clj:420) [puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:551) [puppet-server-release.jar:na] at clojure.lang.Var.invoke(Var.java:419) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:186) [puppet-server-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [puppet-server-release.jar:na] at clojure.main.main(main.java:37) [puppet-server-release.jar:na] 2015-06-09 15:12:33,225 INFO [main] [p.t.internal] Beginning shutdown sequence {noformat} If I comment out the legacy routes service, things startup just fine. So either this service completely breaks things or perhaps something for the ca-disabled service needs to explicitly added to web-routes.conf or something? I haven't experimented, but if that's the case then the default web-routes.conf file that ships should be updated with the needed route or the docs for enabling external CA need to be updated with whatever one is supposed to do (unless one is content to disable the legacy-routes service like me, which BTW I'm only assuming should cause no issues provided one has >=4.0 agents?)

    JIRA | 2 years ago | Brandon Rochon
    java.lang.IllegalArgumentException: service :puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service does not appear in configuration

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      service :puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service does not appear in configuration

      at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_endpoint_and_server_from_config.invoke()
    2. puppetlabs.trapperkeeper.services
      webrouting_service$eval9343$fn__9482$G__9326__9495.invoke
      1. puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_endpoint_and_server_from_config.invoke(webrouting_service_core.clj:52)[na:na]
      2. puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_route.invoke(webrouting_service_core.clj:96)[na:na]
      3. puppetlabs.trapperkeeper.services.webrouting.webrouting_service$reify__9567$service_fnk__4090__auto___positional$reify__9575.get_route(webrouting_service.clj:35)[na:na]
      4. puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval9343$fn__9482$G__9327__9488.invoke(webrouting_service.clj:10)[na:na]
      5. puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval9343$fn__9482$G__9326__9495.invoke(webrouting_service.clj:10)[na:na]
      5 frames
    3. Clojure
      RestFn.invoke
      1. clojure.lang.AFn.applyToHelper(AFn.java:156)[puppet-server-release.jar:na]
      2. clojure.lang.AFn.applyTo(AFn.java:144)[puppet-server-release.jar:na]
      3. clojure.core$apply.invoke(core.clj:626)[puppet-server-release.jar:na]
      4. clojure.core$partial$fn__4228.doInvoke(core.clj:2468)[puppet-server-release.jar:na]
      5. clojure.lang.RestFn.invoke(RestFn.java:408)[puppet-server-release.jar:na]
      5 frames
    4. puppetlabs.services.legacy_routes
      legacy_routes_service$reify__17272$service_fnk__4090__auto___positional$reify__17283.init
      1. puppetlabs.services.legacy_routes.legacy_routes_service$reify__17272$service_fnk__4090__auto___positional$reify__17283.init(legacy_routes_service.clj:23)[na:na]
      1 frame
    5. puppetlabs.trapperkeeper
      core$main.doInvoke
      1. puppetlabs.trapperkeeper.services$eval3926$fn__3927$G__3918__3930.invoke(services.clj:8)[na:na]
      2. puppetlabs.trapperkeeper.services$eval3926$fn__3927$G__3917__3934.invoke(services.clj:8)[na:na]
      3. puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152)[na:na]
      4. puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:180)[na:na]
      5. puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__5493.init(internal.clj:444)[na:na]
      6. puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__5505.invoke(internal.clj:470)[na:na]
      7. puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:469)[na:na]
      8. puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:113)[na:na]
      9. puppetlabs.trapperkeeper.core$run.invoke(core.clj:144)[na:na]
      10. puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159)[na:na]
      10 frames
    6. Clojure
      core$apply.invoke
      1. clojure.lang.RestFn.invoke(RestFn.java:482)[puppet-server-release.jar:na]
      2. clojure.lang.Var.invoke(Var.java:401)[puppet-server-release.jar:na]
      3. clojure.lang.AFn.applyToHelper(AFn.java:171)[puppet-server-release.jar:na]
      4. clojure.lang.Var.applyTo(Var.java:700)[puppet-server-release.jar:na]
      5. clojure.core$apply.invoke(core.clj:624)[puppet-server-release.jar:na]
      5 frames
    7. puppetlabs.trapperkeeper
      main$_main.doInvoke
      1. puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7)[puppet-server-release.jar:na]
      1 frame
    8. Clojure
      main.main
      1. clojure.lang.RestFn.invoke(RestFn.java:482)[puppet-server-release.jar:na]
      2. clojure.lang.Var.invoke(Var.java:401)[puppet-server-release.jar:na]
      3. clojure.lang.AFn.applyToHelper(AFn.java:171)[puppet-server-release.jar:na]
      4. clojure.lang.Var.applyTo(Var.java:700)[puppet-server-release.jar:na]
      5. clojure.core$apply.invoke(core.clj:624)[puppet-server-release.jar:na]
      6. clojure.main$main_opt.invoke(main.clj:315)[puppet-server-release.jar:na]
      7. clojure.main$main.doInvoke(main.clj:420)[puppet-server-release.jar:na]
      8. clojure.lang.RestFn.invoke(RestFn.java:551)[puppet-server-release.jar:na]
      9. clojure.lang.Var.invoke(Var.java:419)[puppet-server-release.jar:na]
      10. clojure.lang.AFn.applyToHelper(AFn.java:186)[puppet-server-release.jar:na]
      11. clojure.lang.Var.applyTo(Var.java:700)[puppet-server-release.jar:na]
      12. clojure.main.main(main.java:37)[puppet-server-release.jar:na]
      12 frames