Backups not working

I’m currently trying to do some backups but the mutation fails for some reason.

Dgraph version: release/v21.03

mutation

mutation {
  backup(input: {
    destination: "minio://127.0.0.1:9000/backups"
    accessKey: "minioadmin"
    secretKey: "minioadmin"
    
  }) {
    response {
      code
      message
    }
    taskId
  }
}

Response:

{
  "errors": [
    {
      "message": "resolving backup failed because task failed",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ]
    }
  ],
  "data": {
    "backup": null
  }
}

Am I doing something incorrect?

Solution: Add “secure=false”.

destination: "minio://127.0.0.1:9000/backups?secure=false"
1 Like