How to Upgrade Camunda

Hi All,

We are trying to upgrade Camunda from 7.9.0 to the latest. We are using the Wildfly version 20.0.1. Final.
I have downloaded the camunda-bpm-wildfly-7.13.0.zip from (https://downloads.camunda.cloud/release/camunda-bpm/wildfly/7.13/camunda-bpm-wildfly-7.13.0.zip)
according to the Readme file, it says that this Camanda 7.14.0 version is compatible with this.
Camunda BPM platform version: 7.14.0
Wildfly Application Server version: 20.0.1.Final
I have taken the following war files to deploy:
camunda-engine-rest-7.14.0-wildfly.war
camunda-webapp-jboss-7.14.0.war

But deployment failed and getting the following error:

11:15:40,225 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment camunda-webapp-jboss-7.14.0.war (runtime-name: camunda-webapp-jboss-7.14.0.war) in 18ms
e.StartException in service jboss.module.service.“deployment.camunda-webapp-jboss-7.14.0.war”.main: WFLYSRV0179: Failed to load module: deployment.camunda-webapp-jboss-7.14.0.war
at org.jboss.as.server@12.0.3.Final//org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:116)
at org.jboss.msc@1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc@1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc@1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.jboss.modules.ModuleNotFoundException: org.camunda.bpm.camunda-engine
at org.jboss.modules.Module.addPaths(Module.java:1266)
at org.jboss.modules.Module.link(Module.java:1622)
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1650)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:299)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:283)
at org.jboss.as.server@12.0.3.Final//org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:93)
… 8 more

Did you update the database?

Thanks for your prompt response, This is the current status of the deployment folder
camunda-engine-rest-7.14.0-wildfly.war
camunda-h2-webapp-7.14.0.war
camunda-webapp-jboss-7.14.0.war
camunda-engine-rest-7.14.0-wildfly.war.failed
camunda-h2-webapp-7.14.0.war.deployed
camunda-webapp-jboss-7.14.0.war.failed

Both the failed ones showing the same error message:
{“WFLYCTL0080: Failed services” => {“jboss.module.service."deployment.camunda-engine-rest-7.14.0-wildfly.war".main” => “WFLYSRV0179: Failed to load module: deployment.camunda-engine-rest-7.14.0-wildfly.war
Caused by: org.jboss.modules.ModuleNotFoundException: org.camunda.bpm.camunda-engine”}}

@Yashpal_Negi
Did you execute the database update steps(applied the database patches)?

Hi Alex,

According to this link Patch Level Update | docs.camunda.org
7.14 engine_7.14_patch_7.14.2_to_7.14.3.sql affected only Oracle DB right?

Sorry I am new to Camunda so might be I am getting this wrong, can you please suggest what I need to do to upgrade Camunda (current version 7.9.0) to version compatible on the Wildfly 20.0.1?
thanks

@Yashpal_Negi
There are two main parts, database update and application update.
a.
You need to execute all in-between versions from the initial database version to the target one.
In other words, you have to execute all database minor version updates and then major version upgrades between 7.9 to 7.13.

b.
Once finished you can upgrade to the targeted application version directly(7.13).

Please review the following instructions to get more details Update and Migration | docs.camunda.org

@Alex_Voloshyn
Reason to upgrade the Camunda because we have recently upgraded Java version from 8 to 11, need to upgrade the Wildfly from v10 to V20.0.1.FinaL,
We have some micro services which need the Camunda war to get deploy along with that context. so the context need the wars which should be compatible with Wildfly version 20.0.1. I don’t thing we need a database update right?

@Yashpal_Negi
You mentioned that “We are trying to upgrade Camunda from 7.9.0 to the latest”.
I might be missing something here but upgrade guide 7.13 to 7.14 states that for the entire procedure, refer to the update guide where the second step is “Database Updates”. If it’s correct then a similar logic is applied for your case and update Process Engine version from 7.9 to 7.14.

1 Like

After an upgrade from Camunda ver from 7.9 to 7.14, applied the DB patches but getting the following error

13:44:17,546 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread)  WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "camunda-bpm-platform"),
    ("process-engines" => "default")
]) - failure description: {"WFLYCTL0080: Failed services" => {"org.camunda.bpm.platform.process-engine.default" => "org.camunda.bpm.engine.ProcessEngineException: An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace.
    Caused by: org.camunda.bpm.engine.ProcessEngineException: An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace.
    Caused by: org.apache.ibatis.exceptions.PersistenceException:
### Error querying database.  Cause: org.postgresql.util.PSQLException: ERROR: permission denied for table act_ge_property
### The error may exist in org/camunda/bpm/engine/impl/mapping/entity/Property.xml
### The error may involve org.camunda.bpm.engine.impl.persistence.entity.PropertyEntity.selectProperty-Inline
### The error occurred while setting parameters
### SQL: select * from ACT_GE_PROPERTY where NAME_ = ?
### Cause: org.postgresql.util.PSQLException: ERROR: permission denied for table act_ge_property
    Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for table act_ge_property"}}