Mongo Help!

Status
This thread has been locked.

Zorah

Premium
Feedback score
9
Posts
437
Reactions
172
Resources
0
Hi all,

When trying to start my server with a plugin connecting my mongo I get this error,

Any help would be greatly appreciated.

> [04:58:10 INFO]: Cluster created with settings {hosts=[127.0.0.1:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
> [04:58:10 INFO]: Exception in monitor thread while connecting to server 127.0.0.1:27017
com.mongodb.MongoSocketOpenException: Exception opening socket
at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:70) ~[Practice-1.0-SNAPSHOT%20(2).jar:?]
at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:126) ~[Practice-1.0-SNAPSHOT%20(2).jar:?]
at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:117) [Practice-1.0-SNAPSHOT%20(2).jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_192]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.8.0_192]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:1.8.0_192]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:1.8.0_192]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:1.8.0_192]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_192]
at java.net.Socket.connect(Socket.java:589) ~[?:1.8.0_192]
at com.mongodb.internal.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:64) ~[Practice-1.0-SNAPSHOT%20(2).jar:?]
at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:79) ~[Practice-1.0-SNAPSHOT%20(2).jar:?]
at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:65) ~[Practice-1.0-SNAPSHOT%20(2).jar:?]
... 3 more
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Nykorrin

i-
Premium
Feedback score
6
Posts
812
Reactions
299
Resources
0
Out of curiosity, are you connecting to mongo on a different PC? I had this issue with Pebblehost trying to connect to a VPS (Hosted mongo & redis) before, didn't fix it but I ended up having to move my server files onto the VPS that hosted mongo & redis. Using localhost mongo & redis works.
 

Zorah

Premium
Feedback score
9
Posts
437
Reactions
172
Resources
0
Out of curiosity, are you connecting to mongo on a different PC? I had this issue with Pebblehost trying to connect to a VPS (Hosted mongo & redis) before, didn't fix it but I ended up having to move my server files onto the VPS that hosted mongo & redis. Using localhost mongo & redis works.
Fixed it, nah I use a dedi. I just needed to bind my mongo to my dedi IP. Cheers Airee :)

Closed thread.
 
Status
This thread has been locked.
Top