Fatal error: Uncaught exception 'MongoCursorException' with message '172.31.17.138:27017: not master and slaveOk=false' in /opt/whathouse/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Cursor.php:288 Stack trace: #0 /opt/whathouse/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Cursor.php(288): MongoCursor->rewind() #1 /opt/whathouse/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Cursor.php(521): Doctrine\MongoDB\Cursor->Doctrine\MongoDB\{closure}() #2 /opt/whathouse/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Cursor.php(289): Doctrine\MongoDB\Cursor->retry(Object(Closure), false) #3 /opt/whathouse/vendor/bjyoungblood/bjy-authorize/src/BjyAuthorize/Provider/Role/ObjectRepositoryProvider.php(45): Doctrine\MongoDB\Cursor->rewind() #4 /opt/whathouse/vendor/bjyoungblood/bjy-authorize/src/BjyAuthorize/Service/Authorize.php(389): BjyAuthorize\Provider\Role\ObjectRepositoryProvider->getRoles() #5 /opt/whathouse/vendor/bjyoungblood/bjy-authorize/src/BjyAuthorize/Service/Authorize.php(269): BjyAuthorize\Service\Authorize->loadAcl() #6 / in /opt/whathouse/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Cursor.php on line 288