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 offuryctl. The lines with"level":"debug"are the output of the tools thatfuryctlruns, for example Terraform, Ansible and kubectl. Theactionfield of each line shows the command. - If a tool fails,
furyctlshows 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:
| Folder | Content |
|---|---|
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:
| Resource | Content |
|---|---|
Secret furyctl-config | The last configuration file that furyctl applied. |
Secret furyctl-kfd | The kfd.yaml of the SD version that furyctl applied. |
ConfigMap furyctl-upgrade-state | The progress of the last upgrade. |
Commands that help
| Command | What it shows |
|---|---|
furyctl get cluster-info | The cluster name, the SD version, the provider, the modules, the nodes and the status of an upgrade, from the state in the cluster. |
furyctl diff | The differences between your configuration file and the configuration that furyctl applied last. |
furyctl validate config | The errors in the configuration file. |
furyctl validate dependencies | The missing tools, the wrong tool versions and the missing environment variables. |
furyctl apply --dry-run | The files that furyctl would render, without changes to the cluster. |
Frequent errors
| Error | Cause 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 = Y | A 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 folder | You 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 connection | EKSCluster 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 flag | You changed the SD version in the configuration file. Run furyctl apply --upgrade. See Upgrade the cluster. |
upgrade path not found | furyctl has no upgrade path from your SD version to the new one. Run furyctl get upgrade-paths, and use the latest furyctl. |
unsupported SD version | The 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-fromto restart from a phase. See Restart from a phase. - During an upgrade, run
furyctl apply --upgradeagain:furyctlcontinues from the last phase that completed. See Upgrade failures. - If the
distributionphase skips some modules, the cluster has no defaultStorageClass. See Apply the configuration.
If you cannot correct the problem, report an issue and include the log file.