Change configuration file in windows version

829 views
Skip to first unread message

don...@gmail.com

unread,
Aug 23, 2017, 2:34:52 PM8/23/17
to Orthanc Users
HI,
I am new to this forum so please forgive me if this is a very basic question.
I downloaded the Orthanc windows version and installed everything by using default setting. Now I only want to change two things:
1. I would like to change the default port from 4242 to 104
2. I want to add a few remote AE titles so that I can query/rechieve.

However, after I modified orthanc file in ./Configuration folder as instructed, and restarted the orhtanc service, it still listens to 4242 and I don't have any AE titles showed up in my query/rectrieve pull-down menu.

Log shows it reads from the configuration file:
**************************************************************************
W0823 12:03:06.301585 main.cpp:1269] Orthanc version: 1.3.0

W0823 12:03:06.301585 OrthancInitialization.cpp:174] Scanning folder "Configuration" for configuration files

W0823 12:03:06.301585 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\dicomweb.json"

W0823 12:03:06.301585 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\orthanc.json"

W0823 12:03:06.301585 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\postgresql.json"

W0823 12:03:06.301585 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\serve-folders.json"

W0823 12:03:06.317184 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\webviewer.json"

W0823 12:03:06.317184 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\worklists.json"

W0823 12:03:06.317184 FromDcmtkBridge.cpp:192] Loading the embedded dictionaries

W0823 12:03:06.348470 OrthancInitialization.cpp:499] Registering JPEG Lossless codecs

W0823 12:03:06.348470 OrthancInitialization.cpp:504] Registering JPEG codecs

W0823 12:03:06.348470 main.cpp:644] Loading plugin(s) from: Configuration\../Plugins/

W0823 12:03:06.364095 PluginsManager.cpp:269] Registering plugin 'worklists' (version 1.3.0)

W0823 12:03:06.364095 PluginsManager.cpp:168] Sample worklist plugin is initializing

W0823 12:03:06.364095 PluginsManager.cpp:168] Worklist server is disabled by the configuration file

W0823 12:03:06.364095 PluginsManager.cpp:269] Registering plugin 'dicom-web' (version 0.4)

W0823 12:03:06.364095 PluginsManager.cpp:168] URI to the DICOMweb REST API: /dicom-web/

W0823 12:03:06.364095 PluginsManager.cpp:168] URI to the WADO-URI API: /wado

W0823 12:03:06.364095 PluginsManager.cpp:269] Registering plugin 'postgresql-index' (version 2.0)

W0823 12:03:06.364095 PluginsManager.cpp:168] The PostgreSQL index is currently disabled, set "EnableIndex" to "true" in the "PostgreSQL" section of the configuration file of Orthanc

W0823 12:03:06.379695 PluginsManager.cpp:269] Registering plugin 'postgresql-storage' (version 2.0)

W0823 12:03:06.379695 PluginsManager.cpp:168] The PostgreSQL storage area is currently disabled, set "EnableStorage" to "true" in the "PostgreSQL" section of the configuration file of Orthanc

W0823 12:03:06.379695 PluginsManager.cpp:269] Registering plugin 'web-viewer' (version 2.3)

W0823 12:03:06.379695 PluginsManager.cpp:168] Initializing the Web viewer

W0823 12:03:06.379695 PluginsManager.cpp:168] Web viewer using 4 threads for the decoding of the DICOM images

W0823 12:03:06.379695 PluginsManager.cpp:168] Storing the cache of the Web viewer in folder: C:\Orthanc\WebViewerCache

W0823 12:03:06.379695 PluginsManager.cpp:168] Web viewer using a cache of 100 MB

W0823 12:03:06.379695 PluginsManager.cpp:168] Using GDCM instead of the DICOM decoder that is built in Orthanc

W0823 12:03:06.379695 PluginsManager.cpp:269] Registering plugin 'wsi' (version 0.4)

