onc-healthit / inferno-community

Archived source code for the Inferno Testing Tool and the Community Edition set of tests. No longer maintained.
https://inferno.healthit.gov/
Apache License 2.0
92 stars 35 forks source link

Unable to start inferno locally: Latest build #492

Open ashu-bdvt opened 4 years ago

ashu-bdvt commented 4 years ago

Hi I am trying to run inferno locally against our local FHIR server. Have done that before without any issues.

However today I just cloned the latest code available and tried to run the server but getting error(pasted below) repeatedly.

INFO | Inferno | Checking that validator is available at http://validator_service:4567
ERROR | Inferno | Unable to reach validator at http://validator_service:4567

Can you tell me if something else needs to be done to make it working?

Jammjammjamm commented 4 years ago

Inferno uses an external service to validate FHIR resources, and with the most recent update is now checking that it can actually reach that service before starting. If you don't care about validating FHIR resources, you can change this line of config.yml to resource_validator: internal, but this will cause you to get strange results in any tests which perform FHIR validation.

The easiest way to get the external validator service working is using docker. If you run docker-compose up from the inferno directory, that should run both inferno and the validator service. If docker isn't an option, you will need to get the service running (source code: https://github.com/inferno-community/fhir-validator-wrapper), and update the external_resource_validator_url in config.yml to point at the url where this service is running.

nathanloyer commented 3 years ago

This is a duplicate of https://github.com/onc-healthit/inferno/issues/508

I commented in that issue it would be helpful if the repo made some attempt to tell us how to not run into this issue.