search cancel

Gateway 10.1 marked as Disconnected - How to troubleshoot?

book

Article ID: 228043

calendar_today

Updated On:

Products

API SECURITY

Issue/Introduction

Gateway 10.1 was successfully enrolled with a Portal 5.0.2.

But now when I connect again to the Portal, the gateway proxy is marked as disconnected although the gateway is up and running.

Any idea about the issue? . How can this be troubleshooted?

 

Environment

Release : 10.1

Component : API GATEWAY

Resolution

1. toggle portal.deployer.enabled cluster-wide-property from true, to false, to true

TroubleShoot 5.0.2 Portal Deployments

2. for a successful connection, you should see something similar in the SSG logs (bolded parts important):

2021-06-09T16:37:31.471-0700 INFO    320 com.l7tech.external.assertions.portaldeployer.server.client.PortalDeployerClient: Initialized with config: [PortalDeployerClient{mqttBrokerUri='wss://broker.portal5two.lab.brd.net:9443/', clientId='tenant2_0bf621dd-5c72-4921-963e-ad2c853abcde_ecb986a372fb42dc887d63fdb78abcde', topics=[tenant2/api/command/+/tenantGatewayUuid/0bf621dd-5c72-4921-963e-ad2c853abcde, tenant2/application/command/+/tenantGatewayUuid/0bf621dd-5c72-4921-963e-ad2c853abcde, tenant2/all/command/+/tenantGatewayUuid/0bf621dd-5c72-4921-963e-ad2c853abcde, tenant2/gateway_bundles/command/+/tenantGatewayUuid/0bf621dd-5c72-4921-963e-ad2c853abcde], isCleanSession=false, qosLevel=1, isRunning=false, sleepIntervalOnReconnect=30}]

2021-06-09T16:37:31.476-0700 INFO    320 com.l7tech.server.admin: ClusterProperty #231ad74fd07c82743c7b75ffa77c7221 (portal.deployer.enabled) updated (changed value)

2021-06-09T16:37:31.485-0700 INFO    183 com.l7tech.external.assertions.portaldeployer.server.PortalDeployerModuleLoadListener: PortalDeployer onApplicationEvent updated ClusterProperty: [email protected]

2021-06-09T16:37:32.013-0700 INFO    172892 com.l7tech.external.assertions.portaldeployer.server.client.PortalDeployerClient: Successfully connected to Broker: wss://broker.portal5two.lab.brd.net:9443/

2021-06-09T16:37:32.013-0700 INFO    172892 com.l7tech.external.assertions.portaldeployer.server.client.PortalDeployerClient: Subscribing to Topic(s): [tenant2/api/command/+/tenantGatewayUuid/0bf621dd-5c72-4921-963e-ad2c853abcde, tenant2/application/command/+/tenantGatewayUuid/0bf621dd-5c72-4921-963e-ad2c853abcde, tenant2/all/command/+/tenantGatewayUuid/0bf621dd-5c72-4921-963e-ad2c853abcde, tenant2/gateway_bundles/command/+/tenantGatewayUuid/0bf621dd-5c72-4921-963e-ad2c853abcde]

Note: If the above doesn't work, you should see a connection issue in the SSG logs instead of the above. If you can't find it, search for PortalDeployerClient and there should be an exception of some sort that gives better context.