com.mongodb.MongoException$Network

Operation on server localhost:27017 failed

Solutions on the web101

  • via JIRA by Chung-yen Chang, 1 year ago
    Operation on server localhost:27017 failed
  • via JIRA by Chung-yen Chang, 1 year ago
    Operation on server localhost:27017 failed
  • via JIRA by Eduardo Mayer, 1 year ago
    Read operation to server localhost:27017 failed on database application1
  • Stack trace

    • com.mongodb.MongoException$Network: Operation on server localhost:27017 failed at com.mongodb.DBTCPConnector.doOperation(DBTCPConnector.java:215) at com.mongodb.DBCollectionImpl.writeWithCommandProtocol(DBCollectionImpl.java:461) at com.mongodb.DBCollectionImpl.insertWithCommandProtocol(DBCollectionImpl.java:426) at com.mongodb.DBCollectionImpl.insert(DBCollectionImpl.java:188) at com.mongodb.DBCollectionImpl.insert(DBCollectionImpl.java:167) at com.mongodb.DBCollection.insert(DBCollection.java:93) at com.mongodb.DBCollection.insert(DBCollection.java:78) at com.mongodb.DBCollection.insert(DBCollection.java:120) at com.yahoo.ycsb.db.MongoDbClient.insert(MongoDbClient.java:246) at com.yahoo.ycsb.DBWrapper.insert(DBWrapper.java:148) at com.yahoo.ycsb.workloads.CoreWorkload.doInsert(CoreWorkload.java:461) at com.yahoo.ycsb.ClientThread.run(Client.java:269) Caused by: java.io.EOFException at org.bson.io.Bits.readFully(Bits.java:75) at org.bson.io.Bits.readFully(Bits.java:50) at org.bson.io.Bits.readFully(Bits.java:37) at com.mongodb.Response.<init>(Response.java:42) at com.mongodb.DBCollectionImpl.receiveWriteCommandMessage(DBCollectionImpl.java:532) at com.mongodb.DBCollectionImpl.access$300(DBCollectionImpl.java:48) at com.mongodb.DBCollectionImpl$2.execute(DBCollectionImpl.java:474) at com.mongodb.DBCollectionImpl$2.execute(DBCollectionImpl.java:461) at com.mongodb.DBPort.doOperation(DBPort.java:187) at com.mongodb.DBTCPConnector.doOperation(DBTCPConnector.java:208) ... 11 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    2 times, 11 months ago
    7 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago