Clean up sling jobs at the mongodb level in AEM6.0
- Log into mongo shell on the primary mongo node
- Download oak-mongo.js to the server
wget http://s.apache.org/oak-mongo.js
- Run this on the command line
mongo aem-author --shell oak-mongo.js
- Run these commands from the mongodb shell
oak.removeDescendantsAndSelf("/oak:index/slingeventEventId/:index")
oak.removeDescendantsAndSelf("/oak:index/event.job.topic/:index")
oak.removeDescendantsAndSelf("/var/eventing/jobs")
oak.removeDescendantsAndSelf("/var/replication/data")
- Start AEM