java.lang.reflect.UndeclaredThrowableException: null

Atlassian JIRA | Caterina Curti [Atlassian] | 7 months ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    h3. Summary The Bitbucket Backup Client does not complete successfully and a backup is not generated. h3. Steps to Reproduce # Not Available h3. Expected Results The Bitbucket Backup Client successfully create a backup. h3. Actual Results The backup is not created and the below exception is thrown in the Bitbucket Backup Client log file: {noformat} INFO (100%) Database backup was already manually cancelled on Bitbucket INFO (100%) Unlocking Bitbucket using token: 4c9bfa01ae0138689g6dfab973d9f909883bb61af ERROR (100%) A backup could not be created java.lang.reflect.UndeclaredThrowableException: null at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.archiveHome(DefaultBackupClient.groovy:73) ~[bitbucket-backup-client.jar:3.2.0] at com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34) ~[bitbucket-backup-client.jar:3.2.0] ... 10 more frames available in the log file {noformat} When enabling the debug log level for the Backup Client 404 messages are logged: {noformat} DEBUG (100%) Submitting client progress of 100 to h<BITBUCKET_URL>/mvc/admin/backups/progress/client?token=4c9bfa01ae0138689g6dfab973d9f909883bb61af&percentage=100 DEBUG (100%) HTTP POST <BITBUCKET_URL>/mvc/admin/backups/progress/client?token=4c9bfa01ae0138689g6dfab973d9f909883bb61af&percentage=100, headers: [Accept:[[application/json]], Content-Length:[[0]], Content-Type:[[application/json]], User-Agent:[[Wink Client v1.1.2]], X-Atlassian-Maintenance-Token:[[4c9bfa01ae0138689g6dfab973d9f909883bb61af]]] DEBUG (100%) -> 404 Not Found (@3VK7A8x1355x91334x1) {noformat} h3. Notes While the exact cause of the problem has not been identified yet, there are some options that could be causing it: # proxy configuration h3.Workaround If a proxy is used, bypassing it can be used as a workaround: # Stop Bitbucket Server # Add the following lines in {{$BITBUCKET_HOME/shared/server.xml}}: {noformat} <Connector executor="tomcatThreadPool" port="7995" protocol="HTTP/1.1" connectionTimeout="20000" /> {noformat} # Start Bitbucket Server # Run the Bitbucket Backup client by using the {{http://localhost:7995}} address

    Atlassian JIRA | 7 months ago | Caterina Curti [Atlassian]
    java.lang.reflect.UndeclaredThrowableException: null

    Root Cause Analysis

    1. java.lang.reflect.UndeclaredThrowableException


      at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.archiveHome()
    2. com.atlassian.bitbucket
      1. com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.archiveHome(DefaultBackupClient.groovy:73)[bitbucket-backup-client.jar:3.2.0]
      2. com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34)[bitbucket-backup-client.jar:3.2.0]
      2 frames