You need to restart the mongo service with the --auth option see here
--auth
If it doesn't works do this:Try setting server options in mongoose with keepAlive set. See here and here.
keepAlive