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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...