Issue72

Title ORTHANC service refuses to start
Priority bug Status resolved
Superseder Nosy List admin
Assigned To
Keywords Orthanc Core

Created on 2017-11-08.18:32:46 by admin, last changed by admin.

Files
File name Uploaded Type Edit Remove
ORTHANC_Server_1_3_0_Start_Problem.jpg admin, 2020-06-29.15:18:17 image/jpeg
Messages
msg324 (view) Author: admin Date: 2017-11-08.18:32:46
[BitBucket date: 2017-11-08.17:32:46]

Problem: the Orthanc service stops itself after the Message "Option unsupported by the core of Orthanc --unlock"

Package: 17.7.0 Win32
Orthanc version: 1.3.0
Plattform: Win7 x64
Configuration: Default
msg325 (view) Author: admin Date: 2020-06-29.15:18:17
[Bugzilla user: s.jodogne@gmail.com]
[Bugzilla date: 2020-06-29T13:18:17+00:00]

Created attachment 82
ORTHANC_Server_1_3_0_Start_Problem.jpg
msg326 (view) Author: admin Date: 2017-11-08.18:50:38
[BitBucket user: Alain Mazy]
[BitBucket date: 2017-11-08.17:50:38]

I'm not sure to understand where this screen capture comes from !
Could you attach the last log file from `C:\Program Files (x86)\Orthanc Server\Logs` ?
msg327 (view) Author: admin Date: 2017-11-09.10:39:36
[BitBucket user: Stefan Schiele]
[BitBucket date: 2017-11-09.09:39:36]

If you give permission to let the Orthanc service interact with the desktop you can observe this message.
The log file points to the problem: If you create a backup copy of the configuration file "orthanc.json" in the same directory the Orthanc service refuses to start.
Anyway, thanks for your advise !

Log:
---
W1108 09:47:32.283203 main.cpp:1269] Orthanc version: 1.3.0
W1108 09:47:32.283203 OrthancInitialization.cpp:174] Scanning folder "Configuration" for configuration iles
W1108 09:47:32.283203 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\dicomweb.json"
W1108 09:47:32.283203 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\orig__orthanc.json"
W1108 09:47:32.283203 OrthancInitialization.cpp:126] Reading the configuration from: "Configuration\orthanc.json"
E1108 09:47:32.283203 OrthancInitialization.cpp:157] The configuration section "AllowFindSopClassesInStudy" is defined in 2 different configuration files
E1108 09:47:32.283203 main.cpp:1295] Uncaught exception, stopping now: [Bad file format] (code 15)
W1108 09:47:32.283203 main.cpp:1328] Orthanc has stopped
---
msg328 (view) Author: admin Date: 2017-11-09.10:43:28
[BitBucket user: Alain Mazy]
[BitBucket date: 2017-11-09.09:43:28]

so what happens if you rename orig_orthanc.json into orig_orthanc.json_ (so it's not loaded).  Do you still have problems ?
msg329 (view) Author: admin Date: 2017-11-09.11:12:03
[BitBucket user: Stefan Schiele]
[BitBucket date: 2017-11-09.10:12:03]

When I change the file extension to ".json_" the service starts normally. 
Side note: under Windows it's not good practise to put configuration data in the program files folder. Please consider to move this to suggested places, f.e.: 
C:\ProgramData\<Vendor>\
-> Storage location for application data that is to be shared between all users on that computer.
C:\Users\<username>\AppData\
-> Storage location for per-user application data that is exclusive to a user and should not be shared with any other user on that computer.
msg330 (view) Author: admin Date: 2017-11-09.11:41:10
[BitBucket user: Alain Mazy]
[BitBucket date: 2017-11-09.10:41:10]

noted for the storage location.

Closing the issue since the logs display an error message with the reason of the failure.
History
Date User Action Args
2026-07-29 15:51:21admincreate