If the second error appears once or twice a day, there is a better solution to change the settings for the job in SharePoint itself.
To reduce or even completely get rid of this error event, you can address it directly in SharePoint Central Administration. To manage it, take the following steps:
- Startup SharePoint Central Administration
- Click the Monitoring link on the left hand navigation bar
- Click on Review job definitions under the Timer Jobs heading
- In the Job Definitions screen click the Job History link that shows in the left hand navigation bar
- In the Job History screen look at the rightmost View option
- Change the View option from All to Failed Jobs
- Locate the failure by time and message based on what you saw in your Windows Event logs (it should say something about Feed Cache Repopulation Job)
- Click on the failed job to view and edit its properties
Now that you are editing the properties of the job, you’ll need to decide how
to edit it to fix it.
Personally, I saw in the job properties that it was scheduled to run every 5 minutes. The event error would only appear once or twice a day. From this error behavior I’m assuming there is some kind of randomly happening lock or timeout. Further, I don’t see why this job would have to run every five minutes… is this super-frequent repopulation really necessary?
Anyway, since the errors seem to be related to the frequency of the run, I changed the service to run once an hour with a generous starting time. So far this has done the trick quite nicely and I haven’t seen any further errors in the log files.
Source: https://jwcooney.com/2017/08/24/sharepoint-error-event-6398-part-2-of-dealing-with-this-error/