[02:07:22] <Ragnar> Hey guys, any of you had experience utilizing mongodb for applications that are still rather relational successfully or not? Any regrets? I like the idea of using mongo for the easy scaling and also using javascript/json across my entire application.
[08:34:03] <someone235> After a restart, mongod says " ERROR: dbpath (/data/db) does not exist." Although I've never had any problem with this before. I've checked in /etc/mongodb.conf and it says: "dbpath=/var/lib/mongodb", and I've checked this directory, and all the files are there as usual
[08:34:31] <someone235> Anyone has an idea what can cause this and how to fix it?
[08:43:01] <joannac> someone235: starting with a different config file?
[08:43:44] <someone235> No, nobbe helped to figure it out. I had no enough space for the journal files
[09:50:59] <Iskandar> I want to setup a testcluster and want to run a mongod, config and routing mongo on 1 server. Do I need to install mongodb three times then ? or can i re-use the one mongo instance on that particular machine?
[12:00:49] <alens> My mongodb replica set is running out of space. I removed some colections (backup copy) but the space stay the same
[12:01:08] <alens> now, should i leave it like that so that the app uses the whitespace..or should i shrink it?
[12:13:15] <cheeser> you can compress the db but it'll mean downtime
[12:13:36] <cheeser> so typically you run db.repair() on a secondary and then move your way around the replset
[12:14:53] <alens> @cheeser db.repair() is an offline mode?
[12:19:18] <cheeser> it'll lock the db completely while it works.
[12:25:26] <alens> what is the best practice? if i remove content from the DB its wise to compact, or to leave it as it is?
[13:38:14] <Jumboo> yo, can anyone tell me a good way of find case sensitive value ? i got now fields username and username_lower so i usually get the lower and find by that but is there no other way ... ? i know regex is possible but i wanna go without it
[14:28:53] <Bodenhaltung> Hi, at the moment i am confused, i want to build a quere in php like "... where foo = bar AND moep = 1 OR ( name = Alice OR name = Bob)". So foo and moep is "must" and name is "can"? Does anyone understand me or am i too confused?
[14:42:26] <Jumboo> why does my update query remove my document ?
[14:46:24] <Jumboo> can i combine $set and $inc together?
[15:32:19] <Jumboo> vfuse somehow it will not create the field ... should i use something in the options like upsert ?
[15:33:16] <Jumboo> vfuse oh no it works creating a NumberLong
[15:38:12] <Bodenhaltung> Or can someone here show me a example php "and" and "or", "or", "or" query?
[15:38:44] <Jumboo> is there a way to convert mongo string to lowercase and compare in find so i don't have to have multiple fields like username: Jako and username_lower: jako
[16:46:59] <Cyric> seems the same here but no answers
[16:48:10] <Cyric> how is possible that a so basic function such as inserting a datatime into mongodb doesnt work?
[16:48:26] <Cyric> am i the first one trying to do so?
[16:53:36] <shoshy> hey, i'm using mongodb 3.07 and node.js official driver. When i try to connect (and authenticate) i get "Authentication failed.", code: 18. I've used the connectionStr: mongodb://user:password@server_ip:27017/?authMechanism=SCRAM-SHA-1&authSource=db_name which all the details are right (i'm able to connect using pymongo) . All ports are open.
[17:36:59] <StephenLynx> because it doesnt have a package manager,
[17:37:46] <shoshy> where do they hide the command shell only... i don't want to install the whole db on the client just to use the command line shell.. arrr..
[17:38:11] <StephenLynx> if you were using linux I would know which thing to install from the repository.
[17:42:25] <StephenLynx> mongod is the server, afaik
[17:42:32] <shoshy> StephenLynx: so how come i can connect through pyMongo (python) ?
[17:42:35] <StephenLynx> mongo-org is the whole thing.
[17:42:48] <StephenLynx> maybe that driver behaves differently with authentication.
[17:43:06] <StephenLynx> maybe it checks if auth is on or not and just connects if its off.
[17:45:46] <shoshy> StephenLynx: so i tried doing "mongodb://%s:%s@%s/test?authMechanism=.... " iterating all mechanisms
[17:46:42] <shoshy> it failed on all of them basically... when i've put PLAIN i've received "supportedMechanisms: [ 'MONGODB-CR', 'MONGODB-X509', 'SCRAM-SHA-1' ],"
[17:46:59] <shoshy> what's the command to "use db_name" ? once connected
[18:06:56] <shoshy> basically i've "re-created".. or ran "db.createUser" again, this time after using "use db_name". and then it all worked. That's weird. because the user was defined with the db "readWrite" roles for that db . But when i first created it , it was after using "use admin".
[18:23:59] <StephenLynx> try on a VM running centOS 7.
[20:11:44] <surferdude1> Hello, I accidently deleted /var/log/mongodb and now mongod won't start. any ideas on how to get it working? I tried recreating the directory/log file but it still isnt coming back
[22:05:52] <christo_m> so i get Mod on _id not allowed on production but on development i dont get this error