com.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message 'Cursor 20505299843 not found on server on server

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Mithun Khatri
, 9 months ago
Query failed with error code -5 and error message 'Cursor 20505299843 not found on server on server
via Stack Overflow by Nav
, 1 year ago
Query failed with error code -5 and error message 'Cursor 304054517192 not found on server mongodb2:27017' on server mongodb2:27017
com.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message 'Cursor 20505299843 not found on server on server
at com.mongodb.operation.QueryHelper.translateCommandException(QueryHelper.java:27)
at com.mongodb.operation.QueryBatchCursor.getMore(QueryBatchCursor.java:215)
at com.mongodb.operation.QueryBatchCursor.tryHasNext(QueryBatchCursor.java:180)
at com.mongodb.operation.QueryBatchCursor.tryNext(QueryBatchCursor.java:164)
at com.mongodb.MongoBatchCursorAdapter.tryNext(MongoBatchCursorAdapter.java:66)
at com.apple.ist.appeng.sync.extractor.mongodb.input.Drain.tailOplog(Drain.java:142)
at com.apple.ist.appeng.sync.extractor.mongodb.input.Drain.run(Drain.java:120)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

2 times, 1 week ago
Once, 9 months ago

Write tip

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