Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPi4/Buster node password rejected #746

Closed
marcstreeter opened this issue Aug 21, 2019 · 7 comments
Closed

RPi4/Buster node password rejected #746

marcstreeter opened this issue Aug 21, 2019 · 7 comments

Comments

@marcstreeter
Copy link

Describe the bug
When installing k3s on a cluster of RPi4 (RaspberryPi 4) devices the worker nodes are unable to register.

To Reproduce
Steps to reproduce the behavior: followed these steps exactly:

  • have master RPi4 and worker RPi4
  • first install k3s (v0.8.1) on master
  • retrieve token
  • use token and local server ip for install of k3s on worker (also using script with K3S_URL and K3S_TOKEN inputs)
  • checked nodes (sudo kubectl get nodes)
  • only see master and journalctl shows node password mismatch

Expected behavior
expect to see master and worker nodes

Screenshots
Top image is worker and Bottom image is master
image

Output of journalctl for both worker (top) and master(bottom)
image

Additional context

journalctl

outputs

Node password rejected, contents of '/var/lib/rancher/k3s/agent/node-password.txt' may not match server

I thought that maybe something specific to Raspian Buster may have to do with it (since the RPi4's only run on Buster, not Stretch) so I also applied suggested "fixes" mentioned #703 and in kubernetes/kubernetes#71305
(still to no avail even after restart)

@erikwilson
Copy link
Contributor

It is probably a good idea to run legacy iptables on the RPi4, but the issue can be resolved by removing or updating /var/lib/rancher/k3s/server/node-passwd (https://rancher.com/docs/k3s/latest/en/configuration/#node-registration)

@marcstreeter
Copy link
Author

I don't see either file on the master(bottom) or worker(top)

image

@erikwilson
Copy link
Contributor

Sorry, from the docs and the logs it should be /var/lib/rancher/k3s/server/cred/node-passwd

@marcstreeter
Copy link
Author

first of all, many thanks for pointing me in some direction - I moved the file out of that directory ( as a way of "removing" but with the option to replace in case I misunderstood) and restarted all the RPi's - no effect. I also uninstalled the workers and then reinstalled them (now with that file gone) no effect. Am I misunderstanding something?

@erikwilson
Copy link
Contributor

Ah, thanks for trying that out. Apologies, the issue is that both nodes have the hostname raspberrypi, if the names are unique the error should go away. The log messages could probably be made more useful in that respect.

@marcstreeter
Copy link
Author

ahhh that was it. I had set up raspberry pi's before and somehow forgot to do that. I'll make sure I make a note to not repeat the same mistake. Thank you Erik for your patience and help!

@alexbarcelo
Copy link

Sorry to add a little noise, but I was having those exact symptoms due to a completely different problem: #802

Let me add this reference here just in case some future users end up here with this "Node password rejected" error (which was exactly what I was having). My problem was related to the credentials being stored in the server and not cleaned up because some dirty operations and errors, which is what is discussed in this other #802 issue.

I knew nothing about that credential file in the server and thus I was completely missing the point. Maybe this will happen to somebody else and they will end up here, just like me. Sorry for the noise to everyone involved in this issue. \shrug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants