Compatibility with AS v2.7.0?
noahgh221 opened this issue · 9 comments
Since upgrading ArchivesSpace to v2.7.0, I have noticed that when I trigger a spreadsheet import from a resource record, I receive a Bad Gateway error in the staff interface (after a considerable delay).
I also see the following "Calling a deprecated endpoint" error in my log file (logs/archivesspace.out):
The plugin was working as expected in v2.6.0, so I'm wondering if something has changed in v2.7.0 that makes the current plugin incompatible (and if it's an easy fix:)). Thanks for considering.
FWIW, I just tested a small import via the plugin on our 2.7.0 dev instance (we are hosted by Lyrasis), and it imported correctly.
Thanks @kschlottmann . Looking into this a bit more, I was able to get the import to work (there were some spreadsheet formatting issues..). Even so, I do still get the "CALLING A DEPRECATED ENDPOINT" warning in my logs, but it doesn't seem like a critical error.
thanks @pobocks . To add another wrinkle, Lyrasis was reporting that ASpace crashed every time we tried to import the malformed spreadsheet. That's why I started looking into this. Seems weird that a malformed spreadsheet would crash ASpace entirely rather than just throw an error. In the meantime, I will try to be more vigilant in enforcing spreadsheet formatting standards (wish me luck).
I suspect that the deprecated route is being invoked by the javascript that helps determine which leaf of the tree is used as the starting point for the ingest.
In terms of "crashing the system": I'd really like to see the related log file(s).
@bobbi-SMR , I forwarded you a message containing a snippet of the log file along with some other info. Thanks!
Hi, Noah,
I ran into a problem with the excel file you sent that I can't explain:
When trying to ingest the file, the code didn't get past the "read in and parse the excel file" piece, resulting in the following message in the log file:
F, [2019-11-20T10:46:42.871000 #12100] FATAL -- : RuntimeError ({"error":"undefined method
getSQLState' for java.lang.OutOfMemoryError: Java heap space:Java::JavaLang::OutOfMemoryError\nDid you mean? getClass"}
`
(This, btw, might have caused Aspace to crash).
I opened the file, wrote it out as a csv, read that csv back in, and tried again. There were no problems.
I don't have any expertise in evaluating .xlsx files for problems, but I'm wondering if whatever the problem is is the root cause.
I did all this in 5.2, as I'm only now in the process of upgrading myself, but I doubt that the file as you sent it to me is going to get past the parsing step.
[thanks for your kind words wrt the plugin :-)]
Interesting, I will never understand Excel's mysteries... Thanks for the additional info though. I was able to get this spreadsheet to load after reformatting it to meet the template specs. I'll close out this issue and chalk it up to...Excel being Excel.