How to resolve the error Assertion :13 not authorized admin to execute command

983 views
Skip to first unread message

bala wagh

unread,
May 28, 2014, 3:29:31 AM5/28/14
to mongod...@googlegroups.com
Can anyone help me to resolve the Below Error.

assertion 13: not authorized admin to execute command

This error comes at the time when i am restoring the backup. Scenario is like i have backup data (.tgz) of mongodb which dumped by mongodump on another windows server.
now i want to restore that data backup on Ubuntu server. I am using the manual mongorestore command

  
mongorestore --port 27017 /srv/mongodb/<file Name.tgz> 

connected to 127.0.0.1:27017
assertion :13 not authorized on admin to execute command {.... }

But i already add the user and authorized it
username: siteUserAdmin
password:************

Asya Kamsky

unread,
May 28, 2014, 8:14:15 PM5/28/14
to mongodb-user
You added the user but you are not specifying the user and password when you are running mongorestore.

$ mongorestore --help
Import BSON files into MongoDB.

usage: mongorestore [options] [directory or filename to restore from]
Options:
...
  -u [ --username ] arg                 username
  -p [ --password ] arg                 password
  --authenticationDatabase arg          user source (defaults to dbname)
  --authenticationMechanism arg (=MONGODB-CR)
                                        authentication mechanism

Etc.

Asya



--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/e076cab9-b68e-426b-acd3-93e38f5dc337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bala wagh

unread,
May 29, 2014, 12:52:22 AM5/29/14
to mongod...@googlegroups.com
Thnx Asya issue got resolved. 
Reply all
Reply to author
Forward
0 new messages