Skip to content

Instantly share code, notes, and snippets.

@ChristianOConnor
Created February 1, 2023 22:38
Show Gist options
  • Save ChristianOConnor/7a8325b6f4dd33b268faa05a3ed9b7b2 to your computer and use it in GitHub Desktop.
Save ChristianOConnor/7a8325b6f4dd33b268faa05a3ed9b7b2 to your computer and use it in GitHub Desktop.
error from mongodb docker image for dwgebler/node-express-example after change command to entrypoint
Mongo started
MongoError: Authentication failed.
at MessageStream.messageHandler (/var/app/node_modules/mongodb/lib/cmap/connection.js:272:20)
at MessageStream.emit (events.js:400:28)
at processIncomingData (/var/app/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
at MessageStream._write (/var/app/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
at writeOrBuffer (internal/streams/writable.js:358:12)
at MessageStream.Writable.write (internal/streams/writable.js:303:10)
at Socket.ondata (internal/streams/readable.js:731:22)
> [email protected] start /var/app
> node index.js
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9) {
ok: 0,
code: 18,
codeName: 'AuthenticationFailed'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/node/.npm/_logs/2023-02-01T22_35_46_415Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment