EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #08417


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [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: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Virus-free. www.avg.com