Fatal error: Uncaught exception 'MongoCursorException' with message 'localhost:27017: ReplicaSetMonitor no master found for set: MyReplicaSet' in /var/www/env2/vendor/ZF2/library/Zend/Session/SaveHandler/MongoDB.php:114 Stack trace: #0 /var/www/env2/vendor/ZF2/library/Zend/Session/SaveHandler/MongoDB.php(114): MongoCollection->findOne(Array) #1 [internal function]: Zend\Session\SaveHandler\MongoDB->read('gcti4s3gv4o4uc2...') #2 /var/www/env2/vendor/ZF2/library/Zend/Session/SessionManager.php(95): session_start() #3 /var/www/env2/module/Application/Module.php(60): Zend\Session\SessionManager->start() #4 /var/www/env2/module/Application/Module.php(50): Application\Module->bootstrapSession(Object(Zend\Mvc\MvcEvent)) #5 [internal function]: Application\Module->onBootstrap(Object(Zend\Mvc\MvcEvent)) #6 /var/www/env2/vendor/ZF2/library/Zend/EventManager/EventManager.php(460): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #7 /var/www/env2/vendor/ZF2/library/Zend/EventManager/EventManager.php(204): Zend\EventManager\EventManag in /var/www/env2/vendor/ZF2/library/Zend/Session/SaveHandler/MongoDB.php on line 114

Fatal error: Uncaught exception 'MongoCursorException' with message 'localhost:27017: ReplicaSetMonitor no master found for set: MyReplicaSet' in /var/www/env2/vendor/ZF2/library/Zend/Session/SaveHandler/MongoDB.php:159 Stack trace: #0 /var/www/env2/vendor/ZF2/library/Zend/Session/SaveHandler/MongoDB.php(159): MongoCollection->update(Array, Array, Array) #1 [internal function]: Zend\Session\SaveHandler\MongoDB->write('gcti4s3gv4o4uc2...', '') #2 /var/www/env2/vendor/ZF2/library/Zend/Session/SessionManager.php(166): session_write_close() #3 [internal function]: Zend\Session\SessionManager->writeClose() #4 {main} thrown in /var/www/env2/vendor/ZF2/library/Zend/Session/SaveHandler/MongoDB.php on line 159