Docker - "RegisteredUsers" is defined in 2 different configuration files

I was able to build a docker image but when I run it I get an error and the container stops,

Not sure what is going on or here or the best way to push configurations up to docker images.

Thanks for any and all help

docker run -t -p 8042:8042 -p 4242:4242 docker-orthanc-img
W0316 21:47:48.738805 main.cpp:1992] Option unsupported by the core of Orthanc: -verbose
W0316 21:47:48.738997 main.cpp:2018] Orthanc version: mainline (20230316T212145)
I0316 21:47:48.739023 main.cpp:2050] Architecture: 64-bit, little endian
W0316 21:47:48.739678 OrthancConfiguration.cpp:108] Scanning folder “/etc/orthanc/” for configuration files
W0316 21:47:48.739768 OrthancConfiguration.cpp:57] Reading the configuration from: “/etc/orthanc/python.json”
W0316 21:47:48.740099 OrthancConfiguration.cpp:57] Reading the configuration from: “/etc/orthanc/postgresql.json”
W0316 21:47:48.740325 OrthancConfiguration.cpp:57] Reading the configuration from: “/etc/orthanc/dicomweb.json”
W0316 21:47:48.740598 OrthancConfiguration.cpp:57] Reading the configuration from: “/etc/orthanc/worklists.json”
W0316 21:47:48.740803 OrthancConfiguration.cpp:57] Reading the configuration from: “/etc/orthanc/credentials.json”
E0316 21:47:48.740969 OrthancException.cpp:61] Bad file format: The configuration section “RegisteredUsers” is defined in 2 different configuration files
E0316 21:47:48.741123 main.cpp:2075] Uncaught exception, stopping now: [Bad file format] (code 15)
W0316 21:47:48.741208 main.cpp:2106] Orthanc has stopped
root@ip-10-0-0-118:/var/lib/docker/overlay2/t6y9i25u6jdi4ke5es8qoix5x/diff/etc/orthanc#
root@ip-10-0-0-118:/var/lib/docker/overlay2/t6y9i25u6jdi4ke5es8qoix5x/diff/etc/orthanc# find / -name credentials.json
/var/lib/docker/overlay2/t6y9i25u6jdi4ke5es8qoix5x/diff/etc/orthanc/credentials.json
/var/lib/docker/overlay2/35zu4nrardpjz48ztzj1xxcup/diff/credentials.json
/configs/credentials.jso

Hello,

Nobody can provide any help if you don’t give access to your image “docker-orthanc-img” or to its source code.

That being said, the error message is pretty clear, and you should be able to identify the issue by yourself by typing:

$ grep RegisteredUsers /etc/orthanc/*

Regards,
Sébastien-

Hey David,

It looks like two of your config files have the RegisteredUsers object definition. I’m guessing that you have it in both credentials.json and dicomweb.json? Search your config files for RegisteredUsers and make sure it’s only defined on one of them instead of multiple.

Thanks fro the feedback. I should have replied.
Yes, somehow during a cut and paste or ?? I ended up with code from the credentials.json along with some other garbage in the dicomweb.json file.
I cleaned up dicomweb.json and fixed the problem.

I am now attempting to get a container to run.