Rasa X update does not work

Hi, I used the one-line deploy script from rasa here. Everything worked fine at the 1st round.

However when I want to update with my action server param( ACTION_SERVER_IMAGE/TAG ), I stuck with this error:

Error: Kubernetes cluster unreachable: error loading config file "/etc/rancher/k3s/k3s.yaml": open /etc/rancher/k3s/k3s.yaml: permission denied

Here is the full output:

Found existing cluster. Installing Helm command line interface … Error: Kubernetes cluster unreachable: error loading config file “/etc/rancher/k3s/k3s.yaml”: open /etc/rancher/k3s/k3s.yaml: permission denied Error: Kubernetes cluster unreachable: error loading config file “/etc/rancher/k3s/k3s.yaml”: open /etc/rancher/k3s/k3s.yaml: permission denied

Is someone please know how to solve this ? PS: I have added the statement: export KUBECONFIG=/etc/rancher/k3s/k3s.yaml

Thanks in advance the help.

I had same message in another modification. This is the config file for kubectl command. So your error is probably also because the script/command has a kubectl instruction somewhere. I have used ls -l to list the k3s.yaml file and it is rw for “root” user only. For me it worked to do “sudo kubectl …”. By running the command as root, the error was gone.

Another option is to “chmod o+rw /etc/rancher/k3s/k3s.yaml” (making the file open for read-write for everybody but this is not permanent change and will be overwritten at next update. As this is not a best practise in matter of security, you should execute any command then put it back to initial status with “chmod o-rw /etc/rancher/k3s/k3s.yaml”.

2 Likes

Thanks very much @LaurentIng for the reply. Actually the error no longer appear.

Thanks @LaurentIng. For me sudo chmod o+rw /etc/rancher/k3s/k3s.yaml was the solution.