Get.dgraph.io: fails despite success


Report a Dgraph Bug

When running get.dgraph.io script, the installation exits prematurely despite successfully installing dgraph. This doesn’t happen 100%. This will disrupt any sort of automation that utilizes dgraph installation script.

In the stdout, you can see:

Download complete.
Inflating binaries (password may be required).
Installation failed. Please try again.
There was some problem while installing Dgraph. Please share the output of this script with us on https://dgraph.slack.com or http://discuss.dgraph.io so that we can resolve the issue for you.

If you run the script again, you see:

Download complete.
Comparing checksums for dgraph binaries
You already have Dgraph v20.07.0 installed.
Please visit https://dgraph.io/docs/get-started for further instructions on usage.

What version of Dgraph are you using?

v20.07.0

Have you tried reproducing the issue with the latest release?

n/a as with install script

What is the hardware spec (RAM, OS)?

CentOS 8

Steps to reproduce the issue (command/config used to run Dgraph).

sudo su -
DGRAPH_VERSION=v20.07.0
curl -sSf https://get.dgraph.io | ACCEPT_LICENSE="y" VERSION="$DGRAPH_VERSION" bash

Expected behavior and actual result.

Despite a successful installation, the script exits with this error:

Download complete.
Inflating binaries (password may be required).
Installation failed. Please try again.
There was some problem while installing Dgraph. Please share the output of this script with us on https://dgraph.slack.com or http://discuss.dgraph.io so that we can resolve the issue for you.

@MichelDiz This one is particularly disruptive. When you run a script that does the curl command it fails on Cent OS 8. In contrast it works fine on Ubuntu 18.04.