Getting Data In

Splunk DB connect permission problem

bosseres
Contributor

Hello everyone,

I am trying to configure Splunk DB connect app, and getting next one error in logs:

2023-01-12T14:46:28+0300 [ERROR] [settings.py], line 89 : Throwing an exception
Traceback (most recent call last):
File "/opt/splunk/etc/apps/splunk_app_db_connect/bin/dbx2/rest/settings.py", line 76, in handle_POST
self.validate_java_home(payload["javaHome"])
File "/opt/splunk/etc/apps/splunk_app_db_connect/bin/dbx2/rest/settings.py", line 220, in validate_java_home
raise Exception(reason)
Exception: PermissionError: [Errno 13] Permission denied: '/usr/java/jdk1.8.0_311-amd64/bin/java'
validate java command: /usr/java/jdk1.8.0_311-amd64/bin/java.

 

Folders /usr/java/jdk1.8.0_311-amd64 has owner splunk - 

drwxr-xr-x. 9 splunk splunk 107 Jan 12 12:54 jdk1.8.0_311-amd64

Folder /opt/splunk/etc/apps/splunk_app_db_connect has owner splunk too -

drwx------. 18 root root 4096 Jan 12 13:44 splunk_app_db_connect

 

My splunk is working from user splunk

grep SPLUNK_OS_USER= /opt/splunkforwarder/etc/splunk-launch.conf
SPLUNK_OS_USER=splunk

 

What is the reason, can anyone help?

Labels (2)
0 Karma

bosseres
Contributor

chmod 777 /usr/java/jdk1.8.0_311-amd64 solved problem

close topic, please

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...