Fatal error: Uncaught MongoDB\Driver\Exception\ConnectionTimeoutException: No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on 'localhost:27017'] in /var/www/html/airsensis/vendor/mongodb/mongodb/src/Collection.php:276
Stack trace:
#0 /var/www/html/airsensis/vendor/mongodb/mongodb/src/Collection.php(276): MongoDB\Driver\Manager->selectServer(Object(MongoDB\Driver\ReadPreference))
#1 /var/www/html/airsensis/vendor/mongodb/mongodb/src/Collection.php(247): MongoDB\Collection->createIndexes(Array)
#2 /var/www/html/airsensis/index.php(14): MongoDB\Collection->createIndex(Array)
#3 {main}
thrown in /var/www/html/airsensis/vendor/mongodb/mongodb/src/Collection.php on line 276