Startup stalls at "storage area" message

Hello,

Orthanc seems to have stalled/ paused during startup at the point where the logs display “ServerIndex.cpp:1662] At most 1300000MB will be used for the storage area”.

I am using the latest Docker osimis/orthanc container image with PostgreSQL for indexing, and the file system for storage. The volume I am using has 8TB+ free space.

I have applied the environment variable “ORTHANC__MAXIMUM_STORAGE_SIZE: 1300000” to limit storage space to 1.3TB. There is already approximately 1.8TB of Orthanc data present on the volume.

I understand that when Orthanc restarts it will delete the oldest Patients until the correct storage size has been reached. Is this correct?

Should I continue to wait for the patients/ studies to be deleted, or do I have an error?

Thank you for your help!

My Orthanc logs (from Docker) look like this…

orthanc_1 | Startup command: Orthanc /tmp/orthanc.json
orthanc_1 | W0108 12:37:40.721401 main.cpp:1776] Orthanc version: 1.8.2
orthanc_1 | W0108 12:37:40.721686 OrthancConfiguration.cpp:62] Reading the configuration from: “/tmp/orthanc.json”
orthanc_1 | W0108 12:37:40.763913 FromDcmtkBridge.cpp:298] Loading external DICOM dictionary: “/usr/share/libdcmtk14/dicom.dic”
orthanc_1 | W0108 12:37:40.787766 FromDcmtkBridge.cpp:298] Loading external DICOM dictionary: “/usr/share/libdcmtk14/private.dic”
orthanc_1 | W0108 12:37:40.814958 main.cpp:852] Loading plugin(s) from: /usr/share/orthanc/plugins/
orthanc_1 | W0108 12:37:40.841277 PluginsManager.cpp:269] Registering plugin ‘osimis-web-viewer’ (version 1.4.2.0-9d9eff4)
orthanc_1 | W0108 12:37:40.841360 PluginsManager.cpp:168] Initializing the Web viewer
orthanc_1 | W0108 12:37:40.841872 PluginsManager.cpp:168] Using GDCM instead of the DICOM decoder that is built in Orthanc
orthanc_1 | W0108 12:37:40.842436 PluginsManager.cpp:269] Registering plugin ‘worklists’ (version 1.8.2)
orthanc_1 | W0108 12:37:40.842469 PluginsManager.cpp:168] Sample worklist plugin is initializing
orthanc_1 | W0108 12:37:40.842773 PluginsManager.cpp:168] The database of worklists will be read from folder: /var/lib/orthanc/worklists
orthanc_1 | W0108 12:37:40.846545 PluginsManager.cpp:269] Registering plugin ‘python’ (version 3.0)
orthanc_1 | W0108 12:37:40.846591 PluginsManager.cpp:168] Python plugin is initializing
orthanc_1 | W0108 12:37:40.846758 PluginsManager.cpp:168] The option “PythonScript” is not provided: Python scripting is disabled
orthanc_1 | W0108 12:37:40.848309 PluginsManager.cpp:269] Registering plugin ‘postgresql-storage’ (version 3.3)
orthanc_1 | W0108 12:37:40.848653 PluginsManager.cpp:168] The PostgreSQL storage area is currently disabled, set “EnableStorage” to “true” in the “PostgreSQL” section of the configuration file of Orthanc
orthanc_1 | W0108 12:37:40.866515 PluginsManager.cpp:269] Registering plugin ‘gdcm’ (version 1.2)
orthanc_1 | W0108 12:37:40.866895 PluginsManager.cpp:168] Orthanc will use GDCM to decode transfer syntax: 1.2.840.10008.1.2.4.90
orthanc_1 | W0108 12:37:40.866916 PluginsManager.cpp:168] Orthanc will use GDCM to decode transfer syntax: 1.2.840.10008.1.2.4.91
orthanc_1 | W0108 12:37:40.866926 PluginsManager.cpp:168] Orthanc will use GDCM to decode transfer syntax: 1.2.840.10008.1.2.4.92
orthanc_1 | W0108 12:37:40.866936 PluginsManager.cpp:168] Orthanc will use GDCM to decode transfer syntax: 1.2.840.10008.1.2.4.93
orthanc_1 | W0108 12:37:40.866960 PluginsManager.cpp:168] Throttling GDCM to 4 concurrent thread(s)
orthanc_1 | W0108 12:37:40.866986 PluginsManager.cpp:168] Version of GDCM: 3.0.8
orthanc_1 | W0108 12:37:40.867885 PluginsManager.cpp:269] Registering plugin ‘transfers’ (version 1.0)
orthanc_1 | W0108 12:37:40.869116 PluginsManager.cpp:269] Registering plugin ‘postgresql-index’ (version 3.3)
orthanc_1 | W0108 12:37:40.869505 main.cpp:1529] Using a custom database from plugins
orthanc_1 | W0108 12:37:40.869530 OrthancInitialization.cpp:406] Storage directory: “/var/lib/orthanc/db”
orthanc_1 | E0108 12:37:40.872491 PluginsManager.cpp:164] PostgreSQL error: FATAL: the database system is starting up
orthanc_1 |
orthanc_1 | W0108 12:37:40.872804 PluginsManager.cpp:168] Database is currently unavailable, retrying…
orthanc_1 | W0108 12:37:45.954850 HttpClient.cpp:1125] HTTPS will use the CA certificates from this file: /etc/ssl/certs/ca-certificates.crt
orthanc_1 | W0108 12:37:45.955785 LuaContext.cpp:93] Lua says: Lua toolbox installed
orthanc_1 | W0108 12:37:45.956111 LuaContext.cpp:93] Lua says: Lua toolbox installed
orthanc_1 | W0108 12:37:45.956284 ServerContext.cpp:452] Disk compression is disabled
orthanc_1 | W0108 12:37:45.956306 ServerIndex.cpp:1641] No limit on the number of stored patients
orthanc_1 | W0108 12:37:45.956663 ServerIndex.cpp:1662] At most 1300000MB will be used for the storage area

Update: Orthanc did not recover from this. I had to delete the database and the data. (Which, luckily, was backup up).