<?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 Re: Mongodb blank database Issue in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214611#M11375</link>
    <description>&lt;P&gt;Thank you François,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked with our mongodb DBA and he told me that the used username has the necessary privileges to execute this command, I also tried it on mongo shell, and it gives me it supposed to.&lt;/P&gt;
&lt;P&gt;So I really don't know how to do it!&lt;/P&gt;
&lt;P&gt;I need at least a way to retrieve data from database other than the authentification one.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 19:32:32 GMT</pubDate>
    <dc:creator>Facilite-GB</dc:creator>
    <dc:date>2018-09-25T19:32:32Z</dc:date>
    <item>
      <title>Mongodb blank database Issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214607#M11371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have an issue while creation a mongodb connection, when I leave "Database" field&amp;nbsp;blank, I get this message:&lt;/P&gt; 
&lt;PRE&gt;Connection failed!
  org.talend.repository.nosql.exceptions.NoSQLServerException: Cannot connect to database!
      at org.talend.repository.nosql.db.util.mongodb.MongoDBConnectionUtil.checkConnection(MongoDBConnectionUtil.java:67)
      at org.talend.repository.nosql.db.provider.mongodb.MongoDBMetadataProvider.checkConnection(MongoDBMetadataProvider.java:153)
      at org.talend.repository.nosql.ui.common.AbstractNoSQLConnForm$1.widgetSelected(AbstractNoSQLConnForm.java:141)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
      at org.eclipse.jface.window.Window.open(Window.java:808)
      at org.talend.repository.nosql.action.CreateNoSQLConnectionAction.doRun(CreateNoSQLConnectionAction.java:91)
      at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:632)
      at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:99)
      at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:258)
      at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3369)
      at org.talend.repository.gitprovider.core.GitRepositoryFactory.executeRepositoryWorkUnit(GitRepositoryFactory.java:369)
      at org.talend.repository.remoteprovider.RemoteRepositoryFactory.executeRepositoryWorkUnit(RemoteRepositoryFactory.java:850)
      at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2119)
      at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:641)
      at org.talend.repository.viewer.action.RepoDoubleClickAction.run(RepoDoubleClickAction.java:117)
      at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:229)
      at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
      at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
      at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:853)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
      at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:850)
      at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1142)
      at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
      at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1249)
      at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
      at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
      at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      at org.talend.rcp.intro.Application.start(Application.java:255)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  Caused by: org.talend.repository.nosql.exceptions.NoSQLServerException: org.talend.repository.nosql.exceptions.NoSQLReflectionException: com.mongodb.CommandFailureException: { "serverUsed" : "******" , "ok" : 0.0 , "errmsg" : "not authorized on admin to execute command { listDatabases: 1 }" , "code" : 13 , "codeName" : "Unauthorized"}
      at org.talend.repository.nosql.db.util.mongodb.MongoDBConnectionUtil.getDatabaseNames(MongoDBConnectionUtil.java:169)
      at org.talend.repository.nosql.db.util.mongodb.MongoDBConnectionUtil.checkConnection(MongoDBConnectionUtil.java:48)
      ... 60 more
  Caused by: org.talend.repository.nosql.exceptions.NoSQLReflectionException: com.mongodb.CommandFailureException: { "serverUsed" : "*******" , "ok" : 0.0 , "errmsg" : "not authorized on admin to execute command { listDatabases: 1 }" , "code" : 13 , "codeName" : "Unauthorized"}
      at org.talend.repository.nosql.reflection.NoSQLReflection$WrapException.wrap(NoSQLReflection.java:97)
      at org.talend.repository.nosql.reflection.NoSQLReflection.invokeMethod(NoSQLReflection.java:68)
      at org.talend.repository.nosql.reflection.NoSQLReflection.invokeMethod(NoSQLReflection.java:53)
      at org.talend.repository.nosql.db.util.mongodb.MongoDBConnectionUtil.getDatabaseNames(MongoDBConnectionUtil.java:167)
      ... 61 more
  Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "*******" , "ok" : 0.0 , "errmsg" : "not authorized on admin to execute command { listDatabases: 1 }" , "code" : 13 , "codeName" : "Unauthorized"}
      at com.mongodb.CommandResult.getException(CommandResult.java:76)
      at com.mongodb.CommandResult.throwOnError(CommandResult.java:140)
      at com.mongodb.Mongo.getDatabaseNames(Mongo.java:374)
      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.talend.core.utils.ReflectionUtils.invokeMethod(ReflectionUtils.java:166)
      at org.talend.repository.nosql.reflection.NoSQLReflection$3.toDo(NoSQLReflection.java:63)
      at org.talend.repository.nosql.reflection.NoSQLReflection$WrapException.wrap(NoSQLReflection.java:95)
      ... 64 more&lt;/PRE&gt; 
