Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
None
Description
I'm now lost with the troubleshooting of this issue. Hope someone can help me
Environment: Mongodb replicaset with 2 data not 1 arbiter. All using Azure internal DNS.
Driver: Version=2.4.3.23
*Password *authentication turned on
*Connection *string also configure using dns name.
The app running in Azure Appservice Environment
Occasionally, after someday we receive this error on the log
We have contacted Azure team and digging this for month but still can under stand why this happening. The servers, webserver, dns seem working fine
Really appreciate if anyone have any idea to dig into bottom of this issue.
MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Net.Sockets.SocketException: No such host is known |
at System.Net.Dns.GetAddrInfo(String name)
|
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
|
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
|
at System.Net.Sockets.Socket.Connect(String host, Int32 port)
|
at MongoDB.Driver.Core.Connections.TcpStreamFactory.Connect(Socket socket, EndPoint endPoint, CancellationToken cancellationToken)
|
at MongoDB.Driver.Core.Connections.TcpStreamFactory.CreateStream(EndPoint endPoint, CancellationToken cancellationToken)
|
at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelper(CancellationToken cancellationToken)
|
--- End of inner exception stack trace ---
|
at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelper(CancellationToken cancellationToken)
|
at MongoDB.Driver.Core.Connections.BinaryConnection.Open(CancellationToken cancellationToken)
|
at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.AcquiredConnection.Open(CancellationToken cancellationToken)
|
at MongoDB.Driver.Core.Servers.Server.GetChannel(CancellationToken cancellationToken)
|
at MongoDB.Driver.Core.Bindings.ServerChannelSource.GetChannel(CancellationToken cancellationToken)
|
at MongoDB.Driver.Core.Bindings.ChannelSourceHandle.GetChannel(CancellationToken cancellationToken)
|
at MongoDB.Driver.Core.Operations.FindAndModifyOperationBase`1.Execute(IWriteBinding binding, CancellationToken cancellationToken) |
at MongoDB.Driver.OperationExecutor.ExecuteWriteOperation[TResult](IWriteBinding binding, IWriteOperation`1 operation, CancellationToken cancellationToken) |
at MongoDB.Driver.MongoCollectionImpl`1.ExecuteWriteOperation[TResult](IWriteOperation`1 operation, CancellationToken cancellationToken) |
at MongoDB.Driver.MongoCollectionImpl`1.FindOneAndUpdate[TProjection](FilterDefinition`1 filter, UpdateDefinition`1 update, FindOneAndUpdateOptions`2 options, CancellationToken cancellationToken) |
at Zyllem.Core.Entity.EntityManagement.TryLockEntity(String id, String lockKey, IEntityModel& lockedEntity)
|
at Zyllem.Core.Entity.EntityUpdater.CreateAndLockEntity(String entityId)
|
at Zyllem.App.Connector.GoldenBridgeActionHandler.<ExecuteActionAsync>d__2.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
|
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() |
at Zyllem.Api.Connector.TaskSystem.Api.Controllers.ActionController.<ExecuteAction>d__15.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
|
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() |
at Zyllem.Api.Connector.TaskSystem.Api.Controllers.ActionController.<ExecutePhotoSignAction>d__10.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
|
at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext() |
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
|
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
|
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
|
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
|
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
|
--- End of stack trace from previous location where exception was thrown ---
|
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
|
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
|
at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()
|