Code Monkey home page Code Monkey logo

Comments (8)

richardwilly98 avatar richardwilly98 commented on June 13, 2024

Hi,

Did you run rs.initiate() from MongoDB to initiate the rs.oplog collection?

Did you setup your mongo river? I don't see in your ES log traces like:

[2012-06-05 21:47:46,009][DEBUG][river.mongodb ] [Guardsman]
[mongodb][mongodb] Prefix: [Guardsman] [mongodb][mongodb] - name:
river.mongodb
[2012-06-05 21:47:46,010][INFO ][river.mongodb ] [Guardsman]
[mongodb][mongodb] starting mongodb stream: host [localhost], port [27017],
gridfs [false], filter [testriver], db [personindex], indexing to
[testriver]/[{}]

Thanks,
Richard.

On Mon, Jun 11, 2012 at 7:26 PM, ahsin01 <
[email protected]

wrote:

Hi there, I've tried to follow the same issues regarding
NoSuchElementException
{"error":"IndexMissingException[[mongoindex] missing]","status":404}

Below is ES.log, I've tried to set the log to debug and reinstall plugins.
From the ES.log, it seems not even tried to tell if it did find the
mongodb replicaset or not.

[2012-06-11 16:15:14,038][INFO ][node ] [Joe Fixit]
{0.19.4}[26020]: initializing ...
[2012-06-11 16:15:14,055][INFO ][plugins ] [Joe Fixit]
loaded [river-mongodb, mapper-attachments], sites []
[2012-06-11 16:15:16,260][INFO ][node ] [Joe Fixit]
{0.19.4}[26020]: initialized
[2012-06-11 16:15:16,261][INFO ][node ] [Joe Fixit]
{0.19.4}[26020]: starting ...
[2012-06-11 16:15:16,362][INFO ][transport ] [Joe Fixit]
bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/
192.168.1.11:9300]}
[2012-06-11 16:15:19,571][INFO ][cluster.service ] [Joe Fixit]
detected_master [Reyes,
Cecelia][ecfXwyIWSSOo5T3m756Vvg][inet[/192.168.1.11:9301]], added
{[Lighting Rod][mJb8jdIPQxWDpzrVK9B4ZA][inet[/192.168.1.11:9302]],[Living
Eraser][qEpGWyf5S2SR4gP-jhcsUw][inet[/192.168.1.11:9303]],[Reyes,
Cecelia][ecfXwyIWSSOo5T3m756Vvg][inet[/192.168.1.11:9301]],}, reason:
zen-disco-receive(from master [[Reyes,
Cecelia][ecfXwyIWSSOo5T3m756Vvg][inet[/192.168.1.11:9301]]])
[2012-06-11 16:15:19,638][INFO ][discovery ] [Joe Fixit]
elasticsearch/RPqNAlTZRG6kGaPqRgUIdw
[2012-06-11 16:15:19,641][INFO ][http ] [Joe Fixit]
bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/
192.168.1.11:9200]}
[2012-06-11 16:15:19,641][INFO ][node ] [Joe Fixit]
{0.19.4}[26020]: started

I also issued the command from other windows using mongod --replSet foo
--port 27017 --dbpath /data/r0 --oplogSize 700, but without lucks, can you
please provide any insights? In addition, will any oplog file will get
generated I can spot it?

Thanks.


Reply to this email directly or view it on GitHub:
#21

from elasticsearch-river-mongodb.

ahsin01 avatar ahsin01 commented on June 13, 2024

Yes, i did follow MongoDB

PRIMARY> rs.status()
{
"set" : "foo",
"date" : ISODate("2012-06-11T23:42:55Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "localhost:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"optime" : {
"t" : 1339454803000,
"i" : 1
},
"optimeDate" : ISODate("2012-06-11T22:46:43Z"),
"self" : true
},
{
"_id" : 1,
"name" : "localhost:27018",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 309,
"optime" : {
"t" : 1339454803000,
"i" : 1
},
"optimeDate" : ISODate("2012-06-11T22:46:43Z"),
"lastHeartbeat" : ISODate("2012-06-11T23:42:55Z"),
"pingMs" : 0
},
{
"_id" : 2,
"name" : "localhost:27019",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 292,
"optime" : {
"t" : 1339454803000,
"i" : 1
},
"optimeDate" : ISODate("2012-06-11T22:46:43Z"),
"lastHeartbeat" : ISODate("2012-06-11T23:42:55Z"),
"pingMs" : 0
}
],
"ok" : 1
}
PRIMARY>

I did install the plugins (run the plugin command line to get mapper-attachment and river-mongodb) and restart ES. Is that all I need to install mongo river, or any additional steps I was missing?

in ES.log there was a line

[2012-06-11 16:15:14,055][INFO ][plugins ] [Joe Fixit] loaded [river-mongodb, mapper-attachments], sites []

But I couldn't see any other river.mongodb log...

from elasticsearch-river-mongodb.

richardwilly98 avatar richardwilly98 commented on June 13, 2024

See configuration section from here [0].

[0] - https://github.com/richardwilly98/elasticsearch-river-mongodb/wiki

On Mon, Jun 11, 2012 at 7:58 PM, ahsin01 <
[email protected]

