rexray / rexray

REX-Ray is a container storage orchestration engine enabling persistence for cloud native workloads
http://rexray.io
Apache License 2.0
2.17k stars 327 forks source link

Versions under 0.4.0 not able to install via curl #1244

Open matthewmrichter opened 6 years ago

matthewmrichter commented 6 years ago

Summary

Trying to run the web based installer. We're using an older stable version at 0.3.3. However it is no longer stable since it won't install (see below). Newer versions seem to install ok, but our prod infra is built on the assumption of 0.3.3 currently.

Version

< 0.4

Expected Behavior

Rexray 0.3.3 is installed

Actual Behavior

Rexray is not installed.

Steps To Reproduce

Tue Jul 24 08:42:12 $ curl -sSL https://rexray.io/install | sh -s -- stable 0.3.3
error: open of The failed: No such file or directory
error: open of requested failed: No such file or directory
error: open of path failed: No such file or directory
error: open of was failed: No such file or directory
error: open of not failed: No such file or directory
error: open of found. failed: No such file or directory
clintkitson commented 6 years ago

Hello @matthewmrichter,

I just tested this and it worked for me. Was this working for you before on your OS? I am wondering if there is a bug relating to the OS/distro you are using.

matthewmrichter commented 6 years ago

OS is CentOS 7, in AWS. It worked as recently as May. Note, the AMI is a little on the older side however. So maybe some Python or other pre-req is too stale for this script?

matthewmrichter commented 6 years ago

@clintkitson To eliminate the "It Worked On My Machine" you can reproduce in Docker as follows:

docker run -it centos:7 /bin/bash
yum install -y sudo which
...
[root@de932c2fddec /]# curl -sSL https://rexray.io/install | sh -s -- stable 0.3.3
error: open of The failed: No such file or directory
error: open of requested failed: No such file or directory
error: open of path failed: No such file or directory
error: open of was failed: No such file or directory
error: open of not failed: No such file or directory
error: open of found. failed: No such file or directory
[root@de932c2fddec /]# curl -sSL https://rexray.io/install | sh -s -- stable      

rexray has been installed to /usr/bin/rexray

REX-Ray
-------
Binary: /usr/bin/rexray
Flavor: client+agent+controller
SemVer: 0.11.3
OsArch: Linux-x86_64
Commit: 3afc7942dd8b1a88ed902344b4ece89374be87f7
Formed: Tue, 12 Jun 2018 15:45:51 UTC

[root@de932c2fddec /]# 
clintkitson commented 6 years ago

Hello @matthewmrichter,

It looks like we've got a bug in the installer when specifying a specific version under redhat/centos. Give this a shot to specify the version manually.

curl -sSL https://rexray.io/install | sed 's/FILE_NAME=$BIN_NAME-$FVERSION-1'/'FILE_NAME=$BIN_NAME-$BIN_NAME-$FVERSION/' | sh -s -- stable 0.3.3

matthewmrichter commented 6 years ago

Will test shortly

matthewmrichter commented 6 years ago

Sorry for the delay - can confirm this workaround works for 0.3.3 at least.

clintkitson commented 6 years ago

Thanks @matthewmrichter