EPrints Technical Mailing List Archive

Message: #09117


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

Re: [EP-tech] Error when running command epadmin redo_thumbnails archiveID


CAUTION: This e-mail originated outside the University of Southampton.

I agree with Chris J
SELECT eprintid FROM document WHERE docid = 130882;

If that returns a number, try this:

SELECT COUNT(*) FROM eprint WHERE eprintid = (the answer from above)

 

It will probably return nothing (in which case you've got an orphaned document).

If the first line return nothing, you've got a document that might never have had a parent L

 

If it's orphaned, trying to remove it through normal means will fail, as it will try to set the $eprint->under_construction( 1 ) again.

I've got a script somewhere that will get rid of it - let me know if you need it.

 

Cheers,

John

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Christopher Gutteridge via Eprints-tech
Sent: 05 December 2022 09:07
To: eprints-tech@ecs.soton.ac.uk; Ajunk Pracetio <prazetyo@gmail.com>
Subject: Re: [EP-tech] Error when running command epadmin redo_thumbnails archiveID

 

Looking at the code I'm guessing it's this line

https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/DataObj/Document.pm#L1939

(The release version of EPrints gets some extra lines added at the top as part of the release process)

This is calling the legit function "under_construction" on a NULL variable, that appears to be the result of asking for the "parent" of a document.

This suggests to me your database is slightly muddled and has a document object that no longer has a valid assoaciated EPrint.

 

On 05/12/2022 02:03, Ajunk Pracetio via Eprints-tech wrote:

CAUTION: This e-mail originated outside the University of Southampton.

Hi,

 

Today I am running : ./bin/epadmin redo_thumbnails archiveID --verbose

and after a few minutes, screen show error : 

Can't call method "under_construction" on an undefined value at /usr/share/eprints3/bin/../perl_lib/EPrints/DataObj/Document.pm line 1928.

 

image.png

 

Is there any bug or something that makes this command error?

 

Thank you.

 

Regards,

Agung P 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/
-- 
Christopher Gutteridge, Research Application Support, University of Southampton