Skip to main content

Troubleshoot the cluster

This page explains where furyctl writes its logs and files, and how to correct the most frequent errors.

Logs​

furyctl writes a log file for each run in <outdir>/.furyctl/, with the name furyctl.<timestamp>-<random>.log. The default <outdir> is your home folder. The log file uses the JSON format.

  • To write the log to a different file, use --log <path>. To show the log on the terminal, use --log stdout.
  • To get the debug messages of furyctl, use -D (--debug). Without -D, the log file has no debug messages of furyctl. The lines with "level":"debug" are the output of the tools that furyctl runs, for example Terraform, Ansible and kubectl. The action field of each line shows the command.
  • If a tool fails, furyctl shows the last 10 lines of its output, and writes the full output to <outdir>/.furyctl/logs/<name>-<date>.log. The error message gives the path of this file.

To use a terminal without colors and animations, for example in CI, add --no-tty.

Files on your machine​

furyctl works in <outdir>/.furyctl/<cluster-name>/, where <cluster-name> is metadata.name of the configuration file. You can examine these folders to find what furyctl applied:

FolderContent
infrastructure/, kubernetes/, distribution/, plugins/The files that furyctl rendered for each phase: for example the Ansible inventory hosts.yaml and the playbooks of the OnPremises provider, and the manifests in distribution/manifests/.
vendor/The modules and installers. furyctl apply downloads them again at each run, unless you use --skip-deps-download.
bin/The tools (kubectl, kustomize, helm, and more) at the versions that the SD version needs.

The Terraform state of the EKSCluster provider is in the S3 bucket of the configuration file, not on your machine.

State in the cluster​

furyctl keeps its state in the kube-system namespace:

ResourceContent
Secret furyctl-configThe last configuration file that furyctl applied.
Secret furyctl-kfdThe kfd.yaml of the SD version that furyctl applied.
ConfigMap furyctl-upgrade-stateThe progress of the last upgrade.

Commands that help​

CommandWhat it shows
furyctl get cluster-infoThe cluster name, the SD version, the provider, the modules, the nodes and the status of an upgrade, from the state in the cluster.
furyctl diffThe differences between your configuration file and the configuration that furyctl applied last.
furyctl validate configThe errors in the configuration file.
furyctl validate dependenciesThe missing tools, the wrong tool versions and the missing environment variables.
furyctl apply --dry-runThe files that furyctl would render, without changes to the cluster.

Frequent errors​

ErrorCause and correction
lock file exists. Last execution finished abnormally or there may be another instance of furyctl running with PID <pid>furyctl uses a lock file for each cluster, so that two runs do not change the cluster at the same time. Make sure that no other furyctl process runs, then delete the lock file. The error message gives its path.
wrong tool version - installed = X, expected = YA tool has a version that the SD version does not support. Run furyctl apply without --skip-deps-download, so that furyctl downloads the correct version.
missing binary from vendor folderYou used --skip-deps-download, but furyctl did not download the tools before. Run the command once without this flag.
missing environment variables, either AWS_PROFILE or ...EKSCluster Set AWS_PROFILE, or the AWS credential variables that the message lists.
kubernetes API is not reachable please check your VPN connectionEKSCluster The API server is private. Connect to the VPN, or add --vpn-auto-connect. If OpenVPN is not installed, install it.
to upgrade the cluster, run the command again with the --upgrade flagYou changed the SD version in the configuration file. Run furyctl apply --upgrade. See Upgrade the cluster.
upgrade path not foundfuryctl has no upgrade path from your SD version to the new one. Run furyctl get upgrade-paths, and use the latest furyctl.
unsupported SD versionThe SD version in the configuration file does not exist. Make sure that the version starts with v, for example v1.36.0.

If furyctl shows the warning The specified SD version ... is not supported by this version of furyctl, the run continues, but the result is not tested. Use a furyctl version that supports your SD version: run furyctl get supported-versions.

Continue after a failure​

  • During an apply, use --start-from to restart from a phase. See Restart from a phase.
  • During an upgrade, run furyctl apply --upgrade again: furyctl continues from the last phase that completed. See Upgrade failures.
  • If the distribution phase skips some modules, the cluster has no default StorageClass. See Apply the configuration.

If you cannot correct the problem, report an issue and include the log file.