Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Authentication failed (MongoDB) #440

Closed
stathri opened this issue Jan 25, 2023 · 2 comments
Closed

Authentication failed (MongoDB) #440

stathri opened this issue Jan 25, 2023 · 2 comments

Comments

@stathri
Copy link

stathri commented Jan 25, 2023

Hi, I'm having issues using MongoDB as storage. It worked up until I changed the username & database name. I did update both of those in the configuration file however it refuses to authenticate.

See the storage config below. I've removed the password and IP address for obvious reasons.
image

See the error below.
image

@filipechagas
Copy link

Hi @stathri
I'm sorry you're having issues connecting with mongo.

I can't say for sure, but it seems your connection string is malformed. According the documentation the expected format is:

mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]

@stathri
Copy link
Author

stathri commented Feb 6, 2023

Hi, adding ?authSource=admin seems to have fixed it.

@stathri stathri closed this as completed Feb 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants