Bitbucket Server backup fails - Read timed out

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Bitbucket Server backup fails:

  • The Backup Client times out and fails gracefully.

  • The DIY method freezes the instance and the progress must be updated to "100" before the backup can be cancelled.

Backup Client

The following appears in the atlassian-sbc-YYYY-MM-DD.log:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2014-06-25 08:02:14,400 INFO [main] c.a.s.i.b.client.RestBitbucket ServerService Starting database backup on Bitbucket Server. It may be cancelled with token: 52ee07d66403e54a2b8cdebfc2fbff46f6a6c2f1 2014-06-25 08:02:14,403 DEBUG [main] c.a.s.i.b.c.FixedRateProgressPublisher Progress publishing has started 2014-06-25 08:02:18,479 DEBUG [threadpool2] c.a.s.i.b.client.wink.LoggingHandler HTTP GET http://bitbucket.atlassian:7990/mvc/maintenance, headers: [Accept:[application/json], User-Agent:[Wink Client v1.1.2], X-Atlassian-Maintenance-Token:[7b3e054a4e832a90d4e863501e7684b57a5c6d69]] 2014-06-25 08:02:18,503 DEBUG [threadpool2] c.a.s.i.b.client.wink.LoggingHandler -> 200 OK (482x52x0) 2014-06-25 08:02:18,506 DEBUG [threadpool2] c.a.s.i.b.c.s.h.WinkClientHttpResponse HTTP status code: 200, status text: "OK", headers: [Cache-Control:[no-cache], Content-Type:[application/json], Date:[Wed, 25 Jun 2014 13:02:18 GMT], Server:[Apache-Coyote/1.1], Set-Cookie:[JSESSIONID=943C3419F09CC3777A7F03D2B77AB789; Path=/; Secure; HttpOnly], Transfer-Encoding:[chunked], Vary:[Accept-Encoding], X-AREQUESTID:[482x52x0], X-Content-Type-Options:[nosniff], X-Frame-Options:[SAMEORIGIN], X-XSS-Protection:[1; mode=block]] 2014-06-25 08:02:18,552 INFO [main] c.a.s.i.b.client.DefaultBackupClient Waiting for SCM operations to finish 2014-06-25 08:02:23,482 DEBUG [threadpool2] c.a.s.i.b.client.wink.LoggingHandler HTTP GET http://bitbucket.atlassian:7990/mvc/maintenance, headers: [Accept:[application/json], User-Agent:[Wink Client v1.1.2], X-Atlassian-Maintenance-Token:[7b3e054a4e832a90d4e863501e7684b57a5c6d69]] 2014-06-25 08:02:28,577 INFO [main] c.a.s.i.b.client.DefaultBackupClient Waiting for SCM operations to finish 2014-06-25 08:02:38,580 INFO [main] c.a.s.i.b.client.DefaultBackupClient Waiting for SCM operations to finish 2014-06-25 08:02:48,583 INFO [main] c.a.s.i.b.client.DefaultBackupClient Waiting for SCM operations to finish 2014-06-25 08:02:58,586 INFO [main] c.a.s.i.b.client.DefaultBackupClient Waiting for SCM operations to finish 2014-06-25 08:03:08,590 INFO [main] c.a.s.i.b.client.DefaultBackupClient Waiting for SCM operations to finish 2014-06-25 08:03:18,617 DEBUG [main] c.a.s.i.b.c.FixedRateProgressPublisher Progress publishing has stopped 2014-06-25 08:03:18,625 DEBUG [main] c.a.s.i.b.client.RestBitbucket ServerService Unhandled client exception encountered while Bitbucket Server was performing a database backup com.atlassian.bitbucket.internal.backup.client.ScmDrainTimedOutException: Operations from one or more SCMs did not finish within the allotted timeout. To prevent corruption due to inconsistent state, the backup has been aborted. Please try backup up again when the system is under less load. at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.waitForSCMDraining(DefaultBackupClient.groovy:183) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.backup(RestBitbucket ServerService.groovy:64) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.lock(RestBitbucket ServerService.groovy:172) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:49) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:25) [bitbucket-backup-core-1.2.1.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:38) [bitbucket-backup-client.jar:1.2.1] ... 87 frames suppressed

