Skip to content

Instantly share code, notes, and snippets.

@v1k0d3n
Created September 13, 2016 21:10
Show Gist options
  • Save v1k0d3n/c16fa640043d1074406d16f5b6f0944b to your computer and use it in GitHub Desktop.
Save v1k0d3n/c16fa640043d1074406d16f5b6f0944b to your computer and use it in GitHub Desktop.
root@JINKITDSTORE01:/volume1/@appstore/UniFi Controller# mongo --port 27117 < mongo_prune_js.js
mongo: /lib/libstdc++.so.6: no version information available (required by mongo)
mongo: /lib/libstdc++.so.6: no version information available (required by mongo)
mongo: /lib/libstdc++.so.6: no version information available (required by mongo)
MongoDB shell version: 3.2.1
connecting to: 127.0.0.1:27117/test
[dryrun] pruning data older than 7 days (1473196224883)...
switched to db ace
[dryrun] pruning 38 entries (total 38) from alarm...
2016-09-13T17:10:24.906-0400 E QUERY [thread1] Error: count failed: { "errmsg" : "10320 BSONElement: bad type 22", "ok" : 0 } :
_getErrorWithCode@src/mongo/shell/utils.js:23:13
DBQuery.prototype.count@src/mongo/shell/query.js:359:11
@(shell):40:12
switched to db ace_stat
Cannot use 'commands' readMode, degrading to 'legacy' mode
[dryrun] pruning 4679 entries (total 4679) from stat_archive...
[dryrun] pruning 732 entries (total 732) from stat_daily...
2016-09-13T17:10:24.969-0400 E QUERY [thread1] Error: count failed: {
"errmsg" : "10334 Invalid BSONObj size: 1634754424 (0x785F7061) first element: kets: ?type=99",
"ok" : 0
} :
_getErrorWithCode@src/mongo/shell/utils.js:23:13
DBQuery.prototype.count@src/mongo/shell/query.js:359:11
@(shell):12:12
bye
root@JINKITDSTORE01:/volume1/@appstore/UniFi Controller#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment