Multiple Orthanc instances and Single Postgres error

Hi,

I have deployed both Orthanc and Postgres using containers with persistent volumes. Single instance everything works fine. However, when I add a second Orthanc instance I'm getting

E0820 01:47:25.643934 PluginsManager.cpp:163] Error in PostgreSQL: The database is locked by another instance of Orthanc.

and the software exit with:

E0820 01:47:26.642796 main.cpp:1252] Uncaught exception, stopping now: [Error while using a shared library (plugin)] (code 25)
W0820 01:47:26.643846 main.cpp:1285] Orthanc has stopped

What do I have to do in order to enable postgres to work with multiple Orthanc instances?

Thanks

Hi,

There is a specific ‘Lock’ setting dedicated to this particular problem. You should set it to false.
This is explained in more details here: https://orthanc.chu.ulg.ac.be/book/plugins/postgresql.html#id5