C-find request failed, error with database engine

Hello everyone,
I need help with a very annoying problem that happens quite often on orthanc.

Basically, randomly, orthanc no longer responds to FIND requests, and you are forced to restart it. Once restarted, however, it gives us an error related to the database, “Error with the database engine”, and to restart it we are forced to restart postgresql.

From postgresql the only message we get is:
2025-03-19 16:48:03.110 CET [3657388] LOG: background worker “logical replication launcher” (PID 3657396) exited with exit code 1
2025-03-19 16:48:04.192 CET [3657388] LOG: background worker “parallel worker” (PID 1470361) exited with exit code 1
2025-03-19 16:48:06.533 CET [3657388] LOG: background worker “parallel worker” (PID 1470360) exited with exit code 1

The postgres version is 14.
The postgresql-index plugin is the 7.1
while the version of orthanc is 1.12.6

What could the problem depend on? a first test we wanted to do is to update the database from version 14 to the latest, which is 17. Other suggestions?
Thanks a lot in advance.

Hi @fabrizioferrara

I would first, as expected, have a look at Orthanc and PostgreSQL logs in verbose mode during the first failures - not once the system is “dead”.

If you have some postgreSQL replication, I would also disable it to see if that helps.

Best,

Alain