Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to preview attachments

Callen Steffensen November 19, 2017

Hi,

We are unable to preview documents on our Confluence Server. The server is version 6.4.3 and is currently using the H2 embedded database on Ubuntu 14.04. We have not applied any upgrades to this server, it has always used version 6.4.3. 

When we attempt to preview a document, clicking it doesn't do anything and there is nothing logged in the catalina.out file when attempting to open the documents.

We are able to right click and save documents locally and open them using applications on our computers, it is just the in browser preview that is not working.

Any help would be greatly appreciated! Thanks!

3 answers

1 accepted

7 votes
Answer accepted
John Lill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2017

We had this same symptom on our dev server running confluence (6.1.2).

 

We found that somehow the Confluence Files modules had become disabled.  Re-enabling them fixed the problem.

 

Confluence administration -> Manage add-ons -> All add-ons -> Confluence Files -> Enable 

David Couillard October 8, 2018

We were seeing "download needed" on first click of the "preview" button.  Select "X", or escape , then clicking "preview" a second time would render a preview of the document.

This was acceptable as for a Word doc it allowed us to see the comments which had been entered by others,  (Is there any other way to view these docs, with comments?) then it stopped rendering for all clicks of "preview".  I found this question, followed the suggested answer as "Confluence Files" was disabled, and the behavior is the same as before.  

I don't know if it was enabled previously, or not, as I didn't set this instance up.

Why would the first click on "preview" cause different behavior than subsequent clicks?

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2017

Callen, I am the Atlassian emailed by Boris. :)

I opened a support request on your behalf so we can examine your logs. You will receive an email soon from our portal.

To help Support get started troubleshooting please attach a support zip to the ticket. To create a support zip, please follow these instructions: Creating a Support Zip File via the Confluence Administration Console

John Lill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2017

I have this same issue on our test instance (server 6.1.2).  Was there any outcome to the support ticket. 

Callen Steffensen December 11, 2017

We are still working on finding a solution with Atlassisan support. There has been no resolution yet.

0 votes
Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2017

h2 is for demo purposes only, you should migrate to a supported database.

 

You should also be looking in atlassian-confluence.log and not the catalina.out file

Callen Steffensen November 20, 2017

We understand that we should be using another database, we will be migrating soon. 

I have just checked the log file mentioned above and there is nothing written to the log when I am attempting to preview a file, it just doesn't open.

Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2017

Do you see any errors in your browser JS or Network console?

Callen Steffensen November 20, 2017

There is a "404 Not Found" error when I attempt to launch the preview. It cannot find these paths:

https://domain_name/rest/files/1.0/files/content/1737230/byAttachmentIds

https://domain_name/rest/files/1.0/files/content/1737230/minusAttachmentIds

I can still right click on these files and save and open the files manually. 

Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2017
Callen Steffensen November 20, 2017

I have cleared the thumbnails directory and we get the same error as before (404 Not Found). The preview still doesn't open. 

Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2017

Did you restart the application after clearing it?

Callen Steffensen November 21, 2017

Yes, we did restart the application after clearing the directory. 

Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2017

Hmm, sorry but I am a bit stuck without digging further into your system. I would consider reaching out to Atlassian support directly.

Callen Steffensen November 21, 2017

We are using a starter licence, we don't have any support from Atlassian. It would be great if you could help us further! If you would like any more information I could get it for you. 

Boris Berenberg - Atlas Authority
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 22, 2017

I emailed an Atlassian I know, hopefully they may be able to help you out.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events