This message was deleted.
# general
a
This message was deleted.
a
What do the logs state?
b
mmm I’m not quite sure. How can I get them?
d
use kubernetes dashboard
and go to jobs, there u will have all the jobs running, on the right side of each job u will 3 dots, click on it, u will see logs. At the end, u will see the latest error occured
b
Is not available the CAPI cluster I can’t go through to it to get the jobs
a
journalctl -u rke2-server
🙌 1
b
This is what I got
Sorry is too long to paste it in the chat
Oct 07 21:32:40 my-etcd-node1 sh[489]: + /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service
Oct 07 21:32:40 my-etcd-node1 systemd[1]: Starting Rancher Kubernetes Engine v2 (server)...
Oct 07 21:32:40 my-etcd-node1 sh[494]: Failed to get unit file state for nm-cloud-setup.service: No such file or directory
Oct 07 21:32:42 my-etcd-node1 rke2[548]: time="2022-10-07T21:32:42Z" level=warning msg="not running in CIS mode"
Oct 07 21:32:42 my-etcd-node1 rke2[548]: time="2022-10-07T21:32:42Z" level=fatal msg="failed to parse system-default-registry: registries must be valid RFC 3986 URI authorities: <http://34.233.44.173.nip.io/>"
Oct 07 21:32:42 my-etcd-node1 systemd[1]: rke2-server.service: Main process exited, code=exited, status=1/FAILURE
Oct 07 21:32:42 my-etcd-node1 systemd[1]: rke2-server.service: Failed with result 'exit-code'.
Oct 07 21:32:42 my-etcd-node1 systemd[1]: Failed to start Rancher Kubernetes Engine v2 (server).
Oct 07 21:32:47 my-etcd-node1 systemd[1]: rke2-server.service: Scheduled restart job, restart counter is at 1.
Oct 07 21:32:47 my-etcd-node1 systemd[1]: Stopped Rancher Kubernetes Engine v2 (server).
Oct 07 21:32:47 my-etcd-node1 systemd[1]: Starting Rancher Kubernetes Engine v2 (server)...
This is what I’ve found
I can’t connect to the cluster through the API
a
Looks like you deleted the attachment.
b
yes sorry I didn’t realize was confidential information in it so I had to delete it. But notice I paste you some important info about the issue i’m having.
a
Looks like an invalid parameter for your registry
b
Yes I noticed that all started when I’ve configured a repository that the url was an IP address, so I think all started there. So then I removed that configuration and left the default configuration with DockerHub, but I’m still facing the same issue. I don’t know how to fix it.
a
It looks like it's still trying to use your nip.io address. You don't need Https:// prefix. Just host:port
b
So I missed the port…right?
Cause was 10.x.x.x.nip.io
Something like that
a
Looks like you added a http prefix
b
Yes..To be honest at this point I don’t remember exactly but I believe I put it with http
a
Yeah. You need to remove that
b
Yes I removed it from Rancher UI but it seems the etcd node stucks in that error
Look this is the etcd pool
a
Does /etc/rancher/rke2/config.yaml exist on that node?
b
Let me check it
Yes it is
When I do a cat to that file it says cat: /etc/rancher/rke2/config.yaml: Is a directory
a
Does the registries.yaml list that registry with the http prefix?
b
Oh it is there?
Let me check it
This is what I got {“configs”{},“mirrors”null}
when I did a cat
a
Grep that folder for that registry reference
b
Sorry I’m kind of new How can I do that?
Just grep -rl “string” /etc/rancher/rke2/ ?
Any idea how to fix this? 🤔