Reputation: 222511
I am trying to create collection in mongo, on the server running ubuntu
creating collection from the shell
db.createCollection('collName')
{
"errmsg" : "exception: assertion util/mmap.cpp:169",
"code" : 0,
"ok" : 0
}
I tried to google about it but with no success. Any ideas how to handle this?
PS. I am not out of space and I volume is writeable
Upvotes: 1
Views: 6206
Reputation: 222511
Ok, I found the problem When mongo was just installed, one should have to create directories for its data
$ sudo mkdir -p /data/db/
$ sudo chown `id -u` /data/db
after this restart mongo
Upvotes: 1