PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 8th of October, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[08:38:23] <dandre> Hello,
[08:38:23] <dandre> Regarding this code: http://pastebin.fr/58665
[08:38:23] <dandre> I get
[08:38:23] <dandre> MongoDB shell version: 2.6.12
[08:38:23] <dandre> connecting to: test
[08:38:24] <dandre> 2019-10-08T10:12:02.958+0200 Error: The usersInfo and rolesInfo commands require auth data to have schema version 3 or 2 but found 1 at src/mongo/shell/db.js:1342
[08:38:24] <dandre> failed to load: foo.js
[08:39:02] <dandre> Is there any way to determine whether my user schema must be converted or not?
[08:42:16] <dandre> If I use 'root=db.getUsers()[0];' the script doesn't exit prematurely and I can guess the result.
[11:47:15] <GothAlice> https://docs.mongodb.com/manual/release-notes/2.6-upgrade-authorization/index.html
[11:47:44] <GothAlice> See also: https://docs.mongodb.com/manual/release-notes/3.0-scram/
[11:49:25] <GothAlice> dandre: Also, there may be some conflation. db.getUsers isn't there to assist with application user concerns. Those are database users. Also, WTF: "root".
[12:21:09] <dandre> Ok but I am writting an upgrade script that will upgrade all data from 2.4 to 2.6.
[12:21:09] <dandre> root account like root account in MySql. Maybe I am wrong
[12:33:42] <GothAlice> If that’s how you set it up, then that’s fine. “root” is an unusual account name choice, as it is a common name that will be targeted in probing, but to each their own. (Note that any ideas you have from MySQL experience are probably not “best practices”. In fact, most of MySQL are literal worst practices: http://grimoire.ca/mysql/choose-something-else
[12:33:53] <GothAlice> )
[12:35:10] <GothAlice> dandre: Part of the upgrade process is updating your authentication schema, ref: the linked bits of documentation. Whenever dealing with upgrades, have the changelog for the version you are migrating to open, and follow any migration guides offered.
[18:16:15] <bgilb> my c# driver returns nothing using .Distinct.. but the mongo CLI returns data
[18:16:18] <bgilb> don't understand why :\