<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Verdana","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-AU;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">I will keep this request short&#8230; but I have provided more details for those who want to read the epic tale below&#8230;.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">I have just finished pushing IRStats 2-0.0.5 into a dev eprints system (running 3.3.10),
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Everything seems to be working except the world map, &#8216;origin of download&#8217; component. Found on the vanilla &nbsp;/cgi/stats/report/requests page.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">I also added the GeoChart code into the eprint report as well&#8230;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">The database has irstats2_countries table and it&#8217;s got appropriate data in it, but error logs show &#8220;Stats::Handler: requested processor 'countries' does not exist.&#8221;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Seb, Any ideas where to start looking?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Matt.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">More details&#8230; &nbsp;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">The vanilla settings for eprint in z_irstats2.pl generates the report (&lt;FQDN&gt;/cgi/stats/report/eprint/) and displays everything as expected&#8230;
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">eprint
</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; {</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">items </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; [ { </span><span style="font-size:10.0pt;font-family:Consolas;color:black">plugin
</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span>
<span style="font-size:10.0pt;font-family:Consolas;color:blue">'ReportHeader' </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">},</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">plugin </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">'Google::Graph'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">datatype </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">'downloads'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">options </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; { </span><span style="font-size:10.0pt;font-family:Consolas;color:black">date_resolution
</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span>
<span style="font-size:10.0pt;font-family:Consolas;color:blue">'month'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">graph_type
</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span>
<span style="font-size:10.0pt;font-family:Consolas;color:blue">'column'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">, },&nbsp; },</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">plugin </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">'KeyFigures'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">options </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; { </span><span style="font-size:10.0pt;font-family:Consolas;color:black">metrics
</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; [ </span>
<span style="font-size:10.0pt;font-family:Consolas;color:blue">'downloads.spark'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">'hits.spark'
</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">], } },</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">&nbsp;&nbsp;&nbsp; },</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">I added the GeoChart line into the items block, to display origin of downloads,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">plugin </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">'Google::GeoChart'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">datatype </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">'countries'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">,
</span><span style="font-size:10.0pt;font-family:Consolas;color:black">options </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; { </span><span style="font-size:10.0pt;font-family:Consolas;color:black">title_phrase
</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">=&gt; </span>
<span style="font-size:10.0pt;font-family:Consolas;color:blue">'download_countries'</span><span style="font-size:10.0pt;font-family:Consolas;color:#B22200">, }, },</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">and it displays the relevant block on the screen, but it contains a message &#8216;this.each is not a function&#8217;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">The apache error log also displays&#8230; &#8220;Stats::Handler: requested processor 'countries' does not exist.&#8221;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">After digging around, I found that I was missing Geo::IP, which is documented in the file
</span><strong><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">/opt/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/Access/Country.pm<o:p></o:p></span></strong></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-language:EN-AU"># Processor::Access::Country<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-language:EN-AU">#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-language:EN-AU"># Processes the Country codes from Access records. Provides the 'eprint_countries' datatype<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-language:EN-AU"># Note that this requires Geo::IP to work.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-language:EN-AU">#<o:p></o:p></span></p>
<pre><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Even though it is testing for </span>EPrints::Utils::require_if_exists( &quot;Geo::IP::PurePerl&quot; )<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">I
</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">installed
</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">perl-Geo-IP</span><span style="font-size:10.0pt">, and then also installed
</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">perl-Geo-IP-PurePerl</span><span style="font-size:10.0pt">
</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">too, when
</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">perl-Geo-IP</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"> didn&#8217;t get things</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"> working&#8230;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">This dev install of ePrints doesn&#8217;t/didn&#8217;t have the geoip.dat file that was required either, so that&#8217;s been put in place (/opt/eprints3/lib/geoip/GeoIP.dat).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">The process_stats was re-run to rebuild all the tables&#8230; and we now have an &#8216;irstats2_countries&#8217; table (which wasn&#8217;t there before), and it&#8217;s been populated with data that
 looks appropriate&#8230;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">I am guessing that having the table populated, would indicate that the &#8216;countries&#8217; processor is in place and operational, which makes the apache error log rather confusing..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<PRE>
_____________________________________________________________
This email (including any attached files) is confidential and is for the intended recipient(s) only. If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland. Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt.

The University of Southern Queensland is a registered provider of education with the Australian Government.
(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )
</PRE></body>
</html>