Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-11939

Backup Client fails with SocketTimeoutException: Read timed out

    XMLWordPrintable

Details

    Description

      Issue Summary

      The Backup Client fails to execute correctly on Bitbucket Server 6.6.0

      2019-09-02 17:33:00,714 INFO         Initializing
      2019-09-02 17:33:02,824 INFO         Using Bitbucket 6.6.0
      2019-09-02 17:33:02,898 INFO         Contacting Bitbucket
      2019-09-02 17:33:03,089 INFO         Bitbucket has been locked for maintenance. It may be unlocked with token: <tokenid>
      2019-09-02 17:33:03,199 INFO         Starting database backup on Bitbucket. It may be cancelled with token: <tokenid>
      2019-09-02 17:34:07,585 INFO         Cancelling database backup with code: <tokenid>
      2019-09-02 17:35:07,599 ERROR        Failed to cancel database backup: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out
      org.apache.wink.client.ClientRuntimeException: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out
      	at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:241)
      	at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189)
      	... 21 more frames available in the log file
      2019-09-02 17:35:07,635 INFO         Unlocking Bitbucket using token: <tokenid>
      2019-09-02 17:36:07,645 ERROR        Failed to unlock Bitbucket: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out
      org.apache.wink.client.ClientRuntimeException: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out
      	at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:241)
      	at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189)
      	... 18 more frames available in the log file
      2019-09-02 17:36:07,658 ERROR        A backup could not be created
      org.apache.wink.client.ClientRuntimeException: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out
      	at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:241)
      	at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189)
      	... 18 more frames available in the log file
      

      The atlassian-bitbucket.log (i.e. the application log) does indicate the database part of the backup has started and finished:

      "POST /mvc/admin/backups HTTP/1.1" c.a.s.i.b.l.DefaultLiquibaseMigrationDao Backup process completed
      

      Environment

      • Bitbucket Server 6.6.0
      • Backup Client 3.6.0

      Steps to Reproduce

      Fresh install of Bitbucket Server 6.6.0, then follow the instructions here to use the backup client: https://confluence.atlassian.com/bitbucketserver/using-the-bitbucket-server-backup-client-776640064.html

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              behumphreys Ben Humphreys
              behumphreys Ben Humphreys
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: