mongo-connector cannot connect to Mongodb 3.0.2

53 views
Skip to first unread message

stephen ward

unread,
Jun 8, 2015, 6:31:16 PM6/8/15
to mongod...@googlegroups.com

anyone able to get mongo-connector working with mongo 3.0.2 ?



./env/bin/python ./mongo_connector/connector.py -m 'mongodb://admin:xxxxx...@nnn.31.48.nnn:27017'  -n 'railway.accounts' -d ./mongo_connector/doc_managers/algolia_doc_manager.py -t xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:railway

2015-06-05 16:26:32,434 - INFO - Beginning Mongo Connector

2015-06-05 16:26:32,457 - INFO - Algolia Connector: Start without filter.

2015-06-05 16:26:32,457 - INFO - Algolia Connector: Start without remapper.

2015-06-05 16:26:32,457 - INFO - Algolia Connector: Start without post processing.

2015-06-05 16:26:32,459 - INFO - MongoConnector: Empty oplog progress file.

Exception in thread Thread-1:

Traceback (most recent call last):

  File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner

    self.run()

  File "./mongo_connector/connector.py", line 276, in run

    main_conn.admin.command("isdbgrid")

  File "build/bdist.macosx-10.9-x86_64/egg/pymongo/database.py", line 451, in command

    with client._socket_for_reads(read_preference) as (sock_info, slave_ok):

  File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__

    return self.gen.next()

  File "build/bdist.macosx-10.9-x86_64/egg/pymongo/mongo_client.py", line 699, in _socket_for_reads

    with self._get_socket(read_preference) as sock_info:

  File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__

    return self.gen.next()

  File "build/bdist.macosx-10.9-x86_64/egg/pymongo/mongo_client.py", line 663, in _get_socket

    server = self._get_topology().select_server(selector)

  File "build/bdist.macosx-10.9-x86_64/egg/pymongo/topology.py", line 121, in select_server

    address))

  File "build/bdist.macosx-10.9-x86_64/egg/pymongo/topology.py", line 97, in select_servers

    self._error_message(selector))

ServerSelectionTimeoutError: 72.31.48.158:27017: [Errno 61] Connection refused

Bernie Hackett

unread,
Jun 9, 2015, 11:37:52 AM6/9/15
to mongod...@googlegroups.com, ste...@getrailway.com
mongo-connector doesn't yet support PyMongo 3.x. Downgrade your PyMongo install to 2.8.1.


On Monday, June 8, 2015 at 3:31:16 PM UTC-7, stephen ward wrote:

anyone able to get mongo-connector working with mongo 3.0.2 ?



./env/bin/python ./mongo_connector/connector.py -m 'mongodb://admin:xxxxxxxxxxx@nnn.31.48.nnn:27017'  -n 'railway.accounts' -d ./mongo_connector/doc_managers/algolia_doc_manager.py -t xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:railway

Reply all
Reply to author
Forward
0 new messages