Lab - Initiaite Replica Set

I seem to see an error while i run rs,initiate()

vagrant@m103:/ mongod -f "/etc/mongod-repl-1.conf" about to fork child process, waiting until server is ready for connections. forked process: 5208 child process started successfully, parent exiting vagrant@m103:/ mongo --port 27001
MongoDB shell version v3.6.14
connecting to: mongodb://127.0.0.1:27001/?gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“9bda15bf-cb10-4ee8-80e4-3492348c1b99”) }
MongoDB server version: 3.6.14
MongoDB Enterprise > rs.initaite()
2019-10-22T11:34:02.745+0000 E QUERY [thread1] TypeError: rs.initaite is not a function :
@(shell):1:1
MongoDB Enterprise >

You spell initiate correctlyin the title but not when you enter the command. Typos is the most frequent cause of system not working as expected.

2 Likes

oops !! my bad !! its all working fine now.> Thanks for pointing it out .

Cheers!