The following appears in the atlassian-bitbucket.log:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 2014-06-25 08:03:18,625 DEBUG [main] c.a.s.i.b.client.RestBitbucket ServerService Unhandled client exception encountered while Bitbucket Server was performing a database backup com.atlassian.bitbucket.internal.backup.client.ScmDrainTimedOutException: Operations from one or more SCMs did not finish within the allotted timeout. To prevent corruption due to inconsistent state, the backup has been aborted. Please try backup up again when the system is under less load. at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.waitForSCMDraining(DefaultBackupClient.groovy:183) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.backup(RestBitbucket ServerService.groovy:64) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.lock(RestBitbucket ServerService.groovy:172) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:49) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:25) [bitbucket-backup-core-1.2.1.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:38) [bitbucket-backup-client.jar:1.2.1] ... 87 frames suppressed 2014-06-25 08:03:18,674 INFO [main] c.a.s.i.b.client.RestBitbucket ServerService Cancelling database backup with code: 52ee07d66403e54a2b8cdebfc2fbff46f6a6c2f1 2014-06-25 08:03:18,679 DEBUG [main] c.a.s.i.b.client.wink.LoggingHandler HTTP POST http://bitbucket.atlassian:7990/mvc/maintenance?token=52ee07d66403e54a2b8cdebfc2fbff46f6a6c2f1, headers: [Accept:[application/json], Content-Length:[0], Content-Type:[application/json], User-Agent:[Wink Client v1.1.2], X-Atlassian-Maintenance-Token:[7b3e054a4e832a90d4e863501e7684b57a5c6d69]] 2014-06-25 08:03:23,542 DEBUG [threadpool2] c.a.s.i.b.client.wink.LoggingHandler HTTP GET http://bitbucket.atlassian:7990/mvc/maintenance, headers: [Accept:[application/json], User-Agent:[Wink Client v1.1.2], X-Atlassian-Maintenance-Token:[7b3e054a4e832a90d4e863501e7684b57a5c6d69]] 2014-06-25 08:04:18,719 ERROR [main] c.a.s.i.b.client.RestBitbucket ServerService 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) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invokeNoException(ResourceImpl.java:181) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.post(ResourceImpl.java:323) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.withBody(WinkClientHttpRequest.groovy:109) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.withPostBody(WinkClientHttpRequest.groovy:102) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.run(WinkClientHttpRequest.groovy:88) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.executeInternal(WinkClientHttpRequest.groovy:61) ~[bitbucket-backup-client.jar:1.2.1] at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:527) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:489) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:344) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.cancelBackup(RestBitbucket ServerService.groovy:89) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.backup(RestBitbucket ServerService.groovy:73) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.lock(RestBitbucket ServerService.groovy:172) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:49) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:25) [bitbucket-backup-core-1.2.1.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:38) [bitbucket-backup-client.jar:1.2.1] ... 66 frames suppressed Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.handle(HttpURLConnectionHandler.java:57) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.LoggingHandler.handle(LoggingHandler.groovy:27) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.AcceptHeaderHandler.handle(AcceptHeaderHandler.groovy:35) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.PreemptiveBasicAuthSecurityHandler.handle(PreemptiveBasicAuthSecurityHandler.groovy:31) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:228) ~[wink-client-1.4.jar:1.4] ... 83 common frames omitted ... 3 frames suppressed Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.createResponse(HttpURLConnectionHandler.java:180) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.processResponse(HttpURLConnectionHandler.java:160) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.handle(HttpURLConnectionHandler.java:55) ~[wink-client-1.4.jar:1.4] ... 94 common frames omitted 2014-06-25 08:04:18,736 DEBUG [main] c.a.s.i.b.client.RestBitbucket ServerService Unhandled client exception encountered while locking Bitbucket Server for backup 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) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invokeNoException(ResourceImpl.java:181) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.post(ResourceImpl.java:323) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.withBody(WinkClientHttpRequest.groovy:109) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.withPostBody(WinkClientHttpRequest.groovy:102) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.run(WinkClientHttpRequest.groovy:88) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.executeInternal(WinkClientHttpRequest.groovy:61) ~[bitbucket-backup-client.jar:1.2.1] at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:527) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:489) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:344) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.cancelBackup(RestBitbucket ServerService.groovy:89) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.backup(RestBitbucket ServerService.groovy:73) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.lock(RestBitbucket ServerService.groovy:172) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:49) [bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:25) [bitbucket-backup-core-1.2.1.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:38) [bitbucket-backup-client.jar:1.2.1] ... 66 frames suppressed Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.handle(HttpURLConnectionHandler.java:57) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.LoggingHandler.handle(LoggingHandler.groovy:27) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.AcceptHeaderHandler.handle(AcceptHeaderHandler.groovy:35) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.PreemptiveBasicAuthSecurityHandler.handle(PreemptiveBasicAuthSecurityHandler.groovy:31) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:228) ~[wink-client-1.4.jar:1.4] ... 83 common frames omitted ... 3 frames suppressed Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.createResponse(HttpURLConnectionHandler.java:180) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.processResponse(HttpURLConnectionHandler.java:160) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.handle(HttpURLConnectionHandler.java:55) ~[wink-client-1.4.jar:1.4] ... 94 common frames omitted 2014-06-25 08:04:18,748 INFO [main] c.a.s.i.b.client.RestBitbucket ServerService Unlocking Bitbucket Server using token: 7b3e054a4e832a90d4e863501e7684b57a5c6d69 2014-06-25 08:04:18,752 DEBUG [main] c.a.s.i.b.client.wink.LoggingHandler HTTP DELETE http://localhost:7990/mvc/maintenance/lock?token=7b3e054a4e832a90d4e863501e7684b57a5c6d69, headers: User-Agent:[Wink Client v1.1.2], X-Atlassian-Maintenance-Token:[7b3e054a4e832a90d4e863501e7684b57a5c6d69]] 2014-06-25 08:04:18,776 DEBUG [main] c.a.s.i.b.client.wink.LoggingHandler -> 200 OK (484x57x3) 2014-06-25 08:04:18,778 DEBUG [main] c.a.s.i.b.c.s.h.WinkClientHttpResponse HTTP status code: 200, status text: "OK", headers: [Cache-Control:[no-cache], Content-Length:[0], Date:[Wed, 25 Jun 2014 13:04:18 GMT], Server:[Apache-Coyote/1.1], Set-Cookie:[JSESSIONID=66706902E12EE9980C35FDA701B17292; Path=/; Secure; HttpOnly], X-AREQUESTID:[484x57x3], X-Content-Type-Options:[nosniff], X-Frame-Options:[SAMEORIGIN], X-XSS-Protection:[1; mode=block]] 2014-06-25 08:04:18,789 ERROR [main] c.a.s.i.backup.client.BackupMain A backup could not be created. Reason: 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) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invokeNoException(ResourceImpl.java:181) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.post(ResourceImpl.java:323) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.withBody(WinkClientHttpRequest.groovy:109) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.withPostBody(WinkClientHttpRequest.groovy:102) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.run(WinkClientHttpRequest.groovy:88) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.http.WinkClientHttpRequest.executeInternal(WinkClientHttpRequest.groovy:61) ~[bitbucket-backup-client.jar:1.2.1] at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:527) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:489) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:344) ~[spring-web-4.0.0.RELEASE.jar:4.0.0.RELEASE] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.cancelBackup(RestBitbucket ServerService.groovy:89) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.backup(RestBitbucket ServerService.groovy:73) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.RestBitbucket ServerService.lock(RestBitbucket ServerService.groovy:172) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:49) ~[bitbucket-backup-client.jar:1.2.1] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:25) [bitbucket-backup-core-1.2.1.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:38) [bitbucket-backup-client.jar:1.2.1] ... 66 frames suppressed Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.handle(HttpURLConnectionHandler.java:57) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.LoggingHandler.handle(LoggingHandler.groovy:27) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.AcceptHeaderHandler.handle(AcceptHeaderHandler.groovy:35) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at com.atlassian.bitbucket.internal.backup.client.wink.PreemptiveBasicAuthSecurityHandler.handle(PreemptiveBasicAuthSecurityHandler.groovy:31) ~[bitbucket-backup-client.jar:1.2.1] at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:228) ~[wink-client-1.4.jar:1.4] ... 83 common frames omitted ... 3 frames suppressed Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_51] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_51] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_51] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) ~[na:1.7.0_51] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687) ~[na:1.7.0_51] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_51] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_51] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_51] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.createResponse(HttpURLConnectionHandler.java:180) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.processResponse(HttpURLConnectionHandler.java:160) ~[wink-client-1.4.jar:1.4] at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.handle(HttpURLConnectionHandler.java:55) ~[wink-client-1.4.jar:1.4] ... 94 common frames omitted

Diagnosis

The Announcer for Bitbucket Server plugin (versions up to and including 1.5.5.2) is configured with a "check access" filter that accesses a subsystem that has to remain untouched during a backup.

Workaround

Disable the Announcer for Bitbucket Server plugin.

Resolution

Upgrade the plugin to version 1.5.5.4 or disable it prior to initiating a backup.

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.