Export data from Dgraph error: "resolving export failed because task failed"


  • Dgraph (community edition)
Dgraph Version
$ dgraph version
Dgraph version   : v23.0.0
Dgraph codename  : dgraph
Dgraph SHA-256   : aafa0fe5a65059eec94703e2ed6d5c88a80317e9ee7e8c3776a6abf60ae78fc4
Commit SHA-1     : 38980bc
Commit timestamp : 2023-05-08 14:56:12 -0700
Branch           : HEAD
Go version       : go1.19.8
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-2023 Dgraph Labs, Inc.

Have you tried reproducing the issue with the latest release?


Steps to reproduce the issue

$ sudo docker exec dgraph_alpha1.1.0qabj152a1fz8oyqu7u2srx0l curl http://localhost:8080/admin --silent --request POST --header 'Content-Type: application/graphql' --upload-file /dgraph/export/export.graphql
mutation {
  export(input: {
    format: "rdf"
    destination: "/dgraph/export"
  }) {
    response {

Expected behaviour and actual result.

My development team has a nightly process that creates a full export of our production Dgraph data. Until today, the process which runs the command above has been successful and outputs the following expected result:

{"data":{"export":{"response":{"message":"Export queued with ID 0x5e2fecc0f","code":"Success"}}},"extensions":"tracing":{"version":1,"startTime":"2023-10-17T04:00:02.555980646Z","endTime":"2023-10-17T04:00:05.57082868Z","duration":3014102232}}}

Without changing any configurations with Dgraph or Docker, we’re now receiving an unsuccessful export with the following error from alpha1’s GraphQL admin endpoint:

{"errors":[{"message":"resolving export failed because task failed","locations":[{"line":2,"column":3}]}],"data":{"export":null},"extensions":{"tracing":{"version":1,"startTime":"2023-10-18T18:21:57.016425454Z","endTime":"2023-10-18T18:21:58.017720633Z","duration":1001295213}}}

Is there any insight that you can provide into what this error means and why it might be happening? Thank you in advance!