<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi Maher,</p>
<p>I have not seen this issue with lift_embargos script for the
numerous EPrints 3.4.x repositories I maintained, which includes a
fair few 3.4.1 repositories. It looks as though the embargo is
lifted, it is just the error message is concerning and makes it
difficult to see which eprints have had embargoes lifted on them.
<br>
</p>
<p>The date_embargo field should only store a date and not a time so
there should be no reason for why the seconds have been checked.
The only thing I can think of is that when date_embargo got
created it somehow got created as a time (including date) rather
than a date field. You can check this by getting a mysql command
prompt for your eprints database and typing in:</p>
<p>describe document;</p>
<p>if there is any date_embargo... fields other than year month and
day, then that may explain your issue. However, I feel that is
unlikely and it would have mean someone had edited
/perl_lib/EPrints/DataObj/Document.pm or added their own
cfg.d/document_fields.pl and set the embargo_date field as a time
rather than a date. So if this is not the case, then let me know
and I will take a closer look. <br>
</p>
<p>What is puzzling is that lines 117 and 118 in
/usr/share/perl5/vendor_perl/Time/Local.pm check the hour and
minute are set. If seconds is unset I would expect those to be
unset as well. The problem is the error message is a core Perl
library, so it is likely to be something above this in EPrints
that is sending a set of values missing the second value to the
timegm method. As seconds is the first parameter for this method
it is difficult to see how this could be happening. It might ne
necessary to temporarily add some debug code to Time/Local.pm that
can produce a stacktrace when there is an error like that reported
on line 119.<br>
</p>
<p>Regards</p>
<p>David Newman<br>
</p>
<div class="moz-cite-prefix">On 30/12/2020 13:57, Maher Abdellatif
Ahmad Qahwash via Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:EMEW3|3db1b78da728db0856a2cce8d78acb8fwBYDxr14eprints-tech-bounces|ecs.soton.ac.uk|e42cd3fbea39456387ee26ed691d3f00@kfupm.edu.sa">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.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]-->
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970;
background-color:#F7F9FA; color:#8D3970; font-size:14px;
line-height:22px; font-family: Calibri, Arial, Helvetica,
sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the
University of Southampton.
</div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">We are
running eprints version (3.4.1) and are receiving the
following errors continuously when running the
lift_embargo command:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Lifting
expired embargo on eprint #1332, document #1141
(2020-11-01)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in numeric ge (>=) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 119.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in numeric lt (<) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 119.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in addition (+) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 134.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in numeric ge (>=) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 119.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in numeric lt (<) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 119.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in addition (+) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 134.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in numeric ge (>=) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 119.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in numeric lt (<) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 119.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in addition (+) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 134.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in numeric ge (>=) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 119.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in numeric lt (<) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 119.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Use of
uninitialized value $sec in addition (+) at
/usr/share/perl5/vendor_perl/Time/Local.pm line 134.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any idea
how to fix this issue?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Maher<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="text-align:justify"><span style="font-size:8.0pt;
line-height:107%;font-family:"Times New
Roman",serif"></span></p>
<p style="color:#808080">إن المعلومات الواردة في هذا البريد
الإلكتروني ومرفقاته (إن وجدت)، قد تكون خاصة أو سرية؛ فإذا لم
تكن المقصود بهذه الرسالة؛ فيُرجى منك حذفها ومرفقاتها من نظامك
وإخطار المرسل بخطأ وصولها إليك فورا. كما لا يجوز نسخ أي جزء
منها أو مرفقاتها ، أو الإفصاح عن محتوياتها لأي شخص أو
استعمالها لأي غرض آخر. إن جامعة الملك فهد للبترول والمعادن لا
تتحمل مسؤولية التغييرات التي يتم إجراؤها على هذه الرسالة بعد
إرسالها. وإن البيانات أو الآراء المعبر عنها في هذا البريد، هي
بيانات تخص مُرسلها، ولا تعكس بالضرورة رأي وبيانات الجامعة. كما
لا تتحمل الجامعة مسؤولية أي تأثير ينتج عن هذه الرسالة أوعن أي
فيروس قد تحمله.</p>
<p class="MsoNormal" style="text-align:justify"><span style="font-size:8.0pt;
line-height:107%;font-family:"Times New
Roman",serif"></span></p>
<p style="color:#808080">DISCLAIMER: The information in this
email and its attachments (if any) is intended for the
addressee only and may contain confidential or privileged
information. If you are not the intended recipient, please
delete the email and its attachments from your system and
notify the sender immediately. You should not retain,
disclose, copy, or use this email or any of its contents for
any purpose, nor disclose its contents to any other person.
KFUPM is not responsible for changes made to this message
after it was sent. Statements and opinions expressed in this
e-mail are those of the sender, and do not necessarily reflect
those of KFUPM. KFUPM is not liable for any effect or virus
damage caused by this message.</p>
</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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C736b863aa1324fc966b608d8b0a31ed5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453561929359640%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=IpNk3xitMSKFdL7QcceysKpmdQsH%2BCV2eiEDTAa2sWo%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="fC4R1NSjyVlgNllaQdKFIyhCwwHNRQ/4CCVCLU2jIBRFpWIhdOJHgBxxzVzSnob23gOXzXxh2TAnMDqFP5J3pNwDXS+nOqSUqN7J2eX6OL1H7QnCRzR0C20OQL/qyw19gJgFkYRbnDdkRkSDciFcxotj9StsKkR20OgyqlrK1G4=">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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C736b863aa1324fc966b608d8b0a31ed5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453561929359640%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=iPLX%2F0gjU%2BkUiNlz04yGQ4zDxSo2gPpWMO3VtZiW8Vk%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="XOI7WVCwP11zM4Gd6gHbNDikK5PhjQocC6sbZJvfzm3Zqa98Ii6ttyHpBSZTWcM5FnNmxW+/BcZc2yFQ7/iJ3rt65kBFPFJ0EzLDfVLWWXHxN0wn1nem5R5BYwI2mu2ZGwEKB59O+oEo5jh6/3SUgYADIT5BQQJLcCJ+5c95DAo=">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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C736b863aa1324fc966b608d8b0a31ed5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453561929369608%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=UncdJ3W8YnWwZATCbxJaX4D7FJjf8fofvl1ta0WSifk%3D&reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="DK667xHw5QQ4pP5JqVEN2rcgSdlLsi4rdzz+VaTIQ9AGa4l5yIa/2iy3Yru0Rs8bGBtlTMjLK93x5whygBZSvxw1IrV2icc+srvxezDMleL7d6EwYB/8Z4V/igsa3ebokqtZ78aCVt5pig8I6GqqqV8OP5FiNDes26VIgenZjEQ=" 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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C736b863aa1324fc966b608d8b0a31ed5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453561929369608%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=UncdJ3W8YnWwZATCbxJaX4D7FJjf8fofvl1ta0WSifk%3D&reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="DK667xHw5QQ4pP5JqVEN2rcgSdlLsi4rdzz+VaTIQ9AGa4l5yIa/2iy3Yru0Rs8bGBtlTMjLK93x5whygBZSvxw1IrV2icc+srvxezDMleL7d6EwYB/8Z4V/igsa3ebokqtZ78aCVt5pig8I6GqqqV8OP5FiNDes26VIgenZjEQ=" 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>