Handlers.go:314] Backup: Closing RW pipe due to error: Access Denied

Report a Dgraph Bug

What version of Dgraph are you using?

Dgraph Version v21.12.0
$ dgraph version
 
Dgraph version   : v21.12.0
Dgraph codename  : zion
Dgraph SHA-256   : 078c75df9fa1057447c8c8afc10ea57cb0a29dfb22f9e61d8c334882b4b4eb37
Commit SHA-1     : d62ed5f15
Commit timestamp : 2021-12-02 21:20:09 +0530
Branch           : HEAD
Go version       : go1.17.3
jemalloc enabled : true

For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph     , visit https://discuss.dgraph.io.
For fully-managed Dgraph Cloud   , visit https://dgraph.io/cloud.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.

I am trying to run an export task but the task is falling with:

E0704 20:51:51.570663 18 handlers.go:314] Backup: Closing RW pipe due to error: Access Denied
E0704 20:51:51.572330 18 handlers.go:314] Backup: Closing RW pipe due to error: Access Denied
E0704 20:51:51.585681 18 handlers.go:314] Backup: Closing RW pipe due to error: Access Denied

I found the code in https://github.com/dgraph-io/dgraph/blob/v21.12.0/x/handlers.go#L314. It seems that my AWS credentials didn’t have the required permissions to write on the bucket.

But we could still use a better error message here.