- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Splunk DB Connect: The Java Bridge server is not running

Hello everyone,
My problem is that the Javabridge is not running. This is an extract of the dbx.log (I don't see any problem ) any help?
2015-08-07 11:03:24.805 main:INFO:SplunkContext - Splunk Context initialized: SplunkContext{env=SplunkEnvironment{SPLUNK_HOME=/opt/splunk,SPLUNK_DB=/opt/splunk/var/lib/splunk}}
2015-08-07 11:03:25.193 main:INFO:Splunkd - Scheduling REST session keep-alive with an interval of 5m
2015-08-07 11:03:26.915 main:INFO:Splunkd - Initialized Splunkd REST service service=127.0.0.1:8089 sessionKey=74MOvDcFSxZnzAMsXInCZZiSSOzRyoItbpKC^gZbNqynzzrF3HuCCs_MKI7SmxJpHK1ZnnFbZvRNDq6Yw7Q4yLYClUtubLZUmN
2015-08-07 11:03:27.100 main:INFO:SplunkContext - Splunk Context initialized: SplunkContext{env=SplunkEnvironment{SPLUNK_HOME=/opt/splunk,SPLUNK_DB=/opt/splunk/var/lib/splunk}}
2015-08-07 11:03:27.457 main:INFO:Splunkd - Scheduling REST session keep-alive with an interval of 5m
2015-08-07 11:03:29.228 main:INFO:Splunkd - Initialized Splunkd REST service service=127.0.0.1:8089 sessionKey=74MOvDcFSxZnzAMsXInCZZiSSOzRyoItbpKC^gZbNqynzzrF3HuCCs_MKI7SmxJpHK1ZnnFbZvRNDq6Yw7Q4yLYClUtubLZUmN
2015-08-07 11:03:29.433 main:INFO:SplunkContext - Splunk Context initialized: SplunkContext{env=SplunkEnvironment{SPLUNK_HOME=/opt/splunk,SPLUNK_DB=/opt/splunk/var/lib/splunk}}
2015-08-07 11:03:29.729 main:INFO:Splunkd - Scheduling REST session keep-alive with an interval of 5m
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

The documentation is very clear about the prerequisites for DB Connect (see link below). Did you install Java Run Time on your Search Head? Make sure that you did EVERYTHING in this link:
http://docs.splunk.com/Documentation/DBX/2.0.4/DeployDBX/Prerequisites
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

thank you woodcock,
I will take a look and I will response after .
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- ERROR Java process returned error code 1! Error: Initializing Splunk context... Environment: SplunkEnvironment{SPLUNK_HOME=/opt/splunk,SPLUNK_DB=/opt/splunk/var/lib/splunk} Configuring Log4j... Exception in thread "main" com.splunk.env.SplunkEnvironmentException: Error running InitializationTask com.splunk.dbx.sql.factory.DatabaseFactoryInitializer: com.splunk.config.SplunkConfigurationException
- ERROR Command output: None
- INFO Checking for obsolete java libraries in /opt/splunk/etc/apps/dbx/bin/lib
- INFO Started JavaBridgeServer PID=4388
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

thank you ppabb, this is what the jbridge.log continat
ERROR Java process returned error code 1! Error: Initializing Splunk
context... Environment:
SplunkEnvironment{SPLUNK_HOME=/opt/splunk,SPLUNK_DB=/opt/splunk/var/lib/splunk}
Configuring Log4j... Exception in thread "main" com.splunk.env.SplunkEnvironmentException:
Error running InitializationTask com.splunk.dbx.sql.factory.DatabaseFactoryInitializer:
com.splunk.config.SplunkConfigurationException: IO Error while reading configuration
from Splunkd: java.io.IOException: Server returned HTTP response code: 403 for URL:
https://127.0.0.1:8089/servicesNS/nobody/-/admin/conf-database?count=10000 at
com.splunk.env.SplunkContext.doStartup(SplunkContext.java:253) at
com.splunk.env.SplunkContext.initialize(SplunkContext.java:132) at
com.splunk.bridge.JavaBridgeServer.main(JavaBridgeServer.java:34) Caused by:
com.splunk.config.SplunkConfigurationException: IO Error while reading configuration
from Splunkd: java.io.IOException: Server returned HTTP response code: 403 for URL:
https://127.0.0.1:8089/servicesNS/nobody/-/admin/conf-database?count=10000 at
com.splunk.config.rest.RESTAdapter.request(RESTAdapter.java:199) at
com.splunk.config.rest.RESTAdapter.readConfig(RESTAdapter.java:207) at
com.splunk.config.cache.CachedConfigurationAdapter.readConfig(CachedConfigurationAdapter.java:32)
at com.splunk.config.SplunkConfig.getConfig(SplunkConfig.java:134) at
com.splunk.dbx.sql.factory.PersistentDatabaseFactory.preloadDatabases(PersistentDatabaseFactory.java:89) at com.splunk.dbx.sql.factory.PersistentDatabaseFactory.(PersistentDatabaseFactory.java:38)
at com.splunk.dbx.sql.factory.PooledConnectionFactory.(PooledConnectionFactory.java:52)
at com.splunk.dbx.sql.Database.initializeFactory(Database.java:850)
at com.splunk.dbx.sql.Database.getFactory(Database.java:834)
at com.splunk.dbx.sql.factory.DatabaseFactoryInitializer.initialize(DatabaseFactoryInitializer.java:17)
at com.splunk.env.SplunkContext.doStartup(SplunkContext.java:251)
... 2 more Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
https://127.0.0.1:8089/servicesNS/nobody/-/admin/conf-database?count=10000 at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1889)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1884)
at java.security.AccessController.doPrivileged(Native Method) at
sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1883) at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1456) at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at com.splunk.rest.Response.getContent(Response.java:54) at com.splunk.rest.Response.readXML(Response.java:62) at com.splunk.config.rest.RESTAdapter.request(RESTAdapter.java:197) ... 12 more Caused by:
java.io.IOException: Server returned HTTP response code: 403 for URL:
https://127.0.0.1:8089/servicesNS/nobody/-/admin/conf-database?count=10000 at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at com.splunk.rest.Response.(Response.java:31)
at com.splunk.rest.Splunkd.request(Splunkd.java:217)
at com.splunk.rest.Splunkd.request(Splunkd.java:102)
... 13 more ERROR Command output: NoneINFO Checking for obsolete java libraries in /opt/splunk/etc/apps/dbx/bin/lib
INFO Started JavaBridgeServer PID=3922
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Could you paste what's in the jbridge.log file? Also - what version of java are you running?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- ERROR Java process returned error code 1! Error: Initializing Splunk context... Environment: SplunkEnvironment{SPLUNK_HOME=/opt/splunk,SPLUNK_DB=/opt/splunk/var/lib/splunk} Configuring Log4j... Exception in thread "main" com.splunk.env.SplunkEnvironmentException: Error running InitializationTask com.splunk.dbx.sql.factory.DatabaseFactoryInitializer: com.splunk.config.SplunkConfigurationException
- ERROR Command output: None
- INFO Checking for obsolete java libraries in /opt/splunk/etc/apps/dbx/bin/lib
- INFO Started JavaBridgeServer PID=4388
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I respond as answer, because is too long.
