RDB over TarMK in AEM 6.3 | Community
Skip to main content
onkarh71407069
Level 2
January 12, 2018

RDB over TarMK in AEM 6.3

  • January 12, 2018
  • 5 replies
  • 16714 views

I am trying to use mysql database over TarMk.I made Install folder and dragged mysql-connector-driver and did a configuration file named as org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.config and configure as

Later I installed instance with command as  java -jar aem-author-4502.jar -r author,crx3,crx3rdb -gui. It stucks in between and having error as

AuthenticationSupport service missing. Cannot authenticate request. and

Possible reason is missing Repository service. Check AuthenticationSupport dependencies.

I am trying it with the help of RDBMS Support in AEM 6.3 .

How do I solve this problem?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

joerghoh
Adobe Employee
Adobe Employee
January 12, 2018

Can you share more relevant data? There must be ERROR messages in the Oak startup.

Jörg

onkarh71407069
Level 2
January 15, 2018
Content backfill required
Adobe Employee
January 16, 2018

Hi,

what is in your config file: org.apache.sling.datasource.DataSourceFactory-oak.config

Regards,

Opkar

onkarh71407069
Level 2
January 16, 2018

Hi Opkar,

I am referring this site RDBMS Support in AEM 6.3

1.At first I only created org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.config file with mysql driver in install folder.It has follwing data.

    datasource.name="rdbdatasource"

    url="jdbc:mysql://localhost:3306/oak"

    driverClassName="com.mysql.jdbc.Driver"

    username="root"

    password="root"

2. Now I created org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.config as well as org.apache.sling.datasource.DataSourceFactory-oak.config and copy above data in second file.First file is empty now.

Still it has error like,

Regards,

Onkar Hattekar.

16.01.2018 14:42:39.380 *INFO* [FelixStartLevel] org.mongodb.driver.cluster Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=10000, description='MongoConnection for Oak DocumentMK'}

16.01.2018 14:42:39.408 *INFO* [FelixStartLevel] org.mongodb.driver.cluster Cluster description not yet available. Waiting for 30000 ms before timing out

16.01.2018 14:42:40.423 *INFO* [cluster-ClusterId{value='5a5dc207ab73d90b045a1347', description='MongoConnection for Oak DocumentMK'}-localhost:27017] org.mongodb.driver.cluster Exception in monitor thread while connecting to server localhost:27017

com.mongodb.MongoSocketOpenException: Exception opening socket

at com.mongodb.connection.SocketStream.open(SocketStream.java:63)

at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)

at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:113)

at java.lang.Thread.run(Unknown Source)

Caused by: java.net.ConnectException: Connection refused: connect

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:57)

at com.mongodb.connection.SocketStream.open(SocketStream.java:58)

... 3 common frames omitted

16.01.2018 14:43:09.410 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService(134)] The activate method has thrown an exception (com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: connect}}])

com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: connect}}]

at com.mongodb.connection.BaseCluster.getDescription(BaseCluster.java:163)

at com.mongodb.Mongo.getClusterDescription(Mongo.java:411)

at com.mongodb.Mongo.getReplicaSetStatus(Mongo.java:448)

at org.apache.jackrabbit.oak.plugins.document.util.MongoConnection.getDefaultWriteConcern(MongoConnection.java:164)

at org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:617)

at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.registerNodeStore(DocumentNodeStoreService.java:516)

at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.registerNodeStoreIfPossible(DocumentNodeStoreService.java:416)

at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.activate(DocumentNodeStoreService.java:400)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224)

at org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39)

at org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)

at org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501)

at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:302)

at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:294)

at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:298)

at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:109)

at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906)

at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879)

at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:749)

at org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675)

at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430)

at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657)

at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341)

at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390)

at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54)

at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265)

at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)

at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)

at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)

at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)

at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)

at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)

at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)

at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)

at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:517)

at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4542)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2173)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Unknown Source)

smacdonald2008
Level 10
January 16, 2018

Do you have the Database Driver file in an OSGi bundle and deployed in an Active State.

onkarh71407069
Level 2
January 17, 2018

Hi,

