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!

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, ...