joaquin
(Joaquin Menchaca)
August 10, 2020, 9:58am
1
Report a Dgraph Bug
The dgraph installer script (get.dgraph.io ) has option to install systemd units for alpha, zero, and ratel, but these will fail on Ubuntu.
The script will fetch files from:
But these don’t work on Ubuntu as the bash is not found in /usr/bin/bash
.
What version of Dgraph are you using?
latest
Have you tried reproducing the issue with the latest release?
latest
What is the hardware spec (RAM, OS)?
Ubuntu 18.04
Steps to reproduce the issue (command/config used to run Dgraph).
curl -sSf https://get.dgraph.io | ACCEPT_LICENSE="y" INSTALL_IN_SYSTEMD="y" bash
Expected behaviour and actual result.
The expected behavior would be alpha and zero services running, but instead the actual behavior is that the services will have failed when running these:
systemctl status dgraph-alpha
systemctl status dgraph-zero
curl localhost:6080/health
curl localhost:8080/health
MichelDiz
(Michel Diz)
August 10, 2020, 9:23pm
2
I have created this PR Move systemd config to a templating approach. by MichelDiz · Pull Request #19 · dgraph-io/Install-Dgraph · GitHub to fix this. The objective of the PR is to create the services files on the fly. And at line 31 it will check for the bash path and at the moment of the creation of the file, it will add this.
joaquin
(Joaquin Menchaca)
August 26, 2020, 5:58am
3
This works now on both normal account and as root.
curl -sSf https://get.dgraph.io | ACCEPT_LICENSE="y" INSTALL_IN_SYSTEMD="y" bash
{
"counter": "10",
"groups": {
"1": {
"members": {
"1": {
"id": "1",
"groupId": 1,
"addr": "localhost:7080",
"leader": true,
"lastUpdate": "1598421449"
}
},
"tablets": {
"dgraph.graphql.schema": {
"groupId": 1,
"predicate": "dgraph.graphql.schema"
},
"dgraph.graphql.xid": {
"groupId": 1,
"predicate": "dgraph.graphql.xid"
},
"dgraph.type": {
"groupId": 1,
"predicate": "dgraph.type"
}
},
"checksum": "15480156157935355611"
}
},
"zeros": {
"1": {
"id": "1",
"addr": "localhost:5080",
"leader": true
}
},
"maxTxnTs": "10000",
"maxRaftId": "1",
"cid": "940c6fc3-9a51-42a4-9d10-e8aac2662667",
"license": {
"maxNodes": "18446744073709551615",
"expiryTs": "1601013450",
"enabled": true
}
}
1 Like