FHIR Chat · Locally Installed Resource Validator · inferno

Stream: inferno

Topic: Locally Installed Resource Validator


view this post on Zulip Fred Harmon (Sep 21 2020 at 15:32):

I see that the public version of inferno has the ability to do resource validation here https://inferno.healthit.gov/validator/.

When I install and run locally, when I go to this page http://localhost:4567/inferno/ it matches what I see on the hosted version of https://inferno.healthit.gov/community. I can't seem to find how to get to my locally installed version of the resource validator and there isn't a link to it from that homepage.

Is this available locally?

view this post on Zulip Robert Scanlon (Sep 21 2020 at 16:12):

There is a way, but I'm not sure how well we have documented standing it up outside of inferno.healthit.gov. @Reece Adamson @Michael O'Keefe

view this post on Zulip Fred Harmon (Sep 21 2020 at 16:24):

Gotcha. Not sure if there are any actual benefits to running it locally was just curious. I'll plan to use the online version for now. Thanks for the response.

view this post on Zulip Reece Adamson (Sep 22 2020 at 13:00):

@Fred Harmon you can find instructions for running the validator app here: https://github.com/inferno-community/fhir-validator-app. You can also navigate here by clicking the "Open Source" link in the footer on the hosted instance.

Cloning that repo and running docker-compose up --build will get you set up with the frontend app and backend validation service.

Let me know if you have any questions or run into any issues!

view this post on Zulip Fred Harmon (Sep 22 2020 at 13:19):

@Reece Adamson

ERROR: for fhir-validator-app_fhir_validator_app_1 Cannot start service fhir_validator_app: Ports are not available: listen tcp 0.0.0.0:80: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

I see in docker-compose.yml the fhir-validator-app is set with the below. Can I change this to anything?

ports:

  - "80:80"

view this post on Zulip Reece Adamson (Sep 22 2020 at 13:44):

Yup, feel free to change the port mapping.

e.g. if you'd rather publish to port 8081 on your machine instead you would use

ports:
    - "8081:80"

If you are going to change the published port the of the fhir_validator_service (set to port 4567 by default) as well just be sure to update the EXTERNAL_VALIDATOR_URL environment variable on the fhir_validator_app accordingly so that the webapp knows where to find it.

view this post on Zulip Fred Harmon (Sep 22 2020 at 16:05):

Getting this error and the app doesn't seem to work.

fhir_validator_app_1 | standard_init_linux.go:211: exec user process caused "no such file or directory"
fhir-validator-app_fhir_validator_app_1 exited with code 1

view this post on Zulip Reece Adamson (Sep 22 2020 at 16:24):

Did you clone with or use a windows machine for this? Based on some cursory googling it looks like this is a common error with Docker where windows changes the new line to use CRLF (vs. LF) which breaks things when trying to run in the linux Docker environment.

You should be able to confirm/deny this through a git diff. If this is the case, you'll need to restore the line endings to the Unix/Unix-like format (it also is possible to update your git config to prevent this from happening automatically on Windows)

view this post on Zulip Fred Harmon (Sep 22 2020 at 16:51):

I did clone on Windows. I'll look into that. Thanks.


Last updated: Apr 12 2022 at 19:14 UTC