Mongodb Atlas: not authorized on admin to execute command
up vote
5
down vote
favorite
I have a MongoDB Atlas cluster within which I am trying to simply copy a database within the same instance. Unfortunately, every time I try to run db.copyDatabase() or copydb admin command, I get the following error:
not authorized on admin to execute command
Which is very strange, because I just have one user, and it has access to everything, at least as far as I can tell on atlas (Click to see image here).
I did some search in stackoverflow, but it looked like most of the answers pertain to mongod instances running locally, and not ones running in atlas... Did I setup the user wrong?
mongodb mongodb-atlas
add a comment |
up vote
5
down vote
favorite
I have a MongoDB Atlas cluster within which I am trying to simply copy a database within the same instance. Unfortunately, every time I try to run db.copyDatabase() or copydb admin command, I get the following error:
not authorized on admin to execute command
Which is very strange, because I just have one user, and it has access to everything, at least as far as I can tell on atlas (Click to see image here).
I did some search in stackoverflow, but it looked like most of the answers pertain to mongod instances running locally, and not ones running in atlas... Did I setup the user wrong?
mongodb mongodb-atlas
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I have a MongoDB Atlas cluster within which I am trying to simply copy a database within the same instance. Unfortunately, every time I try to run db.copyDatabase() or copydb admin command, I get the following error:
not authorized on admin to execute command
Which is very strange, because I just have one user, and it has access to everything, at least as far as I can tell on atlas (Click to see image here).
I did some search in stackoverflow, but it looked like most of the answers pertain to mongod instances running locally, and not ones running in atlas... Did I setup the user wrong?
mongodb mongodb-atlas
I have a MongoDB Atlas cluster within which I am trying to simply copy a database within the same instance. Unfortunately, every time I try to run db.copyDatabase() or copydb admin command, I get the following error:
not authorized on admin to execute command
Which is very strange, because I just have one user, and it has access to everything, at least as far as I can tell on atlas (Click to see image here).
I did some search in stackoverflow, but it looked like most of the answers pertain to mongod instances running locally, and not ones running in atlas... Did I setup the user wrong?
mongodb mongodb-atlas
mongodb mongodb-atlas
asked Mar 4 at 23:21
Seaside9
1486
1486
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
9
down vote
accepted
I ended up asking this question to MongoDB University discussion board. In case anyone comes across this, this is apparently because I am using a free cluster.
2
For your (and anybody else coming across this) reference: docs.atlas.mongodb.com/unsupported-commands and docs.atlas.mongodb.com/reference/free-shared-limitations
– Pete Garafano
Mar 5 at 16:09
I have the same problem but M10 did changing to M10 resolved this?
– Alan Ortega
Sep 25 at 21:49
add a comment |
up vote
0
down vote
this error is because you are trying create the colecction above admin, in atlas this isn't possible because securty.
in this case you need to use the word key use [collection_name]
this is the link for this answer.
it is in spanish.
https://victorroblesweb.es/2016/12/24/crear-una-base-datos-mongodb/
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
9
down vote
accepted
I ended up asking this question to MongoDB University discussion board. In case anyone comes across this, this is apparently because I am using a free cluster.
2
For your (and anybody else coming across this) reference: docs.atlas.mongodb.com/unsupported-commands and docs.atlas.mongodb.com/reference/free-shared-limitations
– Pete Garafano
Mar 5 at 16:09
I have the same problem but M10 did changing to M10 resolved this?
– Alan Ortega
Sep 25 at 21:49
add a comment |
up vote
9
down vote
accepted
I ended up asking this question to MongoDB University discussion board. In case anyone comes across this, this is apparently because I am using a free cluster.
2
For your (and anybody else coming across this) reference: docs.atlas.mongodb.com/unsupported-commands and docs.atlas.mongodb.com/reference/free-shared-limitations
– Pete Garafano
Mar 5 at 16:09
I have the same problem but M10 did changing to M10 resolved this?
– Alan Ortega
Sep 25 at 21:49
add a comment |
up vote
9
down vote
accepted
up vote
9
down vote
accepted
I ended up asking this question to MongoDB University discussion board. In case anyone comes across this, this is apparently because I am using a free cluster.
I ended up asking this question to MongoDB University discussion board. In case anyone comes across this, this is apparently because I am using a free cluster.
answered Mar 5 at 16:00
Seaside9
1486
1486
2
For your (and anybody else coming across this) reference: docs.atlas.mongodb.com/unsupported-commands and docs.atlas.mongodb.com/reference/free-shared-limitations
– Pete Garafano
Mar 5 at 16:09
I have the same problem but M10 did changing to M10 resolved this?
– Alan Ortega
Sep 25 at 21:49
add a comment |
2
For your (and anybody else coming across this) reference: docs.atlas.mongodb.com/unsupported-commands and docs.atlas.mongodb.com/reference/free-shared-limitations
– Pete Garafano
Mar 5 at 16:09
I have the same problem but M10 did changing to M10 resolved this?
– Alan Ortega
Sep 25 at 21:49
2
2
For your (and anybody else coming across this) reference: docs.atlas.mongodb.com/unsupported-commands and docs.atlas.mongodb.com/reference/free-shared-limitations
– Pete Garafano
Mar 5 at 16:09
For your (and anybody else coming across this) reference: docs.atlas.mongodb.com/unsupported-commands and docs.atlas.mongodb.com/reference/free-shared-limitations
– Pete Garafano
Mar 5 at 16:09
I have the same problem but M10 did changing to M10 resolved this?
– Alan Ortega
Sep 25 at 21:49
I have the same problem but M10 did changing to M10 resolved this?
– Alan Ortega
Sep 25 at 21:49
add a comment |
up vote
0
down vote
this error is because you are trying create the colecction above admin, in atlas this isn't possible because securty.
in this case you need to use the word key use [collection_name]
this is the link for this answer.
it is in spanish.
https://victorroblesweb.es/2016/12/24/crear-una-base-datos-mongodb/
add a comment |
up vote
0
down vote
this error is because you are trying create the colecction above admin, in atlas this isn't possible because securty.
in this case you need to use the word key use [collection_name]
this is the link for this answer.
it is in spanish.
https://victorroblesweb.es/2016/12/24/crear-una-base-datos-mongodb/
add a comment |
up vote
0
down vote
up vote
0
down vote
this error is because you are trying create the colecction above admin, in atlas this isn't possible because securty.
in this case you need to use the word key use [collection_name]
this is the link for this answer.
it is in spanish.
https://victorroblesweb.es/2016/12/24/crear-una-base-datos-mongodb/
this error is because you are trying create the colecction above admin, in atlas this isn't possible because securty.
in this case you need to use the word key use [collection_name]
this is the link for this answer.
it is in spanish.
https://victorroblesweb.es/2016/12/24/crear-una-base-datos-mongodb/
answered Nov 18 at 3:01
camilo lopez
1
1
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49101567%2fmongodb-atlas-not-authorized-on-admin-to-execute-command%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown