Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(mongodb-cdc): fail to connect due to not authorized on config to execute command #17076

Closed
KeXiangWang opened this issue Jun 3, 2024 · 2 comments
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@KeXiangWang
Copy link
Contributor

KeXiangWang commented Jun 3, 2024

Describe the bug

As title. The user was using mongodb atlas on GCP.

Error message/log

# The source was created successfully but got this error in log
Caused by: com.mongodb.MongoCommandException: Command failed with error 13 (Unauthorized): 'not authorized on config to execute command { listCollections: 1, cursor: {}, nameOnly: true, $db: \"config\", $clusterTime: { clusterTime: Timestamp(1717438499, 9)

To Reproduce

No response

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

No response

@KeXiangWang KeXiangWang added the type/bug Something isn't working label Jun 3, 2024
@github-actions github-actions bot added this to the release-1.10 milestone Jun 3, 2024
@StrikeW
Copy link
Contributor

StrikeW commented Jun 5, 2024

I cannot reproduce the issue with Shared Atlas cluster, we should check whether they have enable replica set in the cluster.
https://www.mongodb.com/docs/manual/tutorial/deploy-replica-set/#deploy-a-replica-set-in-the-mongodb-atlas-ui

@StrikeW
Copy link
Contributor

StrikeW commented Jun 6, 2024

The mongo user lacks listCollections for the config and local database, after adding the roles the problem is resolved. The customer uses a M10 Atlas cluster.

listDatabases
@all databases(all collections)

listCollections
@config(all collections)
@local(all collections)

readWriteAnyDatabase
@admin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants