Housekeeping plugin not loading?

Hi Orthanc community,

I did define a configuration for housekeeping plugin, but is does not seem to load at startup. No trace of the plugin in startup file, except it reads the config file (should something else be present?). Trying to consult the plugin status does not work.

cat /etc/orthanc/houseKeeper.json
{
“Housekeeper”: {

// Enables/disables the plugin
“Enable”: true,

// the Global Prooperty ID in which the plugin progress
// is stored. Must be > 1024 and must not be used by
// another plugin
“GlobalPropertyId”: 1025,

// Forces execution even if the plugin did not detect
// any changes in configuration
“Force”: false,

// Delay (in seconds) between reconstruction of 2 studies
// This avoids overloading Orthanc with the housekeeping
// process and leaves room for other operations.
“ThrottleDelay”: 5,

// Runs the plugin only at certain period of time.
// If not specified, the plugin runs all the time
// Examples:
// to run between 0AM and 6AM everyday + every night
// from 8PM to 12PM and 24h a day on the weekend:
“Schedule”: {
“Monday”: [“0-6”, “20-24”],
“Tuesday”: [“0-6”, “20-24”],
“Wednesday”: [“0-6”, “20-24”],
“Thursday”: [“0-6”, “20-24”],
“Friday”: [“0-6”, “20-24”],
“Saturday”: [“0-6”, “20-24”],
“Sunday”: [“0-24”]
},

// configure events that can trigger a housekeeping processing
“Triggers” : {
“StorageCompressionChange”: true,
“MainDicomTagsChange”: true,
“UnnecessaryDicomAsJsonFiles”: true,
“IngestTranscodingChange”: true
}
}
}

Important notes:

  • Today is Sunday :wink:

  • And commenting schedule lines does not help.

  • Housekeeper config is NOT present in other config files.

cat /var/log/orthanc/orthanc.log
W0326 19:34:06.343114 main.cpp:2017] Orthanc version: 1.11.2
W0326 19:34:06.343172 OrthancConfiguration.cpp:107] Scanning folder “/etc/orthanc” for configuration files
W0326 19:34:06.343222 OrthancConfiguration.cpp:56] Reading the configuration from: “/etc/orthanc/Configuration.json”
W0326 19:34:06.359077 OrthancConfiguration.cpp:56] Reading the configuration from: “/etc/orthanc/worklists.json”
W0326 19:34:06.368176 OrthancConfiguration.cpp:56] Reading the configuration from: “/etc/orthanc/mysql.json”
W0326 19:34:06.382469 OrthancConfiguration.cpp:56] Reading the configuration from: “/etc/orthanc/houseKeeper.json”
W0326 19:34:06.397613 OrthancConfiguration.cpp:56] Reading the configuration from: “/etc/orthanc/extraTags.json”
W0326 19:34:06.407221 OrthancConfiguration.cpp:56] Reading the configuration from: “/etc/orthanc/serve-folders.json”
W0326 19:34:06.438154 FromDcmtkBridge.cpp:380] Loading external DICOM dictionary: “/usr/share/dcmtk/dicom.dic”
W0326 19:34:06.447842 FromDcmtkBridge.cpp:380] Loading external DICOM dictionary: “/usr/share/dcmtk/private.dic”
W0326 19:34:06.490281 main.cpp:911] Loading plugin(s) from: /usr/share/orthanc/plugins
W0326 19:34:06.501351 PluginsManager.cpp:258] Registering plugin ‘mysql-index’ (version 4.3)
W0326 19:34:06.502120 PluginsManager.cpp:157] The index plugin will use 3 connection(s) to the database, and will retry up to 10 time(s) in the case of a collision
W0326 19:34:06.507035 PluginsManager.cpp:258] Registering plugin ‘mysql-storage’ (version 4.3)
W0326 19:34:06.508190 PluginsManager.cpp:157] The MySQL storage area is currently disabled, set “EnableStorage” to “true” in the “MySQL” section of the configuration file of Orthanc
W0326 19:34:06.591725 PluginsManager.cpp:258] Registering plugin ‘gdcm’ (version 1.5)
W0326 19:34:06.591986 PluginsManager.cpp:157] Version of GDCM: 3.0.20
W0326 19:34:06.591995 PluginsManager.cpp:157] GDCM throttling is disabled
W0326 19:34:06.596169 PluginsManager.cpp:258] Registering plugin ‘delayed-deletion’ (version 1.11.2)
W0326 19:34:06.596508 PluginsManager.cpp:157] DelayedDeletion - plugin is loaded but not enabled (no “DelayedDeletion” section found in configuration)
W0326 19:34:06.617359 PluginsManager.cpp:258] Registering plugin ‘connectivity-checks’ (version 1.11.2)
W0326 19:34:06.630460 PluginsManager.cpp:258] Registering plugin ‘dicom-web’ (version 1.10)
W0326 19:34:06.649273 PluginsManager.cpp:157] URI to the DICOMweb REST API: /dicom-web/
W0326 19:34:06.649611 PluginsManager.cpp:157] DICOMWeb PublicRoot: /dicom-web/
W0326 19:34:06.649623 PluginsManager.cpp:157] URI to the WADO-URI API: /wadoC
W0326 19:34:06.649641 main.cpp:1685] Using a custom database from plugins
W0326 19:34:06.649649 OrthancInitialization.cpp:504] Storage directory: “/var/lib/orthanc/OrthancStorage”
W0326 19:34:06.882096 HttpClient.cpp:1178] HTTPS will use the CA certificates from this file: /etc/orthanc
W0326 19:34:06.883178 LuaContext.cpp:94] Lua says: Lua toolbox installed
W0326 19:34:06.883725 LuaContext.cpp:94] Lua says: Lua toolbox installed
W0326 19:34:06.884346 ServerContext.cpp:482] Disk compression is disabled
W0326 19:34:06.884373 ServerIndex.cpp:381] No limit on the number of stored patients
W0326 19:34:06.884384 ServerIndex.cpp:401] No limit on the size of the storage area
W0326 19:34:06.884393 ServerIndex.cpp:420] Maximum Storage mode: Recycle
W0326 19:34:06.887657 ServerContext.cpp:224] Reloading the jobs from the last execution of Orthanc
W0326 19:34:06.889504 JobsEngine.cpp:272] The jobs engine has started with 2 threads
W0326 19:34:06.889849 main.cpp:1304] DICOM server listening with AET PACSSISV2 on port: 11111
W0326 19:34:06.889881 HttpServer.cpp:2002] HTTP compression is enabled
W0326 19:34:06.889897 main.cpp:1047] ====> Remote access is enabled while user authentication is explicitly disabled, your setup is POSSIBLY INSECURE <====
W0326 19:34:06.889909 main.cpp:1171] Remote LUA script execution is disabled
W0326 19:34:06.891465 HttpServer.cpp:1779] HTTP server listening on port: 8042 (HTTPS encryption is disabled, remote access is allowed)
W0326 19:34:06.891483 main.cpp:923] Orthanc has started

