Skip to content
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

Generic server terminating #224

Open
liujp-arch opened this issue May 6, 2020 · 4 comments
Open

Generic server terminating #224

liujp-arch opened this issue May 6, 2020 · 4 comments

Comments

@liujp-arch
Copy link

liujp-arch commented May 6, 2020

Hi, when i use mongc:connect({rs, <<"...">>, [...]}, [...], [...]) connect to a mongodb cluster, i get a error like this,
** Generic server <0.70.0> terminating
** Last message in was {'EXIT',<0.69.0>,killed}
** When Server state == {state,rsSecondary, ....}
.......
** Reason for termination ==
** killed
do you have any suggestions for me, thanks very much

@comtihon
Copy link
Owner

comtihon commented May 6, 2020

maybe it is killed because the connection is closed?
Can you please try with {ok, Connection} = mc_worker_api:connect ([{database, Database}]).

@liujp-arch
Copy link
Author

yes, it worked like you said, weird, even if this error occured, the data i want to write is wrote in the db.

@dmsnell
Copy link
Contributor

dmsnell commented Dec 30, 2020

@comtihon I think this one is related to #226 and might be able to be closed and folded into that one.

I suspect something is going on here with the same issues I've been diagnosing on the replicaset connections and mc_monitor and ets

@liujp-arch if you are still around mind sharing details of what's in your hosts list, specifically:

  • are the hostnames lists or binaries?
  • do the hostnames and ports match identically to what the Mongo server reports in rs.status()?

@dmsnell
Copy link
Contributor

dmsnell commented May 26, 2021

@liujp-arch you might try this again now that #236 has merged into master, which I believe has a good chance of fixing that for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants