PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 10th of August, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:58:00] <jaccob> There is nothing to do with EnsureIndex if your key is an int because it is already an index
[01:11:07] <cheeser> Darryl__: ?
[01:14:32] <jaccob> says right there he left
[01:14:48] <jaccob> actualy no, two of them joined
[01:16:59] <cheeser> and rejoined and left and ...
[01:29:02] <dundun> if I'm building an app that requires "users" and "posts", if I'm using mongodb, would it be better to create two separate collections and link them together, or store the posts inside of the one users collection? Is there some kind of documentation that explains the advantages and disadvantages of both structures?
[01:30:10] <cheeser> separate collections
[01:30:48] <dundun> is there a particular reason, cheeser ?
[01:31:31] <cheeser> different lifecycles, usage/query patterns
[01:32:29] <dundun> so you have more flexibility and more queries available to you if normalise the data, but there's also a performance loss no?
[07:01:22] <mistime> help
[07:14:33] <huleo> mistime, just ask
[07:14:36] <huleo> just ask man
[09:32:54] <Moonjara> Hi! I don't know if i'm the Hi! I don't know if i'm the right place but I'd like some help with basic manipulation in Java. I've a directory with several link as embedded Document. If i do db.directories.findOne({}) in command line i get every link in my directory, but in Java the findOne method does get the embedded documents. Does anyone have any clue to help me? Thanks anyway!right place but I'd like some help with basic mani
[09:33:19] <Moonjara> Sorry, Hi! I don't know if i'm the right place but I'd like some help with basic manipulation in Java. I've a directory with several link as embedded Document. If i do db.directories.findOne({}) in command line i get every link in my directory, but in Java the findOne method does get the embedded documents. Does anyone have any clue to help me? Thanks anyway!
[10:46:58] <kosc> Hello, im using mongoengine for python, and need to create request like Issue.objects.get(project_id=1) (It isn't works). What is the best way here?
[11:12:32] <knotmaker> hi fellas, need urgent help. I'm using mongodb 2.6 Ubuntu 12.4 . I run mongod as mentioned in http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ , It was running fine for a month unless today after a sudden shutdown of the m/c, the db refuse to connect again giving this error :http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
[11:12:59] <knotmaker> dorry the error is Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
[11:13:47] <knotmaker> I tried removing the lock file and run again .. it didn't work
[11:13:57] <knotmaker> can anyone help
[11:15:51] <knotmaker> need urgent help. I'm using mongodb 2.6 Ubuntu 12.4 . I run mongod as mentioned in http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ , It was running fine for a month unless today after a sudden shutdown of the m/c, the db refuse to connect again giving this error : "Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused"
[12:27:15] <knotmaker> need urgent help. I'm using mongodb 2.6 0n Ubuntu 12.4 . I run mongod as mentioned in http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ , It was running fine for a month unless today after a sudden shut-down of the m/c, the db refuse to connect again giving this error : "Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused"
[12:32:14] <kali> knotmaker: have you checked out the log ?
[12:40:49] <knotmaker> kali: yes
[12:42:55] <knotmaker> kali: found this in the latest log 2014-08-10T16:26:46.096+0530 [initandlisten] dbexception during recovery: 13537 journal file header invalid. This could indicate corruption in a journal file, or perhaps a crash where sectors in file header were in flight written out of order at time of crash (unlikely but possible). 2014-08-10T16:26:46.096+0530 [initandlisten] exception in initAndListen: 13537 journal file header invalid. This
[12:43:15] <kali> knotmaker: don't paste here
[12:43:38] <kali> use pastebin, or gist, or whatever
[12:43:49] <knotmaker> kali: ok
[12:45:00] <kali> knotmaker: paste it there please, it has been truncated here
[12:45:06] <knotmaker> kali: error found http://pastebin.com/9ZaFjiVv
[12:47:36] <kali> that's a standalone server or a replica part of the replicaset ?
[12:51:29] <knotmaker> kali: it is stand alone server running on laptop (Iknow I shouldn't do that)
[12:52:42] <kali> well, first copy everything from dbpath, just in case. then try to remove the journal* files from it
[12:56:00] <knotmaker> kali: ok
[12:57:48] <knotmaker> kali: should I remove perlocks also
[12:58:58] <kali> perlock ? what the fuck is that ? some kind of detective ?
[13:00:17] <knotmaker> kali:not sure inside journal folder
[13:01:18] <kali> knotmaker: yeah, the whole directory
[13:03:10] <knotmaker> kali done - remove journal file prealloc the plock file
[13:03:37] <knotmaker> should I say service start
[13:03:45] <kali> worth a try
[13:04:03] <knotmaker> kali: great
[13:06:32] <knotmaker> kali: awesome! it worked :)
[13:06:52] <kali> good
[13:06:58] <knotmaker> kali: thanks
[13:07:14] <kali> you may have lost some or all of the write in the last minute before shutdown
[13:15:09] <knotmaker> kali: not sure about the loss, I have 40 beta users using the service now ... need to check with them if any data got lost
[14:41:56] <darkomenz> Hello, can anyone help me with the following code. http://pastie.org/private/hetla3jjc1hctheze7kq When i run it the ping command does not detect the offline state when i shutdown mongodb and I am trying to figure out why. Thanks in advance.
[15:00:45] <dmitchell> Sunday morning panic. on edx.org we're getting a seemingly impossible error:
[15:01:03] <dmitchell> File "/opt/wwc/edx-platform/common/lib/xmodule/xmodule/modulestore/mongo/base.py", line 1211, in _get_raw_parent_location
[15:01:03] <dmitchell> found_id = parents[0]['_id']
[15:01:03] <dmitchell> File "/opt/edx/local/lib/python2.7/site-packages/pymongo/cursor.py", line 472, in __getitem__
[15:01:03] <dmitchell> raise IndexError("no such item for Cursor instance")
[15:01:03] <dmitchell> IndexError: no such item for Cursor instance
[15:01:28] <dmitchell> if parents.count() == 0:
[15:01:28] <dmitchell> # no parents were found
[15:01:29] <dmitchell> return None
[15:01:29] <dmitchell> if revision == ModuleStoreEnum.RevisionOption.published_only:
[15:01:29] <dmitchell> if parents.count() > 1:
[15:01:29] <dmitchell> # should never have multiple PUBLISHED parents
[15:01:29] <dmitchell> raise ReferentialIntegrityError(
[15:01:30] <dmitchell> u"{} parents claim {}".format(parents.count(), location)
[15:01:30] <dmitchell> )
[15:01:31] <dmitchell> else:
[15:01:31] <dmitchell> # return the single PUBLISHED parent
[15:01:32] <dmitchell> return Location._from_deprecated_son(parents[0]['_id'], location.course_key.run)
[15:01:32] <dmitchell> else:
[15:01:33] <dmitchell> # there could be 2 different parents if
[15:02:34] <dmitchell> Let me try again, it's getting IndexError trying to get the [0] element from a cursor following a if cursor.count() == 0: return None guard
[15:03:32] <kali> ho my
[15:03:41] <kali> first don't paste more than one line on irc
[15:03:52] <dmitchell> right, thus my "sorry" comment
[15:04:00] <dmitchell> :-) not enough sleep
[15:04:20] <dmitchell> The line generating the error is https://github.com/edx/edx-platform/blob/release/common/lib/xmodule/xmodule/modulestore/mongo/base.py#L1211
[15:05:43] <dmitchell> I can't reproduce the error on any env I can debug. It seems to be the specific db host or content
[15:11:33] <dmitchell> I should mention we're running MongoDB 2.2.0 (I know, ancient) w/ pymongo 2.4.1
[15:12:18] <dmitchell> Can anyone imagine how cursor.count() could return non-zero but accessing the 0th element as the first op on the cursor could get an IndexError?
[15:14:33] <elux> i just rebuilt my db replica set by adding 3 new nodes, then removing the 3 old nodes.. my application is working fine, and rs.status() looks good.. but im seeing a lot of : replset couldn't find a slave with id 0, not tracking 529513f067c1e37ea40ec2ee
[15:14:35] <elux> on the primary server
[15:15:05] <elux> which makes sense.. because doing rs.status(), the _id's are 3, 4, 5 .. no 0 because i removed it
[15:15:18] <elux> im not sure why its complaining though.. it should adapt.. im using mongodb 2.6.4 btw
[15:17:30] <elux> weak sauce
[16:00:40] <elux> i found out that local.slaves got screwed up .. who knows how
[16:00:45] <elux> maybe 2.4 / 2.6 versions differences
[16:00:55] <elux> i had to manually remove the old slaves that i asked to be removed
[16:02:07] <elux> it did fix my issue though..
[21:16:02] <s2013> i am looking at an existing mongodb export and there is a __type and className field.. are those native to mongo or was it just the way this thing was designed?
[21:22:35] <Derick> s2013: not mongo native - either designed, or an ODM that did that
[21:23:41] <s2013> gotcha