Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-65857

Backup Manager hangs without error messages if the attachments size is too big

XMLWordPrintable

      Summary

      JIRA Cloud's Backup Manager just hangs at the Starting process and never completes. No error message is displayed in the screen.

      Steps to Reproduce

      1. Have a JIRA Cloud with a huge amount of attachments files (at least more than 5GB)
      2. Generate a backup with the additional files checkbox checked

      Expected Results

      After a certain time the backup is generated and the link to download it is presented.
      Or an error message appears in the screen if it fails in the background.

      Actual Results

      The below exception is thrown in the JIRA's log file:

      @400000005640a86433c34a14 2015-11-09 09:06:18,840 Long running task: OnDemandBackup WARN sysadmin 540x73623x1 1oybnal 73.19.211.54,165.254.227.1 /rest/obm/1.0/runbackup [c.a.jira.ofbiz.ConnectionPoolHealthSqlInterceptor] Dangerous use of multiple connections: replaced => count=-1; marks=[-2-0]; pool=1/-1
      @400000005640a86433c355cc java.lang.AssertionError: Explicit stack trace requested
      @400000005640a86433c355cc       at com.atlassian.jira.util.log.RateLimitingLogger.warnWithTrace(RateLimitingLogger.java:163)
      @400000005640a86433c355cc       at com.atlassian.jira.ofbiz.ConnectionPoolHealthSqlInterceptor$CountHolder.logWarn(ConnectionPoolHealthSqlInterceptor.java:266)
      @400000005640a86433c380c4       at com.atlassian.jira.ofbiz.ConnectionPoolHealthSqlInterceptor$CountHolder.replaced(ConnectionPoolHealthSqlInterceptor.java:301)
      @400000005640a86433c384ac       at com.atlassian.jira.ofbiz.ConnectionPoolHealthSqlInterceptor.onConnectionReplaced(ConnectionPoolHealthSqlInterceptor.java:107)
      @400000005640a86433c384ac       at com.atlassian.jira.ofbiz.ChainedSQLInterceptor.lambda$onConnectionReplaced$444(ChainedSQLInterceptor.java:78)
      @400000005640a86433c39064       at com.atlassian.jira.ofbiz.ChainedSQLInterceptor$$Lambda$11/26439217.accept(Unknown Source)
      @400000005640a86433c39c1c       at com.atlassian.jira.ofbiz.ChainedSQLInterceptor.forEach(ChainedSQLInterceptor.java:107)
      @400000005640a86433c3a004       at com.atlassian.jira.ofbiz.ChainedSQLInterceptor.onConnectionReplaced(ChainedSQLInterceptor.java:77)
      @400000005640a86433c3a004       at org.ofbiz.core.entity.jdbc.interceptors.connection.SafeDelegatingSqlConnectionInterceptor.onConnectionReplaced(SafeDelegatingSqlConnectionInterceptor.java:47)
      @400000005640a86433c3a7d4       at org.ofbiz.core.entity.jdbc.interceptors.connection.ConnectionTracker$DelegatingConnectionImpl.close(ConnectionTracker.java:99)
      @400000005640a86433c3abbc       at org.ofbiz.core.entity.jdbc.SQLProcessor.closeConnection(SQLProcessor.java:332)
      @400000005640a86433c3abbc       at org.ofbiz.core.entity.jdbc.SQLProcessor.close(SQLProcessor.java:271)
      @400000005640a86433c3b38c       at org.ofbiz.core.entity.GenericDAO.closeSafely(GenericDAO.java:1642)
      @400000005640a86433c3b774       at org.ofbiz.core.entity.GenericDAO.select(GenericDAO.java:594)
      @400000005640a86433c3b774       at org.ofbiz.core.entity.GenericHelperDAO.findByPrimaryKey(GenericHelperDAO.java:97)
      @400000005640a86433c3b774       at org.ofbiz.core.entity.GenericDelegator.findByPrimaryKey(GenericDelegator.java:611)
      @400000005640a86433c3bb5c       at org.ofbiz.core.entity.GenericDelegator.findByPrimaryKey(GenericDelegator.java:649)
      @400000005640a86433c3c714       at com.atlassian.jira.ofbiz.DefaultOfBizDelegator.findByPrimaryKey(DefaultOfBizDelegator.java:448)
      @400000005640a86433c3c714       at com.atlassian.jira.ofbiz.DefaultOfBizDelegator.findByPrimaryKey(DefaultOfBizDelegator.java:440)
      @400000005640a86433c3cafc       at com.atlassian.jira.ofbiz.DefaultOfBizDelegator.findById(DefaultOfBizDelegator.java:431)
      @400000005640a86433c3cafc       at com.atlassian.jira.ofbiz.WrappingOfBizDelegator.findById(WrappingOfBizDelegator.java:243)
      @400000005640a86433c3d2cc       at com.atlassian.jira.issue.managers.DefaultIssueManager.getIssue(DefaultIssueManager.java:149)
      @400000005640a86433c3d2cc       at com.atlassian.jira.issue.managers.DefaultIssueManager.getIssueObject(DefaultIssueManager.java:421)
      @400000005640a86433c3d6b4       at com.atlassian.jira.issue.attachment.Attachment.getIssue(Attachment.java:64)
      @400000005640a86433c3d6b4       at com.atlassian.jira.issue.attachment.Attachment.getIssueObject(Attachment.java:55)
      @400000005640a86433c3ee24       at com.atlassian.jira.issue.attachment.AttachmentKeys.from(AttachmentKeys.java:35)
      @400000005640a86433c3ee24       at com.atlassian.jira.issue.attachment.AttachmentKeyMapper.fromAttachment(AttachmentKeyMapper.java:7)
      @400000005640a86433c3f20c       at com.atlassian.jira.issue.attachment.BackwardCompatibleAttachmentStore.getAttachment(BackwardCompatibleAttachmentStore.java:243)
      @400000005640a86433c3fdc4       at com.atlassian.jira.issue.managers.DefaultAttachmentManager.streamAttachmentContent(DefaultAttachmentManager.java:853)
      @400000005640a86433c401ac       ... 2 filtered
      @400000005640a86433c401ac       at java.lang.reflect.Method.invoke(Method.java:497)
      @400000005640a86433c401ac       at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30)
      @400000005640a86433c4097c       at com.sun.proxy.$Proxy145.streamAttachmentContent(Unknown Source)
      @400000005640a86433c40d64       ... 2 filtered
      @400000005640a86433c40d64       at java.lang.reflect.Method.invoke(Method.java:497)
      @400000005640a86433c40d64       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:161)
      @400000005640a86433c41534       at com.sun.proxy.$Proxy145.streamAttachmentContent(Unknown Source)
      @400000005640a86433c4191c       at com.atlassian.ondemand.backupmanager.service.JiraBackupService$1.consume(JiraBackupService.java:210)
      @400000005640a86433c4191c       at com.atlassian.ondemand.backupmanager.service.JiraBackupService$1.consume(JiraBackupService.java:192)
      @400000005640a86433c420ec       at com.atlassian.jira.util.collect.TransformingEnclosedIterable.lambda$foreach$6(TransformingEnclosedIterable.java:29)
      @400000005640a86433c42ca4       at com.atlassian.jira.util.collect.TransformingEnclosedIterable$$Lambda$674/6480123.consume(Unknown Source)
      @400000005640a86433c42ca4       at com.atlassian.jira.util.collect.CollectionUtil.foreach(CollectionUtil.java:44)
      @400000005640a86433c4308c       at com.atlassian.jira.util.collect.CloseableIterator$Functions.foreach(CloseableIterator.java:58)
      @400000005640a86433c43474       at com.atlassian.jira.ofbiz.DatabaseIterable.foreach(DatabaseIterable.java:44)
      @400000005640a86433c4385c       at com.atlassian.jira.util.collect.TransformingEnclosedIterable.foreach(TransformingEnclosedIterable.java:29)
      @400000005640a86433c4385c       at com.atlassian.ondemand.backupmanager.service.JiraBackupService.backupAttachments(JiraBackupService.java:191)
      @400000005640a86433c43c44       at com.atlassian.ondemand.backupmanager.service.JiraBackupService.backup(JiraBackupService.java:132)
      @400000005640a86433c44414       at com.atlassian.ondemand.backupmanager.rest.OnDemandBackupTask.run(OnDemandBackupTask.java:84)
      @400000005640a86433c44414       at com.atlassian.ondemand.backupmanager.longrunning.ManagedTask.run(ManagedTask.java:35)
      @400000005640a86433c447fc       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      @400000005640a86433c447fc       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      @400000005640a86433c453b4       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      @400000005640a86433c4579c       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      @400000005640a86433c4579c       at java.lang.Thread.run(Thread.java:745)

      Workaround

      Uncheck the Backup additional files (including attachments, avatars and logos) checkbox and open a request at https://support.atlassian.com for the attachments, avatars and logos to be manually zipped and moved to the instance's WebDAV for the download.

              aranjitdev amitdev (Inactive)
              fwillig Felipevsw (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: