[SERVER-31581] mongodb config server can not stepdown Created: 16/Oct/17 Updated: 27/Oct/23 Resolved: 20/Oct/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 3.4.9 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | SuperSuJJ [X] | Assignee: | Mark Agarunov |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
after Upgrade Config Servers to Replica Set,it can not stepdown in parmary , it issue:
and i use keyfile auth the database.the secondary is :
replica set
|
| Comments |
| Comment by Mark Agarunov [ 20/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Su, Thank you for the response. I'm glad to hear that the config server not stepping down is no longer an issue. My recommendation regarding the auth error would be to remove and them reconfigure the authentication and keyfiles. This should mitigate any discrepancies in the auth configuration. Thanks, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by SuperSuJJ [X] [ 19/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
i think i find why can not step down. it is i have a mistake when upgrade config server from mirror to replication set. But now auth still issue,but the sharing cluster is normal,is it have some way to find why have this auth wrong? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by SuperSuJJ [X] [ 18/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
And the config server can stepdown normal. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by SuperSuJJ [X] [ 18/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
i see the sharding is health and the config server is health too:
but the log is still has error like this: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Mark Agarunov [ 17/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Su, The primary could not step down due to seeing no up to date secondaries that could become the primary. If this has solved your issue, the auth failure message is likely unrelated. Could you confirm that everything is now working as expected? Thanks, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by SuperSuJJ [X] [ 17/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
i found the log still have auth fail record. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by SuperSuJJ [X] [ 17/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
i just remove the secondary member,and reconfig the replica set: config = {_id: "confReplSet", members:[ rs.reconfig(config) and solution it,is it ok now? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by SuperSuJJ [X] [ 17/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
i chown the keyfile and restart the config server mongod process,but it have the same problem. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by SuperSuJJ [X] [ 17/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi,mark, and i found a problem, i use the mongodb user run mongod and mongos process, but keyfile owner group is mongod : is it issue this can not stepdown? but the other shard use the same keyfile in the same machine it can step down. is it the config server and replica set use the keyfile auth different? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Mark Agarunov [ 16/Oct/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Su, Thank you for the report. To get a better idea of what may be causing this behavior, could you please provide the following:
This should give some insight into the issue. Thanks, |