archivesspace icon indicating copy to clipboard operation
archivesspace copied to clipboard

Export to PDF Fails for Every Resource

Open maxlharr opened this issue 5 years ago • 1 comments

I am running ArchivesSpace 2.8.1 on a Windows install against a local MySQL database.

I'm running into a problem where, when I try to export any of my resources finding aids as a PDF, the background job fails. This is happening for every resource in my repository. Each time, the log is giving me the same output. I've attached an example. output.log

I've seen some similar issues with PDF exports failing, but none seem to match this sort of output in the log. Is there something obvious I'm missing?

maxlharr avatar Jan 02 '21 06:01 maxlharr

That's not good!

I haven't tested anything out yet, but based on the helpful output that you attached, I'm guessing that this is due to the "make_tmpname" method being deprecated (see https://github.com/archivesspace/archivesspace/blob/1c22d0375d3508d30cb4e51e86506a2d5cf50da7/common/asutils.rb#L76, but ASpace was recently updated to use ruby 2.5, which no longer has that method).

In case it helps someone else add a patch, this Stack Overflow page has more info, with a variety of alternative approaches mentioned: https://stackoverflow.com/questions/13787746/creating-a-thread-safe-temporary-file-name

fordmadox avatar Jan 07 '21 22:01 fordmadox