PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 18th of January, 2016

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[05:57:39] <sakix> does anybody have a sec to help me with a quick problem? I feel stupid since it seems like it should be so easy, but I feel like I've been spinning my wheels on this for a bit too long
[05:57:43] <sakix> http://pastebin.com/raw/WpzScADB
[09:41:38] <Rumbles> HI, I set up an arbiter last week, and configured it with log rotation to test I had all the config right. The logs there are rotating as I would expect, so I then took that config and applied it to another db-node at the end of the week, I've checked this morning and although the config is the same, I am getting 2 files created each day, 1 mongodb.log-20160116.gz and mongodb.log.2016-01-16T06-43-30 also created as an empty file, can anyone help me unde
[09:41:38] <Rumbles> rstand why? Further info: http://fpaste.org/311910/
[13:21:10] <cscsaba242> hello
[13:25:25] <cscsaba242> I would like to convert date to string but i get error : http://pastebin.com/0CbwWgNi
[13:25:40] <cscsaba242> can somebody explain what could be the problem ?
[13:48:36] <StephenLynx> hm, I never seen that kind of projection.
[13:48:41] <StephenLynx> where did you read about that?
[17:34:26] <dorongutman> I’m using MMS (mongodb cloud) manually (I launch an instance and install the automation agent on it)
[17:35:02] <dorongutman> and even though all the nodes (which are EC2 instances) have a public DNS, MMS only uses their private EC2 dns
[17:35:23] <dorongutman> which causes the client to discover private ips which it can’t connect to
[17:35:26] <dorongutman> so I get a timeout
[17:36:46] <Gasher> Hi everyone. Can I / shall I delete the default "admin" database? What is it for?
[17:37:15] <Derick> do not delete it
[17:37:55] <Derick> it contains users, and user roles for example
[18:06:08] <ggoodman> I've provisioned a new replicaset to which I'd like to migrate an existing replicaset. Is there a way that I could fuse the two so that the new members sync automatically?
[18:24:30] <d-snp> hey guys, I have a replicaset with both nodes in state SECONDARY
[18:24:55] <d-snp> mongo-blob-4[14023]: 2016-01-18T18:18:48.485+0000 W NETWORK [ReplicaSetMonitorWatcher] No primary detected for set shard2
[18:25:23] <d-snp> how can I debug whether they're electing anyone? they've been like this for half an hour
[18:25:49] <lipiec> d-snp: you should see apropriate messages in logs
[18:25:54] <lipiec> about election
[18:27:07] <d-snp> [ReplicationExecutor] not electing self, we are not freshest
[18:27:07] <d-snp> hm
[18:29:00] <d-snp> mongo-blob-5[8823]: 2016-01-18T18:16:26.474+0000 I REPL [initandlisten] Did not find local voted for document at startup; NoMatchingDocument Did not find replica set lastVote document in local.replset.election
[18:29:43] <lipiec> d-snp: seems reasonable, they cannot sync each other cause there is any master
[18:30:08] <lipiec> d-snp: does your replica set consists only of primary and secondary
[18:30:41] <d-snp> there's an arbiter as well
[18:32:33] <lipiec> d-snp: can you check logs from arbiter?
[18:33:00] <lipiec> d-snp: maybe it's a network partition and servers do not see each otehr?
[18:33:12] <lipiec> /s/otehr/other
[18:39:26] <d-snp> no logs in the arbiter at all
[18:39:30] <d-snp> maybe I should restart it
[18:40:52] <d-snp> ReplicationExecutor] Member mongo-blob-5:27017 is now in state SECONDARY
[18:40:56] <d-snp> ReplicationExecutor] Member mongo-blob-4:27017 is now in state SECONDARY
[18:41:01] <d-snp> nothing about elections
[18:46:22] <d-snp> jeez I can't solve this
[18:46:26] <d-snp> should I rollback to 3.2.0?
[18:47:02] <d-snp> I don't think that will solve it
[18:49:54] <d-snp> ok so mongo-blob-5 won't elect itself because it's not the freshest
[18:50:33] <d-snp> mongo-blob-5 has priority 1 in the config, he has 1 votes
[18:51:05] <d-snp> mongo blob 4 can't find the replica set lastVote document in local.replset.election, it has priority 2 in the config and also 1 votes
[18:51:17] <d-snp> I can't change anything in the replset config because there's no primary
[18:51:21] <d-snp> how do I get out of this?
[18:51:42] <d-snp> can I mark mongo-blob-5 as the freshest? why does he think he's not? he is at the same opid as mongo-blob-4
[18:58:11] <d-snp> if I just take blob-5 down
[18:58:19] <d-snp> eventually blob-4 should become primary shouldn't it?
[19:00:31] <d-snp> why are there no tutorials for when there's no primary?
[19:28:14] <d-snp> hello someone?
[19:28:20] <d-snp> I just can't get my nodes to elect a primary
[19:46:01] <d-snp> please :(
[20:15:55] <d-snp> ok I solved it
[20:15:59] <d-snp> turned them all off
[20:16:07] <d-snp> then turned them on one at a time, arbiter last
[20:24:17] <deathanchor> d-snp: the logs usually tell what happened during elections
[20:25:49] <deathanchor> my fav was when a secondary repl lag was $gt oplog repl window and vetoed votes when the other primary/secondary couldn't talk.
[21:33:26] <stevenxl> Hello everyone. I have an issue. Excuse me if this is a noob question but I am a noob.
[21:33:46] <stevenxl> Basically, I want to insert a document into a colleciton such that part of the document references its own objectID.
[21:34:14] <stevenxl> However, because I do not know what the document's objectID is when I am going to insert it, I was wondering how I could achieve this task?
[21:34:32] <stevenxl> I know I can set the objectId that is used myself, but how would I avoid duplicate key errors?
[22:00:37] <stevenxl> /exit
[22:00:39] <stevenxl> \exit
[22:25:55] <mortal1> is there anywhere that defines what the diff log levels actually log?
[22:26:02] <mortal1> looking here: https://docs.mongodb.org/manual/reference/log-messages/#verbosity-levels
[22:26:16] <mortal1> can't figure out what each level does for the life of me