EPrints Technical Mailing List Archive
Message: #08943
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Ask about result of command generate_abstract in eprints 3.4.3
- To: <eprints-tech@ecs.soton.ac.uk>, Ajunk Pracetio <prazetyo@gmail.com>
- Subject: Re: [EP-tech] Ask about result of command generate_abstract in eprints 3.4.3
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Sun, 22 May 2022 11:19:41 +0100
Hi Agung,
So the problem seems to be that the
Time::Local::timegm function has been called without any
parameters. As $sec (i.e. seconds past the minute) is the first
parameter. In theory, you should never call Time::Local::timegm itself as should only be called
through an EPrints::Time function or some other core codebase
file, which should not call this function without parameters.
Looking through the codebase to see where timegm or functions that call timegm are called, the one that is most likely to affect generating abstracts is the use in perl_lib/EPrints/Script/Compiled.pm. To help debug this is would be useful to see the following files if you have modified them for your archive configuration, i.e. under archives/ARCHIVEID/cfg/:
cfg.d/eprint_render.pl
citations/eprint/default.xml
citations/eprint/summary_page.xml
citations/document/default.xml
Whilst I was checking through this, I noted that I recently (post 3.4.3 release) made a change to lib/citations/eprint/document/default.xml so it uses the comparison of the embargo date with today to determine what to display. Just to confirm you are not trying to install EPrints from the latest revision of EPrints 3.4 on GitHub (i.e. Git HEAD), which you would get if you run the following without a further git checkout to get a specific version:
git clone https://github.com/eprints/eprints3.4.git
If so are any restricted documents for the abstracts pages generated by you running generate_abstracts?
Based on the two sets of error messages, it looks like both abstract pages are affected, so this is a general rather than specific issue. So I need to checks some details about you install:
1. Is this upgrade installed on a new server or are you upgrading your live repository?
2. If this is a new server, what version of Ubuntu or other type of Linux are you currently running for your live repository on?
3. What version of EPrints are you upgrading from?
4. What process of upgrading EPrints are you using? Are you installing the new version of EPrints from source? If so please give some details are where you are getting the source for EPrints 3.4.3 and the process you are using to deploy it.
Regards
David Newman
CAUTION: This e-mail originated outside the University of Southampton.Hi,
I just installed eprints 3.4.3 on Ubuntu 20.04 LTS. When I running generate_abstract command, the result like this :----------------------------------------------
eprints@repository:~$ ./bin/generate_abstracts ARCHIVEID --verbose
Possible attempt to put comments in qw() list at (eval 167) line 29.
Starting EPrints Repository.
Connecting to DB ... done.
Writing abstracts
Use of uninitialized value $sec in numeric ge (>=) at /usr/share/perl/5.30/Time/Local.pm line 136.
Use of uninitialized value $sec in numeric lt (<) at /usr/share/perl/5.30/Time/Local.pm line 136.
Use of uninitialized value $sec in addition (+) at /usr/share/perl/5.30/Time/Local.pm line 154.
Use of uninitialized value $sec in numeric ge (>=) at /usr/share/perl/5.30/Time/Local.pm line 136.
Use of uninitialized value $sec in numeric lt (<) at /usr/share/perl/5.30/Time/Local.pm line 136.
Use of uninitialized value $sec in addition (+) at /usr/share/perl/5.30/Time/Local.pm line 154.
Writing: /usr/share/eprints/archives/ARCHIVEID/html/en/archive/00/00/00/01/index
Generated 1
Generated 2
Done writing 2 abstracts
Ending EPrints Repository.
eprints@repository:~$
----------------------------------------------
Does the error message affect eprints or not? Is there a way to get rid of the message, because in previous versions of eprints, the error message did not appear.
Thank you.
Best regards,Agung Prasetyo Wibowo
*** 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/
- References:
- [EP-tech] Ask about result of command generate_abstract in eprints 3.4.3
- From: Ajunk Pracetio <prazetyo@gmail.com>
- [EP-tech] Ask about result of command generate_abstract in eprints 3.4.3
- Prev by Date: [EP-tech] Ask about result of command generate_abstract in eprints 3.4.3
- Next by Date: [EP-tech] Shifting eprints 3.4.3 from RHEL7 to RHEL8
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):