Image preview not morking

Hi,

Chrome: Version 63.0.3239.108 (Official Build) (64-bit)

Firefox: 57.0.2 (64-bit)

Internet Explorer: 11.125.16299.0

Microsoft Edge 41.16299.15.0

When clicking on an image, the page updates and looks to be loading the image to preview it but never shows the image.

Only the black ribbon on top (showing the image name with the version number) is showing.

I can see in the Developer tools that following warnings come up:

MediaViewer: #updateFiles() is deprecated use #setFiles() instead.
MediaViewer.updateFiles @ com.atlassian.confluence.plugins.confluence-previews:mediaviewer-core.js:797
q @ com.atlassian.confluence.plugins.confluence-previews:confluence-previews-js.js?locale=en-GB:55
j @ com.atlassian.confluence.plugins.confluence-previews:confluence-previews-js.js?locale=en-GB:55
d @ batch.js?analytics-enabled=true&analytics-uploadable=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB&nps-acknowledged=true&nps-enabled=true:4274
(anonymous) @ batch.js?locale=en-GB:1300
k @ batch.js?locale=en-GB:195
add @ batch.js?locale=en-GB:195
m @ batch.js?analytics-enabled=true&analytics-uploadable=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB&nps-acknowledged=true&nps-enabled=true:4274
n @ batch.js?analytics-enabled=true&analytics-uploadable=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB&nps-acknowledged=true&nps-enabled=true:4274
dispatch @ batch.js?locale=en-GB:240
h @ batch.js?locale=en-GB:231
com.atlassian.confluence.plugins.confluence-previews:mediaviewer-core.js:510 MediaViewer: #getCurrentFile() is deprecated use #getCurrent() instead.

 

1 answer

This widget could not be displayed.

Hi there,

Could you let us know what version of Confluence you're running as well as if it's for all file previews and all file types?

Regards,

Shannon

Hi,

Here is the version information:

Confluence Version 6.6.0
Build Number 7502

Tried it with *.PNG files and *.txt files and both of them are not showing in the preview. The txt file is not even showing the version information in the upper left hand corner. Here's a screenshot.image.png

Kind regards,

TimVK

Tim,

.txt preview is not supported at this time:

However, PNG is, so let me look into this more and see what I can find out for you.

Regards,

Shannon

Tim,

Can you check your Atlassian Confluence Server log when you trigger the .png previews and let me know what errors come up?

Thank you!

Regards,

Shannon

Hi Shannon,

I refreshed my page and clicked on the PNG to preview it and I only see something like this:


2017-12-26 10:09:04,481 WARN [Caesium-1-2] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job LaasPerformanceLoggingJob#LaasPerformanceLoggingJob completed unsuccessfully with response JobRunnerResponse[runOutcome=ABORTED,message='LaaS performance logging is turned off']
2017-12-26 10:09:22,379 WARN [synchrony-interop-executor:thread-2] [plugins.synchrony.bootstrap.DefaultSynchronyProxyMonitor] pollHealthcheck Could not ping the synchrony-proxy [http://127.0.0.1:8486/synchrony-proxy/healthcheck]: {}
org.apache.http.client.ClientProtocolException
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at com.atlassian.confluence.plugins.synchrony.bootstrap.DefaultSynchronyProxyMonitor.pollHealthcheck(DefaultSynchronyProxyMonitor.java:76)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:149)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
... 10 more

 

Kind regards,

TimVK

Hi Shannon,

A small update: this can be closed. Disabling some of the additional add-ons solved the issue so we need to check if the add-ons are necessary at all or not.

 

Kind Regards,

TimVK

Hi Tim,

The add-ons that come enabled with Confluence are mostly required, but some of them will have such small affect when you disable them that Confluence will continue to work properly.

Could you let me know what add-ons you disabled to correct the issue? 

Regards,

Shannon

Hi Shannon,

It were all add-ons from third parties (probably trials that were installed to test the functionality). Do you still need the ones that we disabled then?

KR,

TimVK

Hi Tim,

Any 3rd-party add-ons aren't necessary for the functionality if Confluence itself. Disabling them would only disable the 3rd-party functionality, so if you no longer require it, then you are safe.

If you found it was a specific add-on that caused your preview not to work, please feel free to share it here, as it will help other users and also the vendor of the add-on.

Regards,

Shannon

Larry Brock Community Champion Jan 27, 2018

Hi @Tim Van Kerckhove,

Please do add the name of the add-on that appeared to cause the issue.  Many others will benefit from your experience.

Thanks!

Hi @Larry Brock I would love to share the add-on that caused the issue but it is on a production environment so we cannot test them again. Sorry. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

361 views 2 5
Join discussion

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