Why admin/export returns "404 page not found"

Hi everybody,
When I try to do export, got 404 not found.

Here are 3 EC2, one zero and one alpha node runs on each of EC2.

10.175.34.25 is the IP address of server 1.
(base) [lenobot@ip-10-175-34-25 dgraph]$ curl http://localhost:8080/admin/export
404 page not found

./dgraph alpha --my=10.175.34.25:7080 --zero=localhost:5080 --raft “idx=101;group=1” --lambda num=0 --security “whitelist=10.175.34.116,127.0.0.1,10.175.34.25” >> ./logs/alpha.log 2>&1 &

Thanks,
Lijia

@wanglj You’ll need to use the /admin endpoint to create exports: https://dgraph.io/docs/deploy/dgraph-administration/#export-database

mutation {
  export(input: {}) {
    response {
      message
      code
    }
  }
}

Thank you Daniel, problem solved!

1 Like