OnStoredInstance is not called on Lua and Python plugin

Hi everyone,

I start using Orthanc 4 months ago, I notice some performance degradation when viewing study with lots of image, so I decide to migrate to new server.

I implement load balance using 3 osimis/orthanc image just like in the github sample, here is the details of the setup:

  • 1 container used to accept dicom with “HttpServerEnabled” : false, and only expose port 4242.
  • 2 container to view with “DicomServerEnabled” : true, exposed through nginx with load balance settings

The setup is running fine, until I want to enable callback OnStoredInstance, I add lua script on container dicom but it seems it’s not called, I also use python script but looks like it’s not called either, the script is running fine for other callback, the script content is copying from python plugin documentation.

Hi,

In python, you must register it with orthanc.RegisterOnStoredInstanceCallback(OnStoredInstance)

Make sure it is installed on all containers …

Best regards,

Alain