Skip to main content
Prepare your case

Get logs from a machine that never joined the cluster

For release

Use this when a machine failed during provisioning or boot and never registered with Kubernetes. Neither SSH nor kubectl reaches it, so you collect from outside the OS: the remote console and the Hetzner rescue system.

For example: a bare-metal server is stuck in Provisioning and never becomes a node, or a cloud server was created but never shows up in kubectl get nodes.

Pause the Machine 

A machine that misses its join timeout gets deleted or reprovisioned, which wipes the root disk and the logs with it. Freeze it first:

				$ kubectl annotate machine <machine-name> cluster.x-k8s.io/paused=true
			

Confirm it is unreachable 

				$ ping <server-ip>
$ ssh -v -p 100 -i <path-to-ssh-key> root@<server-ip>
			

If ping fails or SSH times out, the machine crashed during boot or its network never came up.

Watch the boot on a remote console 

Early-boot failures never reach a log file, so you only see them on a console.

Watch for device-mapper: verity: data block ... is corrupted (dm-verity), kernel panic traces, NIC messages (virtio_net on cloud; bnxt_en, e1000e, igb, r8169 on bare metal), and systemd hanging on first boot. Screenshot every error for the case.

Boot the rescue system 

If it boots without a panic but stays unreachable, boot Hetzner's RAM-based rescue system:

  • Hetzner Cloud: Rescue tab, pick your SSH key, Enable Rescue & Power Cycle (docs⁠).
  • Bare metal: Rescue tab in Robot, pick your key, Activate rescue system, then Reset → Execute automatic hardware reset (docs⁠). Give it a few minutes.

Then ssh root@<server-ip> -i <path-to-ssh-key>.

Mount the disk and read the logs 

Find the DATA partition with lsblk -f (ext4, usually /dev/vda5 on cloud, /dev/nvme0n1p5 or /dev/sda5 on bare metal), and mount it read-only:

				# mount -o ro /dev/disk/by-label/DATA /mnt
# ls -la /mnt/var/log/syself/provision/
# cat /mnt/var/log/syself-activate.log
# journalctl -D /mnt/var/log/journal
			

provision/ holds what the provisioner collected before it rebooted: partition dumps, storage layout, sysctl values, and image verification data. Whether syself-activate.log exists tells us where it failed:

  • It does not exist: the server died in early boot (bootloader, kernel panic, or dm-verity) before the OS reached activation.
  • It exists: the end of the file shows the network setup, certificate generation, and the attempt to join the control plane. A network failure or a rejected token shows up there.

Bundle it 

				# tar -czf /tmp/unreachable-machine-logs.tar.gz -C /mnt/var/log syself syself-activate.log
$ scp root@<server-ip>:/tmp/unreachable-machine-logs.tar.gz .
			

Send the archive, the console screenshots, the output of kubectl describe machine <machine-name>, and the server type and ID (Cloud Server ID or Robot Server ID).

Clean up 

Run umount /mnt. If the OS image failed verification, the machine has to be reprovisioned; see Serial console and rescue system. Turn rescue off and power cycle (Cloud), or reset without rescue (Robot). Then resume the Machine:

				$ kubectl patch machine <machine-name> --type=json \
  -p='[{"op":"remove","path":"/metadata/annotations/cluster.x-k8s.io~1paused"}]'
			

Not your case?

Back to your email

Add it to your email with the rest, then send it to us.