About | FAQ | Help
Ask Your Question
0

Puppetdb import - Java Error Assert failed

asked 2018-01-24 06:32:02 -0500

daniellog gravatar image

I've been trying to migrate data from our puppetdb 2.3 to a new 4.4 test server. When I try to import the data however I get this error. I can't find much about how to fix this, the puppetdb 4.4 server is working fine with everything else.

root@puppet4-testing:~/puppetdb-export# puppetdb import --infile ./my-puppetdb-export.tar.gz
java.lang.AssertionError: Assert failed: (:command_versions %)
 at puppetlabs.puppetdb.cli.import$parse_metadata.invokeStatic (import.clj:22)
    puppetlabs.puppetdb.cli.import$parse_metadata.invoke (import.clj:22)
    puppetlabs.puppetdb.cli.import$_main.invokeStatic (import.clj:67)
    puppetlabs.puppetdb.cli.import$_main.doInvoke (import.clj:63)
    clojure.lang.RestFn.invoke (RestFn.java:421)
    clojure.lang.Var.invoke (Var.java:383)
    clojure.lang.AFn.applyToHelper (AFn.java:156)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.core$apply.invokeStatic (core.clj:646)
    clojure.core$apply.invoke (core.clj:641)
    puppetlabs.puppetdb.core$run_command.invokeStatic (core.clj:83)
    puppetlabs.puppetdb.core$run_command.invoke (core.clj:63)
    puppetlabs.puppetdb.core$_main.invokeStatic (core.clj:91)
    puppetlabs.puppetdb.core$_main.doInvoke (core.clj:89)
    clojure.lang.RestFn.invoke (RestFn.java:436)
    clojure.lang.Var.invoke (Var.java:388)
    clojure.lang.AFn.applyToHelper (AFn.java:160)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.core$apply.invokeStatic (core.clj:646)
    clojure.main$main_opt.invokeStatic (main.clj:314)
    clojure.main$main_opt.invoke (main.clj:310)
    clojure.main$main.invokeStatic (main.clj:421)
    clojure.main$main.doInvoke (main.clj:384)
    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.main.main (main.java:37)
2018-01-24 12:25:42,876 ERROR [main] [p.t.logging] Uncaught exception
java.lang.AssertionError: Assert failed: (:command_versions %)
    at puppetlabs.puppetdb.cli.import$parse_metadata.invokeStatic(import.clj:22)
    at puppetlabs.puppetdb.cli.import$parse_metadata.invoke(import.clj:22)
    at puppetlabs.puppetdb.cli.import$_main.invokeStatic(import.clj:67)
    at puppetlabs.puppetdb.cli.import$_main.doInvoke(import.clj:63)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:383)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.core$apply.invokeStatic(core.clj:646)
    at clojure.core$apply.invoke(core.clj:641)
    at puppetlabs.puppetdb.core$run_command.invokeStatic(core.clj:83)
    at puppetlabs.puppetdb.core$run_command.invoke(core.clj:63)
    at puppetlabs.puppetdb.core$_main.invokeStatic(core.clj:91)
    at puppetlabs.puppetdb.core$_main.doInvoke(core.clj:89)
    at clojure.lang.RestFn.invoke(RestFn.java:436)
    at clojure.lang.Var.invoke(Var.java:388)
    at clojure.lang.AFn.applyToHelper(AFn.java:160)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.core$apply.invokeStatic(core.clj:646)
    at clojure.main$main_opt.invokeStatic(main.clj:314)
    at clojure.main$main_opt.invoke(main.clj:310)
    at clojure.main$main.invokeStatic(main.clj:421)
    at clojure.main$main.doInvoke(main.clj:384)
    at clojure.lang.RestFn.invoke(RestFn.java:482)
    at clojure.lang ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-26 05:53:06 -0500

daniellog gravatar image

For now I have just dumped the puppetdb database from postgresql and then dumped it on a newly created puppetdb database on the puppetdb 4,4 server. This seems to have worked okay and I can't see any errors.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-01-24 06:32:02 -0500

Seen: 40 times

Last updated: Jan 26