Skip to content

Failed to open TCP connection to validator_service when running locally #38

Description

@kerzner

Overview

We are trying to run an End-to-End Import Manifest test locally and getting the error Error: Failed to open TCP connection to validator_service:4567 (getaddrinfo: Name or service not known) on every resource:

image

The same thing happens for Individual Resource Tests as well.

This seems potentially related to #25 as I see that the validator_service is now commented-out in the various docker-compose files.

Please advise. Is this a bug? If not, what's the proper way to run the test kit locally?

Steps to reproduce

  1. Clone the repository and run ./setup.sh
  2. Run ./run.sh
  3. Point browser at localhost and run an End-to-End manifest test

Additional info

Here is a snippet of the output from the error:

 | 2025-01-13T22:24:07.840Z pid=1 tid=16hh class=Inferno::Jobs::ResumeTestRun jid=788006e42dda72c7786bafc4 INFO: start
 | I, [2025-01-13T22:24:07.840786 #1]  INFO -- : 302 in 127.49412500000001 ms
 | I, [2025-01-13T22:24:07.840879 #1]  INFO -- : Found
 | E, [2025-01-13T22:24:07.905703 #1] ERROR -- : /usr/local/lib/ruby/3.1.0/socket.rb:227:in `getaddrinfo': Failed to open TCP connection to validator_service:4567 (getaddrinfo: Name or service not known) (Faraday::ConnectionFailed)
 | 	from /usr/local/lib/ruby/3.1.0/socket.rb:227:in `foreach'
 | 	from /usr/local/lib/ruby/3.1.0/socket.rb:632:in `tcp'
 | 	from /usr/local/lib/ruby/3.1.0/net/http.rb:998:in `connect'
 | 	from /usr/local/lib/ruby/3.1.0/net/http.rb:976:in `do_start'
 | 	from /usr/local/lib/ruby/3.1.0/net/http.rb:965:in `start'
 | 	from /usr/local/bundle/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:146:in `request_via_request_method'
 | 	from /usr/local/bundle/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:131:in `request_with_wrapped_block'
 | 	from /usr/local/bundle/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:122:in `perform_request'
 | 	from /usr/local/bundle/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:66:in `block in call'
 | 	from /usr/local/bundle/gems/faraday-1.10.3/lib/faraday/adapter.rb:50:in `connection'
 | 	from /usr/local/bundle/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:64:in `call'
 | 	from /usr/local/bundle/gems/faraday-1.10.3/lib/faraday/request/url_encoded.rb:25:in `call'
 | 	from /usr/local/bundle/gems/faraday-1.10.3/lib/faraday/rack_builder.rb:154:in `build_response'
 | 	from /usr/local/bundle/gems/faraday-1.10.3/lib/faraday/connection.rb:516:in `run_request'
 | 	from /usr/local/bundle/gems/faraday-1.10.3/lib/faraday/connection.rb:283:in `post'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/dsl/fhir_validation.rb:179:in `validate'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/dsl/fhir_validation.rb:119:in `resource_is_valid?'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/dsl/fhir_validation.rb:35:in `resource_is_valid?'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/dsl/assertions.rb:74:in `assert_valid_resource'
 | 	from /opt/inferno/lib/uds_plus_test_kit/manifest_tests/validate_manifest_test.rb:27:in `block in <class:ValidateManifestTest>'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/test_runner.rb:77:in `instance_eval'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/test_runner.rb:77:in `run_test'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/test_runner.rb:49:in `run'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/test_runner.rb:128:in `block in run_group'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/test_runner.rb:127:in `each'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/test_runner.rb:127:in `run_group'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/test_runner.rb:53:in `run'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/test_runner.rb:40:in `start'
 | 	from /usr/local/bundle/gems/inferno_core-0.4.17/lib/inferno/jobs/resume_test_run.rb:10:in `perform'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:202:in `execute_job'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:170:in `block (2 levels) in process'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/middleware/chain.rb:172:in `invoke'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:169:in `block in process'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:136:in `block (6 levels) in dispatch'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/job_retry.rb:113:in `local'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:135:in `block (5 levels) in dispatch'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq.rb:44:in `block in <module:Sidekiq>'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:263:in `stats'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/job_logger.rb:13:in `call'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/job_retry.rb:80:in `global'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:124:in `block in dispatch'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/job_logger.rb:39:in `prepare'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:123:in `dispatch'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:168:in `process'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:78:in `process_one'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:68:in `run'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/component.rb:8:in `watchdog'
 | 	from /usr/local/bundle/gems/sidekiq-6.5.9/lib/sidekiq/component.rb:17:in `block in safe_thread'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions