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

JIRA | Nathaniel Smith | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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)

    JIRA | 1 year ago | 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

    Root Cause Analysis

    1. 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()
    2. puppetlabs.puppetserver
      certificate_authority$eval14352$initialize_master_ssl_BANG___14353.invoke
      1. puppetlabs.puppetserver.certificate_authority$eval13894$partial_state_error__13895$fn__13896.invoke(certificate_authority.clj:282)
      2. puppetlabs.puppetserver.certificate_authority$eval13894$partial_state_error__13895.invoke(certificate_authority.clj:267)
      3. puppetlabs.puppetserver.certificate_authority$eval14352$initialize_master_ssl_BANG___14353$fn__14354.invoke(certificate_authority.clj:650)
      4. puppetlabs.puppetserver.certificate_authority$eval14352$initialize_master_ssl_BANG___14353.invoke(certificate_authority.clj:634)
      4 frames
    3. puppetlabs.services.ca
      certificate_authority_service$reify__19476$service_fnk__4369__auto___positional$reify__19487.initialize_master_ssl_BANG_
      1. puppetlabs.services.ca.certificate_authority_service$reify__19476$service_fnk__4369__auto___positional$reify__19487.initialize_master_ssl_BANG_(certificate_authority_service.clj:62)
      1 frame
    4. puppetlabs.services.protocols
      ca$eval19425$fn__19439$G__19416__19448.invoke
      1. puppetlabs.services.protocols.ca$eval19425$fn__19439$G__19417__19443.invoke(ca.clj:3)
      2. puppetlabs.services.protocols.ca$eval19425$fn__19439$G__19416__19448.invoke(ca.clj:3)
      2 frames
    5. Clojure
      RestFn.invoke
      1. clojure.lang.AFn.applyToHelper(AFn.java:160)
      2. clojure.lang.AFn.applyTo(AFn.java:144)
      3. clojure.core$apply.invoke(core.clj:626)
      4. clojure.core$partial$fn__4228.doInvoke(core.clj:2468)
      5. clojure.lang.RestFn.invoke(RestFn.java:421)
      5 frames
    6. puppetlabs.services.master
      master_service$reify__16375$service_fnk__4369__auto___positional$reify__16392.init
      1. puppetlabs.services.master.master_service$reify__16375$service_fnk__4369__auto___positional$reify__16392.init(master_service.clj:39)
      1 frame