Skip to end of metadata
Go to start of metadata

Problem:


Nach dem Start des Workflow Accelerator Tomcatservers erscheint die Fehlermeldung "Signavio Workflow Accelerator startup failed" mit der Message "Couldn't migrate database!".


Signavio Workflow Accelerator startup failed

Message: Couldn't migrate database!

Caused by:
java.lang.RuntimeException: Couldn't migrate database!
 at com.effektif.product.engine.ApplicationLifeCycle.migrateDatabase(ApplicationLifeCycle.java:187)
 at com.effektif.product.engine.ApplicationLifeCycle.checkAndUpgradeDatabase(ApplicationLifeCycle.java:75)
 at com.effektif.product.engine.ApplicationLifeCycle.start(ApplicationLifeCycle.java:48)
 at com.effektif.product.engine.EngineDependencies.start(EngineDependencies.java:263)
 at com.effektif.EffektifServlet.init(EffektifServlet.java:72)
 at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1142)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4956)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5270)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:744)
 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1135)
 at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1869)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.RuntimeException: com.mongodb.MongoQueryException: Query failed with error code 9 and error message 'Failed to parse: { find: "events", snapshot: true, filter: { $or: [ { type: "caseClose" }, { type: "caseCancel" } ] }, $db: "signavio" }. Unrecognized field 'snapshot'.' on server localhost:27017
 at com.effektif.db.migration.LockingDbExecutor.execute(LockingDbExecutor.java:40)
 at com.effektif.product.engine.ApplicationLifeCycle.migrateDatabase(ApplicationLifeCycle.java:185)
 ... 20 more
 Caused by: com.mongodb.MongoQueryException: Query failed with error code 9 and error message 'Failed to parse: { find: "events", snapshot: true, filter: { $or: [ { type: "caseClose" }, { type: "caseCancel" } ] }, $db: "signavio" }. Unrecognized field 'snapshot'.' on server localhost:27017
 at com.mongodb.operation.FindOperation$1.call(FindOperation.java:521)
 at com.mongodb.operation.FindOperation$1.call(FindOperation.java:510)
 at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:431)
 at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:404)
 at com.mongodb.operation.FindOperation.execute(FindOperation.java:510)
 at com.mongodb.operation.FindOperation.execute(FindOperation.java:81)
 at com.mongodb.Mongo.execute(Mongo.java:836)
 at com.mongodb.Mongo$2.execute(Mongo.java:823)
 at com.mongodb.DBCursor.initializeCursor(DBCursor.java:870)
 at com.mongodb.DBCursor.hasNext(DBCursor.java:142)
 at com.effektif.db.migrations.Migration_067_CaseCloseTime.addCaseCloseTimes(Migration_067_CaseCloseTime.java:36)
 at com.effektif.db.migrations.Migration_067_CaseCloseTime.execute(Migration_067_CaseCloseTime.java:25)
 at com.effektif.db.migration.DefaultDbMigration.execute(DefaultDbMigration.java:42)
 at com.effektif.db.migration.Migrator.doExecute(Migrator.java:211)
 at com.effektif.db.migration.LockingDbExecutor.execute(LockingDbExecutor.java:34)
 ... 21 more


Solution:


Es wurde eine höhere MongoDB Version verwendet, als MongoDB Version 3.4.x oder Version 3.6.x.

Höhere Datenbankversionen werden nicht unterstützt, daher muss eine der unterstützen Versionen verwendet werden.

Die einzige Ausnahme ist die Version 3.99.5 des Workflow Accelerators, diese unterstützt MongoDB 4.0. Die Version 4.2 wird jedoch nicht unterstützt.