Skip to content

MongoError: pool destroyed #407

@freezy

Description

@freezy

View details in Rollbar: https://rollbar.com/freezy/server/items/56/


MongoError: pool destroyed
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/connection/pool.js", line 804, in Pool.write
            cb(new MongoError('pool destroyed'));
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/wireprotocol/command.js", line 107, in _command
        pool.write(message, commandOptions, commandResponseHandler);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/wireprotocol/command.js", line 25, in command
        _command(server, ns, cmd, options, callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/wireprotocol/query.js", line 57, in Object.query
      command(server, ns, findCmd, commandOptions, callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/topologies/server.js", line 640, in Server.query
      wireProtocol.query(this, ns, cmd, cursorState, options, callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/find.js", line 24, in FindOperation.execute
        server.query(this.ns.toString(), this.cmd, cursorState, this.options, callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/execute_operation.js", line 163, in topology.selectServer
          operation.execute(server, callbackWithRetry);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/topologies/server.js", line 828, in Server.selectServer
      callback(null, this);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/topologies/topology_base.js", line 363, in Server.selectServer
        return this.s.coreTopology.selectServer(selector, options, callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/execute_operation.js", line 150, in executeWithServerSelection
      topology.selectServer(serverSelectionOptions, (err, server) => {
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/execute_operation.js", line 81, in executeOperation
            return executeWithServerSelection(topology, operation, handler);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/cursor.js", line 545, in Cursor._initializeCursor
          executeOperation(cursor.topology, cursor.operation, (err, result) => {
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/cursor.js", line 191, in Cursor._initializeCursor
        super._initializeCursor(callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/cursor.js", line 748, in nextFunction
        self._initializeCursor((err, result) => {
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/core/cursor.js", line 202, in Cursor._next
        nextFunction(this, callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/to_array.js", line 27, in fetchDocs
          cursor._next((err, doc) => {
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/to_array.js", line 60, in ToArrayOperation.execute
        fetchDocs();
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/execute_operation.js", line 83, in executeOperation
            return operation.execute(handler);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/cursor.js", line 789, in Cursor.toArray
        return executeOperation(this.topology, toArrayOperation, callback);
  File "/var/www/server/production/v2.3.8/node_modules/mquery/lib/collection/node.js", line 30, in <unknown>
          cursor.toArray(cb);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/collection.js", line 438, in Collection.<anonymous>
          callback(null, cursor);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/utils.js", line 639, in Collection.deprecated [as find]
        return fn.apply(this, arguments);
  File "NativeCollection.(anonymous function) [as find] (/var/www/server/production/v2.3.8/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js", line 166, in <unknown>
  File "/var/www/server/production/v2.3.8/node_modules/mquery/lib/collection/node.js", line 26, in NodeCollection.find
      this.collection.find(match, options, function(err, cursor) {
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/lib/query.js", line 1926, in model.Query.<anonymous>
      this._collection.find(filter, options, cb);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/lib/helpers/query/wrapThunk.js", line 16, in model.Query._wrappedThunk [as _find]
        fn.call(this, cb);
  File "/var/www/server/production/v2.3.8/node_modules/kareem/index.js", line 369, in process.nextTick
          process.nextTick(() => fn.apply(this, arguments));
  File "internal/process/next_tick.js", line 132, in _combinedTickCallback
  File "internal/process/next_tick.js", line 181, in process._tickCallback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions