{"action":"created","issue":{"url":"https://api.github.com/repos/kubeflow/kubeflow/issues/1749","repository_url":"https://api.github.com/repos/kubeflow/kubeflow","labels_url":"https://api.github.com/repos/kubeflow/kubeflow/issues/1749/labels{/name}","comments_url":"https://api.github.com/repos/kubeflow/kubeflow/issues/1749/comments","events_url":"https://api.github.com/repos/kubeflow/kubeflow/issues/1749/events","html_url":"https://github.com/kubeflow/kubeflow/issues/1749","id":368966091,"node_id":"MDU6SXNzdWUzNjg5NjYwOTE=","number":1749,"title":"kfctl generate k8s env.sh: No such file or directory","user":{"login":"tlkh","id":5409617,"node_id":"MDQ6VXNlcjU0MDk2MTc=","avatar_url":"https://avatars3.githubusercontent.com/u/5409617?v=4","gravatar_id":"","url":"https://api.github.com/users/tlkh","html_url":"https://github.com/tlkh","followers_url":"https://api.github.com/users/tlkh/followers","following_url":"https://api.github.com/users/tlkh/following{/other_user}","gists_url":"https://api.github.com/users/tlkh/gists{/gist_id}","starred_url":"https://api.github.com/users/tlkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlkh/subscriptions","organizations_url":"https://api.github.com/users/tlkh/orgs","repos_url":"https://api.github.com/users/tlkh/repos","events_url":"https://api.github.com/users/tlkh/events{/privacy}","received_events_url":"https://api.github.com/users/tlkh/received_events","type":"User","site_admin":false},"labels":[{"id":765839028,"node_id":"MDU6TGFiZWw3NjU4MzkwMjg=","url":"https://api.github.com/repos/kubeflow/kubeflow/labels/community/question","name":"community/question","color":"ecfc15","default":false},{"id":896203023,"node_id":"MDU6TGFiZWw4OTYyMDMwMjM=","url":"https://api.github.com/repos/kubeflow/kubeflow/labels/platform/minikube","name":"platform/minikube","color":"2515fc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-11T06:08:06Z","updated_at":"2018-11-05T22:04:48Z","closed_at":null,"author_association":"NONE","body":"Hi everyone, on a fresh machine/minikube setup I am getting this error (which I have never encountered before). This is using the latest `0.3.0` release, by following the instructions on [https://www.kubeflow.org/docs/started/getting-started/](https://www.kubeflow.org/docs/started/getting-started/).\r\n\r\n`\r\nkubeflow/scripts/kfctl.sh: line 174: env.sh: No such file or directory\r\n`\r\n\r\nBelow is the full output log (I included the `init` command; error is on the last output line of `generate k8s`):\r\n\r\n```\r\nnvaitc@nvaitc-DGX-Station:~$ ${KUBEFLOW_REPO}/scripts/kfctl.sh init ${KFAPP} --platform none+ COMMAND=init\r\n+ WHAT=dgxkf\r\n+ ENV_FILE=env.sh\r\n+ SKIP_INIT_PROJECT=false\r\n+ MIN_CLUSTER_VERSION=1.10.7-gke.2\r\n+++ dirname kubeflow/scripts/kfctl.sh\r\n++ cd kubeflow/scripts\r\n++ pwd\r\n+ DIR=/home/nvaitc/kubeflow/scripts\r\n+ source /home/nvaitc/kubeflow/scripts/util.sh\r\n+ source /home/nvaitc/kubeflow/scripts/gke/util.sh\r\n++ set -xe\r\n+ source /home/nvaitc/kubeflow/scripts/util-minikube.sh\r\n++ RED='\\033[0;31m'\r\n++ GREEN='\\033[0;32m'\r\n++ YELLOW='\\033[0;33m'\r\n++ NC='\\033[0m'\r\n++ MOUNT_LOCAL=false\r\n+ '[' init == init ']'\r\n+ DEPLOYMENT_NAME=dgxkf\r\n+ '[' init '!=' '' ']'\r\n+ case $1 in\r\n+ shift\r\n+ '[' dgxkf '!=' '' ']'\r\n+ case $1 in\r\n+ shift\r\n+ '[' --platform '!=' '' ']'\r\n+ case $1 in\r\n+ shift\r\n+ PLATFORM=none\r\n+ shift\r\n+ '[' '' '!=' '' ']'\r\n+ mkdir -p dgxkf\r\n+ cd dgxkf\r\n+ createEnv\r\n+ echo PLATFORM=none\r\n++ cd /home/nvaitc/kubeflow/scripts/..\r\n++ pwd\r\n+ DEFAULT_KUBEFLOW_REPO=/home/nvaitc/kubeflow\r\n+ KUBEFLOW_REPO=kubeflow\r\n+ echo KUBEFLOW_REPO=kubeflow\r\n+ echo KUBEFLOW_VERSION=master\r\n++ pwd\r\n+ echo KUBEFLOW_KS_DIR=/home/nvaitc/dgxkf/ks_app\r\n+ echo KUBEFLOW_DOCKER_REGISTRY=\r\n+ echo K8S_NAMESPACE=kubeflow\r\n+ case \"$PLATFORM\" in\r\n+ echo KUBEFLOW_CLOUD=null\r\n+ source env.sh\r\n++ PLATFORM=none\r\n++ KUBEFLOW_REPO=kubeflow\r\n++ KUBEFLOW_VERSION=master\r\n++ KUBEFLOW_KS_DIR=/home/nvaitc/dgxkf/ks_app\r\n++ KUBEFLOW_DOCKER_REGISTRY=\r\n++ K8S_NAMESPACE=kubeflow\r\n++ KUBEFLOW_CLOUD=null\r\n+ '[' -z dgxkf ']'\r\n+ '[' -d dgxkf ']'\r\n+ '[' -z none ']'\r\n+ source env.sh\r\n++ PLATFORM=none\r\n++ KUBEFLOW_REPO=kubeflow\r\n++ KUBEFLOW_VERSION=master\r\n++ KUBEFLOW_KS_DIR=/home/nvaitc/dgxkf/ks_app\r\n++ KUBEFLOW_DOCKER_REGISTRY=\r\n++ K8S_NAMESPACE=kubeflow\r\n++ KUBEFLOW_CLOUD=null\r\n+ '[' none == gcp ']'\r\n+ source env.sh\r\n++ PLATFORM=none\r\n++ KUBEFLOW_REPO=kubeflow\r\n++ KUBEFLOW_VERSION=master\r\n++ KUBEFLOW_KS_DIR=/home/nvaitc/dgxkf/ks_app\r\n++ KUBEFLOW_DOCKER_REGISTRY=\r\n++ K8S_NAMESPACE=kubeflow\r\n++ KUBEFLOW_CLOUD=null\r\n+ '[' -z init ']'\r\n+ '[' -z dgxkf ']'\r\n+ check_install ks\r\n+ which ks\r\n+ check_install kubectl\r\n+ which kubectl\r\n+ source env.sh\r\n++ PLATFORM=none\r\n++ KUBEFLOW_REPO=kubeflow\r\n++ KUBEFLOW_VERSION=master\r\n++ KUBEFLOW_KS_DIR=/home/nvaitc/dgxkf/ks_app\r\n++ KUBEFLOW_DOCKER_REGISTRY=\r\n++ K8S_NAMESPACE=kubeflow\r\n++ KUBEFLOW_CLOUD=null\r\n+ '[' init == generate ']'\r\n+ '[' init == apply ']'\r\n+ '[' init == delete ']'\r\n\r\nnvaitc@nvaitc-DGX-Station:~$ ${KUBEFLOW_REPO}/scripts/kfctl.sh generate k8s\r\n+ COMMAND=generate\r\n+ WHAT=k8s\r\n+ ENV_FILE=env.sh\r\n+ SKIP_INIT_PROJECT=false\r\n+ MIN_CLUSTER_VERSION=1.10.7-gke.2\r\n+++ dirname kubeflow/scripts/kfctl.sh\r\n++ cd kubeflow/scripts\r\n++ pwd\r\n+ DIR=/home/nvaitc/kubeflow/scripts\r\n+ source /home/nvaitc/kubeflow/scripts/util.sh\r\n+ source /home/nvaitc/kubeflow/scripts/gke/util.sh\r\n++ set -xe\r\n+ source /home/nvaitc/kubeflow/scripts/util-minikube.sh\r\n++ RED='\\033[0;31m'\r\n++ GREEN='\\033[0;32m'\r\n++ YELLOW='\\033[0;33m'\r\n++ NC='\\033[0m'\r\n++ MOUNT_LOCAL=false\r\n+ '[' generate == init ']'\r\n+ source env.sh\r\nkubeflow/scripts/kfctl.sh: line 174: env.sh: No such file or directory\r\n```"},"comment":{"url":"https://api.github.com/repos/kubeflow/kubeflow/issues/comments/436052701","html_url":"https://github.com/kubeflow/kubeflow/issues/1749#issuecomment-436052701","issue_url":"https://api.github.com/repos/kubeflow/kubeflow/issues/1749","id":436052701,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjA1MjcwMQ==","user":{"login":"ashahba","id":12436063,"node_id":"MDQ6VXNlcjEyNDM2MDYz","avatar_url":"https://avatars3.githubusercontent.com/u/12436063?v=4","gravatar_id":"","url":"https://api.github.com/users/ashahba","html_url":"https://github.com/ashahba","followers_url":"https://api.github.com/users/ashahba/followers","following_url":"https://api.github.com/users/ashahba/following{/other_user}","gists_url":"https://api.github.com/users/ashahba/gists{/gist_id}","starred_url":"https://api.github.com/users/ashahba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashahba/subscriptions","organizations_url":"https://api.github.com/users/ashahba/orgs","repos_url":"https://api.github.com/users/ashahba/repos","events_url":"https://api.github.com/users/ashahba/events{/privacy}","received_events_url":"https://api.github.com/users/ashahba/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T22:04:48Z","updated_at":"2018-11-05T22:04:48Z","author_association":"CONTRIBUTOR","body":"Does it make sense to add a nice message and instruct the user to do something like `cd ${KFAPP}` prior to running `generate`? and also have `kfctl.sh` to check where `generate` is being called from and it not from the right directory instruct the user and stop processing rather than just complaining about file not found 🙂 \r\nI think that'll be helpful as a user stand point.\r\n\r\nIf yes, feel free to assign it to me and I work on it."}}
{"actor":{"display_login":"ashahba"}}