View managed database logs

I'm having a problem authenticating with my managed MongoDB replica set. I'm able to connect via Compass using the same URL.

I'd like to know exactly what's going on here. With the exception of using Mongoose from node and passing the tlsCAFile as a method option (vs Compass directing setting it in the URL), the connection URL is the same.

connection error: o [MongoServerError]: Authentication failed.
    at S.onMessage (/app/index.bundle.js:2:1187936)
    at l.<anonymous> (/app/index.bundle.js:2:1185889)
    at l.emit (node:events:527:28)
    at p (/app/index.bundle.js:2:1204561)
    at l._write (/app/index.bundle.js:2:1203281)
    at writeOrBuffer (node:internal/streams/writable:390:12)
    at _write (node:internal/streams/writable:331:10)
    at Writable.write (node:internal/streams/writable:335:10)
    at TLSSocket.ondata (node:internal/streams/readable:766:22)
    at TLSSocket.emit (node:events:527:28) {
  operationTime: new Timestamp({ t: 1659916117, i: 1 }),
  ok: 0,
  code: 18,
  codeName: 'AuthenticationFailed',

If I can view the managed logs, perhaps I can get a better understanding of whats going on.

3 Replies

Looks like I had to create the database before attempting to connect.

Details, details ;-)

— sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct