<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DB Connect 1.1.7: Why am I getting error &amp;quot;Java Bridge not running : Unable to create persistentstorage/dbx/global&amp;quot;? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163593#M98090</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;after installing the DB Connect 1.1.7, the Java Bridge Server is not running.&lt;/P&gt;

&lt;P&gt;The Error code in the jbridge.log is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-04-23 11:31:29,707 ERROR Java process returned error code 1! Error: Initializing Splunk context... Environment: SplunkEnvironment{SPLUNK_HOME=C:\Program Files\Splunk,SPLUNK_DB=C:\Program Files\Splunk\var\lib\splunk} Configuring Log4j... Exception in thread "main" com.splunk.env.SplunkEnvironmentException: **Unable to create directory C:\Program Files\Splunk\var\lib\splunk\persistentstorage\dbx\global**  at com.splunk.env.SplunkEnvironment.getSubDirectory(SplunkEnvironment.java:81)  at com.splunk.env.SplunkEnvironment.getPersistentStorageDirectory(SplunkEnvironment.java:150)   at com.splunk.persistence.PersistentValueStoreFactory.createStore(PersistentValueStoreFactory.java:60)  at com.splunk.persistence.PersistentValueStoreFactory.createGlobalStore(PersistentValueStoreFactory.java:51)    at com.splunk.env.SplunkContext.initialize(SplunkContext.java:108)  at com.splunk.bridge.JavaBridgeServer.main(JavaBridgeServer.java:34) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My Java-HomePath: C:\Program Files\Java\jre7&lt;BR /&gt;
My System is Windows 7 Professional 64bit&lt;/P&gt;

&lt;P&gt;I didn´t find a Solution of this problem in Splunk Answers and Splunk Docs that equals.&lt;/P&gt;

&lt;P&gt;Has someone an Idea?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2015 10:02:46 GMT</pubDate>
    <dc:creator>Ananton</dc:creator>
    <dc:date>2015-04-23T10:02:46Z</dc:date>
    <item>
      <title>DB Connect 1.1.7: Why am I getting error "Java Bridge not running : Unable to create persistentstorage/dbx/global"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163593#M98090</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;after installing the DB Connect 1.1.7, the Java Bridge Server is not running.&lt;/P&gt;

&lt;P&gt;The Error code in the jbridge.log is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-04-23 11:31:29,707 ERROR Java process returned error code 1! Error: Initializing Splunk context... Environment: SplunkEnvironment{SPLUNK_HOME=C:\Program Files\Splunk,SPLUNK_DB=C:\Program Files\Splunk\var\lib\splunk} Configuring Log4j... Exception in thread "main" com.splunk.env.SplunkEnvironmentException: **Unable to create directory C:\Program Files\Splunk\var\lib\splunk\persistentstorage\dbx\global**  at com.splunk.env.SplunkEnvironment.getSubDirectory(SplunkEnvironment.java:81)  at com.splunk.env.SplunkEnvironment.getPersistentStorageDirectory(SplunkEnvironment.java:150)   at com.splunk.persistence.PersistentValueStoreFactory.createStore(PersistentValueStoreFactory.java:60)  at com.splunk.persistence.PersistentValueStoreFactory.createGlobalStore(PersistentValueStoreFactory.java:51)    at com.splunk.env.SplunkContext.initialize(SplunkContext.java:108)  at com.splunk.bridge.JavaBridgeServer.main(JavaBridgeServer.java:34) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My Java-HomePath: C:\Program Files\Java\jre7&lt;BR /&gt;
My System is Windows 7 Professional 64bit&lt;/P&gt;

&lt;P&gt;I didn´t find a Solution of this problem in Splunk Answers and Splunk Docs that equals.&lt;/P&gt;

&lt;P&gt;Has someone an Idea?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 10:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163593#M98090</guid>
      <dc:creator>Ananton</dc:creator>
      <dc:date>2015-04-23T10:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 1.1.7: Why am I getting error "Java Bridge not running : Unable to create persistentstorage/dbx/global"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163594#M98091</link>
      <description>&lt;P&gt;Your permissions are messed up. Splunk can't create files in its own directory. Check how the services are installed and running.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:09:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163594#M98091</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2015-04-23T13:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 1.1.7: Why am I getting error "Java Bridge not running : Unable to create persistentstorage/dbx/global"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163595#M98092</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; Hi try this:

After you install DB Connect and restart Splunk Enterprise, you must complete
the following setup tasks:
Enable splunkd SSL
To run DB Connect, you must enable SSL for splunkd.
1. Go to $SPLUNK_HOME/etc/system/local/server.conf.
2. In the [sslConfig] stanza, set enableSplunkdSSL to true, as shown:
[sslConfig]
enableSplunkdSSL = true
**Note**: splunkd is enabled by default.

**Complete the app setup from the UI**
1. Go to Apps &amp;gt; Splunk DB Connect.
The Splunk DB Connect Setup page appears.

2. Enter your JAVA_HOME path. This is where your JRE (Java Runtime Environment) resides. For example:
echo $JAVA_HOME
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre

