mongodb replication with admin authentication error -


i have 3 nodes of mongodb replication set
2 servers have data , third arbiter

54.83.20.44 : 27017 (primary)
54.197.243.55 : 40000 (secondary)
23.21.148.73 : 27017 (arbiter)

all things have been configured automatic failover.
but, ignored thing authentication.
can connect replset using "robomongo" (desktop mongodb management tool) without username/password :(
connected admin database of primary member , ran command:

mongo
use admin
db.adduser("username", "password");

then, restarted mongod process --auth option

this log after restart:

[rsbackgroundsync] replset not trying sync 54.197.243.55:40000, vetoed 8 more seconds
[rshealthpoll] not authenticate against 54.197.243.55:40000, { code: 18, ok: 0.0, errmsg: "auth fails" }
[rshealthpoll] replset info 54.197.243.55:40000 thinks down

what can ?
adding username/password admin servers
or primary server only?

i think should restart mongod instances --auth option.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -