Ask Your Question
0

This version of PuppetDB works with schema version 6, but the DB is at version 21

asked 2015-09-16 09:20:06 -0500

Hello,

I am getting this error when starting the puppetdb with puppetdb-1.0.5-1 and java 1.7.0_10-b18.

I tried googling around but found nothing except the commit requests of the developers?

Whoat does that error mean and how can I repair it? Thanks in advance!

puppetdb-foreground --debug

2015-09-16 16:04:55,015 DEBUG [main] [puppetlabs.utils] Debug logging enabled 2015-09-16 16:04:55,052 INFO [main] [cli.services] PuppetDB version 1.0.5 2015-09-16 16:04:55,053 DEBUG [main] [bonecp.BoneCPDataSource] JDBC URL = jdbc:hsqldb:file:/var/lib/puppetdb/db/db;hsqldb.tx=mvcc;sql.syntaxpgs=true, Username = null, partitions = 5, max (per partition) = 10, min (per partition) = 1, helper threads = 3, idle max age = 60 min, idle test period = 240 min 2015-09-16 16:04:55,058 WARN [main] [bonecp.BoneCPConfig] JDBC username was not set in config! 2015-09-16 16:04:55,058 WARN [main] [bonecp.BoneCPConfig] JDBC password was not set in config! 2015-09-16 16:04:55,738 INFO [BoneCP-pool-watch-thread] [HSQLDB4C942809ED.ENGINE] checkpointClose start 2015-09-16 16:04:55,768 INFO [BoneCP-pool-watch-thread] [HSQLDB4C942809ED.ENGINE] checkpointClose end 2015-09-16 16:04:55,787 DEBUG [main] [bonecp.PreparedStatementHandle] SELECT version FROM schemamigrations ORDER BY version DESC LIMIT 1 java.lang.IllegalStateException: This version of PuppetDB works with schema version 6, but the DB is at version 21 at com.puppetlabs.puppetdb.scf.migrate$migrateBANG.invoke (migrate.clj:224) com.puppetlabs.puppetdb.cli.services$main$fn8486.invoke (services.clj:274) clojure.java.jdbc.internal$withconnectionSTAR.invoke (internal.clj:186) com.puppetlabs.puppetdb.cli.services$main.doInvoke (services.clj:273) clojure.lang.RestFn.invoke (RestFn.java:436) clojure.lang.Var.invoke (Var.java:409) clojure.lang.AFn.applyToHelper (AFn.java:167) clojure.lang.Var.applyTo (Var.java:518) clojure.core$apply.invoke (core.clj:600) com.puppetlabs.puppetdb.core$main.doInvoke (core.clj:80) clojure.lang.RestFn.applyTo (RestFn.java:137) com.puppetlabs.puppetdb.core.main (:-1) 2015-09-16 16:04:55,803 ERROR [main] [puppetlabs.utils] Uncaught exception java.lang.IllegalStateException: This version of PuppetDB works with schema version 6, but the DB is at version 21 at com.puppetlabs.puppetdb.scf.migrate$migrateBANG.invoke(migrate.clj:224) at com.puppetlabs.puppetdb.cli.services$main$fn8486.invoke(services.clj:274) at clojure.java.jdbc.internal$withconnectionSTAR.invoke(internal.clj:186) at com.puppetlabs.puppetdb.cli.services$main.doInvoke(services.clj:273) at clojure.lang.RestFn.invoke(RestFn.java:436) at clojure.lang.Var.invoke(Var.java:409) at clojure.lang.AFn.applyToHelper(AFn.java:167) at clojure.lang.Var.applyTo(Var.java:518) at clojure.core$apply.invoke(core.clj:600) at com.puppetlabs.puppetdb.core$main.doInvoke(core.clj:80) at clojure.lang.RestFn.applyTo(RestFn.java:137) at com.puppetlabs.puppetdb.core.main(Unknown Source) 2015-09-16 16:04:55,806 INFO [Thread-4] [cli.services] Shutdown request received; puppetdb exiting.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-09-16 09:43:49 -0500

updated 2015-09-16 09:44:34 -0500

I would presume, someone has started a 1.6.x version of PuppetDB at some point using your PostgreSQL or HSQLDB database, since that's the only version that brought in schema version 21.

As far as a solution, I would either upgrade to 1.6 (or higher perhaps), or restore from backup to get this working for PDB 1.0.5 again.

edit flag offensive delete link more

Comments

That was it. I did start the DB with the old schema. Thanks!

Kozzio gravatar imageKozzio ( 2015-12-02 07:41:42 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2015-09-16 09:20:06 -0500

Seen: 132 times

Last updated: Sep 16 '15