PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 29th of August, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:54:27] <styles> Can you specifiy via BSON for a property to be unique? I know you can do Index
[03:11:34] <authfol> if I save something new to my collection like so - newUser.save(function(err, user) {... what's the best way to exclude certain properties from user? I need to res.send(user) inside of the .save callback, but only one or two properties from it
[03:25:48] <qfinder> Does anyone know why a query returned by db.currentOp() (no true param) would have “ns”: “”?
[04:21:28] <ldelarosa> Hello guys
[04:22:15] <ldelarosa> I'm trying to add a new user to a mongodb with some privileges
[04:22:40] <joannac> okay
[04:22:46] <ldelarosa> this is what i'm trying:
[04:23:37] <ldelarosa> db.addUser({
[04:23:37] <ldelarosa> user: "test_user",
[04:23:37] <ldelarosa> pwd: "password",
[04:23:37] <ldelarosa> privileges: [{
[04:23:37] <ldelarosa> resource: { "collection" : "tes_database"},
[04:23:38] <ldelarosa> actions: ["create","insert"]
[04:23:40] <ldelarosa> }],
[04:23:42] <ldelarosa> roles: [{ role: "readWrite", db: "test_database" }]
[04:23:44] <ldelarosa> })
[04:24:41] <ldelarosa> And getting this error:
[04:24:43] <ldelarosa> couldn't add user: Roles must be non-empty strings.
[04:25:20] <ldelarosa> what's wrong with that code?
[04:27:10] <ldelarosa> Any ideas.
[04:28:45] <joannac> looking
[04:29:42] <ldelarosa> ok thanks
[04:33:29] <joannac> for a start, I didn't think "privileges" was a valid entry in a user document
[04:34:15] <joannac> what version?
[04:52:05] <ldelarosa> version 2.4
[05:55:13] <Const> Good morning!
[07:55:55] <NoSqlHelp> Hello everyone
[07:56:51] <NoSqlHelp> I need professional help on MongoDB issue
[07:58:06] <NoSqlHelp> is it possible to query from linked table on mongodb shell ?
[08:11:39] <RaffoPazzo> Hello, has anybody ever tried to cross compile mongo (for any target architecture) ?
[08:12:59] <jordana> RaffoPazzo: There have been some ARM builds
[08:13:10] <jordana> but only experimental
[08:15:58] <RaffoPazzo> jordana: Thank you, I'm trying to cross-compile it for MIPS and I have issues which I am trying to address
[08:16:11] <RaffoPazzo> I wanted at least to be sure that the scons build scripts can handle with cross-compilation
[08:40:06] <RaffoPazzo> and also another thing, is it possible to tell SCons to not build the entire world but just mongod ?
[08:42:17] <jordana> scons mongod
[08:42:39] <jordana> should build just mongod RaffoPazzo
[08:45:20] <RaffoPazzo> jordana: thank you, never thought it was that easy :)
[08:51:26] <jordana> :)