<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi Agung Prasetyo,</p>
<p>I ocassionally see this error message. It is due to a single
access record failing to set the time and date the access
occurred. Based on some repositories having tens of millions if
not over 100 million access records, the odd failure like this is
not uncommon. I have never got down the bottom of why it happens,
as it happens so infrequently*. However, if you are regenerating
your stats from scratch, it may be looking over many years of
access records, so it is more likely to find one access record
with this issue. It is not anything to be overly concerned
about. I guess the code could be tidied up to spot this a just
log a single warning line that there is an access record without a
timestamp.<br>
</p>
<p>Regards<br>
</p>
<p>David Newman<br>
</p>
<p>*My best guess would be some race condition where Perl sends off
a system request for the current time and maybe due to load on the
server this times out but EPrints writes the access record without
the time anyway.</p>
<div class="moz-cite-prefix">On 26/06/2020 09:02, Ajunk Pracetio via
Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:EMEW3|0c3ab82e4fef2a9ac8e8fe622e88b2d1w5P95L14eprints-tech-bounces|ecs.soton.ac.uk|CACOEPmN6N2_gS1VoYmeebN_Kop4VCL+R0pD-Zdw2yypLf+V7_w@mail.gmail.com">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>I ran the command process_stats myrepo --setup --verbose 3
days ago. Today when seeing the results, an error like the
following appears:</div>
<div><br>
</div>
<div>Use of uninitialized value $ hour in multiplication (*) at
/usr/share/perl/5.22/Time/Local.pm line 134.<br>
Use of uninitialized values in sprintf at
/usr/share/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/Access.pm
line 301.<br>
Use of uninitialized values in sprintf at
/usr/share/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/Access.pm
line 302.<br>
Use of uninitialized values in sprintf at
/usr/share/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/Access.pm
line 303.<br>
Use of uninitialized value $ year in concatenation (.) Or
string at
/usr/share/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/Access.pm
line 307.<br>
Use of uninitialized values in subtraction (-) at
/usr/share/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/Access.pm
line 307.<br>
Use of uninitialized values in subtraction (-) at
/usr/share/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/Access.pm
line 307.<br>
Use of uninitialized value $ _ [3] in addition (+) at
/usr/share/perl/5.22/Time/Local.pm line 75.<br>
<br>
Is this some kind of bug or notification that there are errors
in our eprints?<br>
<br>
Eprints version: 3.4<br>
OS: Linux Ubuntu 16.04<br>
RAM: 8GB<br>
<br>
Regards,</div>
<div>Agung Prasetyo<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7C%7C9b32ef303211457c62f608d819a90cec%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=9fbcSN4qnDNiEECvlyoyxSc2USt5doPnAr9DG6LiuoY%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="ZCgBISo8PBR6/mqJlExmtHs8QTaAxmTzvRt3lFirzjLX6KGqXzhGqEYp5x8KCXQRaiBRx6jqe3wV8OI0jwN3l6/KRBE+kmmEhZVeJHPxdLcP/ne04OjDeUE9ZagP5SrdU63UHAXrY1aWAYpXO37PvVlwgF+c7Ef71Qnfdvy4ukY=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7C%7C9b32ef303211457c62f608d819a90cec%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=hxkETSznk%2BdMrddIMcvpoeXAiGUlOLgpPi6TT27i2mU%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="Of2gl41lLR8OAiBLDkZR04I9Fow9AgiwplQLr9i4DVhNGD5p1YYIOmr3CgSAMETskrr4lVfLX3IoviDSn22NeLqbljx7BJJ/hU9nPiFwbhL9oxIGawS6uQfCvYKZdzCwFSYtr/M9I6+BF3Zm1KEughaQ/gzIjyF322eQcH2sG8g=">http://wiki.eprints.org/</a></pre>
</blockquote>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=01%7C01%7C%7C9b32ef303211457c62f608d819a90cec%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=XYkIy84w8xZGBmnTIUtazFMYkY6rAFTeiMCwCL7FSq0%3D&reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="hj0pQ1vvTwlbgT+ywpD7kOacxnnZ8y5eXYd+0FLAz4UTki1Zaf46E8zud/6GX3L5rg5yhmsbvzfDuTIeWtCUHiTeF1yCvDo4lEkDfFn83N65xZUkIhN2jkarHQ7T4YJcwxwrf+RFvE6bGzGSiiGMnHpLdY8HprpSnNgU1/YXAi4=" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=01%7C01%7C%7C9b32ef303211457c62f608d819a90cec%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=XYkIy84w8xZGBmnTIUtazFMYkY6rAFTeiMCwCL7FSq0%3D&reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="hj0pQ1vvTwlbgT+ywpD7kOacxnnZ8y5eXYd+0FLAz4UTki1Zaf46E8zud/6GX3L5rg5yhmsbvzfDuTIeWtCUHiTeF1yCvDo4lEkDfFn83N65xZUkIhN2jkarHQ7T4YJcwxwrf+RFvE6bGzGSiiGMnHpLdY8HprpSnNgU1/YXAi4=" target="_blank" style="color: #4453ea;">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>