# FoundationDb fdbbackup to Azure Blob Store

**URL:** <https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392>\
**Category:** Using FoundationDB\
**Created:** [June 21, 2022, 10:18pm UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392 "2022-06-21T22:18:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![skr1942](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@skr1942](https://forums.foundationdb.org/u/skr1942)\
**Post date:** [June 21, 2022, 10:18pm UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392/1 "2022-06-21T22:18:36Z")

</div>

Hi All,  
I am using FoundationDb 7.1 (v7.1.9) and trying to setup for direct backup to azure blob store. I am using following command to run the backup  
fdbbackup start -C /usr/local/etc/foundationdb/fdb.cluster --log -d ‘blobstore://fdbbackuptest:\<secret\_key\>@fdbbackuptest.blob.core.windows.net/fdbtest?sc=0’ -t test3

and I get  
ERROR: Could not create backup container: HTTP response code not received or indicated failure  
ERROR: An error was encountered during submission  
Fatal Error: Backup error

The log file shows

Any pointer on what could be wrong or what I am missing? Does FDB7.1 provide native support to Azure blobstore?

---

<div class="post-metadata">

**Author:** ![johscheuer](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johscheuer](https://forums.foundationdb.org/u/johscheuer)\
**Post date:** [June 24, 2022, 6:35am UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392/2 "2022-06-24T06:35:19Z")

</div>

I think currently only AWS S3 is well supported, there are some issues in the GitHub repository and one last piece to make fdbbackup work with other S3 compatible is this PR: [Fix compatibility issue of s3 backup by wangzw · Pull Request #6348 · apple/foundationdb · GitHub](https://github.com/apple/foundationdb/pull/6348) (not merged). I’m not to familiar with Azure Blobstore but assuming it’s S3 compatible once the mentioned PR is merged into the 7.1 branch backups to Azure Blobstore should work.

_edit_ you might be able to work around this limitation by using minio [Using s3cmd and other Amazon S3-compatible apps with Azure Blob Storage - Microsoft Open Source Blog](https://cloudblogs.microsoft.com/opensource/2017/11/09/s3cmd-amazon-s3-compatible-apps-azure-storage/) in this case you should use `signature_v2` for minio and set `--knob_http_request_aws_v4_header=false` on the fddbbackup side to use the old signature version (see: [foundationdb/backups.rst at main · apple/foundationdb · GitHub](https://github.com/apple/foundationdb/blob/main/documentation/sphinx/source/backups.rst#signing-protocol))

---

<div class="post-metadata">

**Author:** ![harikb](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/harikb/32/1033_2.png) [@harikb](https://forums.foundationdb.org/u/harikb)\
**Post date:** [June 25, 2022, 1:27am UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392/3 "2022-06-25T01:27:02Z")

</div>

Johannes,

From what I have seen, the open-source minio has stopped supporting gateway many years ago. The Azure “marketplace” product of minio was the only option.

In addition, they are also deprecating the paid version (except for continuing to support existing customers)

> **[Deprecation of the MinIO gateway](https://blog.min.io/deprecation-of-the-minio-gateway/)**
>
> MinIO is deprecating the gateway and will be completely removed in six months. This should not come as a surprise, we began informing the community in 2020 and have steadily removed unpopular gateways. In the last ten months, MinIO has only made bug...

## Thanks

Hari

---

<div class="post-metadata">

**Author:** ![manfontan](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/manfontan/32/1370_2.png) [@manfontan](https://forums.foundationdb.org/u/manfontan)\
**Post date:** [November 8, 2022, 9:01am UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392/4 "2022-11-08T09:01:13Z")

</div>

Minio Gateway is not working either. We use it to connect to the Azure and Google blob storage and they are both failing with the same error. I have increased the log verbosity and here is what we get:

```auto
[a35d88f5ac2cac5c41b3ddf617c7c74c] HTTP starting HEAD /foundationdb-backup ContentLen:0
Request Header: Accept: application/xml
Request Header: Authorization: AWS4-HMAC-SHA256 Credential=user/20221107/backup/minio-gateway/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=b7cf9069ddeab032f0d800d2eb1fc75cf94a69f368ed7fc17806b5b81573b1f7
Request Header: Content-Length: 0
Request Header: Host: minio-gateway.backup.svc
Request Header: x-amz-content-sha256: UNSIGNED-PAYLOAD
Request Header: x-amz-date: 20221107T192708Z
[a35d88f5ac2cac5c41b3ddf617c7c74c] HTTP code=400 early=0, time=0.002093s HEAD /foundationdb-backup contentLen=0 [423 out, response content len 0]
[a35d88f5ac2cac5c41b3ddf617c7c74c] HTTP RESPONSE: HEAD /foundationdb-backup
Response Code: 400
Response ContentLen: 0
Reponse Header: Accept-Ranges: bytes
Reponse Header: Content-Length: 0
Reponse Header: Content-Security-Policy: block-all-mixed-content
Reponse Header: Date: Mon, 07 Nov 2022 19:27:08 GMT
Reponse Header: Server: MinIO
Reponse Header: Vary: Origin
Reponse Header: X-Amz-Request-Id: 172564095FEDD0A7
Reponse Header: X-Xss-Protection: 1; mode=block
-- RESPONSE CONTENT--

```

For some reason there is an UNSIGNED-PAYLOAD.

---

<div class="post-metadata">

**Author:** ![manfontan](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/manfontan/32/1370_2.png) [@manfontan](https://forums.foundationdb.org/u/manfontan)\
**Post date:** [November 8, 2022, 10:40am UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392/5 "2022-11-08T10:40:25Z")

</div>

> [@johscheuer](#):
>
> –knob\_http\_request\_aws\_v4\_header=false

I confirm that after enabling the knob to use v2 header. The backup submission succeeds using MinIO gateway.

```auto
The backup on tag `debug-manual-backup-01' was successfully submitted.

```

---

<div class="post-metadata">

**Author:** ![manfontan](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/manfontan/32/1370_2.png) [@manfontan](https://forums.foundationdb.org/u/manfontan)\
**Post date:** [November 8, 2022, 1:31pm UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392/6 "2022-11-08T13:31:05Z")

</div>

Actually it is not working. Looks like we just moved the problem elsewhere:

```auto
$ kubectl exec -it foundationdb-cluster-backup-agent-783f487c58-4mq5a -c foundationdb --context azure-dev -ntimeseries -- fdbbackup status -t debug-manual-backup-01 -C /var/dynamic-conf/cluster-file
The previous backup on tag `debug-manual-backup-01' at blobstore://user:password@minio-gateway.backup.svc:9000/automatic_backups/debug-manual-backup-01?bucket=foundationdb-backup&sc=0 has been aborted.
BackupUID: d3a931ea363396b65ff2d11d07812341
BackupURL: blobstore://user:password@minio-gateway.backup.svc:9000/automatic_backups/debug-manual-backup-01?bucket=foundationdb-backup&sc=0
Recent Errors (since initialization)
5 second(s) ago : 'HTTP response code not received or indicated failure' on 'file_backup_write_range_5.2'

```

---

<div class="post-metadata">

**Author:** ![harikb](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/harikb/32/1033_2.png) [@harikb](https://forums.foundationdb.org/u/harikb)\
**Post date:** [November 8, 2022, 7:41pm UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392/7 "2022-11-08T19:41:06Z")

</div>

We ended up using s3proxy. You may want to try that proxy instead.

> **[GitHub - gaul/s3proxy: Access other storage backends via the S3 API](https://github.com/gaul/s3proxy)**
>
> Access other storage backends via the S3 API. Contribute to gaul/s3proxy development by creating an account on GitHub.

If the gateway product is opensource/self hosted, try running it in the same node as backup nodes so you can bypass the authentication need between fdbbackup ← \> proxy.

---

<div class="post-metadata">

**Author:** ![manfontan](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/manfontan/32/1370_2.png) [@manfontan](https://forums.foundationdb.org/u/manfontan)\
**Post date:** [November 10, 2022, 10:12am UTC](https://forums.foundationdb.org/t/foundationdb-fdbbackup-to-azure-blob-store/3392/8 "2022-11-10T10:12:28Z")

</div>

Thanks for the recommendation. Migrating to s3proxy is probably the best way to go indeed.  
However I have managed to make minIO work with aws v2 headers.  
The problem was that the knob on the fdbbackup command does not propagate to the backup agents. By setting the knob in the agents manifest we successfully resumed the backups.
