com.mongodb.MongoException$Network: Operation on server localhost:27017 failed

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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 Google Groups by JunKai Wu, 2 years ago
Operation on server 127.0.0.1:30000 failed
via gmane.org by Unknown author, 2 years ago
Operation on server 127.0.0.1:30000 failed
via JIRA by Mathieu Carbou, 1 year ago
Operation on server c151.candidate.6.mongolayer.com:10151 failed
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.(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)
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)

Users with the same issue

7 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.