Stream: trifolia-on-fhir
Topic: Running with Docker File
Jawahardath Thangirala (Apr 16 2020 at 03:53):
Hi Team..
I am trying to run the Trifolia workbench as per instructions https://github.com/lantanagroup/trifolia-on-fhir
but the node server is unable to access.
As per the log it is listenting at port 49366 but it is not connected.
I AM RUNNING WITH DOCKER FILE and Having issue.
Here are the commands:
docker build --tag tof:mytrifolia1.0 .
docker run -p 49366:49366 fc7196663a91
Below is the log and attached is the image.
In the attached image, the node is running and when I access http://localhost:49366 .. it says the page isn't working
can you please guide?
Thank You In advance! Annotation-2020-04-15-234800.png Annotation-2020-04-15-235717.png
Sean McIlvenna (May 01 2020 at 13:29):
Hi @Jawahardath Thangirala
Apologies for the delay. Were you able to get this working?
Sean McIlvenna (May 01 2020 at 13:31):
And FYI, the Lantana staff monitor the support portal for ToF pretty carefully: https://trifolia.atlassian.net/servicedesk/customer/portal/3
I'm not as good at checking on Zulip, though I try to be.
Lukas Schmierer (Nov 12 2020 at 13:47):
Hey @Jawahardath Thangirala,
how did you resolve this issue? I am experiencing the same.
Sean McIlvenna (Nov 12 2020 at 15:51):
Are you running in an environment that maps the docker machine to localhost? Some docker configurations assign the docker machine to a different IP address...
Lukas Schmierer (Dec 01 2020 at 10:12):
Sorry for the late response, I have looked into that and tried another Linux machine as well. The IP mapping does not seem to be the issue as I can access the other two services (HAPI and Keycoak) on localhost.
I have published my configuration in a GitHub repository: https://github.com/lschmierer/trifolia_hapi
One thing to point out is that on https://github.com/lantanagroup/trifolia-on-fhir/wiki/Docker-Services the config path is stated as /tof/apps/server/config
while in the Docker container the ToF
folder is spelled with uppercased T and F.
However, that did not fix my issue. I can still not access Trifolia on http://localhost:49366
Lukas Schmierer (Dec 07 2020 at 14:21):
Alright, I was able to resolve the issue. In the default config file, the hostname was set to "localhost". This makes the port accessible from within the Docker container, but not from the outside. Changing it to "0.0.0.0" or the respective full hostname fixes the issue.
@Sean McIlvenna it might make sense to note this as troubleshooting adivce more prominentely in the Readme or the Github Wiki. I have just seen that "0.0.0.0" is recommended here https://github.com/lantanagroup/trifolia-on-fhir/wiki/Configuration
Sean McIlvenna (Dec 08 2020 at 15:56):
@Lukas Schmierer , I've actually changed this in the default.json config file so that it is pre-configured to 0.0.0.0
. I think it makes sense to use that instead of localhost
... We're planning a 2.0.0 release this week, and it won't be part of that release. But, it will be part of the 2.1.0 release in a few more weeks.
Last updated: Apr 12 2022 at 19:14 UTC