-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConnectionError when doing collection dump to Elasticsearch #251
Comments
Seems that is not a matter of the optlog too big. Any clue? Thanks! |
Anyone maintaining this repo? |
This looks like an error on the Elasticsearch end, since Mongo Connector can't even connect to Elasticsearch. Can you reach Elasticsearch with a web browser or using a tool like |
Sorry but it only fails when the replicaset is not empty So, seems to be a mongo-connector issue, don't you think so? |
Mongo Connector doesn't establish a connection to Elasticsearch until it needs to do something. If there's no data in the replica set, then there's nothing for Mongo Connector to do. This explains why you only see this Exception after there's any data in MongoDB. The error message "connection refused" leads me to believe that there's some kind of network or configuration problem on or around the Elasticsearch end. |
So how do you explain that after I delete the database all works ok? |
Hi! |
@Garito |
I confirm you 100% So I need to understand that I have no problem with the connections to my services |
@Garito sudo service mongodb start
# Operations sent to MongoDB at this point cannot be sent to Elasticsearch yet,
# since it's not yet running.
sudo service mongo-connector start
sudo service elasticsearch start If this is the problem, then you want something like this instead: sudo service mongodb start
sudo service elasticsearch start
# Need to ensure that both MongoDB and Elasticsearch are ready to accept connections.
for attempt in `seq 60`; do if curl localhost:9200; then break; else sleep 1; fi; done
sudo service mongo-connector start |
No, that's not the case for sure: I'm using docker with docker-compose and links from mongo-connector container to the mongo and the elastic ones so docker takes care to launch them in the correct order |
Hi! |
Hi! ConnectionFailed: ConnectionError(('Connection aborted.', BadStatusLine("''",))) caused by: ProtocolError(('Connection aborted.', BadStatusLine("''",))) Any ideas? |
Sorry was the same error (My need to solve this makes me see ghosts) |
Hi! I really need some help here or change the mechanism for replication, so What is going to be? |
I think I figured out what's happening: So the question will become: is it possible to specify a timeout time to allow ES to launch before raise the error? If there is not, I must to add that docker is here to stay so would be a must have feature if anyone wants to use the connector. Perhaps an enhancement? What do you think? |
@Garito That sounds like a plausible explanation to me. Try adding a |
Yeah, I saw that before. The problem with this is I'm using docker and since this issue will be a pattern I prefer to check first if docker has already solved it in a canonical way (I'll posted here if I find it before to close the issue if you are ok with that) |
Sounds good to me. If you let me know how you fix this in the end, I'll add On Thu, Jun 18, 2015 at 10:19 AM, Garito notifications@github.com wrote:
|
It turns out I'm an idiot and this issue is as easy as add this to the docker-compose yml for the container: Sorry for being a pain in the ass and thanks for your patience |
Glad you got it working! On Fri, Jun 19, 2015 at 9:57 AM, Garito notifications@github.com wrote:
|
Same issues.
restart elasticsearch / mongo-connector |
Hi!
Think it's needed to ajust the bulk insertion size. When the elasticsearch is left behind by too much, the bulk insertion fails. Here is the trackback:
Thanks
The text was updated successfully, but these errors were encountered: