server returned error on SASL authentication step: Authentication failed

后端 未结 7 1373
死守一世寂寞
死守一世寂寞 2020-12-12 20:14

The following is my MongoDB connection dial from GoLang. But it\'s returning a panic \"server returned error on SASL authentication step: Authentication failed.\".

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 21:03

    I had the same error when using with dokku mongo:import . In my case I included dot(period) in my db name

    You shouldn't include dot in your mongodb name when 'dokku mongo:create ' I've changed it to seunghunlee instead of seunghunlee.net now this command works

    dokku mongo:import seunghunlee < seunghunlee.net.dump.gz
    

    Hope it helps!

提交回复
热议问题