mesosphere-backup / docker-containers

Dockerfiles and assets for building Docker containers
175 stars 73 forks source link

Please downgrade the CLI to an older version #67

Open majidgolshadi opened 8 years ago

majidgolshadi commented 8 years ago

I try to connect my cli to master with tag 1.0.11.0.1-2.0.93.ubuntu1404 but i got this error

This version of the DC/OS CLI is not supported for your cluster. Please downgrade the CLI to an older version: https://dcos.io/docs/usage/cli/update/#downgrade

Which client version I have to install?

tamarrow-zz commented 8 years ago

what's the output of dcos --version?

majidgolshadi commented 8 years ago

@tamarrow I download it from https://downloads.dcos.io/binaries/cli/linux/x86-64/dcos-1.8/dcos link and It returns version

$ dcos --version
dcoscli.version=0.4.12
dcos.version=N/A
dcos.commit=N/A
dcos.bootstrap-id=N/A
tamarrow-zz commented 8 years ago

If you are using the package subcommand, you need to connect the cli to your DC/OS cluster. dcos config set core.dcos_url http://your/dcos/cluster

majidgolshadi commented 8 years ago

I my machine I run any a zookeeper, mesos-master and mesos-slave like below

docker run -d --name=zookeeper --net=host netflixoss/exhibitor:1.5.2

docker run -d --name=mesos-master-1 --net=host \
  -e MESOS_PORT=5050 \
  -e MESOS_ZK=zk://127.0.0.1:2181/mesos \
  -e MESOS_QUORUM=1 \
  -e MESOS_REGISTRY=in_memory \
  -e MESOS_LOG_DIR=/var/log/mesos \
  -e MESOS_WORK_DIR=/var/tmp/mesos \
  -v "$(pwd)/log/mesos:/var/log/mesos" \
  -v "$(pwd)/tmp/mesos:/var/tmp/mesos" \
  mesosphere/mesos-master:1.0.11.0.1-2.0.93.ubuntu1404

docker run -d --net=host --name=mesos-slave-1 --privileged \
  -e MESOS_PORT=5054 \
  -e MESOS_MASTER=zk://127.0.0.1:2181/mesos \
  -e MESOS_SWITCH_USER=0 \
  -e MESOS_CONTAINERIZERS=docker,mesos \
  -e MESOS_LOG_DIR=/var/log/mesos \
  -e MESOS_WORK_DIR=/var/tmp/mesos \
  -v "$(pwd)/log/mesos:/var/log/mesos" \
  -v "$(pwd)/tmp/mesos:/var/tmp/mesos" \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /cgroup:/cgroup \
  -v /sys:/sys \
  -v /usr/local/bin/docker:/usr/local/bin/docker \
  mesosphere/mesos-slave:1.0.11.0.1-2.0.93.ubuntu1404

and after that set core.dcos_url config

./dcos config set core.dcos_url http://localhost:5050

and when I want to install a package I got that error

tamarrow-zz commented 8 years ago

Did you verify that the host is up? In your output of dcos --verison above you have dcos.version=N/A which indicated that the cli cannot connect to the cluster.

lloesche commented 8 years ago

@tamarrow doesn't dcos-cli have to point to a DC/OS cluster? localhost:5050 sounds like a Mesos Master. Is that even supported?

tamarrow-zz commented 8 years ago

The package subcommand will not work. The node subcommand should work, but this is not supported.

majidgolshadi commented 8 years ago

@tamarrow I ran these commands on my computer