PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 23rd of March, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:14:47] <kexmex> hi there
[00:15:07] <kexmex> does c# driver store password securely?
[00:56:24] <themoebius> Hey, I'm having a problem with the pymongo MongoClient and MongoReplicaSetClient connections compared with the old plain Connection object. It seems like every single update is result in a "command", which is to say the command column in mongostat is about equal to the number of updates I'm doing. It's also making everything go pretty slow. I've confirmed this both in replication and stand-alone environments
[00:56:38] <themoebius> has anyone else seen this
[02:48:32] <jdelgado> Quick question - how horrible of an idea is it to write cross datacenter (Oregon and Virginia) and then wait for a reply? Better solutions for immediate consistency across datacenters?
[04:30:08] <kojul> is there anyway to run mongo without binding to an ip and a port? aka, just through the unix socket?
[04:31:35] <wojas> kojul: even if you could, it would be hard to do any useful replication
[04:32:54] <kojul> true, but for this set up, i'm just using mongo because it's required by a web application that i'm installing and I don't need to replicate, and I'm going to use the socket anyway.
[04:33:56] <wojas> kojul: https://jira.mongodb.org/browse/SERVER-866 looks like it's supported
[04:37:16] <kojul> wojas: I was just wondering if there was a way to use _only_ sockets. as in turn off tcp/ip binding. If not, then I'll just deal with it, it's just that almost every other program I've ever used that supported UDS also supported turning off it's network capabilities.
[06:36:28] <goddard> how can i run mongo db server?
[06:40:36] <goddard> ANYONE HOME
[06:42:22] <anaio> start by reading the docs
[07:04:04] <goddard> anaio i did
[07:45:45] <a13x> goddard: mongod
[07:53:07] <goddard> a13x: i see
[07:53:13] <goddard> thanks
[08:58:20] <T-Gunn> i set up mongodb on an ubuntu virtual machine and all of a sudden i am getting JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112 when i try "mongo" in a console
[08:58:40] <T-Gunn> i just did a fresh install of it from the 10gen repo
[09:00:40] <T-Gunn> and now rubymine is getting stuck in starting up.. maybe it's a java problem...
[09:27:12] <Gargoyle> ping Nodex, You awake?
[10:25:35] <Nodex> yer
[10:25:54] <Nodex> Gargoyle : pong
[10:28:11] <Nodex> settype() to the rescue \o/
[10:49:33] <wereHamster> I just added a node to a replset and it's stuck in LOADINGCONFIG. What could be the reason?
[13:04:40] <majyk> when I upgraded to 2.4 and now 2.4.1 I started noticing these messages spammed all over my log. I'm wondering how to get rid of them? This did not happen with 2.2.3. command denied: { replSetGetStatus: 1.0, forShell: 1.0 }
[16:12:48] <Guest24381> Hello! Given an array in a document like { "a": [ { "b": 5, "c": 7} , {"b": 8, "c": 9 }}, how can I query for documents where a[0].b==5 and where a[1].c==9 (but whether a[0].c==9 is not relevant)?
[16:16:51] <kali> Guest24381: db.a.find({ "a.0.b" : 5, "a.1.c" : 9 })
[16:17:13] <kali> Guest24381: but don't expect the indexes to be of any help
[16:19:51] <T-Gunn> anyone know what could cause mongodb to have a "javascript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112"
[16:20:38] <double_p> T-Gunn: iptables? or you called mongod to use a diff (host)port
[16:21:15] <T-Gunn> i havent messed with any settings for mongo at all.. havent touched the iptables either...
[16:21:57] <double_p> but in default iptables would protect so
[16:22:08] <T-Gunn> but it worked initially
[16:22:40] <double_p> but?
[16:22:49] <T-Gunn> this is all of a sudden... yesterday i was working with ssh keys to be able to connect to bitbucket and an aws ec2 instance
[16:23:22] <double_p> do you use your "own" conf?
[16:23:34] <T-Gunn> no
[16:24:26] <double_p> wait.. you cant even use ssh? but complain about mongo?
[16:24:46] <T-Gunn> i can use ssh
[16:25:04] <double_p> but no longer keys?
[16:25:05] <T-Gunn> i set that up and it works beautifully.. then i tried to visit the rails app that is using mongodb and it is failing to connect now
[16:25:14] <double_p> feel comprimated already
[16:25:54] <double_p> hmm?
[16:26:11] <double_p> mongo doesnt stop for nothing
[16:26:22] <T-Gunn> i realize that.. but i dont know how to narrow down the problem
[16:26:36] <T-Gunn> im thinking about just creating a new vm and starting over the set up
[16:26:44] <T-Gunn> but id like to know what is wrong
[16:26:54] <double_p> can you call "mongo" on a remote VM?
[16:27:24] <double_p> like, just to gain 'SECONDARY>'?
[16:28:06] <T-Gunn> not sure i know what you mean...
[16:28:29] <double_p> on the node you guess w/ lost mongo
[16:28:40] <double_p> can you call an mongo shell?
[16:29:24] <T-Gunn> i am using virtualbox to run ubuntu for my dev environment.. in the console when i type 'mongo' it gives me that error
[16:29:47] <double_p> so that env cannot connect
[16:30:21] <T-Gunn> https://gist.github.com/tvl83/be543e049f92171adde5
[16:30:58] <double_p> netstat -lnp
[16:31:11] <double_p> is that even running after updgrade?
[16:31:58] <T-Gunn> i updated the gist with the output
[16:33:15] <T-Gunn> it's a fresh install of 2.4.0 last night i removed it and reinstalled and the problem persisted
[16:33:38] <double_p> im out
[16:33:59] <T-Gunn> =\
[16:37:42] <majyk> when I upgraded to 2.4 and now 2.4.1 I started noticing these messages spammed all over my log. I'm wondering how to get rid of them? This did not happen with 2.2.3. command denied: { replSetGetStatus: 1.0, forShell: 1.0 }
[16:41:32] <majyk> I'm using --auth
[16:41:40] <majyk> new database
[16:42:34] <majyk> only happens with --auth
[16:50:14] <Guest24381> kali: why not, couldn't I create an index on a.0.b or a.b?
[18:05:43] <hotch> Hey everyone, I was using my mongodb blog with gists to store <code>, what's the best way to save (mostly .js) in <code> tags in mongodb text attar?
[18:08:56] <kali> well, if it's just a dump storage, a text or a binary field should do
[18:09:02] <kali> s/dump/dumb/
[18:10:24] <hotch> its a text field but obviously pasting <code>javascript here</code> errors out as invalid bson although its a text attrbitute
[18:10:37] <hotch> maybe just <code> and escape() it
[18:13:17] <kali> hotch: what kind of client are you using ? because i suspect you're not saying what you intend
[18:13:25] <kali> hotch: for irc, i mean
[18:13:54] <hotch> mongo shell, mongohq and mongohub trying each to see if there is a fast way, i have like 30 gists over 15 posts to store :)
[18:14:02] <hotch> oh coll
[18:17:48] <hotch> so right now i have an attribute on a post in my app which is a large app but the posts are just a piece of it. i have "content" as a text attribute. before i was just using a gist and want to not need github/gists and instead store locally on mongo
[18:17:55] <hotch> versus a blog article loading with a bunch of xhr calls
[18:18:38] <kali> you'll access mongodb through a mongo client anyway, so it will deal with the required escaping
[18:21:09] <hotch> hmmm ok ill just use the shell then.
[21:25:25] <kreedy> hey everyone, I see that renameCollection does a global write lock while it is running. how heavy of an operation is it though?
[21:26:09] <kreedy> the collection is 25GB and tons of documents. does it need to do an operation to every document (and thus take a long time), or does it do a single operation?