java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Repro steps: * make a vm with 2gb ram * install puppetserver normally (2.3.0 or lower) * attempt to start puppet server; it will not start because the RAM is too low for the default jvm heap size * add RAM to the vm * attempt to start puppet server; it will fail with: Exception in thread "main" java.lang.IllegalStateException: Cannot initialize master with partial state; need all files or none. Found: /etc/puppetlabs/puppet/ssl/private_keys/vagrant-ubuntu-trusty-64.vpn.puppetlabs.net.pem Missing: /etc/puppetlabs/puppet/ssl/certs/vagrant-ubuntu-trusty-64.vpn.puppetlabs.net.pem at puppetlabs.puppetserver.certificate_authority$eval13894$partial_state_error__13895$fn__13896.invoke(certificate_authority.clj:282) at puppetlabs.puppetserver.certificate_authority$eval13894$partial_state_error__13895.invoke(certificate_authority.clj:267) at puppetlabs.puppetserver.certificate_authority$eval14352$initialize_master_ssl_BANG___14353$fn__14354.invoke(certificate_authority.clj:650) at puppetlabs.puppetserver.certificate_authority$eval14352$initialize_master_ssl_BANG___14353.invoke(certificate_authority.clj:634) at puppetlabs.services.ca.certificate_authority_service$reify__19476$service_fnk__4369__auto___positional$reify__19487.initialize_master_ssl_BANG_(certificate_authority_service.clj:62) at puppetlabs.services.protocols.ca$eval19425$fn__19439$G__19417__19443.invoke(ca.clj:3) at puppetlabs.services.protocols.ca$eval19425$fn__19439$G__19416__19448.invoke(ca.clj:3) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.lang.RestFn.invoke(RestFn.java:421) at puppetlabs.services.master.master_service$reify__16375$service_fnk__4369__auto___positional$reify__16392.init(master_service.clj:39)
    via by Nathaniel Smith,
    • java.lang.IllegalStateException: Cannot initialize master with partial state; need all files or none. Found: /etc/puppetlabs/puppet/ssl/private_keys/vagrant-ubuntu-trusty-64.vpn.puppetlabs.net.pem Missing: /etc/puppetlabs/puppet/ssl/certs/vagrant-ubuntu-trusty-64.vpn.puppetlabs.net.pem at puppetlabs.puppetserver.certificate_authority$eval13894$partial_state_error__13895$fn__13896.invoke(certificate_authority.clj:282) at puppetlabs.puppetserver.certificate_authority$eval13894$partial_state_error__13895.invoke(certificate_authority.clj:267) at puppetlabs.puppetserver.certificate_authority$eval14352$initialize_master_ssl_BANG___14353$fn__14354.invoke(certificate_authority.clj:650) at puppetlabs.puppetserver.certificate_authority$eval14352$initialize_master_ssl_BANG___14353.invoke(certificate_authority.clj:634) at puppetlabs.services.ca.certificate_authority_service$reify__19476$service_fnk__4369__auto___positional$reify__19487.initialize_master_ssl_BANG_(certificate_authority_service.clj:62) at puppetlabs.services.protocols.ca$eval19425$fn__19439$G__19417__19443.invoke(ca.clj:3) at puppetlabs.services.protocols.ca$eval19425$fn__19439$G__19416__19448.invoke(ca.clj:3) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.lang.RestFn.invoke(RestFn.java:421) at puppetlabs.services.master.master_service$reify__16375$service_fnk__4369__auto___positional$reify__16392.init(master_service.clj:39)
    No Bugmate found.