PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 7th of December, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[02:27:23] <morenoh149> any reccomendation on a video for an intermediate developer on advanced mongodb topics?
[02:27:36] <morenoh149> data modeling, scaling considerations, optimizations?
[03:07:01] <ronak> I'm having some trouble starting up my database. I shutdown it down properly using the shutdown command from the shell but when I start it up it's giving me this: "DBException 10446: mmap: can't map area of size 0 file: /data/test.3". There are 20 something data files for the test database. I'm not sure how/why that data file is 0 byte.
[03:08:11] <ronak> I tried repairing and got the same error.
[04:17:52] <tejas-manohar> on all operating systems can you just type `mongod` in shell to start mongo
[04:18:02] <tejas-manohar> or on some do you need to do things like service mongod start
[06:21:38] <ra21vi_> is there minimal mongo ODM for python? Mongoengine is way bulky, mongokit needs me to register document post connection. I need simple, where I manage connection and then an ODM to make dotted-dict and expose raw-query-manager
[11:01:39] <sabrehagen> hi guys, i have this mongoose query to find a document based on two fields, only one of which has to be found, hence an or: http://i.imgur.com/ioNRsX2.png. if i delete the _id check, the username is matched. if i include the _id check, the username is never matched, but the _id is always matched regardless of whether username is included or not. i can't work out why this would be. can anybody help?
[11:12:17] <joannac> sabrehagen: it's a findOne
[11:12:23] <joannac> you only expect one result
[11:12:41] <joannac> probably the way the query is evaluated, it always finds the one matching _id
[11:16:18] <sabrehagen> joannac: i'm not sure i follow you. the aim is to support a rest api where you can supply either the userId or username and get back the matching user, therefore the results should be mutually exclusive.
[14:49:02] <salty-horse> hi. If I remove documents from a collection, will the free space be used by other collections in the database?
[15:39:27] <sdsheeks> Kind of quiet in here today.
[15:48:35] <TuxOtaku> hey guys, I'm new to mongo
[15:48:43] <TuxOtaku> having a problem starting mongod
[15:48:55] <TuxOtaku> if I run it on the command line, it starts fine
[15:49:32] <TuxOtaku> but if I try to run it via systemd or supervisord, I get an error saying it can't write monogod.lock
[15:49:41] <TuxOtaku> *mongod.lock
[15:51:54] <salty-horse> TuxOtaku, who is the owner of the lock file? is it the same user that tries to run it via systemd/supervisord?
[15:52:28] <TuxOtaku> so in supervisord I have it set up to run mongod as the mongodb user
[15:54:35] <TuxOtaku> same with systemd
[15:54:50] <TuxOtaku> I have it running from /data/db
[15:54:55] <TuxOtaku> which is owned by mongodb
[15:57:42] <salty-horse> TuxOtaku, does the lock file exist?
[15:57:51] <salty-horse> perhaps you don't have permissions to create it
[15:58:18] <TuxOtaku> I've chmod'ed /data/db ugo+rwx
[15:58:34] <TuxOtaku> still says it can't create the lock file
[15:58:56] <salty-horse> try to touch the file, then run mongod, and see if you get an error that it exists.
[16:00:50] <TuxOtaku> salty-horse: 2014-12-07T10:58:31.508-0500 [initandlisten] exception in initAndListen std::exception: boost::filesystem::status: Permission denied: "/data/db/mongod.lock", terminating
[16:00:59] <TuxOtaku> that's after touching the file
[16:01:02] <TuxOtaku> AS the mongodb user
[16:03:06] <salty-horse> TuxOtaku, I don't understand that error. I wonder what kind of "permission" does it mean? :) permission to write, or permission to start due to the lock already being in place?
[16:03:22] <TuxOtaku> I removed the lock file
[16:03:27] <TuxOtaku> then tried to start it again
[16:03:46] <TuxOtaku> 2014-12-07T11:00:57.806-0500 [initandlisten] exception in initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance
[16:05:21] <lareth> Hi I am trying to store the results of a mapreduce operation into a a collection which should contain the documents in a format like: year.months.month.values
[16:05:23] <lareth> How can I do that?
[16:06:10] <lareth> I tried doing that in the mapreduce function by passing this with the above dot notation, but it creates a collection named as such
[16:41:44] <linocisco> logging is enabled?
[16:42:22] <linocisco> logging is enabled and saved in MongoDB? mongo is Mongolia which is near china?
[19:37:51] <chetandhembre_> hi
[19:38:13] <chetandhembre_> what wtimeout means ?
[19:38:41] <cheeser> http://docs.mongodb.org/manual/reference/command/getLastError/
[19:39:07] <cheeser> http://docs.mongodb.org/manual/reference/write-concern/#wtimeout
[19:40:07] <chetandhembre_> thanks
[19:42:21] <chetandhembre_> How much data i can insert in single insert query ?
[20:58:01] <sabrehagen> hi guys, i have this mongoose query to find a document based on two fields, only one of which has to be found, hence an or: http://i.imgur.com/ioNRsX2.png. if i delete the _id check, the username is matched. if i include the _id check, the username is never matched, but the _id is always matched regardless of whether username is included or not. i can't work out why this would be. can anybody help?