No,it is in resolved state.I used different version of mysql-connector-java.jar for every new instance.Even I convert that jar in OSGi and used it.Still it is in resolved state.

Onkar 

Khushwant_Singh
Adobe Employee
Adobe Employee
January 22, 2018

Kindly confirm that the mysql instance name is rdbdatasource and not oak.

onkarh71407069
Level 2
January 25, 2018

Hi,

     I am saying each procedure.Please tell me;is there anything wrong?I am referring RDBMS Support in AEM 6.3

I unpacked my jar file using  java -jar aem-author-4502.jar -unpack this command.

Then I created install folder.It has two configuration files and a folder named as 9.Folder 9 contains mysql driver jar as mysql-connector-java-5.1.45-bin.jar.

Configuration files are

1. org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.config

               <empty conf file>

2. org.apache.sling.datasource.DataSourceFactory-oak.config

datasource.name="rdbdatasource"

url="jdbc:mysql://localhost:3306/rdbdatasource"

driverClassName="com.mysql.jdbc.Driver"

username="root"

password="root"

     I used java -jar aem-author-4502.jar -r author,crx3,crx3rdb -gui this command to install AEM.It stucks in between.MySql instance name is rdbdatastore as said.

The Mysql bundle is in Active state.

Apache Sling Connection DataSourcePool is filled with given configuration as sees.

Still it encounters error as follows:

25.01.2018 14:31:34.664 *INFO* [FelixStartLevel] org.mongodb.driver.cluster Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=10000, description='MongoConnection for Oak DocumentMK'}

25.01.2018 14:31:34.809 *INFO* [FelixStartLevel] org.mongodb.driver.cluster Cluster description not yet available. Waiting for 30000 ms before timing out

25.01.2018 14:31:35.696 *INFO* [cluster-ClusterId{value='5a699ceeab73d907a46aa089', description='MongoConnection for Oak DocumentMK'}-localhost:27017] org.mongodb.driver.cluster Exception in monitor thread while connecting to server localhost:27017

com.mongodb.MongoSocketOpenException: Exception opening socket

at com.mongodb.connection.SocketStream.open(SocketStream.java:63)

at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)

at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:113)

at java.lang.Thread.run(Unknown Source)

Caused by: java.net.ConnectException: Connection refused: connect

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:57)

at com.mongodb.connection.SocketStream.open(SocketStream.java:58)

... 3 common frames omitted

25.01.2018 14:32:04.811 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService(134)] The activate method has thrown an exception (com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: connect}}])

com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: connect}}]

at com.mongodb.connection.BaseCluster.getDescription(BaseCluster.java:163)

at com.mongodb.Mongo.getClusterDescription(Mongo.java:411)

at com.mongodb.Mongo.getReplicaSetStatus(Mongo.java:448)

at org.apache.jackrabbit.oak.plugins.document.util.MongoConnection.getDefaultWriteConcern(MongoConnection.java:164)

at org.apache.jackrabbit.oak.plugins.document.DocumentMK$Builder.setMongoDB(DocumentMK.java:617)

at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.registerNodeStore(DocumentNodeStoreService.java:516)

at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.registerNodeStoreIfPossible(DocumentNodeStoreService.java:416)

at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.activate(DocumentNodeStoreService.java:400)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224)

at org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39)

at org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)

at org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501)

at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:302)

at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:294)

at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:298)

at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:109)

at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906)

at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879)

at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:749)

at org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675)

at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430)

at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657)

at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341)

at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390)

at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54)

at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265)

at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)

at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)

at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)

at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)

at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)

at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)

at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)

at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)

at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:517)

at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4542)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2173)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.lang.Thread.run(Unknown Source)

           Please tell me what to do?

Regards,

onkar Hattekar

joerghoh
Adobe Employee
Adobe Employee
January 28, 2018

The problem is still that the system wants to connect to a MongoDB. That's the first and most important issue right now.

onkarh71407069
Level 2
January 29, 2018

Then what is solution for that?

smacdonald2008
Level 10
January 29, 2018

Please log a ticket for this - looks like you have done all suggestions made by the community. You may need a hotfix.