Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view
Good day dear, I ask for your help, I am creating a datasource in KNOWAGE to connect to a remote server in mongodb version 4.0.5 by a different port to the default, and at the moment I have not managed to do it.
I would like to know if it is necessary to change the mongodb driver or I have to do some additional configuration to connect, I share the URI that I am doing to connect:
URI: mongodb: // admin: admin@10.10.2.1: 35417 / dbadmin

I appreciate your prompt response, thank you.

Attached print of the error log:

ene 23, 2019 5:00:29 PM com.mongodb.diagnostics.logging.JULLogger log

INFORMACIËN: Cluster created with settings {hosts=[186.3.192.150:32017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}

ene 23, 2019 5:00:29 PM com.mongodb.diagnostics.logging.JULLogger log

INFORMACIËN: No server chosen by WritableServerSelector from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=10.10.2.1:35417, type=UNKNOWN, state=CONNECTING}]}. Waiting for 30000 ms before timing out

ene 23, 2019 5:00:49 PM com.mongodb.diagnostics.logging.JULLogger log

INFORMACIËN: Exception in monitor thread while connecting to server 10.10.2.1:35417

com.mongodb.MongoSocketOpenException: Exception opening socket

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

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

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

        at java.lang.Thread.run(Thread.java:748)

Caused by: java.net.SocketTimeoutException: connect timed out

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

        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)

        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

        at java.net.Socket.connect(Socket.java:589)

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

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

        ... 3 more
Environment KNOWAGE 6.2.1 in Windows 10
in Data Source by (140 points)

Please log in or register to answer this question.

...