[SERVER-5273] Corrupted database list on a Mongo Server. Created: 09/Mar/12 Updated: 15/Aug/12 Resolved: 15/Jun/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 1.8.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Donny Bailey | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
debian squeeze running Mongo 1.8.2 |
||
| Operating System: | Linux |
| Participants: |
| Description |
|
When I use the command line mongo environment and run show dbs it returns this message. Fri Mar 09 16:22:14 decode failed. probably invalid utf-8 string [Ç] So I used the web interface to look closer at the data when I did list databases (http://10.1.50.21:15002/listDatabases?text=1) it returns the normal databases correctly, then there are 1462 entries that look like this: { "name" : "*", "sizeOnDisk" : 1, "empty" : true } , , , , , , , , , , , , I don't know if something in our code messed up and created these or if something internal in mongo did it. When I do a use admin then > db.databases.find(). It returns a list that is only the real databases. We've got replica sets and sharding. The list appears the same on all shard. Any Ideas what is going on and how to fix it? This is a production system and is running fine so far, but this definitely worries me. |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 10/Mar/12 ] | |
|
Are you a CS customer? Do you need this escalated via that support contract? | |
| Comment by Scott Hernandez (Inactive) [ 09/Mar/12 ] | |
|
It sounds like you might have accidentally created some dbs with chars that javascript can't print/decode. Also, for the dump you only need to run mongodump -h 10.1.50.21:14001 -d config and it will just dump that db in a dump/config directory with files for each collection. | |
| Comment by Donny Bailey [ 09/Mar/12 ] | |
|
All 6 shards return the same error when I run show dbs Fri Mar 09 18:36:18 decode failed. probably invalid utf-8 string [Ç] I'm dumping the config database now with the following command: I'll forward it when it's complete. Donny Bailey OrcaTec LLC Visualize a New Concept in Document Decisioning | |
| Comment by Scott Hernandez (Inactive) [ 09/Mar/12 ] | |
|
Can you dump your config database with mongodump and attach it? Also, please run this on each replica set (shard):
|