com.mongodb.MongoException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Getting following exception when trying to do insert / udpate. <code> Caused by: com.mongodb.MongoException: timeout at com.mongodb.CommandResult.getException(CommandResult.java:100) at com.mongodb.CommandResult.throwOnError(CommandResult.java:134) at com.mongodb.DBTCPConnector._checkWriteError(DBTCPConnector.java:142) at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:183) at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:155) at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:249) at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:205) at com.mongodb.DBCollection.insert(DBCollection.java:57) at com.mongodb.DBCollection.insert(DBCollection.java:86) at com.mongodb.DBCollection.save(DBCollection.java:792) at com.mongodb.DBCollection.save(DBCollection.java:768) ----------------------------------------------------------------------- com.mongodb.MongoException: timeout at com.mongodb.CommandResult.getException(CommandResult.java:100) at com.mongodb.CommandResult.throwOnError(CommandResult.java:134) at com.mongodb.DBTCPConnector._checkWriteError(DBTCPConnector.java:142) at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:183) at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:155) at com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:328) at com.mongodb.DBCollection.update(DBCollection.java:160) at com.mongodb.DBCollection.update(DBCollection.java:191) </code> Data gets persisted to the DB though. On second attempt, I don't get the exception. Also this is very intermittent and most often happens when the server is idle for a while.
    via by Abhinav Shah,
  • GitHub comment 58#8742836
    via GitHub by bguerout
    ,
  • GitHub comment 29#210543121
    via GitHub by NorfAlrin
    ,
  • MongoDB running out of disk space
    via Stack Overflow by Saskia Vola
    ,
  • Java with MongoDb IP connecting issue
    via Stack Overflow by user3019299
    ,
  • Add new field to mongoDB embeded Doc
    via Stack Overflow by ramisetty.vijay
    ,
  • More Index questions
    via by MeBigFatGuy,
    • com.mongodb.MongoException: timeout at com.mongodb.CommandResult.getException(CommandResult.java:100) at com.mongodb.CommandResult.throwOnError(CommandResult.java:134) at com.mongodb.DBTCPConnector._checkWriteError(DBTCPConnector.java:142) at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:183) at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:155) at com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:328) at com.mongodb.DBCollection.update(DBCollection.java:160) at com.mongodb.DBCollection.update(DBCollection.java:191)
    No Bugmate found.