<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Alan,</p>
<p><br>
</p>
<p>Thanks for the suggestion - much appreciated.</p>
<p><br>
</p>
<p>I ran process_stats with&nbsp;--verbose and it's not saying where it's failing. I get an output seen below:</p>
<p><br>
</p>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Generating set tables.</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_sets_authors'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_sets_divisions'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_sets_subjects'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_sets_type'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_groupings_authors'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_groupings_divisions'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_groupings_subjects'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_groupings_type'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Removed table 'irstats2_cache_set_values'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] About to process dataset 'history'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] history: starting from record 341789</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] About to process dataset 'access'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Access: accessid to process: from 11662030 to 8992221</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Saving the state for dataset 'access'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Access: it took 1 secs to parse 56 records ( average = 56.00 records/sec )</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Access: 16 records kept out of 56 ( ratio = 28.57% )</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] About to process dataset 'eprint'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Creating table 'irstats2_doc_access'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Creating table 'irstats2_deposits'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Creating table 'irstats2_cache_downloads'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Creating table 'irstats2_cache_views'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] Creating table 'irstats2_doc_format'</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] eprint: starting from record 0</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>[mdx] eprint: 15391 records to process.</div>
<p></p>
</div>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>Can't call method &quot;context&quot; on an undefined value at /data/mdx/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/EPrint/CacheDownloads.pm line 43.</div>
<p></p>
</div>
</blockquote>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div><br>
</div>
<div>Perhaps it's failing on an unknown record 341789, even though there are only 15391 records in the repo to process?<br>
</div>
<div><br>
</div>
<div>Thanks!<br>
<br>
</div>
<div>Cheers,<br>
</div>
<div><br>
Andrew<br>
</div>
<div><br>
</div>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">--</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><strong>Andrew Hercules</strong></span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Developer &amp; UX Strategist</span></div>
<div><span style="font-size:12pt">University of London Computer Centre</span><br>
</div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Senate House, Malet Street, London WC1E 7HU</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">T: &#43;44 (0)20 7863 1342</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">E: andrew.hercules@ulcc.ac.uk&nbsp;</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">W: http://www.ulcc.ac.uk/</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:10pt"><em></em></span></div>
<p></p>
<p></p>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> eprints-tech-bounces@ecs.soton.ac.uk &lt;eprints-tech-bounces@ecs.soton.ac.uk&gt; on behalf of Alan.Stiles &lt;alan.stiles@open.ac.uk&gt;<br>
<b>Sent:</b> 03 February 2016 13:43<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> [EP-tech] Re: IRStats2 process_stats error message</font>
<div>&nbsp;</div>
</div>
<div>
<div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">Hi Andrew,</span></p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp;</span></p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">Have you tried running process stats from the command line with &#8220;--verbose --verbose&#8221; ? It might give you a clue as to what record it is failing on.</span></p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp;</span></p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">Alan</span></p>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp;</span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif">
<b><span lang="EN-US" style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>Andrew Hercules<br>
<b>Sent:</b> 03 February 2016 13:08<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> [EP-tech] IRStats2 process_stats error message</span></p>
</div>
</div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif">
&nbsp;</p>
<div id="divtagdefaultwrapper">
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Hi there,</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Just wondering if anybody has come across this error message when running
<i>cfg/bin/stats/process_stats</i>:</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<blockquote style="margin-left:30.0pt; margin-right:0cm">
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Can't call method &quot;context&quot; on an undefined value at lib/plugins/EPrints/Plugin/Stats/Processor/EPrint/CacheDownloads.pm line 43.</span></p>
</blockquote>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">I've gone into CacheDownloads.pm and can't see any error in the script. And I've run a diff on the file and compared it to other repositories with IRStats2 and there's no
 differences.</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Unfortunately, I think this error message is preventing some of the key figures from showing on the main stats report page.</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Thanks for your help!</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Cheers,</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black"><br>
Andrew</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">--</span></p>
<div id="Signature">
<div id="divtagdefaultwrapper">
<div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif; background:white">
<strong><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Andrew Hercules</span></strong><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black"></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif; background:white">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Developer &amp; UX Strategist</span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif; background:white">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">University of London Computer Centre</span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif; background:white">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Senate House, Malet Street, London WC1E 7HU</span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif; background:white">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">T: &#43;44 (0)20 7863 1342</span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif; background:white">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">E: <a href="mailto:andrew.hercules@ulcc.ac.uk" style="color:rgb(5,99,193); text-decoration:underline">
andrew.hercules@ulcc.ac.uk</a>&nbsp;</span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt; font-size:12pt; font-family:'Times New Roman',serif; background:white">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">W: <a href="http://www.ulcc.ac.uk/" style="color:rgb(5,99,193); text-decoration:underline">
http://www.ulcc.ac.uk/</a></span></p>
</div>
</div>
</div>
</div>
</div>
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England &amp; Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
</div>
</div>
</div>
</body>
</html>