question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Process is not killing itself on fatal error (docker)

See original GitHub issue

I am using docker (via OpenShift) with Mongo Connector and elastic2-doc-manager in their latest versions. Everything is ok until I am getting for any reason ReadTimeoutError because one of the requests to the Elastic took more than 10sec. In this case, the mongo-connector should send a SIGNAL to kill itself, It will help the Docker restart automatically (recover) and try to continue from the last oplog entry.

In my case, I noticed that the connector was “stuck” in this error for about 20 hours, And when I restarted it manually the connector failed to trace in time the changes happened in the MongoDB (there are about 20,000 updated per hour).

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ShaneHarveycommented, Mar 31, 2017

Mapping the error to OperationFailed would cause mongo-connector to ignore the error and not exit. The real issue is that the elastic doc manager does not handle timeouts on its Elasticsearch client. That error should currently be uncaught and mongo-connector should exit. It should not be “stuck”. Can you post the ReadTimeoutError error message or stacktrace that you’re seeing?

0reactions
nzapponicommented, Aug 30, 2017

Have there been any updates on this? I’m still seeing this issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

tried to kill container, but did not receive an exit event - Stack ...
Restart the Host Machine. Enter inside the container docker exec -it ContainerName /bin/bash and then Kill the container kill 1.
Read more >
Supervisor not listening - Container killing itself on startup
You need to either to remove the mount path and add the missing environment variables. ... To create these files (I think they...
Read more >
Docker run reference
Docker run reference . Docker runs processes in isolated containers. A container is a process which runs on a host. The host...
Read more >
Container permission denied: How to diagnose this error
Learn what is causing a container permissions error and how to work around the issue without resorting to the --privileged flag.
Read more >
How to Fix 'Terminated With Exit Code 1' Error - Komodor
1. Delete And Recreate the Container · In Docker, use the docker stop command to stop the container, then use docker rm to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found