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:
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:
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.
db_input.conf
and drivers
check your db it will be okay now.
Happy Splunking !..
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.
Yes, I have tried many time. lol
But can`t fix the issue.
Are you using Oracle JRE, not OpenJRE ?
I`m using Oracle JRE.
As you installed JDK, can you please set JAVA_HOME
to /usr/lib/java/jdk1.8.0_191/jre/
Can you check, is there any error in _internal logs? Try searching index=_internal sourcetype=dbx*
.
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
Did you set JAVA_HOME
?
This may helpful:
https://docs.opsgenie.com/docs/setting-java_home
Yes, I have configured JAVA already.
[root@sw-8c16g1t-1-new ~]# echo $JAVA_HOME
/usr/lib/java/jdk1.8.0_191
Ok. Did you download JAVA from below link:
https://www.oracle.com/technetwork/java/javase/downloads/index.html
Yes. And I am using this JAVA to install DBX on another machine successfully 2 months ago.
Can you try changing port?
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.
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