curl -X POST http://localhost:8042/housekeeper/status
{
“HttpError” : “Not Found”,
“HttpStatus” : 404,
“Message” : “Unknown resource”,
“Method” : “POST”,
“OrthancError” : “Unknown resource”,
“OrthancStatus” : 17,
“Uri” : “/housekeeper/status”
}

l /usr/share/orthanc/plugins
total 20
drwxr-xr-x 2 root root 4096 feb 12 11:15 ./
drwxr-xr-x 3 root root 4096 ene 31 10:35 …/
lrwxrwxrwx 1 root root 54 feb 2 14:37 libConnectivityChecks.so → …/…/…/lib64/orthanc/libConnectivityChecks.so.1.11.2
lrwxrwxrwx 1 root root 51 feb 2 14:37 libDelayedDeletion.so → …/…/…/lib64/orthanc/libDelayedDeletion.so.1.11.2
lrwxrwxrwx 1 root root 63 ene 31 10:35 libOrthancDicomWeb.so → …/…/…/lib64/share/orthanc/plugins/libOrthancDicomWeb.so.1.10*
lrwxrwxrwx 1 root root 58 ene 31 10:32 libOrthancGdcm.so → …/…/…/lib64/share/orthanc/plugins/libOrthancGdcm.so.1.5*
lrwxrwxrwx 1 root root 64 feb 2 15:28 libOrthancMySQLIndex.so → …/…/…/lib64/share/orthanc/plugins/libOrthancMySQLIndex.so.4.3*
lrwxrwxrwx 1 root root 66 feb 2 15:28 libOrthancMySQLStorage.so → …/…/…/lib64/share/orthanc/plugins/libOrthancMySQLStorage.so.4.3*

Does anybody have an idea of what could be wrong in my config (or setup)?

Hi Cédric,

I do not see the Housekeeper plugin being loaded (and it’s not listed in /usr/share/orthanc/plugins).

The plugin was introduced in version 1.11.0. You may get the LSB binaries from here.

HTH,

Alain.