Jie Hou
Jie Hou

Reputation: 41

mongodb:when show tables ,show errors uncaught exception: error: { "$err" : "assertion db/pdfile.h:259" }

i want to show tables in a database,but it show errors,as

dxt:PRIMARY> show tables
Tue Jul  3 14:58:46 uncaught exception: error: { "$err" : "assertion db/pdfile.h:259" }

what is is the problem?

thank you .

Upvotes: 1

Views: 341

Answers (2)

Aafreen Sheikh
Aafreen Sheikh

Reputation: 5074

Did you do a sudden shutdown or face a crash? Can you check the folder you specified in dbpath if the .ns file is missing.. This file contains all this metadata required for querying..

Upvotes: 1

narced133
narced133

Reputation: 752

It sounds like your database was corrupted somehow. Similar to the problem here. You can try running a repair but do note that it will remove corrupted data:

db.repairDatabase()

Upvotes: 0

Related Questions