3. Click Save.
This enables the Java Bridge Server.
Note: To verify that the Java Bridge Server is running, make sure that the  scripted input jbridge_server.py is enabled. 

*Command Line Setup*
You can setup DB Connect manually from the command line.

1. Create $SPLUNK_HOME/etc/apps/dbx/local/app.conf
[install]
is_configured = 1

2. Create $SPLUNK_HOME/etc/apps/dbx/local/java.conf
[java]
home = &amp;lt;JAVA_HOME path&amp;gt;
This is the path to your ( JRE) Java Runtime Environment. For example:
home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre

3. Enable the Java Bridge Server (scripted input) in $SPLUNK_HOME/etc/apps/dbx/local/inputs.conf
[script://$SPLUNK_HOME/etc/apps/dbx/bin/jbridge_server.py]
disabled = 0

4. Create the sink for database inputs in $SPLUNK_HOME/etc/apps/dbx/local/inputs.conf
[batch://$SPLUNK_HOME/var/spool/dbmon/*.dbmonevt]
crcSalt = &amp;lt;SOURCE&amp;gt;
disabled = 0
move_policy = sinkhole
sourcetype = dbmon:spool

5. Restart Splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you wish to connect a MySQL, Oracle, DB2, or Informix database to Splunk via Splunk DB Connect, you must download and install the correct JDBC drivers as shown below.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 1: Download driver&lt;/STRONG&gt;&lt;BR /&gt;
Download the appropriate JDBC driver for your database, as follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;MySQL&lt;/STRONG&gt;&lt;BR /&gt;
Download the MySQL Connector/J driver, version 5.1.24 or later (mysql-connector-java-*-bin.jar).&lt;/P&gt;

&lt;P&gt;For Unix, Linux, and MacOS X, select the Platform Independent driver option, as follows:&lt;BR /&gt;
    Download and uncompress either ZIP or TAR archive files.&lt;BR /&gt;
    The uncompressed archive contains the JDBC driver (.jar).&lt;BR /&gt;
    Copy the mysql-connector-java-version-bin.jar file to the&lt;BR /&gt;
    $SPLUNK_HOME/etc/apps/dbx/bin/lib directory.&lt;/P&gt;

&lt;P&gt;For Windows, select the Microsoft Windows driver option, as follows:&lt;BR /&gt;
    Download and run the the MySQL Connector/J driver for Windows MSI installer file. This installs the JDBC driver (.jar) in C:\Program Files\MySQL\MySQL Connector.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Copy the mysql-connector-java-version-bin.jar file to the   %SPLUNK_HOME%\etc\apps\dbx\bin\lib directory.

**Oracle**
Download the Oracle JDBC driver (ojdbc6.jar).

**DB2**
Go to the DB2 JDBC Driver Versions download site. Login (register, if needed). As part of the login, check the license agreement checkbox, then click the I confirm button.

Check the download checkbox for: IBM Data Server Driver for JDBC and SQLJ (JCC Driver)
ibm_data_server_driver_for_jdbc_sqlj_v10.5.zip (9 MB)
Click the Download now button, saving the file to a temporary directory.

¨ Unzip the downloaded file. Copy or move the db2jcc4.jar file to the $SPLUNK_HOME$/etc/apps/dbx/bin/lib directory.

**Note**: Only move the db2jcc4.jar file to the .../dbx/bin/lib directory, not sqlj.zip, to avoid conflicts.

**Informix**
¨ Download the Informix JDBC driver (ifxjdbc.jar).

**Step 2: Install driver**
After you have downloaded the correct driver for your database and platform,
install the driver as follows:

1. Copy the driver to the $SPLUNK_HOME/etc/apps/dbx/bin/lib directory.

2. Restart Splunk.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:22:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163595#M98092</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-04-23T13:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 1.1.7: Why am I getting error "Java Bridge not running : Unable to create persistentstorage/dbx/global"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163596#M98093</link>
      <description>&lt;P&gt;I have changed the permissions in the splunk directory, so it works now. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 06:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163596#M98093</guid>
      <dc:creator>Ananton</dc:creator>
      <dc:date>2015-04-28T06:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 1.1.7: Why am I getting error "Java Bridge not running : Unable to create persistentstorage/dbx/global"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163597#M98094</link>
      <description>&lt;P&gt;My splunk instance is configured as described in your manual. I have checked the permissions of the Splunk-directory and changed them, like described from "jcotes_splunk". so it fuctioned,yet.&lt;BR /&gt;&lt;BR /&gt;
thanks anyway!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 06:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163597#M98094</guid>
      <dc:creator>Ananton</dc:creator>
      <dc:date>2015-04-28T06:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 1.1.7: Why am I getting error "Java Bridge not running : Unable to create persistentstorage/dbx/global"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163598#M98095</link>
      <description>&lt;P&gt;Thanks Jcoates.. it fixed my issue&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 08:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-1-1-7-Why-am-I-getting-error-quot-Java-Bridge-not/m-p/163598#M98095</guid>
      <dc:creator>sameera123</dc:creator>
      <dc:date>2016-02-15T08:44:39Z</dc:date>
    </item>
  </channel>
</rss>