wrote:

Yes, i did follow MongoDB

PRIMARY> rs.status()
{
"set" : "foo",
"date" : ISODate("2012-06-11T23:42:55Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "localhost:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"optime" : {
"t" : 1339454803000,
"i" : 1
},
"optimeDate" : ISODate("2012-06-11T22:46:43Z"),
"self" : true
},
{
"_id" : 1,
"name" : "localhost:27018",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 309,
"optime" : {
"t" : 1339454803000,
"i" : 1
},
"optimeDate" : ISODate("2012-06-11T22:46:43Z"),
"lastHeartbeat" : ISODate("2012-06-11T23:42:55Z"),
"pingMs" : 0
},
{
"_id" : 2,
"name" : "localhost:27019",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 292,
"optime" : {
"t" : 1339454803000,
"i" : 1
},
"optimeDate" : ISODate("2012-06-11T22:46:43Z"),
"lastHeartbeat" : ISODate("2012-06-11T23:42:55Z"),
"pingMs" : 0
}
],
"ok" : 1
}
PRIMARY>

I did install the plugins (run the plugin command line to get
mapper-attachment and river-mongodb) and restart ES. Is that all I need to
install mongo river, or any additional steps I was missing?

in ES.log there was a line

[2012-06-11 16:15:14,055][INFO ][plugins ] [Joe Fixit]
loaded [river-mongodb, mapper-attachments], sites []

But I couldn't see any other river.mongodb log...


Reply to this email directly or view it on GitHub:

#21 (comment)

from elasticsearch-river-mongodb.

ahsin01 avatar ahsin01 commented on June 13, 2024

I did follow the example with same error. I guess my problem is there is no additional log in ES to show if ES tried to hookup Mongo as you provided "starting mongodb stream: host [localhost], port [27017],"

Should it be there every time you restated ES?

from elasticsearch-river-mongodb.

richardwilly98 avatar richardwilly98 commented on June 13, 2024

Yes it should.
------Original Message------
From: ahsin01
To: Richard Louapre
Subject: Re: [elasticsearch-river-mongodb] error on IndexMissingException (#21)
Sent: Jun 11, 2012 8:14 PM

I did follow the example with same error. I guess my problem is there is no additional log in ES to show if ES tried to hookup Mongo as you provided "starting mongodb stream: host [localhost], port [27017],"

Should it be there every time you restated ES?


Reply to this email directly or view it on GitHub:
#21 (comment)

Sent via BlackBerry Bold

from elasticsearch-river-mongodb.

ahsin01 avatar ahsin01 commented on June 13, 2024

Now, I shutdown all mongo instances and restarted ES, all I got is still

[2012-06-11 17:20:18,014][INFO ][node ] [Meteor Man] {0.19.4}[28839]: initializing ...
[2012-06-11 17:20:18,031][INFO ][plugins ] [Meteor Man] loaded [river-mongodb, mapper-attachments], sites []
[2012-06-11 17:20:20,067][INFO ][node ] [Meteor Man] {0.19.4}[28839]: initialized
[2012-06-11 17:20:20,068][INFO ][node ] [Meteor Man] {0.19.4}[28839]: starting ...
[2012-06-11 17:20:20,161][INFO ][transport ] [Meteor Man] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/192.168.1.11:9300]}
[2012-06-11 17:20:23,292][INFO ][cluster.service ] [Meteor Man] detected_master [Reyes, Cecelia][ecfXwyIWSSOo5T3m756Vvg][inet[/192.168.1.11:9301]], added {[Lighting Rod][mJb8jdIPQxWDpzrVK9B4ZA][inet[/192.168.1.11:9302]],[Living Eraser][qEpGWyf5S2SR4gP-jhcsUw][inet[/192.168.1.11:9303]],[Reyes, Cecelia][ecfXwyIWSSOo5T3m756Vvg][inet[/192.168.1.11:9301]],}, reason: zen-disco-receive(from master [[Reyes, Cecelia][ecfXwyIWSSOo5T3m756Vvg][inet[/192.168.1.11:9301]]])
[2012-06-11 17:20:23,317][INFO ][discovery ] [Meteor Man] elasticsearch/XUJ5NC2iT1eZjAZ6TA9grA
[2012-06-11 17:20:23,320][INFO ][http ] [Meteor Man] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/192.168.1.11:9200]}
[2012-06-11 17:20:23,320][INFO ][node ] [Meteor Man] {0.19.4}[28839]: started

I have no clues what the next steps I can do now...

from elasticsearch-river-mongodb.

ahsin01 avatar ahsin01 commented on June 13, 2024

BTW, the mongo version I used was 2.0.6, I am assuming replSet name, foo, shouldn't be matter....any recommandation?

from elasticsearch-river-mongodb.

ahsin01 avatar ahsin01 commented on June 13, 2024

After rerunning ES this morning within VPN, all of sudden the log started to show the errors in the loop complaining about connection refused. Then restarting the mongo instances, and it works now....
Without VPN, the river didn't do anything and seems stuck after started as previously stated, my guess is probably something to do with localhost in OSX.

from elasticsearch-river-mongodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.