Cannot write DICOM file to memory

Hi,

I am facing issue “Cannot write DICOM file to memory” on only storing Specific images within orthanc When I enabl Google Bucket Plugin with orthanc,

When I remove/disable Google Bucket Plugin within Orthanc, and activate local drive with orthac.then all Images are storing within Local Drive successfully without generating error, “Cannot write DICOM file to memory
Exception while storing DICOM: Internal error

A Sample dicom images attached herewith.

Please any Suggestion/Guide.?

1.2.840.113781.284.2108090951.49780.107.0.dcm (346 KB)

When I anonomize same images and try to send anonymized images to orthanc, it stores successfully but generating this error:

E0809 17:40:01.214219 PluginsManager.cpp:197] Exception while invoking plugin service 3010: Error in the plugin implementing a custom storage area
E0809 17:40:01.214874 PluginsManager.cpp:164] (SeriesController) Orthanc::OrthancException 7/404 Accessing an inexistent item
E0809 17:40:01.260835 PluginsManager.cpp:164] Google Cloud Storage: error while reading object 260fd3f4-4523-4923-9e61-cd4619f8e874: error while getting the size of orthanc/260fd3f4-4523-4923-9e61-cd4619f8e874.dcm.head: Permanent error in GetObjectMetadata: {
“error”: {
“code”: 404,
“message”: “No such object: chntsdw1/orthanc/260fd3f4-4523-4923-9e61-cd4619f8e874.dcm.head”,
“errors”: [
{
“message”: “No such object: chntsdw1/orthanc/260fd3f4-4523-4923-9e61-cd4619f8e874.dcm.head”,
“domain”: “global”,
“reason”: “notFound”
}
]
}
}

E0809 17:40:01.261153 PluginsManager.cpp:197] Exception while invoking plugin service 3010: Error in the plugin implementing a custom storage area
E0809 17:40:01.261508 PluginsManager.cpp:164] (SeriesController) Orthanc::OrthancException 7/404 Accessing an inexistent item

Hi,

First of all, sorry for the late answer.

I’ve just updated the object-storage plugins to 1.3.3 to hopefully solve your second message issue: error while accessing .dcm.head file. There’s a dedicated option to solve that issue:

The EnableLegacyUnknownFiles configuration has been introduced to allow recent version of the plugins (from 1.3.3) continue working with data that was saved with Orthanc version around 1.9.3 and plugins version around 1.2.0 (e.g. osimis/orthanc:21.5.1 docker images). With these specific versions, some .unk files were generated instead of .dcm.head files. With this configuration option enabled, when reading files, the plugin will try both file extensions. If you have .unk files in your storage, you must enable this configuration.

Concerning your first issue “Cannot write DICOM file to memory”, I’ve not been able to reproduce it with the latest version of the plugin and your test image. Could you give it a try on your side and possibly provide more detailed steps to reproduce it ?

Best regards,

Alain.