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!

Buttercup Games: Further Dashboarding Techniques (Part 2)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Index This | What is the next number in the series? 7,645 5,764 4,576…

February 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Buttercup Games: Further Dashboarding Techniques

Hello! We are excited to kick off a new series of blogs from SplunkTrust member ITWhisperer, who demonstrates ...