-
Notifications
You must be signed in to change notification settings - Fork 286
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
v1-rke2/server-bootstrap: 403 Forbidden #5567
Comments
Are you sure you're passing the correct token to the second node when adding it to the cluster? |
I'm fairly certain. I had to recreate the token and copy it into /etc/rancher/rke2/config.yaml
|
I know for certain the right token is in place, at this point and it is still giving me this error. But, I had a followon question, when creating the HA server, how come it says that all the server control plane nodes should be added before the agents? |
Theres not really enough information provided here for me to really tell what's going on. Make sure that the uninstall removed all traces of the original install from the nodes, and confirm that you have the correct token from the new cluster when joining nodes. There's really not much else that will cause this.
It is a best practice to have servers with the etcd and control-plane nodes before adding agents. The agents should retry until everything is up, but you will probably get lots of warnings and errors on the nodes until things settle out. Is this causing problems in your environment? |
No problems, good to know that the agents should just keep retrying until the server is available though. |
So, now I have upgraded to 18.04 for both the first server and the second. I still can't add a second. Log produced on the first node with |
Do you have a proxy or something else that is blocking that connection? What do you get if you do |
|
no proxy, as far as I'm aware of |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
Environmental Info:
RKE2 Version: v1.27.11+rke2r1
Node(s) CPU architecture, OS, and Version:
Linux k8smaster 4.15.0-142-generic #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
I had an ubuntu 16.04 master node, a proxmox VM with nested virtualization enabled by using the "Host" cpu type. This seemed to work adding 2 windows agents. I needed to install longhorn block storage provider though, so I need 3 control plane nodes. So, I went through uninstall process and have started back up the k8smaster node again. When I try to add a second proxmox ubuntu 16.04 VM to the cluster the service won't start
Describe the bug:
fatal msg="starting kubernetes: preparing server: https://X.X.X.X:9345/v1-rke2/bootstrap: 403 Forbidden"
Steps To Reproduce:
Expected behavior:
I would expect to be able to add a second node
Actual behavior:
Adding a second ubuntu 16.04 rke2-server fails with /v1-rke2/server-bootstrap: 403 Forbidden
Additional context / logs:
Edited for clarity
The text was updated successfully, but these errors were encountered: