All Apps and Add-ons

Splunk Mobile Access Server - Server can not connect to Splunk Enterprise

rkelch
New Member

I am struggling to get the Splunk Mobile Access Server working. I can get through the initial configuration without issue. After the last restart, I click on Administrator Login and enter my admin credentials for Splunk Enterprise. This results in the error "Server can not connect to Splunk Enterprise".

This failure generates the following log:

2014-07-24T15:04:02.926-05:00 - error: category=internal_server_error, error=Error, message=Server can not connect to Splunk Enterprise., stack=Error: Server can not connect to Splunk Enterprise.

at Object.module.exports as throw
at Object.consoleLogin (/opt/mserver/server/app/controllers/console_auth_controller.js:8:17)
at GeneratorFunctionPrototype.throw (native)
at Object.next (/opt/mserver/server/node_modules/co/index.js:74:26)
at Object. (/opt/mserver/server/node_modules/co/index.js:102:18)
at processImmediate as _immediateCallback, worker=3

I have been following the documentation at http://docs.splunk.com/Documentation/MobileServer/1.0/Install/InstalltheSplunkMobileAccessServer with success through the install (using all defaults).

  • Both MAS and SE systems are CentOS 6.5
  • I can telnet to 8000 and 8089 from the MAS to the Search Head
  • Disabling iptables on either or both servers doesn't fix the issue

I am desperately there is another early adopter here that can help me out and get this connection working.

0 Karma
1 Solution

jzhong_splunk
Splunk Employee
Splunk Employee

Hi there,

I assume your mobile access server is not installed on the Splunk Search Head. If you accept all default values during installation, the mobile access server will connect to splunk enterprise via localhost.

Could you please double check /mserver/server/config/config_local.json? Around line 45, there are the fields for splunkd and splunkweb. You need change the host to actual Search Head host. Hope it helps.

  "servers": {
    "m": {
      "splunkd": {
        "scheme": "https",
        "host": "localhost",
        "port": 8089,
        "version": "6.0"
      },
      "splunkweb": {
        "scheme": "http",
        "host": "localhost",
        "port": 8000,
        "path": "/en-US/static"
      }
    }
  },

View solution in original post

jzhong_splunk
Splunk Employee
Splunk Employee

Hi there,

I assume your mobile access server is not installed on the Splunk Search Head. If you accept all default values during installation, the mobile access server will connect to splunk enterprise via localhost.

Could you please double check /mserver/server/config/config_local.json? Around line 45, there are the fields for splunkd and splunkweb. You need change the host to actual Search Head host. Hope it helps.

  "servers": {
    "m": {
      "splunkd": {
        "scheme": "https",
        "host": "localhost",
        "port": 8089,
        "version": "6.0"
      },
      "splunkweb": {
        "scheme": "http",
        "host": "localhost",
        "port": 8000,
        "path": "/en-US/static"
      }
    }
  },

rkelch
New Member

This is exactly what I needed. Thank you so much!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...