You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to sync two mongodb services with replicasets. i.e. first service have 3 replicas and second service also have 3 replicas. So I want to sync all the data from first service to second service, which is giving below error.
`Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 425, in init
self._ensure_connected(True)
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1083, in _ensure_connected
self.__ensure_member()
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 957, in __ensure_member
member, nodes = self.__find_node()
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1048, in __find_node
raise AutoReconnect(', '.join(errors))
pymongo.errors.AutoReconnect: connection closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/mongo_connector/doc_managers/mongo_doc_manager.py", line 70, in init
self.mongo = pymongo.MongoClient(url, **kwargs.get("clientOptions", {}))
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 428, in init
raise ConnectionFailure(str(e))
pymongo.errors.ConnectionFailure: connection closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/mongo-connector", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/mongo_connector/util.py", line 107, in wrapped
func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/mongo_connector/connector.py", line 1409, in main
conf.parse_args()
File "/usr/local/lib/python3.9/site-packages/mongo_connector/config.py", line 124, in parse_args
option.apply_function(
File "/usr/local/lib/python3.9/site-packages/mongo_connector/connector.py", line 1134, in apply_doc_managers
dm_instances.append(DocManager(target_url, **kwargs))
File "/usr/local/lib/python3.9/site-packages/mongo_connector/doc_managers/mongo_doc_manager.py", line 74, in init
raise errors.ConnectionFailed("Failed to connect to MongoDB")`
I am trying to sync two mongodb services with replicasets. i.e. first service have 3 replicas and second service also have 3 replicas. So I want to sync all the data from first service to second service, which is giving below error.
`Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 425, in init
self._ensure_connected(True)
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1083, in _ensure_connected
self.__ensure_member()
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 957, in __ensure_member
member, nodes = self.__find_node()
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1048, in __find_node
raise AutoReconnect(', '.join(errors))
pymongo.errors.AutoReconnect: connection closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/mongo_connector/doc_managers/mongo_doc_manager.py", line 70, in init
self.mongo = pymongo.MongoClient(url, **kwargs.get("clientOptions", {}))
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 428, in init
raise ConnectionFailure(str(e))
pymongo.errors.ConnectionFailure: connection closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/mongo-connector", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/mongo_connector/util.py", line 107, in wrapped
func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/mongo_connector/connector.py", line 1409, in main
conf.parse_args()
File "/usr/local/lib/python3.9/site-packages/mongo_connector/config.py", line 124, in parse_args
option.apply_function(
File "/usr/local/lib/python3.9/site-packages/mongo_connector/connector.py", line 1134, in apply_doc_managers
dm_instances.append(DocManager(target_url, **kwargs))
File "/usr/local/lib/python3.9/site-packages/mongo_connector/doc_managers/mongo_doc_manager.py", line 74, in init
raise errors.ConnectionFailed("Failed to connect to MongoDB")`
my config file contents are as below
`{
"mainAddress": "mongodb://$USERNAME:$PASSWORD@68******************-0.budep0g.databases.appdomain.cloud:31933,68*******-1.budep0g.databases.appdomain.cloud:31933,68*******-2.budep***********0g.databases.appdomain.cloud:31933/?authSource=admin&replicaSet=replset",
"verbosity": 3,
"docManagers": [
{
"docManager": "mongo_doc_manager",
"targetURL": "mongodb://$USERNAME:$PASSWORD@68******************-0.budep0g.databases.appdomain.cloud:31933,68*******-1.budep0g.databases.appdomain.cloud:31933,68*******-2.budep***********0g.databases.appdomain.cloud:31933/?authSource=admin&replicaSet=replset"
}
]
}`
The text was updated successfully, but these errors were encountered: