Mongodb: Connection reset from user

I have a Mongo server running in an Ubuntu box, and I'm trying to connect to it using pymongo using the usual syntax:

from pymongo import Connection
c = Connection('db.example.com', 27017)

This works fine on the newly developed Intel Mac (OS 10.6). However, the same code on the older G5 tower (10.5) causes this error:

pymongo.errors.AutoReconnect: [Errno 54] Connection reset by peer

The mongo output on the server reports:

connection accepted from oldmac.example:57681 #3
bad recv() len: 973078528
end connection oldmac.example:57681

I know that I cannot start the mongodb server with PPC Mac, but it seems strange that I can not connect to the remote database. Or is it something else through the fault?

+3
source share
2 answers

, Google MongoDB. , , :

C? ( pymongo.has_c()). C , , , , . C python setup.py install --no_ext , .

-

+1

, MongoClient Connection.

Python MongoDB

: . , MongoClient .

. MongoClient Python.

0

Source: https://habr.com/ru/post/1748241/


All Articles