Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot establish mllp connection #4

Open
mizue31g opened this issue May 26, 2021 · 4 comments
Open

cannot establish mllp connection #4

mizue31g opened this issue May 26, 2021 · 4 comments

Comments

@mizue31g
Copy link

When I tried to establish a connection to the MLLP adapter (https://github.com/GoogleCloudPlatform/mllp) by specifying mllp_destination option for SimHospital, an error occurred.
Error message:
FATA [2021-05-26T02: 16: 16Z] Cannot create Hospital Runner error = "cannot create default hospital config: cannot create the sender: cannot establish mllp connection on sender & {client: conn: address: 127.0.0.1: 2575 mllpKeepAlive: false mllpKeepAlivePeriod: 60000000000 count: 0}: cannot connect to tcp address 127.0.0.1: 2575: dial tcp 127.0.0.1: 2575: connect: connection refused "prefix = cmd / simulator source =" main. main (cmd / simulator / simulator.go: 134) ""

Both SimHospital and MLLP Adapter are running on the same server, and their commands are as follows:

[MLLP Adapter]
docker run --network = host
gcr.io/cloud-healthcare-containers/mllp-adapter \ / usr / mllp_adapter / mllp_adapter
--hl7_v2_project_id = $ PROJECT_ID
--hl7_v2_location_id = $ REGION
--hl7_v2_dataset_id = $ DATASET_ID
--hl7_v2_store_id = $ HL7_STORE_ID
--export_stats = false --receiver_ip = 127.0.0.1
--mllp_addr = https: //healthcare.googleapis.com: 443 / v1beta1
--logtostderr

[Sim Hospital]
docker run --rm -it -p 8000: 8000
eu.gcr.io/simhospital-images/simhospital:latest
health / simulator
-output mllp
-mllp_destination 127.0.0.1:2575

I confirmed that MLLP Adapter is listening on TCP 2575 and I could send a HL7 message to 127.0.0.1:2575.

@EugOSullivan
Copy link

Did you ever work out this issue? I've just hit the exact same problem

@stefpiatek
Copy link

I haven't used the MLLP adapter but would you need to change 127.0.0.1 -> host.docker.internal or run this within a docker compose network?

@mizue31g
Copy link
Author

mizue31g commented Jan 15, 2023

@EugOSullivan Sorry for the late response. Yes, I could fix the isssue and confirmed it works. Below change is needed.
From

--mllp_addr=https: //healthcare.googleapis.com: 443 / v1beta1

To

--api_addr_prefix=https://healthcare.googleapis.com:443/v1beta1

@EugOSullivan
Copy link

Thanks both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants