object(MongoConnectionException)#25 (7) { ["message":protected]=> string(50) "Failed to connect to: db:27017: Connection refused" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(71) ["file":protected]=> string(53) "/var/www/megareads/application/models/mongo_model.php" ["line":protected]=> int(33) ["trace":"Exception":private]=> array(9) { [0]=> array(6) { ["file"]=> string(53) "/var/www/megareads/application/models/mongo_model.php" ["line"]=> int(33) ["function"]=> string(11) "__construct" ["class"]=> string(11) "MongoClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(12) "mongodb://db" } } [1]=> array(6) { ["file"]=> string(41) "/var/www/megareads/system/core/Loader.php" ["line"]=> int(303) ["function"]=> string(11) "__construct" ["class"]=> string(11) "Mongo_model" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(41) "/var/www/megareads/system/core/Loader.php" ["line"]=> int(237) ["function"]=> string(5) "model" ["class"]=> string(9) "CI_Loader" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &string(11) "mongo_model" } } [3]=> array(6) { ["file"]=> string(41) "/var/www/megareads/system/core/Loader.php" ["line"]=> int(1185) ["function"]=> string(5) "model" ["class"]=> string(9) "CI_Loader" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &array(3) { [0]=> string(11) "mongo_model" [1]=> string(11) "books_model" [2]=> string(14) "book_box_model" } } } [4]=> array(6) { ["file"]=> string(41) "/var/www/megareads/system/core/Loader.php" ["line"]=> int(152) ["function"]=> string(14) "_ci_autoloader" ["class"]=> string(9) "CI_Loader" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [5]=> array(6) { ["file"]=> string(45) "/var/www/megareads/system/core/Controller.php" ["line"]=> int(51) ["function"]=> string(10) "initialize" ["class"]=> string(9) "CI_Loader" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [6]=> array(6) { ["file"]=> string(51) "/var/www/megareads/application/controllers/home.php" ["line"]=> int(7) ["function"]=> string(11) "__construct" ["class"]=> string(13) "CI_Controller" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [7]=> array(6) { ["file"]=> string(46) "/var/www/megareads/system/core/CodeIgniter.php" ["line"]=> int(308) ["function"]=> string(11) "__construct" ["class"]=> string(4) "Home" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [8]=> array(4) { ["file"]=> string(28) "/var/www/megareads/index.php" ["line"]=> int(204) ["args"]=> array(1) { [0]=> string(46) "/var/www/megareads/system/core/CodeIgniter.php" } ["function"]=> string(12) "require_once" } } ["previous":"Exception":private]=> NULL }