Why does MongoDB give me the cannot use 'w' > 1 when a host is not replicated Error message?
You shouldn't specify w: 2 in your query. You're asking to write to two nodes. See the docs here about write concern