Hello.
I used the following commands
gigihont@ubn:~/secure$ dgraph zero --my=192.168.1.97:5080 -w zeroSingle | tee -a Zero_output.txt
[Decoder]: Using assembly version of decoder
I0302 14:08:17.858770 1726 init.go:98]
Dgraph version : v2.0.0-rc1
Dgraph SHA-256 : 447ca408b0e56702568f25ceab89eb712090f5f19f06752b70b9a28ca1260cd6
Commit SHA-1 : a4af81a36
Commit timestamp : 2020-02-14 17:05:06 -0800
Branch : HEAD
Go version : go1.13.7
When I try to do an export using curl, I get an error
gigihont@ubn:~/secure$ curl 'https://192.168.1.97:8080/admin/export?format=json'
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
I’m trying with a certificate
gigihont@ubn:~/secure$ curl https://192.168.1.97:8080/admin/export?format=json --cert ./tls/client.user.crt --key ./tls/client.user.key
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
I see errors in dgraph alpha instatce
I0302 18:59:03.857561 2731 groups.go:864] Got Zero leader: 192.168.1.97:5080
I0302 18:59:05.803604 2731 admin.go:391] No GraphQL schema in Dgraph; serving empty GraphQL API
2020/03/02 19:01:04 http: TLS handshake error from 192.168.1.97:42074: remote error: tls: unknown certificate authority
2020/03/02 19:03:41 http: TLS handshake error from 192.168.1.97:42076: remote error: tls: unknown certificate authority
2020/03/02 19:17:33 http: TLS handshake error from 192.168.1.97:42080: remote error: tls: unknown certificate authority
Hello.
I tried making this command but didn’t get the export
gigihont@ubn:~/secure$ curl https://192.168.1.97:8080/admin/export?format=json --cert ./tls/client.user.crt --key ./tls/client.user.key --cacert ./tls/ca.crt
Dgraph browser is available for running separately using the dgraph-ratel binarygigihont@ubn:~/secure$
gigihont@ubn:~/secure$ curl 'https://192.168.1.97:8080/admin/export?format=json' --insecure --cert ./tls/client.user.crt --key ./tls/client.user.key --cacert ./tls/ca.crt
Dgraph browser is available for running separately using the dgraph-ratel binarygigihont@ubn:~/secure$
gigihont@ubn:~/secure$ curl '192.168.1.97:8080/admin/export?format=json' --insecure --cert ./tls/client.user.crt --key ./tls/client.user.key --cacert ./tls/ca.crt
Client sent an HTTP request to an HTTPS server.
Hello.
I can 't export anything at all
Where is my mistake
On windows 10 dgraph zero dgraph alpha --lru_mb 4096 curl http://localhost:8080/admin/export
StatusCode : 200
StatusDescription : OK
Content : Dgraph browser is available for running separately using the dgraph-ratel binary
RawContent : HTTP/1.1 200 OK
Content-Length: 80
Content-Type: text/plain; charset=utf-8
Date: Wed, 04 Mar 2020 11:06:47 GMT
Dgraph browser is available for running separately using the dgraph-ratel binary
Forms : {}
Headers : {[Content-Length, 80], [Content-Type, text/plain; charset=utf-8], [Date, Wed, 04 Mar 2020 11:06:47
GMT]}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : mshtml.HTMLDocumentClass
RawContentLength : 80
Maybe this is the issue. I think in that version this export endpoint was removed (It will be deprecated, but in the future, in the latest version it is back). You need to use the GraphQL Admin endpoint tho.
Use cURL or some GraphQL UI (e.g. Insomnia REST Client) and run this mutation.