macmillanpublishers / covermaker

Automated creation of cover image files
0 stars 1 forks source link

Covermaker can't delete cover.pdf #28

Closed nelliemckesson closed 7 years ago

nelliemckesson commented 7 years ago

Getting an error from covermaker that it can't delete the cover.pdf:

PDF CSS file: S:/resources/bookmaker_scripts/bookmaker_assets/pdfmaker/css/SMP/pdf.css C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:1439:in unlink': Permission denied - C:/Users/padwoadmin/Dropbox (Macmillan Publishers)/bookmaker_bot/bookmaker_egalley/submitted_images/cover.pdf (Errno::EACCES) from C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:1439:inblock in remove_file' from C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:1447:in platform_support' from C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:1438:inremove_file' from C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:785:in remove_file' from C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:563:inblock in rm' from C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:562:in each' from C:/Ruby200/lib/ruby/2.0.0/fileutils.rb:562:inrm' from S:/resources/bookmaker_scripts/covermaker/bookmaker_covermaker.rb:154:in `

' RUNNING COVERMAKER Generating cover.

It doesn't seem to be stopping anything, and the cover was created successfully.

mattretzer commented 7 years ago

we could move this bit of cleanup to cleanup.rb script in case a sluggish process or sync is keeping the file 'in use' for a couple seconds too long

MacmillanWorkflows commented 7 years ago

➤ Matthew Retzer commented:

Haven't seen this since November, we may have added patch or delay for a dupe or similar issue. Closing.