Answered by:
Windows 2016 server with .NET version 3.5 having issue with connecting to mongo 3.0 replicaSet

Question
-
we are having mongo server version 3.0 and driver version 1.11.0.92 and windows server is 2016 I see other posts related to this but our code works well in Windows 2008 server with mongo version 3.0 and driver version is 1.11.0.92. But in 2016 windows Server we are facing application slowness and facing below issue which is logged in Appdynamics.(which is used for application monitoring)
Unable to connect in the specified timeframe of '00:00:30'. at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.Void Discover(System.TimeSpan)() at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.Void EnsureInstanceManager(System.TimeSpan)() at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.MongoDB.Driver.MongoServerInstance ChooseServerInstance(MongoDB.Driver.ReadPreference)() at MongoDB.Driver.MongoServer.MongoDB.Driver.Internal.MongoConnection AcquireConnection(MongoDB.Driver.ReadPreference)() at MongoDB.Driver.MongoCursor`1+MongoCursorConnectionProvider.MongoDB.Driver.Internal.MongoConnection AcquireConnection()() at MongoDB.Driver.Operations.QueryOperation`1.MongoDB.Driver.Internal.MongoReplyMessage`1[TDocument] GetFirstBatch(MongoDB.Driver.Operations.IConnectionProvider)() at MongoDB.Driver.Operations.QueryOperation`1.System.Collections.Generic.IEnumerator`1[TDocument] Execute(MongoDB.Driver.Operations.IConnectionProvider)() at MongoDB.Driver.MongoCursor`1.System.Collections.Generic.IEnumerator`1[TDocument] GetEnumerator()() at Mongo.MongoUserPropertyResolver.Mongo.Entity.MongoUserProperty getUserProperty(Int64, Int64)() at log4net.Core.LogImpl.Error()
And Mongo connection string looks like:
mongodb://username:password@host1,host2,host3/dbname?ssl=true&replicaSet=replicatsetname
We are trying to update windows 2008 to windows 2016 server
Any help would be Appreciated great!
- Edited by Bhuvanasaguni Thursday, November 28, 2019 9:35 AM
- Moved by Dave PatrickMVP Thursday, November 28, 2019 12:09 PM looking for forums
Thursday, November 28, 2019 9:23 AM
Answers
-
Might try asking in their forums.
https://support.mongodb.com/welcome
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Thursday, November 28, 2019 12:31 PM
- Marked as answer by Richard MuellerMVP, Banned Thursday, December 5, 2019 2:17 PM
Thursday, November 28, 2019 12:08 PM -
Hi,
You'll also find the recommended operating system versions for Mongo DB 3.0 over here:
https://docs.mongodb.com/v3.0/administration/production-notes/A quick look, it seems Windows Server 2016 is not in the list of recommended operating systems.
To get a better answer, you better ask in their dedicated forums that Dave linked.
Blog:
https://thesystemcenterblog.com LinkedIn:
- Proposed as answer by Richard MuellerMVP, Banned Thursday, November 28, 2019 12:31 PM
- Marked as answer by Richard MuellerMVP, Banned Thursday, December 5, 2019 2:17 PM
Thursday, November 28, 2019 12:18 PM
All replies
-
Might try asking in their forums.
https://support.mongodb.com/welcome
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Thursday, November 28, 2019 12:31 PM
- Marked as answer by Richard MuellerMVP, Banned Thursday, December 5, 2019 2:17 PM
Thursday, November 28, 2019 12:08 PM -
Hi,
You'll also find the recommended operating system versions for Mongo DB 3.0 over here:
https://docs.mongodb.com/v3.0/administration/production-notes/A quick look, it seems Windows Server 2016 is not in the list of recommended operating systems.
To get a better answer, you better ask in their dedicated forums that Dave linked.
Blog:
https://thesystemcenterblog.com LinkedIn:
- Proposed as answer by Richard MuellerMVP, Banned Thursday, November 28, 2019 12:31 PM
- Marked as answer by Richard MuellerMVP, Banned Thursday, December 5, 2019 2:17 PM
Thursday, November 28, 2019 12:18 PM -
Hi,
i see other posts related to migration from 2008 R2 to 2016 windows server https://social.technet.microsoft.com/Forums/en-US/23b0aee0-64dc-46c2-9a09-0dfd0b2d63dc/upgrade-and-migration-server-2008r2-to-server-2016?forum=ws2016
as they mentioned it's not possible for migration from 2008 R2 to 2016 Windows server is this correct?
we are facing issue.. suggest us are we good to proceed migration from 2008 R2 to 2016
or else we can do 2008R2 TO 2012 and 2012 to 2016 windows server.
Meanwhile as Dave suggested will post in mongodb forum as well
Thanks
Bhuvana
Friday, November 29, 2019 6:46 AM -
Yes you cannot perform an in-place upgrade from Windows Server 2008 R2 to Windows Server 2016 directly, you will need to do it in multiple steps as you said:
Server 2008 R2 -> Server 2012 R2 -> Server 2016.
The recommended way is to set up a new server on the side and clean install, then migrate your workloads.
Blog:
https://thesystemcenterblog.com LinkedIn:
Friday, November 29, 2019 6:52 AM -
Hi Leon,
Thanks for your suggestion, i will follow the same approach and keep posted
Thanks
Bhuvana
Friday, November 29, 2019 7:02 AM