[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Error when running command epadmin redo_thumbnails archiveID
CAUTION: This e-mail originated outside the University of Southampton.
I agree with Chris :)
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 :(
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 at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Christopher Gutteridge via Eprints-tech
Sent: 05 December 2022 09:07
To: eprints-tech at ecs.soton.ac.uk; Ajunk Pracetio <prazetyo at 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://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FDataObj%2FDocument.pm%23L1939&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce755e58fa4b44179a07608dad6a52bb9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058303602904000%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=FDZutdmeHB%2Fj9tzNbBKMucGUsG8yQCqa%2F6tKNcSxBTc%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FDataObj%2FDocument.pm%23L1939&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce755e58fa4b44179a07608dad6a52bb9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058303602904000%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=FDZutdmeHB%2Fj9tzNbBKMucGUsG8yQCqa%2F6tKNcSxBTc%3D&reserved=0>
(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<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce755e58fa4b44179a07608dad6a52bb9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058303603060199%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=6A5b0lMpMMGBMV1dpPYalh9sClHST6BLm0fu%2Bg%2BJedI%3D&reserved=0>
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce755e58fa4b44179a07608dad6a52bb9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058303603060199%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=3QnkgINiddORCUGBv3FAPbrEXdqnf2Fel3F8d1LS3J8%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce755e58fa4b44179a07608dad6a52bb9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058303603060199%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=3QnkgINiddORCUGBv3FAPbrEXdqnf2Fel3F8d1LS3J8%3D&reserved=0>
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce755e58fa4b44179a07608dad6a52bb9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058303603060199%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=uXh1BHn%2F96R4q5VVpjjk9IOImDIZjJxEylF1%2FcqSIEg%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ce755e58fa4b44179a07608dad6a52bb9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058303603060199%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=uXh1BHn%2F96R4q5VVpjjk9IOImDIZjJxEylF1%2FcqSIEg%3D&reserved=0>
--
Christopher Gutteridge, Research Application Support, University of Southampton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20221205/edf8ce6a/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 105955 bytes
Desc: image002.png
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20221205/edf8ce6a/attachment-0001.png