Uploaded image for project: 'Jira Cloud (including JIRA Core)'
  1. Jira Cloud (including JIRA Core)
  2. JRACLOUD-65261

Gadgets missing from "Add gadget" window

    XMLWordPrintable

    Details

      Description

      Summary

      Appears to be regression of:

      "Add gadget" window doesn't display all gadgets available for an instance of JIRA.
      There is no "Load all Gadgets" option in the dialog after 60 seconds.

      Steps to Reproduce

      1. "Add Gadget" in a New Dashboard. and receive initial error:

        Not all gadgets have loaded
        Were still trying to fetch all of the available gadgets.

      2. On some instances it will loads within 60 seconds and an option to load all gadgets appears, and clicking it loads all gadgets successfully

        More gadgets available
        Additional gadgets have been found and can be loaded.
        Load all gadgets

      3. On some Instances it fails every time at 60 seconds the following error appears in UI:

        Some gadgets failed to load
        We were unable to load all of the available gadgets.
        Try again

      4. Selecting Try again Has no result

      Expected Results

      Selecting add Gadgets loads gadget directory option in add gadget popup

      Actual Results

      At 60 second error in UI noted above The below exception is thrown in the jira log:

      2016-05-31 16:12:49.779850500 2016-05-31 16:12:49,767 http-nio-3004-exec-126 ERROR      [o.a.c.c.C.[.[localhost].[/].[default]] Servlet.service() for servlet [default] in context with path [] threw exception
      2016-05-31 16:12:49.779852500 java.lang.RuntimeException: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
      2016-05-31 16:12:49.779853500 	at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:144)
      2016-05-31 16:12:49.779896500 	at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:94)
      2016-05-31 16:12:49.779897500 	at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:44)
      2016-05-31 16:12:49.779903500 	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:174)
      2016-05-31 16:12:49.779903500 	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:131)
      2016-05-31 16:12:49.779904500 	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:122)
      2016-05-31 16:12:49.779913500 	... 4 filtered
      2016-05-31 16:12:49.779914500 	at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32)
      2016-05-31 16:12:49.779914500 	... 8 filtered
      2016-05-31 16:12:49.779914500 	at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
      2016-05-31 16:12:49.779915500 	... 4 filtered
      2016-05-31 16:12:49.779923500 	at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
      2016-05-31 16:12:49.779924500 	... 29 filtered
      2016-05-31 16:12:49.779924500 	at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
      2016-05-31 16:12:49.779928500 	... 27 filtered
      2016-05-31 16:12:49.779928500 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2016-05-31 16:12:49.779929500 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2016-05-31 16:12:49.779934500 	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      2016-05-31 16:12:49.779935500 	at java.lang.Thread.run(Thread.java:745)
      2016-05-31 16:12:49.779935500 Caused by: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
      2016-05-31 16:12:49.779935500 	at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:393)
      2016-05-31 16:12:49.779941500 	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:426)
      2016-05-31 16:12:49.779942500 	at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:339)
      2016-05-31 16:12:49.779942500 	at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:418)
      2016-05-31 16:12:49.779943500 	at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:406)
      2016-05-31 16:12:49.779948500 	... 1 filtered
      2016-05-31 16:12:49.779948500 	at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:135)
      2016-05-31 16:12:49.779948500 	at org.codehaus.jackson.impl.Utf8Generator._flushBuffer(Utf8Generator.java:1748)
      2016-05-31 16:12:49.779949500 	at org.codehaus.jackson.impl.Utf8Generator.writeString(Utf8Generator.java:561)
      2016-05-31 16:12:49.779949500 	at org.codehaus.jackson.map.ser.std.StringSerializer.serialize(StringSerializer.java:28)
      2016-05-31 16:12:49.779950500 	at org.codehaus.jackson.map.ser.std.StringSerializer.serialize(StringSerializer.java:18)
      2016-05-31 16:12:49.779955500 	at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
      2016-05-31 16:12:49.779955500 	at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
      2016-05-31 16:12:49.779956500 	at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
      2016-05-31 16:12:49.779962500 	at org.codehaus.jackson.map.ser.std.IterableSerializer.serializeContents(IterableSerializer.java:55)
      2016-05-31 16:12:49.779962500 	at org.codehaus.jackson.map.ser.std.IterableSerializer.serializeContents(IterableSerializer.java:15)
      2016-05-31 16:12:49.779963500 	at org.codehaus.jackson.map.ser.std.AsArraySerializerBase.serialize(AsArraySerializerBase.java:86)
      2016-05-31 16:12:49.779963500 	at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
      2016-05-31 16:12:49.779968500 	at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
      2016-05-31 16:12:49.779968500 	at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1604)
      2016-05-31 16:12:49.779969500 	at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558)
      2016-05-31 16:12:49.779969500 	at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:302)
      2016-05-31 16:12:49.779974500 	... 5 filtered
      2016-05-31 16:12:49.779974500 	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:159)
      2016-05-31 16:12:49.779975500 	... 1 filtered
      2016-05-31 16:12:49.779975500 	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:69)
      2016-05-31 16:12:49.779981500 	... 37 filtered
      2016-05-31 16:12:49.779981500 	at com.atlassian.servicedesk.internal.web.LicenseAwareHttpFilter.doFilter(LicenseAwareHttpFilter.java:31)
      2016-05-31 16:12:49.779982500 	... 13 filtered
      2016-05-31 16:12:49.779982500 	at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
      2016-05-31 16:12:49.779982500 	... 20 filtered
      2016-05-31 16:12:49.779990500 	at com.atlassian.jira.plugins.rest.HOT25715FixServletFilter.doFilter(HOT25715FixServletFilter.java:46)
      2016-05-31 16:12:49.779990500 	... 25 filtered
      2016-05-31 16:12:49.779990500 	at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:81)
      2016-05-31 16:12:49.779991500 	... 14 filtered
      2016-05-31 16:12:49.779991500 	at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76)
      2016-05-31 16:12:49.779991500 	at com.atlassian.jira.security.JiraSecurityFilter$$Lambda$551/32062154.doFilter(Unknown Source)
      2016-05-31 16:12:49.779996500 	... 1 filtered
      2016-05-31 16:12:49.779997500 	at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74)
      2016-05-31 16:12:49.779997500 	... 16 filtered
      2016-05-31 16:12:49.779997500 	at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)
      2016-05-31 16:12:49.779998500 	... 16 filtered
      2016-05-31 16:12:49.779998500 	at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action.lambda$nextInFilterChain$1(CloudHomepageFilter.java:110)
      2016-05-31 16:12:49.780004500 	at com.atlassian.studio.jira.homepage.CloudHomepageFilter$Action$$Lambda$545/25210865.execute(Unknown Source)
      2016-05-31 16:12:49.780004500 	at com.atlassian.studio.jira.homepage.CloudHomepageFilter.doFilter(CloudHomepageFilter.java:68)
      2016-05-31 16:12:49.780005500 	... 17 filtered
      2016-05-31 16:12:49.780005500 	at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
      2016-05-31 16:12:49.780010500 	... 5 filtered
      2016-05-31 16:12:49.780010500 	at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:109)
      2016-05-31 16:12:49.780011500 	... 3 filtered
      2016-05-31 16:12:49.780011500 	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(CustomerContextSettingFilter.java:179)
      2016-05-31 16:12:49.780016500 	at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$532/22608053.call(Unknown Source)
      2016-05-31 16:12:49.780017500 	at com.atlassian.servicedesk.internal.utils.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:142)
      2016-05-31 16:12:49.780017500 	... 85 more
      2016-05-31 16:12:49.780022500 Caused by: java.io.IOException: Broken pipe
      2016-05-31 16:12:49.780029500 	at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
      2016-05-31 16:12:49.780029500 	at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
      2016-05-31 16:12:49.780029500 	at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
      2016-05-31 16:12:49.780030500 	at sun.nio.ch.IOUtil.write(IOUtil.java:65)
      2016-05-31 16:12:49.780030500 	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
      2016-05-31 16:12:49.780030500 	... 10 filtered
      2016-05-31 16:12:49.780035500 	... 298 more
      

      Notes

      The operation takes a long time, and consumes excessive CPU resources.
      This puts pressure on the whole instance, and is affected by other users that may be attempting to load other JIRA screens.

      Workaround

      No Workaround avaliable for instances that hit the 60 second error

      • Perform the operation again when the site is not being heavily used. And if the link to "Load all gadgets" appears, this will escape the error and allow you to load the gadget directory

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              emccutcheon Earl McCutcheon
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: