Closed dalosa14 closed 4 months ago
@dalosa14 Try ssh'ing into your server that fails to deploy, and execute the failing shell script manually to see the output. Also copy paste the content in here please.
Also, your hetzner key may have been exposed, I removed it above. If is was the original, you need to change it.
Thanks, I have solved it now by removing the extra_firewall_rules array in the Terraform deployment. Something was wrong there.
Description
module.kube-hetzner.null_resource.agent_config["0-0-agent-1"] (remote-exec): Updated config.yaml detected, restart of k3s service required module.kube-hetzner.null_resource.agent_config["0-0-agent-1"] (remote-exec): No active k3s or k3s-agent service found module.kube-hetzner.null_resource.agent_config["0-0-agent-1"] (remote-exec): k3s service or k3s-agent service (re)started successfully module.kube-hetzner.null_resource.agent_config["0-0-agent-1"]: Creation complete after 3s [id=8608536910988410102] module.kube-hetzner.null_resource.first_control_plane (remote-exec): + /etc/cloud/rename_interface.sh module.kube-hetzner.null_resource.agent_config["1-0-agent-2"] (remote-exec): Updated config.yaml detected, restart of k3s service required module.kube-hetzner.null_resource.agent_config["1-0-agent-2"] (remote-exec): No active k3s or k3s-agent service found module.kube-hetzner.null_resource.agent_config["1-0-agent-2"] (remote-exec): k3s service or k3s-agent service (re)started successfully module.kube-hetzner.null_resource.agent_config["1-0-agent-2"]: Creation complete after 3s [id=3098530449610849431] module.kube-hetzner.null_resource.agent_config["2-0-agent-3"] (remote-exec): Updated config.yaml detected, restart of k3s service required module.kube-hetzner.null_resource.agent_config["2-0-agent-3"] (remote-exec): No active k3s or k3s-agent service found module.kube-hetzner.null_resource.agent_config["2-0-agent-3"] (remote-exec): k3s service or k3s-agent service (re)started successfully module.kube-hetzner.null_resource.agent_config["2-0-agent-3"]: Creation complete after 4s [id=4772292629680101882] module.kube-hetzner.null_resource.first_control_plane: Still creating... [10s elapsed] module.kube-hetzner.null_resource.first_control_plane (remote-exec): + mkdir -p /etc/rancher/k3s module.kube-hetzner.null_resource.first_control_plane (remote-exec): + '[' -f /tmp/config.yaml ']' module.kube-hetzner.null_resource.first_control_plane (remote-exec): + mv /tmp/config.yaml /etc/rancher/k3s/config.yaml module.kube-hetzner.null_resource.first_control_plane (remote-exec): + chmod 0600 /etc/rancher/k3s/config.yaml module.kube-hetzner.null_resource.first_control_plane (remote-exec): + '[' -e /etc/rancher/k3s/k3s.yaml ']' module.kube-hetzner.null_resource.first_control_plane (remote-exec): + cat module.kube-hetzner.null_resource.first_control_plane (remote-exec): + set -a module.kube-hetzner.null_resource.first_control_plane (remote-exec): + source /etc/environment module.kube-hetzner.null_resource.first_control_plane (remote-exec): + set +a module.kube-hetzner.null_resource.first_control_plane (remote-exec): + cat module.kube-hetzner.null_resource.first_control_plane (remote-exec): + cat module.kube-hetzner.null_resource.first_control_plane (remote-exec): + timeout 180s /bin/sh -c 'while ! ping -c 1 1.1.1.1 >/dev/null 2>&1; do echo "Ready for k3s installation, waiting for a successful connection to the internet..."; sleep 5; done; echo Connected' module.kube-hetzner.null_resource.first_control_plane (remote-exec): Connected module.kube-hetzner.null_resource.first_control_plane (remote-exec): + curl -sfL https://get.k3s.io module.kube-hetzner.null_resource.first_control_plane (remote-exec): + INSTALL_K3S_SKIP_START=true module.kube-hetzner.null_resource.first_control_plane (remote-exec): + INSTALL_K3S_SKIP_SELINUX_RPM=true module.kube-hetzner.null_resource.first_control_plane (remote-exec): + INSTALL_K3S_CHANNEL=v1.29 module.kube-hetzner.null_resource.first_control_plane (remote-exec): + INSTALL_K3S_EXEC='server ' module.kube-hetzner.null_resource.first_control_plane (remote-exec): + sh - module.kube-hetzner.null_resource.first_control_plane: Still creating... [20s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [30s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [40s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [50s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [1m0s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [1m10s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [1m20s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [1m30s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [1m40s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [1m50s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [2m0s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [2m10s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [2m20s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [2m30s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [2m40s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [2m50s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [3m0s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [3m10s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [3m20s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [3m30s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [3m40s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [3m50s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [4m0s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [4m10s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [4m20s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [4m30s elapsed] module.kube-hetzner.null_resource.first_control_plane: Still creating... [4m40s elapsed] module.kube-hetzner.null_resource.first_control_plane (remote-exec): + /sbin/semodule -v -i /usr/share/selinux/packages/k3s.pp module.kube-hetzner.null_resource.first_control_plane (remote-exec): Attempting to install module '/usr/share/selinux/packages/k3s.pp': module.kube-hetzner.null_resource.first_control_plane (remote-exec): libsemanage.semanage_direct_install_info: Overriding k3s module at lower priority 200 with module at priority 400. module.kube-hetzner.null_resource.first_control_plane (remote-exec): Ok: return value of 0. module.kube-hetzner.null_resource.first_control_plane (remote-exec): Committing changes: module.kube-hetzner.null_resource.first_control_plane (remote-exec): Ok: transaction number 11. module.kube-hetzner.null_resource.first_control_plane (remote-exec): + restorecon -v /usr/local/bin/k3s module.kube-hetzner.null_resource.first_control_plane (remote-exec): restorecon: lstat(/usr/local/bin/k3s) failed: No such file or directory ╷ │ Error: remote-exec provisioner error │ │ with module.kube-hetzner.null_resource.first_control_plane, │ on .terraform/modules/kube-hetzner/init.tf line 70, in resource "null_resource" "first_control_plane": │ 70: provisioner "remote-exec" { │ │ error executing "/tmp/terraform_978355524.sh": Process exited with status 255 ╵
Kube.tf file
Screenshots
No response
Platform
wsl2