[SERVER-44351] Only connect to mongodb by vpn Created: 01/Nov/19  Updated: 20/Dec/19  Resolved: 20/Dec/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.1
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: liam Pay Assignee: Carl Champain (Inactive)
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Hi

On one of my servers I installed mongodb 4.2 and by default TLS is disable and I give access to all ip address to connect to my mongodb database but every time I try to connect to this server based on port 27017 by robo I face this error:

Error:
Network is unreachable. Reason: network error while attempting to run command 'isMaster' on host

And whenever I try to connect by asp.net core i see this error

TimeoutException: A timeout occured after 30000ms selecting a server using CompositeServerSelector\{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "Automatic", Type : "Unknown", State : "Disconnected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint :

But when I use VPN ,connection to my server is successful even without VPN I see connection listener in log file but without client metadata . I do not know what is the problem even I give access to all ip address.

please help me to solve the problem.



 Comments   
Comment by Carl Champain (Inactive) [ 20/Dec/19 ]

Hi d.liam1984@yandex.com,

We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket.

Thank you,
Carl

Comment by Carl Champain (Inactive) [ 04/Dec/19 ]

Hi d.liam1984@yandex.com,

Any updates on this issue?

Comment by Carl Champain (Inactive) [ 05/Nov/19 ]

Hi d.liam1984@yandex.com,

Thanks for the report.
To help us look into what is happening, can you please provide the mongod.log file for this node?

Kind regards,
Carl
 

Generated at Thu Feb 08 05:05:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.