Ask Your Question

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

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


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] [] 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)$main$fn8486.invoke (services.clj:274)$withconnectionSTAR.invoke (internal.clj:186)$main.doInvoke (services.clj:273) clojure.lang.RestFn.invoke ( clojure.lang.Var.invoke ( clojure.lang.AFn.applyToHelper ( clojure.lang.Var.applyTo ( clojure.core$apply.invoke (core.clj:600) com.puppetlabs.puppetdb.core$main.doInvoke (core.clj:80) clojure.lang.RestFn.applyTo ( 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$main$fn8486.invoke(services.clj:274) at$withconnectionSTAR.invoke(internal.clj:186) at$main.doInvoke(services.clj:273) at clojure.lang.RestFn.invoke( at clojure.lang.Var.invoke( at clojure.lang.AFn.applyToHelper( at clojure.lang.Var.applyTo( at clojure.core$apply.invoke(core.clj:600) at com.puppetlabs.puppetdb.core$main.doInvoke(core.clj:80) at clojure.lang.RestFn.applyTo( at com.puppetlabs.puppetdb.core.main(Unknown Source) 2015-09-16 16:04:55,806 INFO [Thread-4] [] Shutdown request received; puppetdb exiting.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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


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


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

Seen: 131 times

Last updated: Sep 16 '15