[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Lift_embargo error



Hi Maher,

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.

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:

describe document;

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.

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.

Regards

David Newman

On 30/12/2020 13:57, Maher Abdellatif Ahmad Qahwash via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
>
> Hi
>
> We are running eprints ?version (3.4.1) and are receiving the 
> following errors continuously when running the lift_embargo command:
>
> Lifting expired embargo on eprint #1332, document #1141 (2020-11-01)
>
> Use of uninitialized value $sec in numeric ge (>=) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 119.
>
> Use of uninitialized value $sec in numeric lt (<) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 119.
>
> Use of uninitialized value $sec in addition (+) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 134.
>
> Use of uninitialized value $sec in numeric ge (>=) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 119.
>
> Use of uninitialized value $sec in numeric lt (<) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 119.
>
> Use of uninitialized value $sec in addition (+) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 134.
>
> Use of uninitialized value $sec in numeric ge (>=) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 119.
>
> Use of uninitialized value $sec in numeric lt (<) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 119.
>
> Use of uninitialized value $sec in addition (+) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 134.
>
> Use of uninitialized value $sec in numeric ge (>=) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 119.
>
> Use of uninitialized value $sec in numeric lt (<) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 119.
>
> Use of uninitialized value $sec in addition (+) at 
> /usr/share/perl5/vendor_perl/Time/Local.pm line 134.
>
> Any idea how to fix this issue?
>
> Thanks,
>
> Maher
>
> ?? ????????? ??????? ?? ??? ?????? ?????????? ???????? (?? ????)? ?? 
> ???? ???? ?? ????? ???? ?? ??? ??????? ???? ???????? ?????? ??? ????? 
> ????????? ?? ????? ?????? ?????? ???? ?????? ???? ????. ??? ?? ???? 
> ??? ?? ??? ???? ?? ???????? ? ?? ??????? ?? ????????? ??? ??? ?? 
> ????????? ??? ??? ???. ?? ????? ????? ??? ??????? ???????? ?? ????? 
> ??????? ????????? ???? ??? ??????? ??? ??? ??????? ??? ???????. ??? 
> ???????? ?? ?????? ?????? ???? ?? ??? ??????? ?? ?????? ??? ???????? 
> ??? ???? ???????? ??? ??????? ???????. ??? ?? ????? ??????? ??????? ?? 
> ????? ???? ?? ??? ??????? ???? ?? ????? ?? ?????.
>
> 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.
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C736b863aa1324fc966b608d8b0a31ed5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453561929329778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=waGaC7lJ9wxqNbuRRgo4DSCx3HAnEoG1XWc9u6MsHvE%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C736b863aa1324fc966b608d8b0a31ed5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453561929329778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=rCJWkdWDE2XWYrbX%2FoxT%2FjGmqN2pdHU0V4Q8rdyoSfk%3D&amp;reserved=0


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C736b863aa1324fc966b608d8b0a31ed5%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637453561929339723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=08od6gDdj9RnVTURVnhx1Jov0KyuKcrkH5wNm5PoAfo%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210104/a68b37cb/attachment-0001.html