dcos-cli
dcos-cli copied to clipboard
Failed installation of dcos cli
Logging in to my team's dcos cluster after an upgrade to version noted below, hitting upper right corner menu in gui to install the cli
curl https://downloads.dcos.io/binaries/cli/undefined/x86-64/latest/dcos -o dcos &&
chmod +x ./dcos &&
sudo mv dcos /usr/local/bin &&
dcos cluster setup http://10.xxx.x.xxx &&
dcos
Doing
cat /usr/local/bin/dcos
yields
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>68121YF1WEH58QHT</RequestId><HostId>0R0nGQSjR0jrJ7Ce+fK8NQe18+PN0R9mJb1yujRTBjEeaWJP7KPRGw0OIndkPxknD0Njv46Qe6g=</HostId></Error>
Please answer the following questions before submitting your issue. Thanks!
What version of DC/OS + DC/OS CLI are you using (dcos --version
)?
Using Mesosphere DC/OS Version 2.2.1
Trying to install cli so got no
What operating system and version are you using?
Linux 3.10.0-957.10.1.el7.x86_64 x86_64 NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
What did you do?
If possible please provide a recipe for reproducing.
What did you expect to see?
I expected to see a successful installation.
What did you see instead?
/usr/local/bin/dcos: line 1: syntax error near unexpected token `newline'
/usr/local/bin/dcos: line 1: `<?xml version="1.0" encoding="UTF-8"?>'
Hi you can use https://downloads.dcos.io/cli/index.html?platform=all&architecture=x86-64&binary=all&cli=1.2&plugin=all&dcos=2.2 to get proper link in your case it will be https://downloads.dcos.io/cli/releases/binaries/dcos/linux/x86-64/latest/dcos
I think the problem is in the UI (in src/js/components/modals/CliInstallModal.tsx
) and for some reason system is not detected properly as undefined appears in the URL
https://downloads.dcos.io/binaries/cli/undefined/x86-64/latest/dcos -o dcos
Could you post logs from your browser console? Maybe some extension is interfering with the UI code.
Hey!
Updating the download url with what you provided, made it work. Thanks!