When I start some of my services, it reports such warnings and the services stop:
/usr/lib64/python2.6/site-packages/pymongo/topology.py:75:
UserWarning: MongoClient opened before fork. Create MongoClient with connect=False,
or create client after forking. See PyMongo's documentation for details:
http://api.mongodb.org/python/current/faq.html#using-pymongo-with-multiprocessing>
"MongoClient opened before fork. Create MongoClient "
However, the MongoClient
has been using the parameter connect=False
, as you can review the code below:
client = MongoClient(host, port, connect=False)
It is still not working. By the way, I have upgraded my pymongo version to 3.4.0. Can someone give me some suggestions?
Cheers, Kai