Skip to content

(chore): Remove monogdb from admin analytics - MongoDB\Driver\Exception\ConnectionTimeoutException: No suitable servers found (`serverSelectionTryOnce` set): [connection timeout calling ismaster on...

Sentry Issue: ENGINE-Z

MongoDB\Driver\Exception\ConnectionTimeoutException: No suitable servers found (`serverSelectionTryOnce` set): [connection timeout calling ismaster on '10.0.4.10:27017']
  File "/vendor/mongodb/mongodb/src/Collection.php", line 228, in MongoDB\Driver\Manager::selectServer
    $server = $this->manager->selectServer($options['readPreference']);
  File "/vendor/mongodb/mongodb/src/Collection.php", line 228, in MongoDB\Collection::count
    $server = $this->manager->selectServer($options['readPreference']);
  File "/Core/Data/MongoDB/Client.php", line 193, in Minds\Core\Data\MongoDB\Client::count
    ->count($query);
  File "/Core/Boost/Network/Metrics.php", line 62, in Minds\Core\Boost\Network\Metrics::getBacklogCount
    return (int) $this->mongo->count('boost', $query);
  File "/Controllers/api/v1/admin/boosts/analytics.php", line 46, in Minds\Controllers\api\v1\admin\boosts\analytics::get
    $backlog = $metrics->getBacklogCount();
...
(4 additional frame(s) were not displayed)