kubeflow/example-seldon

deploy.sh fail with error "must provide URIs beginning with 'github.com'"

arllanos opened this issue · 3 comments

During installation the following command will fail:
$ curl https://raw.githubusercontent.com/kubeflow/kubeflow/v${KUBEFLOW_VERSION}/scripts/deploy.sh | bash

Produce error:
"ERROR Registries using protocol 'github' must provide URIs beginning with 'github.com' (optionally prefaced with 'http', 'https', 'www', and so on"
This is the full output:

$ export KUBEFLOW_VERSION=0.2.2
$ export KUBEFLOW_KS_DIR=/home/arllanos/ks_kubeflow_seldon
$ export KUBEFLOW_DEPLOY=false
$ curl https://raw.githubusercontent.com/kubeflow/kubeflow/v${KUBEFLOW_VERSION}/scripts/deploy.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1947  100  1947    0     0   2309      0 --:--:-- --:--:-- --:--:--  2306
++ pwd
+ KUBEFLOW_REPO=/home/arllanos/kubeflow_repo
+ KUBEFLOW_VERSION=0.2.2
+ KUBEFLOW_DEPLOY=false
+ [[ ! -d /home/arllanos/kubeflow_repo ]]
+ source /home/arllanos/kubeflow_repo/scripts/util.sh
+ check_install ks
+ which ks
+ check_install kubectl
+ which kubectl
+ DEPLOYMENT_NAME=kubeflow
+ KUBEFLOW_KS_DIR=/home/arllanos/ks_kubeflow_seldon
++ dirname /home/arllanos/ks_kubeflow_seldon
+ cd /home/arllanos
++ basename /home/arllanos/ks_kubeflow_seldon
+ ks init ks_kubeflow_seldon
INFO  Using context 'gke_silicon-cell-209113_us-central1-a_kubeflow-seldon-ml' from the kubeconfig file specified at the environment variable $KUBECONFIG
INFO  Creating environment "default" with namespace "default", pointing to cluster at address "https://35.224.223.191"
INFO  Generating ksonnet-lib data at path '/home/arllanos/ks_kubeflow_seldon/lib/v1.7.0'
INFO  ksonnet app successfully created! Next, try creating a component with `ks generate`.
+ cd /home/arllanos/ks_kubeflow_seldon
+ ks registry add kubeflow /home/arllanos/kubeflow_repo/kubeflow
ERROR Registries using protocol 'github' must provide URIs beginning with 'github.com' (optionally prefaced with 'http', 'https', 'www', and so on

-BTW, in setup.md there is a broken link (404-not found) in the following text:
"Install kubeflow - for details see here"

The problem is that the script deploy.sh does not work with ksonnet version 0.9.2. (This version is currently the one mentioned in setup.md)

In order to make this work I had to do two things:

  1. Use newer version of ksonnet (in my case ksonnet 0.12.0)
  2. Change to the </path/to/store/your/ksonnet/application>directory after command with deploy.sh executes

Thanks. Now the update to Seldon has been merged into kubeflow we will update this example to fix this and use the latest seldon release.

This should be fixed with latest docs on how to install everything.