#AuthenticationFailed

1 messages · Page 1 of 1 (latest)

crimson cradle
#

Caused by: com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed", "$clusterTime": {"clusterTime": {"$timestamp": {"t": 1685937842, "i": 1}}, "signature": {"hash": {"$binary": {"base64": "YaHTl9VJs0xKgAvzXQMFfzpluMs=", "subType": "00"}}, "keyId": 7240763803867021317}}, "operationTime": {"$timestamp": {"t": 1685937842, "i": 1}}}
at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:198)
at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:416)
at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:340)
at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:104)
at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:48)
at com.mongodb.internal.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:230)
at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:137)
... 66 common frames omitted

OS: windows
appsmith: v1.9.20.4
mongodb:5.0.18

i already create a user admin and set replica and enable authen.
db.createUser(
{
user: "appsmith",
pwd: "******",
roles: [ { role: "readWrite", db: "appsmith" } ]
}
)

heady adderBOT
#

Hey There,

We've registered your query, and our team will get back to you soon.

Regards,
Pranav

frigid rivet
#

Hello @crimson cradle
May I ask what you were trying to do when you encountered this issue?

crimson cradle
#

nothing to do. first time, i install appsmith on docker and start it. it is working.and then i restart the pc.it show msg that it can not connect mongoDB. so i install mongodb and set replica. but it still can not start appsmith.