-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Critical - P2
-
None
-
Affects Version/s: 2.1.1
-
Component/s: Sharding
-
None
-
Environment:db version v2.1.1-pre-, pdfile version 4.5
git version: a2d6f752d56aa446220b9f14c8ad3865c2fb5db8
-
ALL
Assertion: 15927:can't open database in a read lock. if db was just closed, consider retrying the query. might otherwise indicate an internal error
To reproduce do next actions:
0) mongo* running from mongodb:mongodb
1) mkdir /mongo/db/path/moveChunk && chmod 700 /mongo/db/path/moveChunk && sudo chown root:root /mongo/db/path/moveChunk
2) run sharding
it will fail with the next message: ERROR: Uncaught std::exception: boost::filesystem::create_directory: Permission denied: "/mnt/ongo/db/moveChunk", terminating
3) sudo chown mongodb:mongodb /mongo/db/path/moveChunk
4) restart mongodb
And now we have such messages in lock, that it can't open database
5) If you run query to some of collections in this database (e.g. db.foo.findOne()), than this message disappear and migration is in progress
- is duplicated by
-
SERVER-6511 Handle errors gracefully when mongod don't have the right permissions under the dbpath directory
-
- Closed
-