Grandnode错误:System.Net.Dns.InternalGetHostByName(String hostName)上的资源暂时不可用

时间:2018-12-24 08:23:34

标签: docker

美好的一天。我是使用Grandnode的新手,我尝试遵循使用此链接https://grandnode.com/weekly-tips-4-build-and-run-the-grandnode-with-docker-for-linux-containers与Docker进行安装的说明。 在我必须填写信息并安装的最后一步中,收到以下错误:

 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: Resource temporarily unavailable 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 个答案:

没有答案