Can not access the web of ratel

cluster setup follows:
172.10.10.11 mq01
172.10.10.12 mq02
172.10.10.13 mq03

dgraph zero startup:

mq01:
/usr/local/dgraph/bin/dgraph zero --idx 100 --my mq01:5080 --replicas 3 > ./log/zero.log 2>&1 &

mq02:
/usr/local/dgraph/bin/dgraph zero --idx 101 --my mq02:5080 --peer mq01:5080 --replicas 3 > ./log/zero.log 2>&1 &

mq03:
/usr/local/dgraph/bin/dgraph zero --idx 102 --my mq03:5080 --peer mq01:5080 --replicas 3 > ./log/zero.log 2>&1 &

dgraph alpha startup:
mq01:
/usr/local/dgraph/bin/dgraph alpha --idx 200 --lru_mb 2048 --my mq01:7080 --zero mq01:5080 > ./log/alpha.log 2>&1 &

mq02:
/usr/local/dgraph/bin/dgraph alpha --idx 201 --lru_mb 2048 --my mq02:7080 --zero mq01:5080 > ./log/alpha.log 2>&1 &

mq03:
/usr/local/dgraph/bin/dgraph alpha --idx 202 --lru_mb 2048 --my mq03:7080 --zero mq01:5080 > ./log/alpha.log 2>&1 &

dgraph-ratel:

./dgraph-ratel > ./log/ratel.log 2>&1 &

when I visit “http://mq01:8000/?latest”,the chrome console report error as follows:

GET http://mq01:7080/health net::ERR_INVALID_HTTP_RESPONSE
url.js:52 TypeError: Failed to fetch
Unable to connect to the server at mq01:7080/

so on host mq01:

curl mq01:7080/health

curl: (56) Recv failure: Connection reset by peer

who can help me? thanks in advance。

Check the general health of your cluster. I have checked all minimum context and I can’t reproduce your issue. Maybe your instances are in trouble. Or this address you are using is not properly forwarding to the correct IP. Use the Ip instead of a URL. Just to test the hypothesis.

Also try to shut it down https://docs.dgraph.io/deploy/#shutdown-database, terminate the binaries and then restart the cluster.

thank you very much ! i check cluster and seems OK

curl mq01:8080/health

OK

curl mq01:8080/cluster/health

Dgraph browser is available for running separately using the dgraph-ratel binary

curl mq01:6080/state | python -m json.tool | less

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1429 100 1429 0 0 332k 0 --:–:-- --:–:-- --:–:-- 465k
{
“cid”: “912eb1cd-f43b-4b44-b1b6-bb74a4a3482d”,
“counter”: “64”,
“groups”: {
“1”: {
“members”: {
“200”: {
“addr”: “mq01:7080”,
“groupId”: 1,
“id”: “200”,
“lastUpdate”: “1577152882”,
“leader”: true
}
},
“snapshotTs”: “2”,
“tablets”: {
predicate”: {
“groupId”: 1,
“predicate”: “predicate”,
“space”: “1457”
},
“dgraph.xid”: {
“groupId”: 1,
“predicate”: “dgraph.xid”,
“space”: “36”
}
}
},
“2”: {
“members”: {
“201”: {
“addr”: “mq02:7080”,
“groupId”: 2,
“id”: “201”,
“lastUpdate”: “1577111327”,
“leader”: true
}
},
“snapshotTs”: “2”,
“tablets”: {
“dgraph.group.acl”: {
“force”: true,
“groupId”: 2,
“predicate”: “dgraph.group.acl”,
“space”: “39”
},
“dgraph.password”: {
“force”: true,
“groupId”: 2,
“predicate”: “dgraph.password”,
“space”: “37”
},
“dgraph.user.group”: {
“force”: true,
“groupId”: 2,
“predicate”: “dgraph.user.group”,
“space”: “43”
},
“director”: {
“force”: true,
“groupId”: 2,
“predicate”: “director”,
“space”: “110”
},
“release_date”: {
“force”: true,
“groupId”: 2,
“predicate”: “release_date”,
“space”: “443”
},
“revenue”: {
“force”: true,
“groupId”: 2,
“predicate”: “revenue”,
“space”: “289”
},
“running_time”: {
“force”: true,
“groupId”: 2,
“predicate”: “running_time”,
“space”: “295”
},
“starring”: {
“force”: true,
“groupId”: 2,
“predicate”: “starring”,
“space”: “122”
}
}
},
“3”: {
“members”: {
“202”: {
“addr”: “mq03:7080”,
“groupId”: 3,
“id”: “202”,
“lastUpdate”: “1577111335”,
“leader”: true
}
},
“tablets”: {
“name”: {
“force”: true,
“groupId”: 3,
“predicate”: “name”,
“space”: “1526”
}
}
}
},
“maxLeaseId”: “10000”,
“maxTxnTs”: “10000”,
“zeros”: {
“100”: {
“addr”: “mq01:5080”,
“id”: “100”,
“leader”: true
}
}
}

what version are you using?

the lastest version [v1.1.1]

firist,i deploy 3 zero nodes and 3 alpha nodes and one dgraph-ratel node with v1.1.1, i think maybe the problem of the new lastest version, so rollback to version 1.0.13 ,killed the dgraph processes and remove the data dir ,eg p ,w ,zw .with one zero nodes and 3 alpha nodes and one dgraph-ratel node,but the problem still appears

above png is about the cluster ,which has 3 zero nodes and 3 alpha nodes and one dgraph-ratel node with v1.1.1

The latest Ratel is tied with the latest versions. And all Ratel’s binaries uses the CDN first. So, if you need to use an old version you need to use a Ratel Old version. To do so, you need to choose “Local Bundle” when you load the Ratel.

PS. Try to run this addr http://mq01:8000/?local

thanks all ,the problem is fixed, server url is wrong,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.