Skip to content

MongoError: topology was destroyed #408

@freezy

Description

@freezy

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


MongoError: topology was destroyed
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/db_ops.js", line 395, in executeCommand
        return callback(new MongoError('topology was destroyed'));
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/find_and_modify.js", line 90, in FindOneAndUpdateOperation.execute
        executeCommand(coll.s.db, queryObject, options, (err, result) => {
  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/collection.js", line 1679, in Collection.findOneAndUpdate
      return executeOperation(this.s.topology, findOneAndUpdateOperation, callback);
  File "NativeCollection.(anonymous function) [as findOneAndUpdate] (/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/mongoose/lib/query.js", line 3541, in model.Query.Query._findAndModify
          collection[updateMethod](castedQuery, this._update, opts, _wrapThunkCallback(_this, function(error, res) {
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/lib/query.js", line 3001, in model.Query.<anonymous>
      this._findAndModify('update', callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/lib/helpers/query/wrapThunk.js", line 16, in model.Query._wrappedThunk [as _findOneAndUpdate]
        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