Skip to content

Instantly share code, notes, and snippets.

@janw-me
Last active May 20, 2019 08:10
Show Gist options
  • Save janw-me/3f056d3d992c0cf4a48443b97ebf1ace to your computer and use it in GitHub Desktop.
Save janw-me/3f056d3d992c0cf4a48443b97ebf1ace to your computer and use it in GitHub Desktop.
xhgui.vvv.test error
https://imgur.com/a/OKaK3TcAw shoot, Xhgui hit an error
No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '127.0.0.1:27017']
You should check the following things:
Ensure that Mongo has been started
That config/config.php has the right connection information.
That the cache/ directory has the correct permissions.
Stack trace
#0 /srv/www/default/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Mongo/MongoCollection.php(563): Alcaeus\MongoDbAdapter\ExceptionConverter::toLegacy(Object(MongoDB\Driver\Exception\ConnectionTimeoutException))
#1 /srv/www/default/xhgui/src/Xhgui/ServiceContainer.php(80): MongoCollection->findOne()
#2 /srv/www/default/xhgui/vendor/pimple/pimple/lib/Pimple.php(126): Xhgui_ServiceContainer->{closure}(Object(Xhgui_ServiceContainer))
#3 /srv/www/default/xhgui/vendor/pimple/pimple/lib/Pimple.php(83): Pimple::{closure}(Object(Xhgui_ServiceContainer))
#4 /srv/www/default/xhgui/src/Xhgui/ServiceContainer.php(94): Pimple->offsetGet('db')
#5 /srv/www/default/xhgui/vendor/pimple/pimple/lib/Pimple.php(83): Xhgui_ServiceContainer->{closure}(Object(Xhgui_ServiceContainer))
#6 /srv/www/default/xhgui/src/Xhgui/ServiceContainer.php(110): Pimple->offsetGet('searcher.mongo')
#7 /srv/www/default/xhgui/vendor/pimple/pimple/lib/Pimple.php(83): Xhgui_ServiceContainer->{closure}(Object(Xhgui_ServiceContainer))
#8 /srv/www/default/xhgui/src/Xhgui/ServiceContainer.php(136): Pimple->offsetGet('searcher')
#9 /srv/www/default/xhgui/vendor/pimple/pimple/lib/Pimple.php(83): Xhgui_ServiceContainer->{closure}(Object(Xhgui_ServiceContainer))
#10 /srv/www/default/xhgui/src/routes.php(24): Pimple->offsetGet('runController')
#11 [internal function]: {closure}()
#12 /srv/www/default/xhgui/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#13 /srv/www/default/xhgui/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()
#14 /srv/www/default/xhgui/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#15 /srv/www/default/xhgui/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#16 /srv/www/default/xhgui/vendor/slim/slim/Slim/Middleware/SessionCookie.php(110): Slim\Middleware\MethodOverride->call()
#17 /srv/www/default/xhgui/src/Xhgui/Middleware/Render.php(11): Slim\Middleware\SessionCookie->call()
#18 /srv/www/default/xhgui/vendor/slim/slim/Slim/Slim.php(1300): Xhgui_Middleware_Render->call()
#19 /srv/www/default/xhgui/webroot/index.php(10): Slim\Slim->run()
#20 {main}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment