---
schema_version: "1"
id: 94de106a37279004b73669e8532d2f54445c6bffbf39389a1bc627601cc308f4
title: Troubleshooting Platform Connections
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/1.9/flex-troubleshoot-platform-connection.md
canonical_url: https://docs.mulesoft.com/gateway/1.9/flex-troubleshoot-platform-connection
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 944e85e986db8eabfda4cb551fd999a30fe97432bb2c441e5b9db7ef0b26a748
description: MuleSoft Documentation Site
release: "1.9"
latest: false
---
---
product: Omni Gateway
version: 1.9
---

# Troubleshooting Platform Connections

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

When configuring Flex Gateway, it is possible for the Flex Replica’s `registration.yaml` to be
absent or for the replica to lose its connection to Anypoint Platform.

To troubleshoot whether a registration file is present and whether Flex Gateway can make platform
connections, use the following command:

```ssh
flexctl check connections
```

The `flexctl check connections` command first ensures that a `registration.yaml` file is present.
Then it checks whether the replica can connect to the URLs defined in the registration file. If the
`flexctl check connections` command is successful, it returns the following `info` message:

$ flexctl check connections \[flexctl\]\[info\] Connection to platform endpoints successful.

## No Registration File Found

If the `registration.yaml` file isn’t found, Flex Gateway returns the following error message:

$ flexctl check connections Error: no registration config

To troubleshoot an absent registration file, check your Flex Replica configuration folder. To learn
more about registering a Flex Gateway, see following section for your relevant mode:

- [Registering and Running Flex Gateway in Connected Mode](https://docs.mulesoft.com/gateway/1.9/flex-conn-reg-run)

- [Registering and Running Flex Gateway in Local Mode](https://docs.mulesoft.com/gateway/1.9/flex-local-reg-run)

## Failed Connection

There are multiple reasons why Flex Gateway might experience connection issues, such as an error in
the gateway’s environment or a network issue. How you troubleshoot your error depends on the error
returned.

If Flex Gateway can’t connect to a specific URL, it returns an error message that includes the
unreachable URL and the error message returned from the connection attempt. The following error
message is an example of an error returned due to no internet connection:

$ flexctl check connections Error: failed connecting to https://anypoint.mulesoft.com/: dial tcp
52.22.227.22:443: connect: network is unreachable

## See Also

- [Troubleshooting Registration Issues](https://docs.mulesoft.com/gateway/1.9/flex-troubleshoot-reg)

- [Troubleshooting Request Connection](https://docs.mulesoft.com/gateway/1.9/flex-troubleshoot-requests)

- [Known Issues](https://help.salesforce.com/s/issues)
