# Getting Error "The remote server returned an error: (502) Bad Gateway." while running Host service

**URL:** <https://community.criticalmanufacturing.com/t/getting-error-the-remote-server-returned-an-error-502-bad-gateway-while-running-host-service/645>\
**Category:** Deployment\
**Tags:** installation, v8.x\
**Created:** [February 21, 2024, 12:04pm UTC](https://community.criticalmanufacturing.com/t/getting-error-the-remote-server-returned-an-error-502-bad-gateway-while-running-host-service/645 "2024-02-21T12:04:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandip\_dhakane](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sandip\_dhakane](https://community.criticalmanufacturing.com/u/sandip_dhakane)\
**Post date:** [February 21, 2024, 12:04pm UTC](https://community.criticalmanufacturing.com/t/getting-error-the-remote-server-returned-an-error-502-bad-gateway-while-running-host-service/645/1 "2024-02-21T12:04:38Z")

</div>

Hi Team,

I am trying to run CMF Host Service but getting below error.

Error is “The remote server returned an error:(502) Bad Gateway.” Could not get a valid MessageBus gateway address from the loadbalancing list!.

The certificate which we are using is a valid certificate and added under the trusted one. Discovery Service and MessegeBus service is running.

PFA below Error screen shot for reference. Your help would be appreciated.

 ![](https://canada1.discourse-cdn.com/flex050/uploads/community_criticalmanufacturing/original/1X/7686882f2b8e2ae12c1e004dc25b0658e8fba5bd.jpeg)

---

<div class="post-metadata">

**Author:** ![Joao\_Moreira](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@Joao\_Moreira](https://community.criticalmanufacturing.com/u/Joao_Moreira)\
**Post date:** [April 9, 2024, 9:26am UTC](https://community.criticalmanufacturing.com/t/getting-error-the-remote-server-returned-an-error-502-bad-gateway-while-running-host-service/645/2 "2024-04-09T09:26:28Z")

</div>

Hi,

If this issue is still occurring, please check the following:

- Start the message bus and discovery services on a console;

- Check that no issues are reported on their console;

- Ensure that windows firewall is not blocking message bus and discovery services ports (they must be accessible at least to all the application servers in your cluster). Please note:

- You have only one discovery service active in one of the cluster nodes;

- Your Host and UI services are usually running on all the application server nodes;

- As so, it is important that all application servers can access the others message bus and discovery services;

- In case you are using unicast addresses, please ensure that all application servers are on the list.

If the issue persist, open a product support ticket, providing your discovery services, message bus and host (business) configuration files.

Best regards,

João Moreira
