Skip to content

Unable to read /etc/rancher/k3s/k3s.yaml, please start server with --write-kubeconfig-mode or --write-kubeconfig-group to modify kube config permissions #49

@codeagencybe

Description

@codeagencybe

Describe the bug

I started a fresh server on Hetzner and ran the installer command, but at some point I get the error below.

[INFO]  Required dependencies 'kubectl jq mktemp sort printf' are installed.
WARN[0000] Unable to read /etc/rancher/k3s/k3s.yaml, please start server with --write-kubeconfig-mode or --write-kubeconfig-group to modify kube config permissions 
error: error loading config file "/etc/rancher/k3s/k3s.yaml": open /etc/rancher/k3s/k3s.yaml: permission denied
[ERROR] kubectl get nodes failed - check KUBECONFIG setup

To Reproduce
Steps to reproduce the behavior:

  1. run curl -sfL https://get.quickstack.dev/setup.sh | sh - on the server
  2. See the error

Expected behavior
Complete installation without this error

Screenshots
If applicable, add screenshots to help explain your problem.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions