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 (1)
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!

Index This | Why did the turkey cross the road?

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

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...