# Rasa X quick install script. Problems with helm install on rasa-x repository

**URL:** <https://forum.rasa.com/t/rasa-x-quick-install-script-problems-with-helm-install-on-rasa-x-repository/32059>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [July 31, 2020, 11:39am UTC](https://forum.rasa.com/t/rasa-x-quick-install-script-problems-with-helm-install-on-rasa-x-repository/32059 "2020-07-31T11:39:45Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Val](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/val/32/10393_2.png) [@Val](https://forum.rasa.com/u/Val)\
**Post date:** [August 3, 2020, 2:04pm UTC](https://forum.rasa.com/t/rasa-x-quick-install-script-problems-with-helm-install-on-rasa-x-repository/32059/7 "2020-08-03T14:04:42Z")

</div>

I found a workaround for the first problem. You have to both use the -E parameter and modify the install script this way:

```auto
no_root_helm() {
  # We don't run `helm` commands as `root` user because metadata, like added chart repos
  # are else stored in the cache for the `root` user.
  envs="PATH=$PATH:/usr/local/bin"
  if $IS_EMBEDDED_CLUSTER
  then
    sudo -u "$SUDO_USER" -E bash -c "$envs KUBECONFIG=/etc/rancher/k3s/k3s.yaml helm $*"
  else
    sudo -u "$SUDO_USER" -E bash -c "$envs helm $*"
  fi
}

```

```auto
$ curl -s get-rasa-x.rasa.com > install.sh 

#Apply the modifications

$ sudo -E bash install.sh

```

The -E parameter was indeed the solution but was also needed inside the script.

============================================================================================================================================================

I had an other problem which was solved by a **chmod +wr** :

```auto
+ set -e
+ DOWNLOADER=
+ DISABLE_TELEMETRY=
+ ENABLE_DUCKLING=
++ boolean false
++ case $1 in
++ echo false
+ INSTALLER_DEBUG_MODE=false
+ INITIAL_USER_PASSWORD=
+ POSTGRES_PASSWORD=
+ RABBITMQ_PASSWORD=
+ REDIS_PASSWORD=
+ RASA_X_VERSION=0.31.2
+ RASA_VERSION=1.10.8
+ ACTION_SERVER_IMAGE=
+ ACTION_SERVER_TAG=
+ DEBUG_MODE=
+ DEPLOYMENT_NAME=rasa
+ DEPLOYMENT_NAMESPACE=rasa
+ NGINX_SERVICE_TYPE=LoadBalancer
+ ADDITIONAL_CHANNEL_CREDENTIALS=
+ false
+ REDIRECT=/dev/null
+ [['' == \-\-\u\n\i\n\s\t\a\l\l]]
+ check_if_can_be_installed
++ uname
++ tr '[:upper:]' '[:lower:]'
+ OS=linux
+ [[linux != \l\i\n\u\x]]
+ verify_downloader curl
+ does_command_exist curl
+ command -v curl
+ DOWNLOADER=curl
+ return 0
+ install_os_specific_requirements
+ [[-f /etc/os-release]]
+ . /etc/os-release
++ NAME=Ubuntu
++ VERSION='18.04.4 LTS (Bionic Beaver)'
++ ID=ubuntu
++ ID_LIKE=debian
++ PRETTY_NAME='Ubuntu 18.04.4 LTS'
++ VERSION_ID=18.04
++ HOME_URL=https://www.ubuntu.com/
++ SUPPORT_URL=https://help.ubuntu.com/
++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
++ VERSION_CODENAME=bionic
++ UBUNTU_CODENAME=bionic
+ OS=Ubuntu
+ [[Ubuntu == \C\e\n\t\O\S\ \L\i\n\u\x]]
+ [[Ubuntu == \R\e\d\ \H\a\t*]]
+ is_kubectl_installed_and_configured
+ does_command_exist kubectl
+ command -v kubectl
+ kubectl version --short
+ grep -q 'Server Version: .*'
+ echo 'Found existing cluster.'
Found existing cluster.
+ does_command_exist k3s
+ command -v k3s
+ IS_EMBEDDED_CLUSTER=true
+ install_helm
+ echo 'Installing Helm command line interface ...'
Installing Helm command line interface ...
+ download https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
+ '[' 1 -eq 1 ']'
+ case ${DOWNLOADER} in
+ curl -sfL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
+ bash
+ [[-n 0]]
+ does_command_exist helm
+ command -v helm
+ get_latest_chart_from_repository
+ no_root_helm repo list
+ grep -q '^rasa-x'
+ no_root_helm repo add rasa-x https://rasahq.github.io/rasa-x-helm
+ envs=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/bin
+ true
+ sudo -u user -E bash -c 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/bin KUBECONFIG=/etc/rancher/k3s/k3s.yaml helm repo add rasa-x https://rasahq.github.io/rasa-x-helm'
+ no_root_helm repo update
+ envs=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/bin
+ true
+ sudo -u user -E bash -c 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/bin KUBECONFIG=/etc/rancher/k3s/k3s.yaml helm repo update'
+ is_rasa_x_deployed
+ grep '^rasa'
+ grep -q 'rasa-x-[0-9.]*'
+ no_root_helm ls --namespace rasa
+ envs=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/bin
+ true
+ sudo -u user -E bash -c 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/bin KUBECONFIG=/etc/rancher/k3s/k3s.yaml helm ls --namespace rasa'
Error: Kubernetes cluster unreachable: error loading config file "/etc/rancher/k3s/k3s.yaml": open /etc/rancher/k3s/k3s.yaml: permission denied
+ return 1
+ generate_not_yet_specified_passwords
++ get_specified_password_or_generate ''
++ [[-z '']]
+++ head -c20
+++ tr -dc _A-Z-a-z-0-9
++ echo vTM7lI4pels9zgoPvWWE
+ INITIAL_USER_PASSWORD=vTM7lI4pels9zgoPvWWE
++ get_specified_password_or_generate ''
++ [[-z '']]
+++ tr -dc _A-Z-a-z-0-9
+++ head -c20
++ echo QiG8y47jUL3D_TY9J-ur
+ POSTGRES_PASSWORD=QiG8y47jUL3D_TY9J-ur
++ get_specified_password_or_generate ''
++ [[-z '']]
+++ tr -dc _A-Z-a-z-0-9
+++ head -c20
++ echo ZUxyCA9Bph7BOY8dg9bG
+ RABBITMQ_PASSWORD=ZUxyCA9Bph7BOY8dg9bG
++ get_specified_password_or_generate ''
++ [[-z '']]
+++ tr -dc _A-Z-a-z-0-9
+++ head -c20
++ echo AmHOYrld4gKNmYEBwF6A
+ REDIS_PASSWORD=AmHOYrld4gKNmYEBwF6A
+ install_rasa_x_chart
+ kubectl create ns rasa
+ true
+ execute_helm_command install
+ [[install == \i\n\s\t\a\l\l]]
+ command=("install")
+ command=("${command[@]}" "--set rasax.tag=${RASA_X_VERSION}" "--set eventService.tag=${RASA_X_VERSION}" "--set nginx.tag=${RASA_X_VERSION}" "--set rasa.tag=${RASA_VERSION}-full")
+ [[install == \i\n\s\t\a\l\l]]
+ command=("${command[@]}" "--set rasax.initialUser.password=${INITIAL_USER_PASSWORD}" "--set global.postgresql.postgresqlPassword=${POSTGRES_PASSWORD}" "--set global.redis.password=${RABBITMQ_PASSWORD}" "--set rabbitmq.rabbitmq.password=${REDIS_PASSWORD}")
+ true
+ command=("${command[@]}" "--set nginx.service.type=ClusterIP")
+ command=("${command[@]}" "--set ingress.hosts[0].host=,ingress.hosts[0].paths={/}")
+ [[install == \i\n\s\t\a\l\l]]
+ command=("${command[@]}" "--set rasax.disableTelemetry=${DISABLE_TELEMETRY:-false}")
+ [[install == \i\n\s\t\a\l\l]]
+ command=("${command[@]}" "--set duckling.enabled=${ENABLE_DUCKLING:-False}")
+ [[install == \i\n\s\t\a\l\l]]
+ command=("${command[@]}" "--set app.name=${ACTION_SERVER_IMAGE:-rasa/rasa-x-demo}")
+ [[install == \i\n\s\t\a\l\l]]
+ command=("${command[@]}" "--set app.tag=${ACTION_SERVER_TAG:-${RASA_X_VERSION}}")
+ [[install == \i\n\s\t\a\l\l]]
+ command=("${command[@]}" "--set global.debugMode=${DEBUG_MODE:-False}")
+ [[-n '']]
+ command=("${command[@]}" "--set rasax.extraEnvs[0].name=QUICK_INSTALL" "--set-string rasax.extraEnvs[0].value=true" "--namespace ${DEPLOYMENT_NAMESPACE}" "${DEPLOYMENT_NAME}" "rasa-x/rasa-x")
+ no_root_helm install '--set rasax.tag=0.31.2' '--set eventService.tag=0.31.2' '--set nginx.tag=0.31.2' '--set rasa.tag=1.10.8-full' '--set rasax.initialUser.password=vTM7lI4pels9zgoPvWWE' '--set global.postgresql.postgresqlPassword=QiG8y47jUL3D_TY9J-ur' '--set global.redis.password=ZUxyCA9Bph7BOY8dg9bG' '--set rabbitmq.rabbitmq.password=AmHOYrld4gKNmYEBwF6A' '--set nginx.service.type=ClusterIP' '--set ingress.hosts[0].host=,ingress.hosts[0].paths={/}' '--set rasax.disableTelemetry=false' '--set duckling.enabled=False' '--set app.name=rasa/rasa-x-demo' '--set app.tag=0.31.2' '--set global.debugMode=False' '--set rasax.extraEnvs[0].name=QUICK_INSTALL' '--set-string rasax.extraEnvs[0].value=true' '--namespace rasa' rasa rasa-x/rasa-x
+ envs=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/bin
+ true
+ sudo -u user -E bash -c 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/bin KUBECONFIG=/etc/rancher/k3s/k3s.yaml helm install --set rasax.tag=0.31.2 --set eventService.tag=0.31.2 --set nginx.tag=0.31.2 --set rasa.tag=1.10.8-full --set rasax.initialUser.password=vTM7lI4pels9zgoPvWWE --set global.postgresql.postgresqlPassword=QiG8y47jUL3D_TY9J-ur --set global.redis.password=ZUxyCA9Bph7BOY8dg9bG --set rabbitmq.rabbitmq.password=AmHOYrld4gKNmYEBwF6A --set nginx.service.type=ClusterIP --set ingress.hosts[0].host=,ingress.hosts[0].paths={/} --set rasax.disableTelemetry=false --set duckling.enabled=False --set app.name=rasa/rasa-x-demo --set app.tag=0.31.2 --set global.debugMode=False --set rasax.extraEnvs[0].name=QUICK_INSTALL --set-string rasax.extraEnvs[0].value=true --namespace rasa rasa rasa-x/rasa-x'
Error: Kubernetes cluster unreachable: error loading config file "/etc/rancher/k3s/k3s.yaml": open /etc/rancher/k3s/k3s.yaml: permission denie

```

Hope this helps someone one day! 🙂

---

_[View the full topic](https://forum.rasa.com/t/rasa-x-quick-install-script-problems-with-helm-install-on-rasa-x-repository/32059)._
