Skip to content

Instantly share code, notes, and snippets.

@yosemsweet
Created July 4, 2014 15:58
Show Gist options
  • Save yosemsweet/c62454f52542ee8cd6e2 to your computer and use it in GitHub Desktop.
Save yosemsweet/c62454f52542ee8cd6e2 to your computer and use it in GitHub Desktop.
mongoose uptime remote mongo issue
Mongoose: pings.ensureIndex({ timestamp: -1 }) { safe: undefined, background: true }
Mongoose: checkevents.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true }
Mongoose: checkhourlystats.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: checkdailystats.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: checkmonthlystats.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: checkyearlystats.ensureIndex({ timestamp: -1, check: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: taghourlystats.ensureIndex({ timestamp: -1, name: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: tagdailystats.ensureIndex({ timestamp: -1, name: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: tagmonthlystats.ensureIndex({ timestamp: -1, name: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: tagyearlystats.ensureIndex({ timestamp: -1, name: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: tags.ensureIndex({ name: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: checks.find({ '$where': 'function () {\n if (this.isPaused) return false;\n if (!this.firstTested) return true;\n var delay = (this.lastTested.getTime() - this.firstTested.getTime()) % this.interval;\n return (Date.now() - this.lastTested.getTime() + delay) >= (this.interval || 60000);\n}' }) { fields: { qos: 0 }, safe: undefined }
Mongoose: pings.ensureIndex({ check: 1 }) { safe: undefined, background: true }
{ [MongoError: unauthorized] name: 'MongoError', ok: 0, errmsg: 'unauthorized' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment