attached image not showing thumbnail

I'm using an upgraded version from 6 to Jira 7.3 and when we attach files, including images the thumnails are not created. they just have a generic look:

Untitled.pngBoth, old and new attachments look like this, how can I fix it and make it show the thumbnail again?

1 answer

0 votes

Hi Karolina

You're going to want to look in the logs around the time you upgraded or perform a search for "thumbnail, " "thumbnail directory" or "attachment" and see if there is an error related to being unable to create the directory, set permissions on the directory ,etc.

I would start in the JIRA_INSTALL/logs/catalina.out and then check the JIRA_HOME/log/atlassian-jira.log.  Depending on when you upgraded and what has taken place up to that point you may need to review the JIRA_INSTALL/logs/catalina.out.[x] or the JIRA_HOME/log/atlassian-jira.log.[x] log to look into past messages.

Once you review the logs it should provide clues as to what is going on.  You can post the snippet here once you find it and we can take a look and see what could be going on.

Cheers,

Branden

Hello, sorry for the very late responce. In the logs at the time od the upgrade I did not find anything relevant with those searchs. 
In the current atlassian-jira.log however I found an error:

 

 Unable to create thumbnail /var/atlassian/application-data/jira/data/attachments/PROJECT/10000/PROJECT-145/thumbs/_thumb_30200.png2084557181915127201.tmp 
 for image Untitled.png id: 30200, found in issue ISSUE. Resetting thumbnailable flag to FALSE 

java.io.IOException: Unable to set the last modification time for /var/atlassian/application-data/jira/data/attachments/QPATCH/10000/QPATCH-145/thumbs/_thumb_30200.png2084557181915127201.tmp
 at org.apache.commons.io.FileUtils.touch(FileUtils.java:392)
 at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.createThumbnail(DefaultThumbnailManager.java:206)
 at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.doGetThumbnail(DefaultThumbnailManager.java:173)
 at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:129)
 at sun.reflect.GeneratedMethodAccessor1661.invoke(Unknown Source)
 ... 1 filtered
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:22)
 at com.sun.proxy.$Proxy18.getThumbnail(Unknown Source)
 at com.atlassian.jira.issue.fields.rest.json.dto.AttachmentViewDtoConverterImpl$1.apply(AttachmentViewDtoConverterImpl.java:95)
 at com.atlassian.jira.issue.fields.rest.json.dto.AttachmentViewDtoConverterImpl$1.apply(AttachmentViewDtoConverterImpl.java:68)
 at com.google.common.collect.Iterators$8.transform(Iterators.java:799)
 at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
 at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:281)
 at com.google.common.collect.ImmutableCollection$ArrayBasedBuilder.addAll(ImmutableCollection.java:360)
 at com.google.common.collect.ImmutableList$Builder.addAll(ImmutableList.java:665)
 at com.atlassian.jira.issue.fields.rest.json.dto.AttachmentViewDtoConverterImpl.convert(AttachmentViewDtoConverterImpl.java:138)
 at com.atlassian.jira.issue.fields.rest.json.dto.AttachmentViewDtoConverterImpl.convert(AttachmentViewDtoConverterImpl.java:38)
 ... 2 filtered
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
 at com.sun.proxy.$Proxy390.convert(Unknown Source)
 ... 2 filtered
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)
 at com.sun.proxy.$Proxy390.convert(Unknown Source)
 at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.getContextMap(AttachmentBlockContextProvider.java:66)
 at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.initContextMap(CacheableContextProviderDecorator.java:63)
 at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.getContextMap(CacheableContextProviderDecorator.java:41)
 at com.atlassian.jira.plugin.webfragment.contextproviders.MultiContextProvider.getContextMap(MultiContextProvider.java:86)
 at com.atlassian.plugin.web.model.AbstractWebItem.getContextMap(AbstractWebItem.java:30)
 at com.atlassian.plugin.web.model.DefaultWebLabel.getDisplayableLabel(DefaultWebLabel.java:55)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelBeanBuilder.getLabel(WebPanelBeanBuilder.java:85)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelBeanBuilder.builder(WebPanelBeanBuilder.java:74)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelBeanBuilder.buildWithoutHtml(WebPanelBeanBuilder.java:61)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelMapperUtilImpl.mapAndRenderPanels(WebPanelMapperUtilImpl.java:87)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelMapperUtilImpl.create(WebPanelMapperUtilImpl.java:64)
 at com.atlassian.jira.components.issueviewer.action.AjaxIssueAction.populateIssueFields(AjaxIssueAction.java:161)
 at com.atlassian.jira.components.issueviewer.action.AjaxIssueAction.doDefault(AjaxIssueAction.java:134)
 ... 3 filtered
 at java.lang.reflect.Method.invoke(Method.java:498)
 at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
 at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
 ... 2 filtered
 at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
 ... 7 filtered
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 ... 52 filtered
 at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:62)
 ... 7 filtered
 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
 ... 56 filtered
 at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:80)
 ... 1 filtered
 at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:78)
 ... 36 filtered
 at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
 ... 10 filtered
 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
 ... 4 filtered
 at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
 ... 29 filtered
 at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
 ... 28 filtered
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745)

 

