keep on getting "can't create user databases on a --configsvr instance" error

1,600 views
Skip to first unread message

Robbie Cheng

unread,
Sep 20, 2011, 11:02:55 AM9/20/11
to mongodb-user
OS: linux
mongodb: 2.0

keep on getting the error while insert, create_index, and etc.

Any help will be appreciated!

Scott Hernandez

unread,
Sep 20, 2011, 11:54:36 AM9/20/11
to mongod...@googlegroups.com
Are you trying to use a config server as normal database? What does
db.serverStatus() show?

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

Robbie Cheng

unread,
Sep 20, 2011, 12:31:39 PM9/20/11
to mongodb-user
{
"host" : "ip-10-88-183-80",
"version" : "2.0.0",
"process" : "mongos",
"uptime" : 3303,
"localTime" : ISODate("2011-09-20T16:31:00.396Z"),
"mem" : {
"resident" : 4,
"virtual" : 83,
"supported" : true
},
"connections" : {
"current" : 1,
"available" : 818
},
"extra_info" : {
"note" : "fields vary by platform",
"heap_usage_bytes" : 248208,
"page_faults" : 0
},
"opcounters" : {
"insert" : 0,
"query" : 6,
"update" : 0,
"delete" : 0,
"getmore" : 0,
"command" : 37
},
"ops" : {
"sharded" : {
"insert" : 0,
"query" : 0,
"update" : 0,
"delete" : 0,
"getmore" : 0,
"command" : 0
},
"notSharded" : {
"insert" : 0,
"query" : 6,
"update" : 0,
"delete" : 0,
"getmore" : 0,
"command" : 37
}
},
"shardCursorType" : {

},
"asserts" : {
"regular" : 0,
"warning" : 0,
"msg" : 0,
"user" : 2,
"rollovers" : 0
},
"network" : {
"bytesIn" : 3394,
"bytesOut" : 5091,
"numRequests" : 43
},
"ok" : 1

Scott Hernandez

unread,
Sep 20, 2011, 12:33:31 PM9/20/11
to mongod...@googlegroups.com
This is a mongos server. What are the shards? db.printShardingStatus()

On Tue, Sep 20, 2011 at 12:31 PM, Robbie Cheng <robbi...@gmail.com> wrote:
> {

Gianfranco

unread,
Oct 25, 2012, 7:06:19 AM10/25/12
to mongod...@googlegroups.com

Please open a new Topic/Post and restate your problem as it's not clear which one you have.

In the future, if possible please avoid opening very old topics.


On Sunday, October 14, 2012 10:30:41 PM UTC+1, Daniel de Oliveira Mantovani wrote:
I hate the same problem:
mongos> db.printShardingStatus()
--- Sharding Status --- 
  sharding version: { "_id" : 1, "version" : 3 }
  shards:
        {  "_id" : "shard0000",  "host" : "127.0.0.1:27018" }
        {  "_id" : "shard0001",  "host" : "127.0.0.1:27019" }
        {  "_id" : "shard0002",  "host" : "127.0.0.1:27020" }
  databases:
        {  "_id" : "admin",  "partitioned" : false,  "primary" : "config" }
        {  "_id" : "test",  "partitioned" : false,  "primary" : "shard0000" }
        {  "_id" : "mydb",  "partitioned" : true,  "primary" : "shard0000" }
                mydb.products chunks:
                                shard0000       1
                        { "nr" : { $minKey : 1 } } -->> { "nr" : { $maxKey : 1 } } on : shard0000 { "t" : 1000, "i" : 0 }
Reply all
Reply to author
Forward
0 new messages