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

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



An alternate solution is to alter it's parent to be a valid eprint then 
delete the document from that eprint, I think.

On 05/12/2022 09:43, John Salter wrote:
> *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 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&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccf8cf77e13db4e37cba408dad6b5b947%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058373229412659%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=szJeE9f7dALwsvGq3zwklL0oNFsUMlIaSSWO5sQZgNo%3D&amp;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&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccf8cf77e13db4e37cba408dad6b5b947%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058373229412659%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=szJeE9f7dALwsvGq3zwklL0oNFsUMlIaSSWO5sQZgNo%3D&amp;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&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccf8cf77e13db4e37cba408dad6b5b947%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058373229879784%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=E9W1K5OlgGGPKMAaCsH05IMdt6orLqkG4RmENEN9OU8%3D&amp;reserved=0>
>
>     *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccf8cf77e13db4e37cba408dad6b5b947%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058373229879784%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=G2S2qz1uU4folm62R2kGuqbZ9lmANPnE%2Fqru6JqpOv4%3D&amp;reserved=0  <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccf8cf77e13db4e37cba408dad6b5b947%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058373229879784%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=G2S2qz1uU4folm62R2kGuqbZ9lmANPnE%2Fqru6JqpOv4%3D&amp;reserved=0>
>
>     *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccf8cf77e13db4e37cba408dad6b5b947%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058373229879784%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=KDMgmBMVx9uwogj3NvjQaOlkjdWgJvdB8ZaRnHl5D6s%3D&amp;reserved=0  <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccf8cf77e13db4e37cba408dad6b5b947%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638058373229879784%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=KDMgmBMVx9uwogj3NvjQaOlkjdWgJvdB8ZaRnHl5D6s%3D&amp;reserved=0>
>
> -- 
> Christopher Gutteridge, Research Application Support, University of Southampton

-- 
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/8aaa5a66/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 105955 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20221205/8aaa5a66/attachment-0001.png