Camunda process gone after server restart

I’m using springboot for starting the process and so on. But when I restart the server, the previous processes are not available. How to persist the process even after restart

How have you created your spring boot application?
What are you using as a database?

I created using start.camunda.org
Using h2 db

And so after your restart the application has not persisted the process instances?

Yes. Exactly

Sure - that’s because we create an in-momory h2 database.
If you want change that in order to have the h2 DB saved to disc you need to go to the application.yaml and change the datasource url string to something like this:
spring.datasource.url=jdbc:h2:file:/data/demo

That should work.

Okay. Thanks Niall. I’ll check it out. Your youtube tutorials were useful. Thanks for that as well :slight_smile:

1 Like