Confluence PDF export dips out Could not retrieve image resource Edited

Confluence 5.5.6, doing PDF export of a page. The export works. It takes a couple of secs more than it should as it keeps looking for a non existing attachment, the log file shows bunch of these:

2017-08-24 10:16:16,386 WARN [http-bio-8090-exec-176] [confluence.extra.flyingpdf.ConfluenceExportUserAgent] getImageResource Could not retrieve image resource http://server:8090/download/attachments/753704/

I have dumped the DB content to a flat file - no there; also select count(*) from ATTACHMENTS where title = ''; returns 0 results.

When I go to logo/favicon pages in Config - images are there and visible.

When I go to page I am trying to export - does not appear to be any broken attachment there (with emphassis on does not appear).

What I am missing here? How to identify why the page is referring to that logo and remove/change/fix it?



4 answers

0 votes
Aya Mohamed Atlassian Team Sep 21, 2017

I think it might be related to a bug where df export fails to retrieve image if the image on the page is a web image and url contains "download/attachments"

As Workaround:

Add the problematic image as an attachment first, and then replace the web image with the attachment on the page before exporting.

0 votes

Is it possible that you have done some sort of customization for PDF? Can you check in Confluence Administration > PDF Layout and PDF Stylesheet if something is referring to this file.

If this is the case, upload an image as an attachment and then use the URL in that customization.

Hi. Thanks for the replies. PDF Layout and Stylesheet under Administration are empty (not used). I am not entirely sure what should I attach and where? Probably should have mentioned this in the problem description, apologies for that - but it does not matter what page I export to the PDF, ie any page I go and 'export to PDF' I see the 'error' above in the log file. Thanks.

0 votes

Try to enable safe mode and check if the issue is still there. If the problem is gone, I would suggest enabling plugins one by one until you find out which plugin is causing it. 

If the problem is not with the plugin, I would suggest contacting Atlassian support for help.

p.s. If you can, you can also use grep command to locate the line in code pointing to that image by searching in confluence-home and confluence-install directory.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

275 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you