Image preview not morking

Tim Van Kerckhove December 22, 2017

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

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

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

Tim Van Kerckhove December 22, 2017

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

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 22, 2017

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

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 22, 2017

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

Tim Van Kerckhove December 26, 2017

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

Tim Van Kerckhove December 27, 2017

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

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 27, 2017

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

Tim Van Kerckhove December 27, 2017

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

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 27, 2017

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

LarryBrock
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 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!

Tim Van Kerckhove January 29, 2018

Hi @LarryBrock 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
TAGS
AUG Leaders

Atlassian Community Events