Orthanc systematically crashes on startup when I add the DicomWeb section to the configuration. Without this section, Orthanc starts normally, but I can’t connect from OHIF Viewer.
Configuration:
OS: Ubuntu 24.04
Orthanc: Installed via apt install orthanc orthanc-webviewer orthanc-dicomweb
OHIF Viewer: Latest version
Orthanc configuration file (/etc/orthanc/orthanc.json):
{“Name”: “Orthanc”,“StorageDirectory”: “/var/lib/orthanc/db-v6”,“HttpServerEnabled”: true,“HttpPort”: 8042,“DicomServerEnabled”: true,“DicomAet”: “ORTHANC”,“DicomPort”: 4242,“RemoteAccessAllowed”: true,“HttpHeaders”: {“Access-Control-Allow-Origin”: “*”,“Access-Control-Allow-Methods”: “GET, POST, PUT, DELETE, OPTIONS”,“Access-Control-Allow-Headers”: “Authorization, Content-Type, Accept, Origin”},
“DicomWeb”: {“Enable”: true,“Root”: “/dicom-web/”,“EnableWado”: true,“WadoRoot”: “/dicom-web/”,“Host”: “localhost”,“Port”: 8042,“StowMaxSize”: 0,“AllowOrigin”: [“http://localhost:3000”],“AllowDelete”: true
}
}
Hello,
Here is what I tested:
# start a new ubuntu "machine"
docker run -it ubuntu:24.04
apt-get update && apt-get install -y orthanc orthanc-webviewer orthanc-dicomweb nano
mv /etc/orthanc/orthanc.json /etc/orthanc/orthanc.json_orig
nano /etc/orthanc/orthanc.json
#paste the modified config file and save
Orthanc /etc/orthanc/orthanc.json
Orthanc starts correctly …
Modified config file:
{
"Name": "Orthanc",
"StorageDirectory": "/var/lib/orthanc/db-v6",
"HttpServerEnabled": true,
"HttpPort": 8042,
"DicomServerEnabled": true,
"DicomAet": "ORTHANC",
"DicomPort": 4242,
"RemoteAccessAllowed": true,
// inexistant config, probably an AI hallucination !
"HttpHeaders": {"Access-Control-Allow-Origin": "*","Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS","Access-Control-Allow-Headers": "Authorization, Content-Type, Accept, Origin"},
"Plugins" : [
"/usr/share/orthanc/plugins/"
],
"DicomWeb": {
"Enable": true,
"Root": "/dicom-web/",
"EnableWado": true,
"WadoRoot": "/dicom-web/",
"Host": "localhost",
"Port": 8042,
"StowMaxSize": 0,
// inexistant config, probably an AI hallucination !
"AllowOrigin": ["http://localhost:3000"],
// inexistant config, probably an AI hallucination !
"AllowDelete": true
}
}
Hope this helps,
Alain