Puppetdb export fails with assertion fails, how should I upgrade without being able to export?

asked 2016-02-26 12:11:08 -0500

kshannon_ffn gravatar image

Hello!

I'm trying to perform an upgrade of our PuppetMasters. However, first I'm upgrading our puppetdb instance. To test this out I've spun up a second puppetdb server running the same exact version as the first.

I was attemptiong to export the puppetdb but it fails with "assertion failed"(I'll post full error below). I found this ticket that seems to say this is a known issue.

https://tickets.puppetlabs.com/browse...

So how should I go about performing this upgrade? Can I just export the postgres db & import into the other postgres without using the puppetdb tool?

[redacted@redacted (puppet) (14:04:06) /etc/puppetdb/conf.d]# puppetdb export -H redacted -o ./puppetdb-export.tar.gz

java.lang.AssertionError: Assert failed: % at com.puppetlabs.puppetdb.cli.export$eventsforreporthash.invoke (export.clj:114) com.puppetlabs.puppetdb.cli.export$reportsfornode$fn5294.invoke (export.clj:150) clojure.core$map$fn4245.invoke (core.clj:2557) clojure.lang.LazySeq.sval (LazySeq.java:40) clojure.lang.LazySeq.seq (LazySeq.java:49) clojure.lang.RT.seq (RT.java:484) clojure.core$seq.invoke (core.clj:133) clojure.core$map$fn4245.invoke (core.clj:2551) clojure.lang.LazySeq.sval (LazySeq.java:40) clojure.lang.LazySeq.seq (LazySeq.java:49) clojure.lang.RT.seq (RT.java:484) clojure.core$seq.invoke (core.clj:133) clojure.core$map$fn4245.invoke (core.clj:2551) clojure.lang.LazySeq.sval (LazySeq.java:40) clojure.lang.LazySeq.seq (LazySeq.java:49) clojure.lang.RT.seq (RT.java:484) clojure.core$seq.invoke (core.clj:133) clojure.core.protocols$seqreduce.invoke (protocols.clj:30) clojure.core.protocols/fn (protocols.clj:54) clojure.core.protocols$fn6031$G60266044.invoke (protocols.clj:13) clojure.core$reduce.invoke (core.clj:6289) schema.core$eval3377$fn3395$fn3412.invoke (core.clj:787) schema.core$eval3377$fn3395$fn3412.invoke (core.clj:785) clojure.core$comp$fn4192.invoke (core.clj:2403) com.puppetlabs.puppetdb.cli.export$eval5305$reportGTtar5306.invoke (export.clj:153) com.puppetlabs.puppetdb.cli.export$eval5329$getnodedata5330$fn5334.invoke (export.clj:184) com.puppetlabs.puppetdb.cli.export$eval5329$getnodedata5330.invoke (export.clj:170) com.puppetlabs.puppetdb.cli.export$main.doInvoke (export.clj:241) clojure.lang.RestFn.invoke (RestFn.java:457) clojure.lang.Var.invoke (Var.java:394) clojure.lang.AFn.applyToHelper (AFn.java:165) clojure.lang.Var.applyTo (Var.java:700) clojure.core$apply.invoke (core.clj:624) com.puppetlabs.puppetdb.core$runcommand.invoke (core.clj:87) com.puppetlabs.puppetdb.core$main.doInvoke (core.clj:95) clojure.lang.RestFn.invoke (RestFn.java:482) clojure.lang.Var.invoke (Var.java:401) clojure.lang.AFn.applyToHelper (AFn.java:171) clojure.lang.Var.applyTo (Var.java:700) clojure.core$apply.invoke (core.clj:624) clojure.main$mainopt.invoke (main.clj:315) clojure.main$main.doInvoke (main.clj:420) clojure.lang.RestFn.invoke (RestFn.java:551) clojure.lang.Var.invoke (Var ... (more)

edit retag flag offensive close merge delete