-
Notifications
You must be signed in to change notification settings - Fork 64
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
DRIVERS-2991 Properly kill old MO server to avoid "Address already in use" errors #504
Conversation
Believe I've found the real culprit. The ss+awk command to find/kill the running MO server doesn't work on RHEL 8 anymore for unknown reasons:
Perhaps ss was updated and reports output differently than it used to? Or perhaps awk has changed? Either way using fuser should do the trick:
Testing via node here (with more tasks now): https://spruce.mongodb.com/version/66f591a5d6b5680007128d57/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC |
The worst time for us to now see some sporadic node download failures.. but as long as that patch doesn't show any deep purple, this should have fixed it. TY! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotta catch em all but for "kill process by port" commands :) LGTM
Okay it looks much better but now mongod is sometimes failing to start with "Address already in use" (here):
My guess is that we killed the old MO server but the mongod was still left running on that port. |
We could merge this as is to get some of the issue unblocked, but any risk killing the typical db ports here? |
I'll open a new PR for killing the old mongo servers. |
…ready in use" errors (mongodb-labs#504)" This reverts commit 3608d52.
DRIVERS-2991 Properly kill old MO server to avoid "Address already in use" errors.
The ss+awk solution doesn't work on RHEL 8 anymore for unknown reasons:
Perhaps
ss
was updated and reports output differently than it used to? Or perhapsawk
has changed? Either way usingfuser
should do the trick.