ripe-photographer-20183
08/19/2025, 8:06 PMcurl -sfL <https://get.rke2.io> | INSTALL_RKE2_VERSION="v1.32.7+rke2r1" INSTALL_RKE2_TYPE="agent" sh -
• Enabled the service systemctl enable rke2-agent.service
• Added the /etc/rancher/rke2/config.yaml
config file, made sure the token is correct generated from the server node and I use https with port 9345
• Started the service systemctl start rke2-agent.service
However, running journalctl -u rke2-agent -f
the logs show this, couldn't find anything related to this in the docs, any idea?
Aug 19 20:05:59 worker1.dcodes.dev rke2[14080]: time="2025-08-19T20:05:59Z" level=info msg="Waiting to retrieve agent configuration; server is not ready: failed to retrieve configuration from server: not authorized"
Aug 19 20:06:08 worker1.dcodes.dev rke2[14080]: time="2025-08-19T20:06:08Z" level=info msg="Waiting to retrieve agent configuration; server is not ready: failed to retrieve configuration from server: not authorized"
Aug 19 20:06:16 worker1.dcodes.dev rke2[14080]: time="2025-08-19T20:06:16Z" level=info msg="Waiting to retrieve agent configuration; server is not ready: failed to retrieve configuration from server: not authorized"
creamy-pencil-82913
08/19/2025, 8:28 PMcreamy-pencil-82913
08/19/2025, 8:28 PMripe-photographer-20183
08/19/2025, 8:33 PMripe-photographer-20183
08/19/2025, 8:34 PMrke2 token rotate
on the server node gives this error:
rke2 token rotate
WARNING: Recommended to keep a record of the old token. If restoring from a snapshot, you must use the token associated with that snapshot.
FATA[0000] not authorized
ripe-photographer-20183
08/19/2025, 8:36 PMjournalctl
from the server node shows this:
journalctl -u rke2-server -f
Aug 19 20:35:02 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:02Z" level=error msg="Failed to authenticate request from 64.112.43.185:43264: invalid username/password combination"
Aug 19 20:35:02 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:02Z" level=error msg="Sending HTTP/1.1 401 response to 64.112.43.185:43264: not authorized"
Aug 19 20:35:09 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:09Z" level=error msg="Failed to authenticate request from 64.112.43.185:43294: invalid username/password combination"
Aug 19 20:35:09 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:09Z" level=error msg="Sending HTTP/1.1 401 response to 64.112.43.185:43294: not authorized"
Aug 19 20:35:16 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:16Z" level=error msg="Failed to authenticate request from 64.112.43.185:43028: invalid username/password combination"
Aug 19 20:35:16 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:16Z" level=error msg="Sending HTTP/1.1 401 response to 64.112.43.185:43028: not authorized"
Aug 19 20:35:24 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:24Z" level=error msg="Failed to authenticate request from 64.112.43.185:60120: invalid username/password combination"
Aug 19 20:35:24 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:24Z" level=error msg="Sending HTTP/1.1 401 response to 64.112.43.185:60120: not authorized"
Aug 19 20:35:33 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:33Z" level=error msg="Failed to authenticate request from 64.112.43.185:47492: invalid username/password combination"
Aug 19 20:35:33 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:33Z" level=error msg="Sending HTTP/1.1 401 response to 64.112.43.185:47492: not authorized"
Aug 19 20:35:41 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:41Z" level=error msg="Failed to authenticate request from 64.112.43.185:56476: invalid username/password combination"
Aug 19 20:35:41 k8s.dcodes.dev rke2[1664509]: time="2025-08-19T20:35:41Z" level=error msg="Sending HTTP/1.1 401 response to 64.112.43.185:56476: not authorized"
It's obvious the server is getting the request but is sending back a 401 response, don't know why, and I'm sure the token is correct.creamy-pencil-82913
08/19/2025, 8:37 PMcreamy-pencil-82913
08/19/2025, 8:38 PMripe-photographer-20183
08/19/2025, 8:38 PMcreamy-pencil-82913
08/19/2025, 8:39 PMripe-photographer-20183
08/19/2025, 8:39 PMcreamy-pencil-82913
08/19/2025, 8:41 PMripe-photographer-20183
08/19/2025, 8:41 PMcreamy-pencil-82913
08/19/2025, 8:42 PMcreamy-pencil-82913
08/19/2025, 8:42 PMripe-photographer-20183
08/19/2025, 8:42 PMcreamy-pencil-82913
08/19/2025, 8:42 PMcreamy-pencil-82913
08/19/2025, 8:43 PMripe-photographer-20183
08/19/2025, 8:43 PMripe-photographer-20183
08/19/2025, 8:44 PMrke2 token rotate
shouldn't give me a "not authorized" errorcreamy-pencil-82913
08/19/2025, 8:51 PMcreamy-pencil-82913
08/19/2025, 8:51 PMripe-photographer-20183
08/19/2025, 9:05 PM