6398 – The Execute method of job definition…SPUsageImportJobDefinition
Have this critical error in your Eventlog?
The Execute method of job definition Microsoft.SharePoint.Administration.SPUsageImportJobDefinition (ID ef497ec2-0cbf-4458-91ea-db75422fd9da) threw an exception. More information is included below.
Access to the path ‘C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS’ is denied.
This is a really annoying error in the eventlog, there are many references to this out there but most or even all take the easy way out and that is not for me 🙂
Two suggestions I have seen(that I do not recommend):
1. Add the ‘serviceaccount’ (usually the farm account) to the local administrators Group effectively giving the account full access to the entire filesystem.
2. Give the service account ‘serviceaccount’ (usually the farm account) read/write permissions to the LOGS folder.
Both are wrong, if the system would need access to this Place, why does it not have that allready?
In a real Life scenario I had this in the customers logs, when t-shooting I eventually figured out why they had it. In this customers Environment we had moved the ULS log location.
Central Administration/Monitoring/Configure Diagnostic Logging/Path
We had changed it (during PowerShell setup) to D: as one would…
This setting looked like this:
This was the reason…why this setting eaither was changed together with the log or if it would still have access…but no.
We ended up changing this path to D: as well, after all, this is what we really wanted anyway, no eccessive data on C:
Hope this helps anyone else.
Mattias Gutke at CAG. My main man…