Dicom Modalities In Database not persistent

Hello everyone,

I am experiencing an issue with Orthanc. Although the “DicomModalitiesInDatabase” property is set to “true”, any modification made to the orthanc.json file (such as changing the web port) results in the loss of the configured modalities in the database.

Has anyone else encountered this problem? Any advice or solutions would be greatly appreciated.

Thank you!

Hi,

This can be caused if you are using a MySQL/Postgres database plug in and don’t have a DatabaseServerIdentifier specified in your configuration file. see orthanc: 5e99cf9eebcf OrthancServer/Resources/Configuration.json

The modalities are stored in the database linked against this identifier. If it changes (which it can when running in a container or different servers), then the modalities will not persist correctly.

Hope that helps.

James

1 Like

Hi James, thanks for the fast reply.

I use orthanc as a linux service, since i install it by the “apt install” command, so i don’t have any container running, so which identifier should i set? i use postgresql as database engine

Hello,

Could it be that your MySQL/PostgreSQL database is simply started without persistence? If you are using PostgreSQL, check out the PGDATA configuration option.

Regards,
Sébastien-