W0823 12:03:06.379695 PluginsManager.cpp:168] The whole-slide imaging plugin will use at most 8 threads to transcode the tiles

W0823 12:03:06.395348 PluginsManager.cpp:269] Registering plugin 'osimis-web-viewer' (version 1.0.0.0-71fbc89)

W0823 12:03:06.395348 PluginsManager.cpp:168] Initializing the Web viewer

W0823 12:03:06.395348 PluginsManager.cpp:168] Using GDCM instead of the DICOM decoder that is built in Orthanc

W0823 12:03:06.395348 PluginsManager.cpp:269] Registering plugin 'serve-folders' (version 1.3.0)

W0823 12:03:06.395348 PluginsManager.cpp:168] ServeFolders: Empty configuration file: No additional folder will be served!

W0823 12:03:06.395348 OrthancInitialization.cpp:1018] SQLite index directory: "C:\Orthanc"

W0823 12:03:06.395348 OrthancInitialization.cpp:1088] Storage directory: "C:\Orthanc"

W0823 12:03:06.395348 HttpClient.cpp:686] HTTPS will use the CA certificates from this file: Configuration

W0823 12:03:06.395348 ServerScheduler.cpp:135] The server scheduler has started

W0823 12:03:06.395348 LuaContext.cpp:103] Lua says: Lua toolbox installed

W0823 12:03:06.395348 ServerContext.cpp:182] Disk compression is disabled

W0823 12:03:06.395348 ServerIndex.cpp:1403] No limit on the number of stored patients

W0823 12:03:06.395348 ServerIndex.cpp:1420] No limit on the size of the storage area

W0823 12:03:06.395348 main.cpp:834] DICOM server listening with AET ORTHANC on port: 4242

W0823 12:03:06.395348 MongooseServer.cpp:1029] HTTP compression is enabled

W0823 12:03:06.410946 main.cpp:769] HTTP server listening on port: 8042

W0823 12:03:06.410946 main.cpp:656] Orthanc has started
*************************************************************************
Anybody had the similar problem and had solutions?

In addition, when I am trying to create a separate configuration setting using:
"Orthanc --config=Configuration2" command, I got the error message:

E0823 12:33:55.153772 main.cpp:1237] Cannot write sample configuration as file "configuration2"


Any idea? or it is just simply not working well under windows?

Thanks a lot for your help!

Donglai

Sébastien Jodogne

unread,
Aug 24, 2017, 11:56:50 AM8/24/17
to Orthanc Users, don...@gmail.com
Hello,

I am new to this forum so please forgive me if this is a very basic question.
I downloaded the Orthanc windows version and installed everything by using default setting. Now I only want to change two things:
1. I would like to change the default port from 4242 to 104
2. I want to add a few remote AE titles so that I can query/rechieve.

However, after I modified orthanc file in ./Configuration folder as instructed, and restarted the orhtanc service, it still listens to 4242 and I don't have any AE titles showed up in my query/rectrieve pull-down menu.

[...] Anybody had the similar problem and had solutions?


All of this works fine under Windows. This is a configuration problem.

According to your log file, either you have not modified the right files (by default, in folder "C:\Program Files (x86)\Orthanc Server\Configuration\": double-check the content of this folder, and make sure you have write permissions for files in this folder), or the log file you copied/pasted does not reflect the last execution of Orthanc (check the last file in folder "C:\Program Files (x86)\Orthanc Server\Logs\", there could be a file format error in the configuration file). Also, verify that the TCP port 104 is not used by another DICOM server (which could be started if a DICOM viewer is installed).

 

In addition, when I am trying to create a separate configuration setting using:
"Orthanc --config=Configuration2" command, I got the error message:

E0823 12:33:55.153772 main.cpp:1237] Cannot write sample configuration as file "configuration2"


Visibly, you have no write permission to this folder. Run this command as a Windows administrator, or from a working directory you have write access to (e.g. "C:\TEMP").

HTH,
Sébastien-
Reply all
Reply to author
Forward
0 new messages