Hi All,I've been confronted with a completely nonsensical issue this morning. On two of our MongoDB replica sets (running mongod 2.0.6) we have found a large number of databases with garbled names. Let me illustrate:> db.getMongo().getDBNames().length46025Our application code doesn't create 46,000+ databases. When I looked at the names of these DBs, I found the following:"admin���Y�","admin���ZQ","admin���Zy","admin���Zミ","admin���Zᄇ","admin���Zᄌ","admin���Zᄍ","admin���Zᅢ","admin���[\u0004","admin���[\u0006","admin���[\u001e","admin���[G","admin���[e","admin���[j","admin���[}","admin���[マ","admin���[ユ","admin���[ン",This is just a tiny excerpt. There are many, many of these DBs there. 46,000+ of them!Has anyone on this list seen anything like this before? Our application is written in Scala and doesn't do anything strange with strings. Furthermore, this seems to have "affected" (for lack of a better term) just the "admin" DB, which our application doesn't access in any way.The above printouts are coming from the replica set's master. On the slave I found a similar situation. When I ran a db.serverStatus() on the slave, I found the following potentially interesting tidbit:"mem" : {"bits" : 64,"resident" : 5107,"virtual" : 100450,"supported" : true,"mapped" : 47242,"mappedWithJournal" : 94484,"note" : "virtual minus mapped is large. could indicate a memory leak"},After a restart, the weirdly named DBs have gone and the "mem" section looks like this:"mem" : {"bits" : 64,"resident" : 49,"virtual" : 94832,"supported" : true,"mapped" : 47242,"mappedWithJournal" : 94484},Any ideas are greatly appreciated. This caused a panic in our monitoring software. The sysadmins are unhappy, and you all know what this means for me. *shudder*Cheers,-max
On Monday, October 15, 2012 4:39:18 PM UTC-4, Sergey Ukolov wrote:what gui do you use to see data in your mongo? For example we use RockMongo. For authorisation it requires to provide DB name. If you input wrong DB name - it will be created on server. So... don't you think that someone (hacker) tried automatically access to your data? :)
I find this highly unlikely because our environment is strictly firewalled from the outside. It's also extremely difficult for me to believe that someone here would have made 46,000 of these databases, even if it were an honest mistake.
Do you have the logs from right before this happened?
Hi Max,
Could you send the log for what happened right before the first of these messages appeared? That way we can see more context on what it was trying to do when it got this error.
this might just be symptomatic of something going wrong earlier in the run as QueryMessage is usely involved in read-only operations.aside : since this has been occurring, I recommend you run mongod with --objcheck in the future.if you can get something that reproduces happy to dive on it and analyze.