I'm having trouble with Site Usage Report in WSS3 SP1.
In the Site Settings, the Site usage report says "A usage report is
not available for this site and bla-bla". While I have configured
"Enable logging" and "Enable usage analysis processing" in the
"Central Administration > Operations > Usage Analysis Processing". I
also see the job definition in the Timer Job Definitions area.
stsadm -o getproperty -pn job-usage-analysis -url http://...
returns
<Property Exist="Yes" Value="every 1 minutes between 0 and 59" />
however nothing happens, except the following in the log file
OWSTIMER.EXE (0x12734) Unknown SPRequest error occurred. More
information: 0x80070005
OWSTIMER.EXE (0x12734) Unexpected ERROR: Failed invoking job id
{2660A947-B893-450C-9FA0-ABC6FC6EAB82}
Any ideas?
I tried to google and don't find anything useful so far. I checked
rights on \LOG directory for WSS_WPG account - OK, I added this
account to C:\windows\tasks (read-write). Tried to check the job
programmatically using
foreach (SPJobDefinition job in site.WebApplication.JobDefinitions)
{
if (job.Title == "Usage Analysis")
{
Console.WriteLine("IsDisabled=" + job.IsDisabled);
Console.WriteLine("LastRunTime=" +
job.LastRunTime.ToString());
Console.WriteLine("Status=" + job.Status);
Console.WriteLine("Schedule=" +
job.Schedule.GetType().ToString().Remove(0, 21));
Console.WriteLine("NextOccurrence=" +
job.Schedule.NextOccurrence(DateTime.Now).ToString());
job.Execute(site.ContentDatabase.Id);
}
}
that returns following
IsDisabled=False
LastRunTime=01.01.0001 00:00:00
Status=Online
Schedule=SPMinuteSchedule
NextOccurrence=14.07.2008 15:02:39
but as you see the LastRunTime value is 01.01.0001 00:00:00 that means
it was never executed...
Any help would be much appreciated,
Alexey Smirnov [MVP]