&lt;P&gt;But if I put "admin" as database, the connection check is successful.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mongo Connection successful.PNG" style="width: 725px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzwr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130934i48DF3E2F13939794/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzwr.png" alt="0683p000009Lzwr.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mongo Connection failed.PNG" style="width: 724px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzza.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127780i54191A03906BCB8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzza.png" alt="0683p000009Lzza.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using talend 6.4 and I need to read data from other databases in this mongodb instances.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance,&lt;/P&gt; 
&lt;P&gt;Nader&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 16:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214607#M11371</guid>
      <dc:creator>Facilite-GB</dc:creator>
      <dc:date>2018-09-24T16:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mongodb blank database Issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214608#M11372</link>
      <description>why don't you connect to an instance name?</description>
      <pubDate>Mon, 24 Sep 2018 16:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214608#M11372</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-24T16:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mongodb blank database Issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214609#M11373</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;Actually I need a generic connection that allows to access to all dbs in that server.&lt;/P&gt;&lt;P&gt;the error that talend show:&lt;/P&gt;&lt;P&gt;db.adminCommand( { listDatabases: 1 } );&lt;/P&gt;&lt;P&gt;{ "serverUsed" : "*******" , "ok" : 0.0 , "errmsg" : "not authorized on admin to execute command { listDatabases: 1 }" , "code" : 13 , "codeName" : "Unauthorized"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I access to the server with robot 3T, I can execute the command:&amp;nbsp;&lt;SPAN&gt;listDatabases on the database with the same user successfully as shows the attachement capture&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lti2"&gt;mongo robot 3T.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 24 Sep 2018 17:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214609#M11373</guid>
      <dc:creator>Facilite-GB</dc:creator>
      <dc:date>2018-09-24T17:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mongodb blank database Issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214610#M11374</link>
      <description>if you look at mogodb command help: 
&lt;BR /&gt; 
&lt;A href="https://docs.mongodb.com/manual/reference/method/db.adminCommand/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.mongodb.com/manual/reference/method/db.adminCommand/&lt;/A&gt; 
&lt;BR /&gt;db.adminCommand run a comand as admin 
&lt;BR /&gt;the error explain "not authorized on admin to execute command " 
&lt;BR /&gt;your user is not authorised to use ListDatabase. 
&lt;BR /&gt;sometime low level editor allow mor than other. 
&lt;BR /&gt; 
&lt;BR /&gt;if you have multiples db use multiple connections (useful if one connection is going to change) 
&lt;BR /&gt;if you still whant to use only one you must check authorisations. 
&lt;BR /&gt;good luck 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2018 21:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214610#M11374</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-24T21:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mongodb blank database Issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214611#M11375</link>
      <description>&lt;P&gt;Thank you François,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked with our mongodb DBA and he told me that the used username has the necessary privileges to execute this command, I also tried it on mongo shell, and it gives me it supposed to.&lt;/P&gt;
&lt;P&gt;So I really don't know how to do it!&lt;/P&gt;
&lt;P&gt;I need at least a way to retrieve data from database other than the authentification one.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mongodb-blank-database-Issue/m-p/2214611#M11375</guid>
      <dc:creator>Facilite-GB</dc:creator>
      <dc:date>2018-09-25T19:32:32Z</dc:date>
    </item>
  </channel>
</rss>

