[FAIL] “The server requires authentication”

Related to [FAIL] "The server requires authentication"

Ended up in same scenario. Modified config file in the gui file editor and the ‘Run Test’ wasn’t seeing:

authorization: enabled

Opened in shell with vi and saw ‘Incomplete last line’. Re-saved it (:wq) and checked again. The final characters in file were cleaned up. Re-ran test and it passed.

EDIT: Actually, if you can’t start mongod processes (mongod -f .conf) try edit the file in gui somewhere not on last line (i just changed port number and then changed it back) or do the vi in shell as stated above.

Looks like the conf file being ‘corrupted’ on last line was source of many of my errors. Hope it fixes yours