Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

install_deis fails #137

Closed
rbellamy opened this issue Oct 3, 2016 · 2 comments
Closed

install_deis fails #137

rbellamy opened this issue Oct 3, 2016 · 2 comments

Comments

@rbellamy
Copy link

rbellamy commented Oct 3, 2016

Running the most recent release 0.9.6, and trying to install deis via install_deis, I get an error. I updated the script with set -x[1].

The error occurs during the in-place sed replacement of the deis-minio-rc.yml

+ /Applications/Kube-Solo.app/Contents/Resources/bin/gsed -i '/readOnly: true/ r deis-minio-rc-1.txt' deis-minio-rc.yaml
/Applications/Kube-Solo.app/Contents/Resources/bin/gsed: can't read deis-minio-rc.yaml: No such file or directory

I'm not sure that file is being generated from the template - if I stick with the vanilla version of the deis charts, and run helmc generate -x manifests workflow-v2.6.0, there is no deis-minio-rc.yml file in the manifests:

2016-10-02 23:18:05
rbellamy@terraspark i ~/kube-solo % ls -alh ~/.helmc/workspace/charts/workflow-v2.6.0/manifests/deis-minio*
-rw-r--r--  1 rbellamy  staff   1.3K Oct  2 23:17 /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0/manifests/deis-minio-deployment.yaml
-rw-r--r--  1 rbellamy  staff   112B Oct  2 23:17 /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0/manifests/deis-minio-service-account.yaml
-rw-r--r--  1 rbellamy  staff   184B Oct  2 23:17 /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0/manifests/deis-minio-service.yaml

[1]

2016-10-02 23:04:41
rbellamy@terraspark i ~/kube-solo/bin % install_deis
++ cat /Users/rbellamy/kube-solo/.env/resouces_path
+ res_folder=/Applications/Kube-Solo.app/Contents/Resources
++ /Users/rbellamy/bin/corectl q -i k8solo-01
+ vm_ip=192.168.64.2
+ echo ' '

+ echo 'If you want to upgrade already installed version, check out how to do upgrade at https://deis.com/docs/workflow/managing-workflow/upgrading-workflow/ '
If you want to upgrade already installed version, check out how to do upgrade at https://deis.com/docs/workflow/managing-workflow/upgrading-workflow/
+ echo ' '

+ pause 'Press [Enter] key to continue...'
+ read -p 'Press [Enter] key to continue...'
Press [Enter] key to continue...
+ echo ' '

++ pwd
+ current_folder=/Users/rbellamy/kube-solo/bin
+ cd /Users/rbellamy/kube-solo/bin
+ echo 'Downloading latest version of helmc cli for macOS'
Downloading latest version of helmc cli for macOS
+ curl -o helmc https://storage.googleapis.com/helm-classic/helmc-latest-darwin-amd64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27.1M  100 27.1M    0     0  7960k      0  0:00:03  0:00:03 --:--:-- 7959k
+ chmod +x helmc
+ echo ' '

+ echo 'Installed latest helmc cli to ~/kube-solo/bin ...'
Installed latest helmc cli to ~/kube-solo/bin ...
+ helmc up
---> Checking repository charts
Already up-to-date.
---> Checking repository deis
Already up-to-date.
---> Done
+ helmc repo add deis https://github.com/deis/charts
[ERROR] Remote deis already exists, and is pointed to https://github.com/deis/charts
+ helmc up
---> Checking repository charts
Already up-to-date.
---> Checking repository deis
Already up-to-date.
---> Done
++ ls /Users/rbellamy/.helmc/cache/deis
++ grep workflow-v2.
++ grep -v -e2e
++ sort -rn
++ head -1
++ cut -d- -f2
+ WORKFLOW_RELEASE=v2.6.0
+ rm -rf /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo
+ helmc fetch deis/workflow-v2.6.0 workflow-v2.6.0-kube-solo
---> Fetched chart into workspace /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo
---> Done
+ rm -rf /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests/deis-monitor-grafana-svc.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests/deis-monitor-influxdb-api-svc.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests/deis-monitor-influxdb-ui-svc.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests/deis-monitor-telegraf-service-account.yaml
+ rm -rf /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/tpl/deis-monitor-grafana-deployment.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/tpl/deis-monitor-grafana-rc.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/tpl/deis-monitor-influxdb-deployment.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/tpl/deis-monitor-influxdb-rc.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/tpl/deis-monitor-telegraf-daemon.yaml
+ rm -rf /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests/deis-workflow-manager-service-account.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests/deis-workflow-manager-service.yaml
+ rm -rf /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/tpl/deis-workflow-manager-deployment.yaml /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/tpl/deis-workflow-manager-rc.yaml
+ helmc generate -x manifests workflow-v2.6.0-kube-solo
---> Ran 14 generators.
+ cp /Applications/Kube-Solo.app/Contents/Resources/deis/deis-minio-rc-1.txt /Applications/Kube-Solo.app/Contents/Resources/deis/deis-minio-rc-2.txt /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests
+ cd /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests
+ /Applications/Kube-Solo.app/Contents/Resources/bin/gsed -i '/readOnly: true/ r deis-minio-rc-1.txt' deis-minio-rc.yaml
/Applications/Kube-Solo.app/Contents/Resources/bin/gsed: can't read deis-minio-rc.yaml: No such file or directory
+ cat deis-minio-rc-2.txt
+ rm -f deis-minio-rc-1.txt deis-minio-rc-2.txt
+ helmc install workflow-v2.6.0-kube-solo
[ERROR] Failed to load chart: /Users/rbellamy/.helmc/workspace/charts/workflow-v2.6.0-kube-solo/manifests/deis-minio-rc.yaml: error unmarshaling JSON: json: cannot unmarshal array into Go value of type codec.Metadata
+ cd /Users/rbellamy/kube-solo/bin
+ echo ' '

+ echo 'Downloading latest version of Workflow deis cli for macOS'
Downloading latest version of Workflow deis cli for macOS
+ curl -o deis https://storage.googleapis.com/workflow-cli/deis-latest-darwin-amd64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 9566k  100 9566k    0     0  6953k      0  0:00:01  0:00:01 --:--:-- 6957k
+ chmod +x deis
+ echo ' '

+ echo 'Installed latest deis cli to ~/kube-solo/bin ...'
Installed latest deis cli to ~/kube-solo/bin ...
+ echo ' '

+ echo 'To learn more about deis client, execute:'
To learn more about deis client, execute:
+ echo 'deis -h'
deis -h
+ echo ' '

+ echo 'Waiting for Deis Workflow to be ready... but first, coffee! '
Waiting for Deis Workflow to be ready... but first, coffee!
+ spin='-\|/'
+ i=1
+ kubectl --namespace=deis get po
+ grep '[d]eis-builder-'
+ grep 1/1
+ i=2
+ printf '\r|'
|+ sleep .1
@rimusz
Copy link
Member

rimusz commented Oct 3, 2016

ups, forgot that all rcs were moved to deployments.
I will update the install script with that

@rimusz
Copy link
Member

rimusz commented Oct 18, 2016

@rimusz rimusz closed this as completed Oct 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants