All Apps and Add-ons

While registering device to Splunk Cloud Gateway I am getting error 503.

sahabhi606
Path Finder

I tried to register my device, and threw below error:

503 error: Unable to register. Contact your Splunk administrator or try again later

the document says " The connection is unavailable or Splunk Cloud Gateway modular_inputs aren't working". Connection to Cloud gateway service works fine. How can I check for modular_inputs? What can be other possible root cause of this? I have attached a snapshot of the dashboard for cloud gatewayalt text

Do I have to expose my SH to internet in order to set up Splunk Mobile?

Thanks in advance !!

0 Karma
1 Solution

treinke
Builder

You do not need to have your instance exposed to the internet. Looking at the documentation, the 503 error means "The app is unable to connect to the Cloud Gateway service. The connection is unavailable or Splunk Cloud Gateway modular_inputs aren't working.". What is suggested to do is to check that the Splunk server can access the internet.

From the troubleshooting docs (references below):
To check if you have WebSocket connection, run the following curl command at the command line:

curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin: https://www.websocket.org"; https://echo.websocket.org

To test WebSocket connectivity between your host and Splunk Cloud Gateway, run the following curl command on command line:

curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: prod.spacebridge.spl.mobi" -H "Origin: https://prod.spacebridge.spl.mobi"; -H "Authorization: c014fb4e" https://prod.spacebridge.spl.mobi/mobile

On the second source, there is also search commands to track down the internal logs to provide more details.

Sources:
https://docs.splunk.com/Documentation/Gateway/1.8.0/Registration/TroubleshootGateway
https://docs.splunk.com/Documentation/Gateway/1.8.0/Registration/TroubleshootConnectionIssues

There are no answer without questions

View solution in original post

0 Karma

treinke
Builder

You do not need to have your instance exposed to the internet. Looking at the documentation, the 503 error means "The app is unable to connect to the Cloud Gateway service. The connection is unavailable or Splunk Cloud Gateway modular_inputs aren't working.". What is suggested to do is to check that the Splunk server can access the internet.

From the troubleshooting docs (references below):
To check if you have WebSocket connection, run the following curl command at the command line:

curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin: https://www.websocket.org"; https://echo.websocket.org

To test WebSocket connectivity between your host and Splunk Cloud Gateway, run the following curl command on command line:

curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: prod.spacebridge.spl.mobi" -H "Origin: https://prod.spacebridge.spl.mobi"; -H "Authorization: c014fb4e" https://prod.spacebridge.spl.mobi/mobile

On the second source, there is also search commands to track down the internal logs to provide more details.

Sources:
https://docs.splunk.com/Documentation/Gateway/1.8.0/Registration/TroubleshootGateway
https://docs.splunk.com/Documentation/Gateway/1.8.0/Registration/TroubleshootConnectionIssues

There are no answer without questions
0 Karma

sahabhi606
Path Finder

Hi ,

I am getting [SSL: CERTIFICATE_VERIFY_FAILED] error.

File "/splunk/etc/apps/splunk_app_cloudgateway/lib/cloudgateway/private/registration/authenticate.py", line 25, in submit_auth_code
raise RestException.CloudgatewayServerError('Unable to reach cloudgateway: {0}'.format(e), 503)
CloudgatewayServerError: Unable to reach cloudgateway: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:676)

Any suggestions how to fix it.

Regards,
Abhishek

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...