Orthanc upload freezes

Hi,

I am using Orthanc inside a docker container on my PC, together with Keycloak and auth service.

If I try to load more than one folder simultaneously, sometimes it freezes as in the picture:

The progress pointed by the red arrow is stuck and If I refresh the page, the DICOM series are not completed loaded. As you can see I don’t have any errors in console neither in the Orthanc log. My Orthanc version is 25.4.2.

These are my configuration files:

Orthanc.json

{

  "Name": "Orthanc Server",

  "StorageDirectory": "/var/lib/orthanc/db",

  "IndexDirectory": "/var/lib/orthanc/db",

  "RemoteAccessAllowed": true,

  "OverwriteInstances": true,

  "Plugins": [

    "/run/orthanc/plugins",

    "/usr/share/orthanc/plugins"

  ],

  "Gdcm": {

    "Throttling": 4,

    "RestrictTransferSyntaxes": [

      "1.2.840.10008.1.2.4.90",

      "1.2.840.10008.1.2.4.91",

      "1.2.840.10008.1.2.4.92",

      "1.2.840.10008.1.2.4.93"

    ]

  },

  "RestApiWriteToFileSystemEnabled": false,

  "DicomServerEnabled" : false

}

Orthanc-auth-plugins.json:

{
  "AuthenticationEnabled": false,
  "OrthancExplorer2": {
    "Enable": true,
    "IsDefaultOrthancUI": true,
    "UiOptions": {
      "EnableOpenInOhifViewer3": true,
      "EnableDeleteResources": true,
      "EnableAnonymization": false,
      "EnableModification": false,
      "EnableLinkToLegacyUi": false,
      "EnableEditLabels": false,
      "EnableLabelsCount": false
    },
    "Keycloak": {
      "Enable": true,
      "Realm": "orthanc",
      "ClientId": "orthanc"
    }
  },
  "DicomWeb": {
    "Enable": true,
    "PublicRoot": "/dicom-web/"
  },
  "OHIF": {
    "DataSource": "dicom-web",
    "RouterBasename": "/ohif/"
  },
  "Indexer": {
    "Enable": true,
    "Folders": [
      "/var/lib/orthanc/filesystem"
    ],
    "Interval": 10
  },
  "Authorization": {
    "StandardConfigurations": [
      "orthanc-explorer-2",
      "ohif"
    ],
    "TokenHttpHeaders": [
      "api-key"
    ],
    "CheckedLevel": "studies"
  },
  "PythonPluginsEnabled": true,
  "PythonScript": "/etc/orthanc/instance-label.py"
}

Overwritten by the docker compose parameters:

environment:
      # General configuration
      NO_JOBS: "true"
      VERBOSE_STARTUP: "true"
      VERBOSE_ENABLED: "true"
      TRACE_ENABLED: "true"

      # Orthanc server name
      ORTHANC__NAME: "My Orthanc 01"

      # DICOMweb plugin configuration
      DICOM_WEB_PLUGIN_ENABLED: "true"
      ORTHANC__DICOM_WEB__PUBLIC_ROOT: "/orthanc-01/dicom-web/"

      # OHIF Viewer plugin configuration
      OHIF_PLUGIN_ENABLED: "true"
      ORTHANC__OHIF: |
        {
          "RouterBasename": "/orthanc-01/ohif/",
          "DataSource" : "dicom-web"
        }
      
      # Explorer2 plugin configuration
      ORTHANC__ORTHANC_EXPLORER_2__KEYCLOAK__URL: "https://localhost/keycloak/"
      #ORTHANC__ORTHANC_EXPLORER_2__KEYCLOAK__URL: "http://localhost/keycloak/"
      ORTHANC__ORTHANC_EXPLORER_2__KEYCLOAK__REALM: "orthanc"
      ORTHANC__ORTHANC_EXPLORER_2__KEYCLOAK__CLIENT_ID: "orthanc"
      ORTHANC__ORTHANC_EXPLORER_2__UI_OPTIONS__OHIF_VIEWER_3_PUBLIC_ROOT: "https://localhost/orthanc-01/ohif/"
      #ORTHANC__ORTHANC_EXPLORER_2__UI_OPTIONS__OHIF_VIEWER_3_PUBLIC_ROOT: "http://localhost/orthanc-01/ohif/"
      ORTHANC__ORTHANC_EXPLORER_2__UI_OPTIONS__ENABLE_DELETE_RESOURCES: "true"
      ORTHANC__ORTHANC_EXPLORER_2__UI_OPTIONS__ENABLE_CHANGE_PASSWORD: "false"
      ORTHANC__ORTHANC_EXPLORER_2__UI_OPTIONS__ENABLE_EDIT_LABELS: "true"

      # Authorization configuration
      ORTHANC__AUTHORIZATION__WEB_SERVICE_ROOT_URL: "http://orthanc-auth-service:8000/"
      ORTHANC__AUTHORIZATION__WEB_SERVICE_USERNAME: "share-user"
      ORTHANC__AUTHORIZATION__WEB_SERVICE_PASSWORD: "change-me"
      ORTHANC__AUTHORIZATION__WEB_SERVICE_IDENTIFIER: "orthanc-01"

Any suggestion? Is there something that can interrupt the upload?
Thank you,
Lorenzo

I have this problem when our site is proxied by Cloudflare, they have max upload size limitation for free websites, definitely worth a check there.

If you have other reverse proxy such as nginx, check options such as:

And see if it needs to be increased.

Meanwhile, a timeout and a 413 content too large is different, if you can capture the response from networks panel in developer tools it will help identify the issue.