Store SCP Failed: DIMSE: Odd Fragment Length

Hello!

I’m getting this error while receiving some dicom files. Some files are uploaded ok but during the day everything stops and I just get this error.

I’m running Orthanc 17.7.0 on a windows server 2016 x64.

Here is a part of the log:

W1004 12:05:47.088979 main.cpp:1269] Orthanc version: 1.3.0
W1004 12:05:47.091979 OrthancInitialization.cpp:174] Scanning folder “Configuration” for configuration files
W1004 12:05:47.091979 OrthancInitialization.cpp:126] Reading the configuration from: “Configuration\dicomweb.json”
W1004 12:05:47.096979 OrthancInitialization.cpp:126] Reading the configuration from: “Configuration\orthanc.json”
W1004 12:05:47.133980 OrthancInitialization.cpp:126] Reading the configuration from: “Configuration\postgresql.json”
W1004 12:05:47.141980 OrthancInitialization.cpp:126] Reading the configuration from: “Configuration\serve-folders.json”
W1004 12:05:47.147980 OrthancInitialization.cpp:126] Reading the configuration from: “Configuration\webviewer.json”
W1004 12:05:47.166980 OrthancInitialization.cpp:126] Reading the configuration from: “Configuration\worklists.json”
W1004 12:05:47.171980 FromDcmtkBridge.cpp:192] Loading the embedded dictionaries
W1004 12:05:47.232978 OrthancInitialization.cpp:499] Registering JPEG Lossless codecs
W1004 12:05:47.232978 OrthancInitialization.cpp:504] Registering JPEG codecs
W1004 12:05:47.240979 main.cpp:644] Loading plugin(s) from: Configuration../Plugins/
W1004 12:05:47.244005 PluginsManager.cpp:269] Registering plugin ‘worklists’ (version 1.3.0)
W1004 12:05:47.244005 PluginsManager.cpp:168] Sample worklist plugin is initializing
W1004 12:05:47.244005 PluginsManager.cpp:168] Worklist server is disabled by the configuration file
W1004 12:05:47.264981 PluginsManager.cpp:269] Registering plugin ‘dicom-web’ (version 0.4)
W1004 12:05:47.264981 PluginsManager.cpp:168] URI to the DICOMweb REST API: /dicom-web/
W1004 12:05:47.264981 PluginsManager.cpp:168] URI to the WADO-URI API: /wado
W1004 12:05:47.269980 PluginsManager.cpp:269] Registering plugin ‘postgresql-index’ (version 2.0)
W1004 12:05:47.270981 PluginsManager.cpp:168] Using PostgreSQL index
W1004 12:05:47.270981 PluginsManager.cpp:168] Locking of the PostgreSQL database is disabled
W1004 12:05:47.312967 PluginsManager.cpp:269] Registering plugin ‘postgresql-storage’ (version 2.0)
W1004 12:05:47.313968 PluginsManager.cpp:168] The PostgreSQL storage area is currently disabled, set “EnableStorage” to “true” in the “PostgreSQL” section of the configuration file of Orthanc
W1004 12:05:47.333966 PluginsManager.cpp:269] Registering plugin ‘web-viewer’ (version 2.3)
W1004 12:05:47.333966 PluginsManager.cpp:168] Initializing the Web viewer
W1004 12:05:47.334969 PluginsManager.cpp:168] Web viewer using 1 threads for the decoding of the DICOM images
W1004 12:05:47.334969 PluginsManager.cpp:168] Storing the cache of the Web viewer in folder: D:\Orthanc\WebViewerCache
W1004 12:05:47.335969 PluginsManager.cpp:168] Web viewer using a cache of 100 MB
W1004 12:05:47.335969 PluginsManager.cpp:168] Using GDCM instead of the DICOM decoder that is built in Orthanc
W1004 12:05:47.337968 PluginsManager.cpp:269] Registering plugin ‘wsi’ (version 0.4)
W1004 12:05:47.337968 PluginsManager.cpp:168] The whole-slide imaging plugin will use at most 1 threads to transcode the tiles
W1004 12:05:47.357966 PluginsManager.cpp:269] Registering plugin ‘osimis-web-viewer’ (version 1.0.0.0-71fbc89)
W1004 12:05:47.357966 PluginsManager.cpp:168] Initializing the Web viewer
W1004 12:05:47.357966 PluginsManager.cpp:168] Using GDCM instead of the DICOM decoder that is built in Orthanc
W1004 12:05:47.360968 PluginsManager.cpp:269] Registering plugin ‘serve-folders’ (version 1.3.0)
W1004 12:05:47.361968 PluginsManager.cpp:168] ServeFolders: Empty configuration file: No additional folder will be served!
W1004 12:05:47.361968 main.cpp:1069] Using a custom database from plugins
W1004 12:05:47.361968 OrthancInitialization.cpp:1088] Storage directory: “D:\Orthanc”
W1004 12:05:47.361968 HttpClient.cpp:686] HTTPS will use the CA certificates from this file: Configuration
W1004 12:05:47.366969 LuaContext.cpp:103] Lua says: Lua toolbox installed
W1004 12:05:47.366969 ServerContext.cpp:182] Disk compression is disabled
W1004 12:05:47.366969 ServerIndex.cpp:1403] No limit on the number of stored patients
W1004 12:05:47.367969 ServerIndex.cpp:1420] No limit on the size of the storage area
W1004 12:05:47.367969 ServerScheduler.cpp:135] The server scheduler has started
W1004 12:05:47.370967 main.cpp:834] DICOM server listening with AET AETORTHANCML on port: 4242
W1004 12:05:47.370967 MongooseServer.cpp:1029] HTTP compression is enabled
W1004 12:05:47.371968 main.cpp:769] HTTP server listening on port: 8042
W1004 12:05:47.371968 main.cpp:656] Orthanc has started
E1004 12:06:56.293892 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 9153
E1004 12:08:59.526832 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 9153
E1004 12:10:58.941749 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 13415
E1004 12:11:40.518701 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15603
E1004 12:14:24.523598 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 14907
E1004 12:15:02.575554 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 14907
E1004 12:16:31.887693 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923
E1004 12:17:56.835678 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923
E1004 12:18:39.855666 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923
E1004 12:19:48.352596 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923
E1004 12:19:57.938607 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923
E1004 12:22:56.864524 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15603
E1004 12:23:32.841527 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15603
E1004 12:24:03.449511 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15603
E1004 12:24:41.694524 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15603
E1004 12:25:34.901487 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15603
E1004 12:29:20.988379 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 13415
E1004 12:29:56.593319 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 13415
E1004 12:30:34.912301 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 13415
E1004 12:30:58.470332 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 5013
E1004 12:32:56.111188 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923
E1004 12:34:56.097674 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923
E1004 12:36:55.906566 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923
E1004 12:38:56.195537 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 15923

I apreciate any help because i couldn’t find a solution online.

Best Regards,

Hello,

This error log seems to indicates that your modality produces non-compliant DICOM files. What is the manufacturer?

In order to provide guidance, we need to be able to reproduce your issue.

Please provide a sample DICOM file together with a command-line (using DCMTK or GDCM) that leads to this problem.

In order to collect a buggy DICOM file, try and use “storescp” from DCMTK, or DCM4CHEE.

Regards,
Sébastien-

Thanks for the repply. I have installed the version 1.3.0 and the problem continues.

I started it with the --verbose command and I got this log:

E1005 12:47:41.818381 StoreScp.cpp:294] Store SCP Failed: DIMSE: Odd Fragment Length: 10175
I1005 12:47:41.819362 CommandDispatcher.cpp:891] DIMSE_parseCmdObject: Missing CommandField
I1005 12:47:41.819362 CommandDispatcher.cpp:908] DIMSE failure (aborting association): DIMSE_parseCmdObject: Missing CommandField

Do you know what happened?

Best Regards,

Hello,

Please avoid posting the same text in different threads. This thread will be continued at:
https://groups.google.com/d/msg/orthanc-users/72bnGHqPurc/QcjX3dXzDAAJ

Sébastien-