sorry for the late responce. I did not find anything on the logs at time of installation, but I did find an error in current atlassian-jira.log

 Unable to create thumbnail /var/atlassian/application-data/jira/data/attachments/PROJECT/10000/PROJECT-145/thumbs/_thumb_30200.png2084557181915127201.tmp 
 for image Untitled.png id: 30200, found in issue PROJECT-145. Resetting thumbnailable flag to FALSE 

java.io.IOException: Unable to set the last modification time for /var/atlassian/application-data/jira/data/attachments/PROJECT/10000/PROJECT-145/thumbs/_thumb_30200.png2084557181915127201.tmp
 at org.apache.commons.io.FileUtils.touch(FileUtils.java:392)
 at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.createThumbnail(DefaultThumbnailManager.java:206)
 at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.doGetThumbnail(DefaultThumbnailManager.java:173)
 at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:129)
 at sun.reflect.GeneratedMethodAccessor1661.invoke(Unknown Source)
 ... 1 filtered
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:22)
 at com.sun.proxy.$Proxy18.getThumbnail(Unknown Source)
 at com.atlassian.jira.issue.fields.rest.json.dto.AttachmentViewDtoConverterImpl$1.apply(AttachmentViewDtoConverterImpl.java:95)
 at com.atlassian.jira.issue.fields.rest.json.dto.AttachmentViewDtoConverterImpl$1.apply(AttachmentViewDtoConverterImpl.java:68)
 at com.google.common.collect.Iterators$8.transform(Iterators.java:799)
 at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
 at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:281)
 at com.google.common.collect.ImmutableCollection$ArrayBasedBuilder.addAll(ImmutableCollection.java:360)
 at com.google.common.collect.ImmutableList$Builder.addAll(ImmutableList.java:665)
 at com.atlassian.jira.issue.fields.rest.json.dto.AttachmentViewDtoConverterImpl.convert(AttachmentViewDtoConverterImpl.java:138)
 at com.atlassian.jira.issue.fields.rest.json.dto.AttachmentViewDtoConverterImpl.convert(AttachmentViewDtoConverterImpl.java:38)
 ... 2 filtered
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
 at com.sun.proxy.$Proxy390.convert(Unknown Source)
 ... 2 filtered
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)
 at com.sun.proxy.$Proxy390.convert(Unknown Source)
 at com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.getContextMap(AttachmentBlockContextProvider.java:66)
 at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.initContextMap(CacheableContextProviderDecorator.java:63)
 at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.getContextMap(CacheableContextProviderDecorator.java:41)
 at com.atlassian.jira.plugin.webfragment.contextproviders.MultiContextProvider.getContextMap(MultiContextProvider.java:86)
 at com.atlassian.plugin.web.model.AbstractWebItem.getContextMap(AbstractWebItem.java:30)
 at com.atlassian.plugin.web.model.DefaultWebLabel.getDisplayableLabel(DefaultWebLabel.java:55)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelBeanBuilder.getLabel(WebPanelBeanBuilder.java:85)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelBeanBuilder.builder(WebPanelBeanBuilder.java:74)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelBeanBuilder.buildWithoutHtml(WebPanelBeanBuilder.java:61)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelMapperUtilImpl.mapAndRenderPanels(WebPanelMapperUtilImpl.java:87)
 at com.atlassian.jira.components.issueviewer.viewissue.webpanel.WebPanelMapperUtilImpl.create(WebPanelMapperUtilImpl.java:64)
 at com.atlassian.jira.components.issueviewer.action.AjaxIssueAction.populateIssueFields(AjaxIssueAction.java:161)
 at com.atlassian.jira.components.issueviewer.action.AjaxIssueAction.doDefault(AjaxIssueAction.java:134)
 ... 3 filtered
 at java.lang.reflect.Method.invoke(Method.java:498)
 at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
 at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
 ... 2 filtered
 at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
 ... 7 filtered
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 ... 52 filtered
 at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:62)
 ... 7 filtered
 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
 ... 56 filtered
 at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:80)
 ... 1 filtered
 at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:78)
 ... 36 filtered
 at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
 ... 10 filtered
 at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
 ... 4 filtered
 at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
 ... 29 filtered
 at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
 ... 28 filtered
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745)

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,932 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot