[EP-tech] OAI2 Harvesting Problem

James Kerwin jkerwin2101 at gmail.com
Fri Apr 23 11:18:27 BST 2021


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

Apologies for the delayed response and thank you for the advice. I THINK what I've done is introduced trouble by not including the subjects in the EPrints database when I uploaded the new Divisions structure. The reason the search page went wonky is because it displays the subjects in a list. My assumption is that when it couldn't find them in the database it threw an error. Or I'm totally wrong. I did leave the Subjects in the eprint_fields.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprint_fields.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286117575%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2FwTGmHYjgpSSmwt6%2BYIh0Aeb%2FhSfZjXP%2FO%2BTluNEcrM%3D&amp;reserved=0> file, ironically to avoid causing too much trouble.

I managed to alter the OAI config to disregard subjects and that brought it back to life. Then on the next harvest it failed due to the warnings pasted below. It did then work on a subsequent attempt, which is good news!

"Error saving an xml document: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)"

Putting the failed attempt down to some sort of random disconnect as it was harvesting for 45 minutes before it broke.

Anyway, once again thanks for your help.

James



On Thu, Apr 8, 2021 at 6:06 PM David R Newman <drn at ecs.soton.ac.uk<mailto:drn at ecs.soton.ac.uk>> wrote:

Hi James,

Subjects (and to a lesser extent divisions) have always been an integral part of EPrints.  Generally removing them from workflows, citations and config files like cfg/cfg.d/eprints_render.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints_render.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286117575%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=sBF7J3XgVyQ92aZnEwVmtyrSZ8U881bs7t2hByBoAto%3D&amp;reserved=0>, cfg/cfg.d/eprint_search_advanced.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprint_search_advanced.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286122564%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=SbD7yorF0LS6Onh8RtX0ypP2q1TdNLR08UaI91OaKxY%3D&amp;reserved=0>, cfg/cfg.d/views.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fviews.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286122564%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bjy%2B%2FNcVDrY0o1uwkqhAund73pVAGLxndWvuwSOlIBU%3D&amp;reserved=0>, etc. is sufficient to hide them without breaking EPrints.  If you start removing them from cfg/cfg.d/eprint_fields.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprint_fields.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286122564%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=2OuzMkyAwAqyxJ1Z%2BTrOyWOY0WquW06liZ6ybExr8W8%3D&amp;reserved=0> is when you are likely to hit problems like those you mention, as certain aspects of EPrints expect the subjects or divisions fields to at least be defined even if they are not used.

I think in this particular (/cgi/oai2) situation, you probably needed to make sure you disabled the subjects OAI set in cfg/cfg.d/oai.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Foai.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286122564%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=T9soAI4r6aJ%2FgknAGsmVv6LzTQNLxCGuQFsFajBh2eI%3D&amp;reserved=0>.  Unfortunately, there is a rather complex list of config changes you need to be sure to make if you want to undefine (i.e. comment out / remove) the subjects field in eprint_fields.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprint_fields.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286122564%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=2OuzMkyAwAqyxJ1Z%2BTrOyWOY0WquW06liZ6ybExr8W8%3D&amp;reserved=0> and make sure this does not break anything else.  If I get the opportunity, I will see if there is a suitable place on the wiki to document what this rather complex list of config changes is.

Regards

David Newman

On 08/04/2021 17:05, James Kerwin via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton.
Hi All,

Update on this after some mooching around. Our "ListSets" option in OAI2 no longer works and sends me to an error page:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fcgi%2Foai2%3Fverb%3DListSets&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286122564%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=CWPU%2B0pVm%2FSeQyNUbHk%2FwtJ7gtGzQW88%2Bpe687a1bGg%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fcgi%2Foai2%3Fverb%3DListSets&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286127554%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=aQqjotrCj7e1UD%2FOeCaFjDa1z4Mf%2Bm3E95RExO3g8i4%3D&amp;reserved=0>

When I redid the Divisions/Uni Structure recently in EPrints the Subjects were removed as we haven't used them in years. This caused a couple of issues with the advanced search and some abstract pages. Looking at the ListSets page for another repository, the Subjects are part of this.

I'm going to attempt to correct it by either altering the ListSets (probably not) or by resurrecting the Subjects. I'll update with any success/failure.

Hopefully I can prevent other would-be unintentional wreckers following in my footsteps.

Thanks,
James

On Thu, Apr 8, 2021 at 3:58 PM James Kerwin <jkerwin2101 at gmail.com<mailto:jkerwin2101 at gmail.com>> wrote:
Hi All,

Hope everyone is happy and healthy.

Our repository is harvested by a company named EBSCO. Recently they have started receiving the following warning and failing to harvest:

"Harvest has been aborted by an error "Could not harvest from https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fcgi%2Foai2&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286127554%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=DNXNUMcYF9%2BdOvF7JmnlfuI8IWV0d%2BlyAce4KI%2F6dSw%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fcgi%2Foai2&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286127554%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=DNXNUMcYF9%2BdOvF7JmnlfuI8IWV0d%2BlyAce4KI%2F6dSw%3D&amp;reserved=0>: The remote server returned an error: (500) Internal Server Error"

They use this base URL:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fcgi%2Foai2&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286132546%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dV6Q1666Fq1hVqIebAvCXPztn1YTLMp24rGmPG%2FUFto%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flivrepository.liverpool.ac.uk%2Fcgi%2Foai2&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286132546%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dV6Q1666Fq1hVqIebAvCXPztn1YTLMp24rGmPG%2FUFto%3D&amp;reserved=0>

This whole area is slightly off my radar so I was hoping if there are any common things I could check? Obviously the repository is up and running. I've asked for the dates of the most recent successful harvest and the first failure as well as if it is still happening. I also need to speak with our Computing Services Department to check if the IPs can get through the firewall.

Is there anything else I can/should check based on all of your collective experience?

We did recently get a new security certificate, but I can't imagine that is a problem as we do this each year without any issues.

Thanks,
James



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286132546%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=qB1oZ73lUINmjGZU61ElwUJwgG2UhO8krId6XUxqsTk%3D&amp;reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286132546%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=1WFIN3PadXzds2qmZiuCuE77girOgjB40rMaVP2D5mM%3D&amp;reserved=0

[https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fipmcdn.avast.com%2Fimages%2Ficons%2Ficon-envelope-tick-green-avg-v1.png&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286132546%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=PQnD5guAnWMEyDlSbHM6T%2BmfZp9ktIVx4TkmB5DXlws%3D&amp;reserved=0]<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286137537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=91cwMfgjOGVgULp42NBrYy6nf6Vw5sUa7%2BsjdJSleUo%3D&amp;reserved=0> Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286137537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=o1Q6IbVHVjTceZZZEwtY%2F0qG18WrD85TUBbZpJbP7hM%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7c97cf9089224221d1d108d906412adc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637547699286137537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=91cwMfgjOGVgULp42NBrYy6nf6Vw5sUa7%2BsjdJSleUo%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210423/0cc0453b/attachment-0001.html 


More information about the Eprints-tech mailing list