[Archivesspace_Users_Group] Advice on what to look for in AS logs after printing error?

Andrew Morrison andrew.morrison at bodleian.ox.ac.uk
Thu Jan 6 05:14:24 EST 2022


If you do see that "Failed to clean XML" message in the logs, then you 
might be interested in this pull request I submitted recently:


https://github.com/archivesspace/archivesspace/pull/2553


I could put the same fix into the form of a plug-in, if that is what you 
are seeing, you have the ability to install plug-ins, and you are 
running 2.7.1 or newer.


It might be a different markup issue, but in my experience the logs 
never tell you which archival object the problem is in. It cannot, 
because by that point it has converted the collection into a temporary 
HTML file, which is the intermediate step before converting to PDF. You 
could try exporting as EAD from the staff interface, then validating in 
an XML editor, but if the issue is something which is valid in EAD, then 
it can be very difficult to trace. If you have a local development 
instance of ArchivesSpace, you can modify the code so it doesn't delete 
the temporary HTML files, then validate those.


Andrew.



On 05/01/2022 18:14, Blake Carver wrote:
> It's going to be a bit of looking for a bunch of needles in a very 
> short hay stack kinda thing.
> The errors should have either FATAL or ERROR and something about pdf 
> around there somewhere. Sometimes there will be allotta other FATAL 
> and ERROR around, so you'll need to narrow it down based on what each 
> one says.
> You could also look for "92" "126" and "21" I think the resource 
> number should show up around the error as well.
> Also wouldn't surprise me to see this error in particular, but not always:
>
> |RuntimeError (Failed to clean XML: The entity name must immediately 
> follow the '&' in the entity reference.):|
>
> ------------------------------------------------------------------------
> *From:* archivesspace_users_group-bounces at lyralists.lyrasis.org 
> <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of 
> Kyle Breneman <kbreneman at ubalt.edu>
> *Sent:* Wednesday, January 5, 2022 12:36 PM
> *To:* Archivesspace Users Group 
> <archivesspace_users_group at lyralists.lyrasis.org>
> *Subject:* Re: [Archivesspace_Users_Group] Advice on what to look for 
> in AS logs after printing error?
>
> Thank you for that reminder, Blake!  Another question: the print 
> action was being run from the following pages.  Wouldn’t clicking the 
> AS print button itself register in the logs? If so, how could I 
> efficiently find those lines?
>
> https://archivesspace.ubalt.edu/repositories/2/resources/92 
> <https://archivesspace.ubalt.edu/repositories/2/resources/92>
>
> https://archivesspace.ubalt.edu/repositories/2/resources/126 
> <https://archivesspace.ubalt.edu/repositories/2/resources/126>
>
> https://archivesspace.ubalt.edu/repositories/2/resources/21 
> <https://archivesspace.ubalt.edu/repositories/2/resources/21>
>
> *Kyle Breneman*
>
> Integrated Digital Services Librarian
>
> The University of Baltimore
>
> kbreneman at ubalt.edu <mailto:kbreneman at ubalt.edu>
>
> /I believe in freedom of thought and /
>
> /freedom of speech. Do you?/
>
> *From:* archivesspace_users_group-bounces at lyralists.lyrasis.org 
> <archivesspace_users_group-bounces at lyralists.lyrasis.org> *On Behalf 
> Of *Blake Carver
> *Sent:* Wednesday, January 5, 2022 12:31 PM
> *To:* Archivesspace Users Group 
> <archivesspace_users_group at lyralists.lyrasis.org>
> *Subject:* Re: [Archivesspace_Users_Group] Advice on what to look for 
> in AS logs after printing error?
>
> *[**EXTERNAL EMAIL: This message originated from a non-UBalt email 
> system. Hover over any links before clicking and use caution when 
> opening attachments.**]*
>
> grep the logs for  ERROR or FATAL
>
> ------------------------------------------------------------------------
>
> *From:*archivesspace_users_group-bounces at lyralists.lyrasis.org 
> <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org><archivesspace_users_group-bounces at lyralists.lyrasis.org 
> <mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on 
> behalf of Kyle Breneman <kbreneman at ubalt.edu <mailto:kbreneman at ubalt.edu>>
> *Sent:* Wednesday, January 5, 2022 12:28 PM
> *To:* archivesspace_users_group at lyralists.lyrasis.org 
> <mailto:archivesspace_users_group at lyralists.lyrasis.org><archivesspace_users_group at lyralists.lyrasis.org 
> <mailto:archivesspace_users_group at lyralists.lyrasis.org>>
> *Subject:* [Archivesspace_Users_Group] Advice on what to look for in 
> AS logs after printing error?
>
> Our archives staff have noticed that AS tends to get hung up when 
> users click the Print button on some of our largest collections.  
> Campus IT tested this today.  The server did not hang for them, but 
> the print action also /did not complete/. They got a very, very 
> generic error message (attached).
>
> I have access to the ArchivesSpace files on the server, including the 
> /logs directory, but I’m not sure how to parse the logs for clues. 
> Does anyone have advice for how I can sift through the logs?
>
> *Kyle Breneman*
>
> Integrated Digital Services Librarian
>
> The University of Baltimore
>
> kbreneman at ubalt.edu <mailto:kbreneman at ubalt.edu>
>
> /I believe in freedom of thought and /
>
> /freedom of speech. Do you?/
>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20220106/57d45bf9/attachment.html>


More information about the Archivesspace_Users_Group mailing list