Thursday, January 17, 2019 7:59:11 PM
  • Posted: Tuesday, July 31, 2018 5:47 AM
  • Moderator
  • 149
It may be change in the Ubuntu 16.6, when I've created a tutorial about installation on Ubuntu 16.4, after installation everything worked fine, so probably the Ubuntu 16.6 needs additional changes. But that's great that it's working now!
0
  • Posted: Tuesday, December 25, 2018 3:28 AM
  • 6
Hi there!
Is there any additional steps for Ubuntu 18.04.1 LTS version?
I have this error when I tried to follow the steps:
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 : "Unspecified/my-server:27017" }",
EndPoint: "Unspecified/my-server:27017", State: "Disconnected", Type: "Unknown",
HeartbeatException: "MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: No such device or address at System.Net.Dns.InternalGetHostByName(String hostName) at System.Net.Dns.ResolveCallback(Object context)
--- End of stack trace from previous location where exception was thrown --- at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult) at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at MongoDB.Driver.Core.Connections.TcpStreamFactory.ResolveEndPointsAsync(EndPoint initial) at MongoDB.Driver.Core.Connections.TcpStreamFactory.CreateStreamAsync(EndPoint endPoint, CancellationToken cancellationToken) at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken) --- End of inner exception stack trace --- at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken) at MongoDB.Driver.Core.Servers.ServerMonitor.HeartbeatAsync(CancellationToken cancellationToken)" }] }.
0
  • Posted: Tuesday, December 25, 2018 7:30 AM
  • 13
hey Nguyen,
time out means that server is not reachable.
try these steps.
1-check the connection string
2-make sure that mongo service is running.
3-if you are connecting to external database make sure the external server allows your connection (not blocking port or your ip ..etc)
*NOTICE THAT SERVER NAME AND DB NAME ARE CASE SENSITIVE
0
  • Posted: Wednesday, December 26, 2018 4:05 AM
  • 6
Thank you for the reply. I will try
0