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

JIRA | Brandon Rochon | 1 year ago
  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 | 1 year 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 | 1 year ago | Brandon Rochon
    java.lang.IllegalArgumentException: service :puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service does not appear in configuration
  3. 0

    Per code changes committed for SERVER-1071, if the "master-service" entry in the web-router-service config has an "invalid-in-puppet-4" key in it, the server will fail to startup with an error like the following: {noformat} 2016-01-28 07:59:31,285 INFO [main] [p.s.m.master-service] Master Service adding ring handlers 2016-01-28 07:59:31,292 ERROR [main] [p.t.internal] Error during service init!!! java.lang.IllegalArgumentException: endpoint with id :default does not appear in configuration for service :puppetlabs.services.master.master-service/master-service at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_endpoint_and_server_from_config.invoke(webrouting_service_core.clj:55) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$compute_common_elements.invoke(webrouting_service_core.clj:68) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$eval11614$add_ring_handler_BANG___11621$fn__11622.invoke(webrouting_service_core.clj:114) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$eval11614$add_ring_handler_BANG___11621.invoke(webrouting_service_core.clj:110) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$reify__11980$service_fnk__5056__auto___positional$reify__11988.add_ring_handler(webrouting_service.clj:51) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval11756$fn__11933$G__11730__11941.invoke(webrouting_service.clj:10) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval11756$fn__11933$G__11729__11950.invoke(webrouting_service.clj:10) ~[na:na] at clojure.core$partial$fn__4527.invoke(core.clj:2494) ~[clojure-1.7.0.jar:na] at puppetlabs.services.master.master_service$reify__18484$service_fnk__5056__auto___positional$reify__18501.init(master_service.clj:63) ~[na:na] {noformat} The failure does not occur if the "invalid-in-puppet-4" key is removed from the configuration. Even though it is no longer used in Puppet Server 2.1 and later, "invalid-in-puppet-4" was a valid key at the time Puppet Server 2.0 was released. For backward compatibility, it would be best for Puppet Server to continue to tolerate the presence of this key, still booting to ready but just ignoring the value for the key as Puppet Server 2.2.0 does.

    JIRA | 10 months ago | Jeremy Barlow
    java.lang.IllegalArgumentException: endpoint with id :default does not appear in configuration for service :puppetlabs.services.master.master-service/master-service
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Per code changes committed for SERVER-1071, if the "master-service" entry in the web-router-service config has an "invalid-in-puppet-4" key in it, the server will fail to startup with an error like the following: {noformat} 2016-01-28 07:59:31,285 INFO [main] [p.s.m.master-service] Master Service adding ring handlers 2016-01-28 07:59:31,292 ERROR [main] [p.t.internal] Error during service init!!! java.lang.IllegalArgumentException: endpoint with id :default does not appear in configuration for service :puppetlabs.services.master.master-service/master-service at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$get_endpoint_and_server_from_config.invoke(webrouting_service_core.clj:55) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$compute_common_elements.invoke(webrouting_service_core.clj:68) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$eval11614$add_ring_handler_BANG___11621$fn__11622.invoke(webrouting_service_core.clj:114) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service_core$eval11614$add_ring_handler_BANG___11621.invoke(webrouting_service_core.clj:110) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$reify__11980$service_fnk__5056__auto___positional$reify__11988.add_ring_handler(webrouting_service.clj:51) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval11756$fn__11933$G__11730__11941.invoke(webrouting_service.clj:10) ~[na:na] at puppetlabs.trapperkeeper.services.webrouting.webrouting_service$eval11756$fn__11933$G__11729__11950.invoke(webrouting_service.clj:10) ~[na:na] at clojure.core$partial$fn__4527.invoke(core.clj:2494) ~[clojure-1.7.0.jar:na] at puppetlabs.services.master.master_service$reify__18484$service_fnk__5056__auto___positional$reify__18501.init(master_service.clj:63) ~[na:na] {noformat} The failure does not occur if the "invalid-in-puppet-4" key is removed from the configuration. Even though it is no longer used in Puppet Server 2.1 and later, "invalid-in-puppet-4" was a valid key at the time Puppet Server 2.0 was released. For backward compatibility, it would be best for Puppet Server to continue to tolerate the presence of this key, still booting to ready but just ignoring the value for the key as Puppet Server 2.2.0 does.

    JIRA | 10 months ago | Jeremy Barlow
    java.lang.IllegalArgumentException: endpoint with id :default does not appear in configuration for service :puppetlabs.services.master.master-service/master-service
  6. 0

    Error Omnifaces 2.0 o:massAttribute with o:validateOrder

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: disabled

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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