All Apps and Add-ons

DBX:Cannot communicate with task server, please check your settings.

wayne_test
Explorer

I want to use BDX app. But it tells the error"Cannot communicate with task server, please check your settings.".I have installed java 1.8.0_191. And the port 9998 or 1025 is not occupied.

The error message:
alt text

port 1025 has the same error.

JAVA information:

[root@sw-8c16g1t-1-new ~]# java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

Port information:
alt text

0 Karma

dhirendra761
Contributor

Hi All,

I have gone though all the answers and done all required changes in config but nothing will happend.
Finally, I use below steps to reslove this issue.

  1. Backup your files, if exist, ex: db_input.conf and drivers
  2. Stop splunk. Remove db_connect app from app folder.
  3. Restart Splunk.
  4. Upgrade your splunk with just new version.
  5. install > db connect app

check your db it will be okay now.

Happy Splunking !..

0 Karma

harsmarvania57
Ultra Champion

Have you tried to restart splunk ? I was facing the same issue and in last I need to restart splunk service to fix this issue.

wayne_test
Explorer

Yes, I have tried many time. lol

But can`t fix the issue.

0 Karma

harsmarvania57
Ultra Champion

Are you using Oracle JRE, not OpenJRE ?

0 Karma

wayne_test
Explorer

I`m using Oracle JRE.

0 Karma

harsmarvania57
Ultra Champion

As you installed JDK, can you please set JAVA_HOME to /usr/lib/java/jdk1.8.0_191/jre/

0 Karma

p_gurav
Champion

Can you check, is there any error in _internal logs? Try searching index=_internal sourcetype=dbx*.

0 Karma

wayne_test
Explorer

Hi. Thank you for your answer. Here is my _internal log, I couldn`t find sth useful.
1/7/19
1:41:07.000 PM

2019-01-07T13:41:07+0800 [INFO] [dbx_settings.py], line 118: update java path file [/opt/splunk/etc/apps/splunk_app_db_connect/bin/../windows_x86_64/bin/customized.java.path]
host = sw-8c16g1t-1-new.novalocal source = /opt/splunk/var/log/splunk/splunk_app_db_connect_dbx.log sourcetype = dbx
1/7/19
1:41:07.000 PM

2019-01-07T13:41:07+0800 [INFO] [dbx_settings.py], line 118: update java path file [/opt/splunk/etc/apps/splunk_app_db_connect/bin/../windows_x86/bin/customized.java.path]
host = sw-8c16g1t-1-new.novalocal source = /opt/splunk/var/log/splunk/splunk_app_db_connect_dbx.log sourcetype = dbx

0 Karma

p_gurav
Champion

Did you set JAVA_HOME?

This may helpful:
https://docs.opsgenie.com/docs/setting-java_home

0 Karma

wayne_test
Explorer

Yes, I have configured JAVA already.

[root@sw-8c16g1t-1-new ~]# echo $JAVA_HOME
/usr/lib/java/jdk1.8.0_191

0 Karma

p_gurav
Champion

Ok. Did you download JAVA from below link:
https://www.oracle.com/technetwork/java/javase/downloads/index.html

0 Karma

wayne_test
Explorer

Yes. And I am using this JAVA to install DBX on another machine successfully 2 months ago.

0 Karma

p_gurav
Champion

Can you try changing port?

0 Karma

MousumiChowdhur
Contributor

Hi,

Have you tried changing the port to which RPC service binds? Please find the below link: https://docs.splunk.com/Documentation/DBX/3.1.3/DeployDBX/Troubleshooting

Thank You.

0 Karma

wayne_test
Explorer

Hi

Thank you for your answer. But I didn`t find how to fix this problem in the link.

I find the rpc port is 1866. And I tried 1866 port. The same result.

[root@sw-8c16g1t-1-new certs]# netstat -an | grep "rpc"
unix 2 [ ACC ] STREAM LISTENING 1866 /var/run/rpcbind.sock

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...