Mongosh failed to authenticate with params

I want to login on running mongosh.
Failed:

  • mongoshrc with auth script (like db.auth(“admin”, “adminpass”))
  • script with credentials (file like mongoshlocal with “mongosh --username admin --password adminPassword”)
  • mongosh with mongodb url like "mongosh “mongodb://admin:adminPassword@127.0.0.1:27017/?directConnection=false&serverSelectionTimeoutMS=2000&authSource=admin&appName=mongosh+1.6.0"”

Logs show that SCRAM auth failed, storedKey mismatch. AuthDB is “admin”, user “admin”

Are you supplying the correct password?
Does your password has any special characters?
Can you connect by any other tool like Compass?

Yes. I able to connect with Compass, with interactive login (running mongosh without credentials and using db.auth() function). I forgot, I’m running it on Linux (Debian 11), everything is up to date/