bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 56쪽 중 27쪽
/2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FNaxhvufEWJRtXn6I1Xvi%2Fimage.png?alt=media&token=839054af-cba6-45d1-95db-86fd3f0d1822" alt="" width="309"><figcaption></figcaption></figure>
# Common Troubleshooting Steps
Here are some common questions and answers:
1. [How do I know my Node is running in the CLI?](/xai-network/en/about-xai/sentry-key-setup/common-troubleshooting-steps/how-do-i-know-my-node-is-running-in-the-cli)
2. [How do I KYC if I'm using the CLI?](/xai-network/en/about-xai/sentry-key-setup/common-troubleshooting-steps/how-do-i-kyc-if-im-using-the-cli)
3. [How can I see my rewards?](/xai-network/en/about-xai/sentry-key-setup/common-troubleshooting-steps/how-can-i-see-my-rewards)
4. [I see some crashing, inconsistent emissions / missing revert data errors. What should I do?](/xai-network/en/about-xai/sentry-key-setup/common-troubleshooting-steps/crashing-inconsistent-emissions-missing-revert-data-errors)
5. [According to BlockPass, my KYC is approved, but the desktop app still says I am not approved. What should I do?](/xai-network/en/about-xai/sentry-key-setup/common-troubleshooting-steps/according-to-blockpass-my-kyc-is-approved-but-the-desktop-app-still-says-i-am-not-approved)
6. [I see "Transaction in progress" message after assigning my wallet. Did my wallet not get assigned?](/xai-network/en/about-xai/sentry-key-setup/common-troubleshooting-steps/i-see-transaction-in-progress-message-after-assigning-my-wallet.-did-my-wallet-not-get-assigned)
# How do I run a Xai Node on VPS?
# Step 1: Choose a VPS
Choose a VPS provider and purchase the package that matches the [minimum hardware requirements](/xai-network/en/about-xai/sentry-keys-explained/sentry-node-hardware-requirements). Make sure to select **Ubuntu 22.04** as your Operating System. The location of your VPS has no influence on whether you can pass the KYC or claim rewards.
Here are some VPS options (prices may vary based on your location and the plan you choose):
* [Racknerd](https://www.racknerd.com/)
* [Hostwinds](https://www.hostwinds.com/)
* [Digital Ocean](https://www.digitalocean.com/)
After your purchase, you’ll receive login details in your email.
# Step 2: Log in to a server
Follow these steps on on your laptop/PC:
1. Open a terminal window on your laptop or PC to enter commands
{% hint style="info" %}
* On Windows, open the program called Command Prompt.
* On Mac, open the program called Terminal.
{% endhint %}
2. To connect to VPS, use the `ssh` command from your terminal: 
<pre><code><strong>ssh $USER@$REMOTE_SERVER
</strong></code></pre>
Example:
```
ssh root@706.437.14.562
```
{% hint style="info" %}
If you’re using Windows, the SSH Client is available starting from [Windows 10](https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview) version. For earlier versions, please use [PuTTY](https://www.putty.org/) or other alternatives.
{% endhint %}
3. When you log in the first time, you’ll see the following message: 
```
The authenticity of host '$REMOTE_SERVER' can`t be established.
ED25519 key fingerprint is SHA256:...
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
```
Type `yes` and press `Enter`. This will prompt you to input a **password**. Note, all Linux systems don’t reveal passwords when you type them. Finish entering your password and click `Enter`.
{% hint style="info" %}
If your credentials are correct, you will see the following message:
```
Warning: Permanently added '$REMOTE_SERVER' (ECDSA) to the list of known hosts.
root@$REMOTE_SERVER`s password:
Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 4.4.0-169-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
0 packages can be updated.
0 updates are security updates.
```
{% endhint %}
{% hint style="success" %}
Going forward, any time you want to log in to your VPS via the terminal, enter the command: 
<pre><code><strong>ssh $USER@$REMOTE_SERVER
</strong></code></pre>
{% endhint %}
# Step 3: Set up Xai Sentry Node
1. Ensure your system is up to date by running the following command: 
```
sudo apt update
```
2. Install the required dependencies, `curl` and `unzip`, using the following command: 
```
sudo apt install curl unzip
```
3. Fetch the latest version of the Xai Command Line Interface (CLI) using `curl`: 
```
curl -L -o sentry-node-cli-linux.zip https://github.com/xai-foundation/sentry/releases/latest/download/sentry-node-cli-linux.zip
```
4. Unzip the file: 
```
unzip sentry-node-cli-linux.zip
```
# Step 4: Set up a Screen
[Screen](https://www.gnu.org/software/screen/manual/screen.html) will allow you to keep running the CLI even if you’re disconnected or you log out from your server.
1. Install screen: 
```
sudo apt update && sudo apt install screen
```
2. Start a screen session: 
```
screen -S xai
```
{% hint style="info" %}
This will open a screen session, create a new window, and start a shell in that window.
The first time you start a screen, you’ll see a page of license information. You can press the `Space` bar to read the second page or `Enter` to return to the command prompt.
To verify that you set up a Screen session, type `screen -ls` in a second terminal. You should see a message that looks as follows:
```
There is a screen on:
82824.xai (12/09/2023 11:04:52 AM) (Attached)
1 Socket in /run/screen/@root.
```
{% endhint %}
# Step 5: Start Xai Sentry Node
1. Now that you set up a Screen, you can start Xai CLI: 
```
./sentry-node-cli-linux
```
2. To receive node rewards, boot your operator: 
```
boot-operator
```
3. This will prompt you to enter the private key of your **sentry wallet**. Paste the key and press `Enter`.
4. Wait a few minutes until you see the following message: 
```
The operator has finished booting. The operator is running successfully. esXAI will accrue every few days.
Current timestamp: 2023-12-10T01:47:04.273Z. The operator is still running successfully. esXAI will accrue every few days.
```
5. Detach from your Screen session before logging out. You can detach from your current Screen session by **pressing**:
* `ctrl a + d` (Windows)
* `control a + d` (macOS)
or
```
screen -d <screen_id>
```
where `<screen_id>` is the numbers of your Screen session.
Example:
```
screen -d 82824
```
{% hint style="info" %}
Make sure to **Detach** before exiting the server. Detached mode allows you to exit your Screen session without closing or interrupting any processes that are happening within that session. That means that everything will keep running in the background even if you log out from your VPS.
{% endhint %}
6. You can now safely log out from your server:
```
logout
```
# Step 6: Monitor your Node via Screen
### Show all Screen sessions
To see all Screen sessions, type `screen -ls` . You should see a message that looks as follows:
```
There is a screen on:
82824.xai (12/09/2023 11:04:52 AM) (Detached)
1 Socket in /run/screen/@root.
```
### Kill/Delete a Screen session <a href="#id-210-killdelete-a-screen-session" id="id-210-killdelete-a-screen-session"></a>
If you have multiple Screen sessions, you can kill the one you don’t need as follows:
```
screen -XS <screen_id> quit
```
> Replace the following values:\
> -`<screen_id>` - the id of your current Screen session\
> -Example: `screen -xs 82824 quit`
### Reattach to your Screen session <a href="#id-211-reattach-to-your-screen-session" id="id-211-reattach-to-your-screen-session"></a>
Anytime you want to see the logs from your node, you can reattach to that session as follows:
 Comment
```
screen -r <screen_id>
```
where `<screen_id>` is the numbers of your Screen session.
Example:
```
screen -r 82824
```
Note, currently you can’t see the rewards using the CLI. You need to install a desktop app for it. For more details refer to [this video](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/how-to-videos/command-line-interface-cli/track-accrued-esxai).
### Detach from your Screen session <a href="#id-28-detach-from-your-screen-session" id="id-28-detach-from-your-screen-session"></a>
You can detach from your current Screen session by **pressing**:
* `ctrl a + d` (Windows)
* `control a + d` (macOS)
or
```
screen -d <screen_id>
```
where `<screen_id>` is the numbers of your Screen session.
Example:
```
screen -d 82824
```
Make sure to **Detach** before exiting the server. Detached mode allows you to exit your Screen session without closing or interrupting any processes that are happening within that session. That means that everything will keep running in the background even if you log out from your VPS.
You can now safely log out from your server:
```
logout
```
# Step 7: Updating your node
Following these steps will help you set up and maintain your Xai Sentry Node effectively. Remember to regularly check for updates and monitor your node’s performance.
1. Login to your server using the `ssh` command from your terminal:
```
ssh $USER@$REMOTE_SERVER
```
2. Reattach to your Screen session:
```
screen -r <screen_id>
```
3. Replace the following values:\
\- `<screen_id>` - the id of your current Screen session\
\- Example: `screen -r 82824`
4. Stop the operator:
* `ctrl + c` (Windows)
* `control + c` (macOS)
5. Remove your current CLI:
```
rm sentry-node-cli-linux sentry-node-cli-linux.zip
```
7. Download the latest CLI. You don't need to download the file on your computer since this command takes it from the GitHub website.
```
curl -L -o sentry-node-cli-linux.zip https://github.com/xai-foundation/sentry/releases/latest/download/sentry-node-cli-linux.zip
```
8. Unzip the file:
```
unzip sentry-node-cli-linux.zip
```
9. Start CLI:
```
./sentry-node-cli-linux
```
10. Boot the operator:
```
boot-operator
```
11. Paste the private key of your **Sentry Wallet** and press `Enter`.
12. Wait until the operator has finished booting and you see the following message:
```
The operator has finished booting. The operator is running successfully. esXAI will accrue every few days.
Health check complete, subscription to 'ChallengeSubmitted' is still active.
```
13. Detach from your Screen session:
* `ctrl a + d` (Windows)
* `control a + d` (macOS)
14. Logout from your server:
```
logout
```
{% hint style="info" %}
To KYC and view rewards, you need the desktop app, which is not covered in the CLI.
{% endhint %}
# How do I prevent others from using my Sentry Wallet or Operator?
{% tabs %}
{% tab title="Desktop App" %}
As of update v1.0.33, a Sentry Wallet owner can determine what wallets it operates on. To use this feature on the Desktop App, follow these steps:
1. Go to the Sentry Wallet page in the desktop app.
2. Click on Allowed Wallets. A drawer will appear on the right side of the desktop app showing a list of wallets that have been assigned to your Sentry Wallet.
3. Choose the wallets you want to allow your Sentry Wallet to operate on by checking the boxes next to those wallets.
{% hint style="info" %}
* If there are any wallets listed that you do not recognize, it is recommended that you uncheck the box next to that wallet.
* If the Sentry Wallet does not contain any Keys, it is recommended not to whitelist the Sentry Wallet.
* By allowing a wallet to be operated on by your Sentry, you are accepting the responsibility of paying the gas fee associated with submitting an assertion and claiming rewards.
{% endhint %}
4. Click "Apply" at the bottom of the drawer.
{% hint style="info" %}
* After clicking "Apply," the Sentry will automatically restart.
* Any Keys associated with the allowed wallets will appear on the Sentry Wallet page.
* Any Keys associated with the wallet NOT allowed will no longer appear on the Sentry Wallet page.
{% endhint %}
{% endtab %}
{% tab title="CLI" %}
As of update v1.0.33, users can select which wallets to operate on. To use this feature in the CLI, follow these steps:
1. Run the `boot-operator` command. Then hit 'Enter'.
2. Enter the private key of the operator. Then hit 'Enter'.
3. You will be asked if you want to use a whitelist for the operator runtime. If you want to prevent others from utilizing your operator to pay the gas for operating their Keys, then enter "Y". Then hit 'Enter'.
{% hint style="info" %}
It is strongly recommended to have a whitelist for the operator runtime. The only time it may be acceptable to enter "N" when prompted in this step is if you do not care about paying the gas to operate someone else's Key(s).
{% endhint %}
4. Use the Up & Down arrow keys on your keyboard to navigate to the wallet you want to add to the whitelist, then hit Spacebar to select that wallet.
{% hint style="info" %}
It is recommended that you only whitelist the wallet(s) containing Key(s). If you see any wallets you do not recognize, it is recommended that you do not select those wallets.
{% endhint %}
4. After repeating Step 4 for each wallet you want to add to the whitelist, hit 'Enter'.
{% endtab %}
{% endtabs %}
# Why don't I see the KYC link on the desktop app?
If you do not see the KYC link in the "Actions Required" sidebar, it means you have not [whitelisted your wallets](/xai-network/en/about-xai/sentry-key-setup/common-troubleshooting-steps/how-do-i-prevent-others-from-using-my-sentry-wallet-or-operator). Whitelisting the wallets ensures that only the wallets you give permission to are allowed to be operated on by your Sentry Wallet. Once you complete the steps to whitelist your wallets, the KYC link will appear for each wallet you have whitelisted.
Here's what the KYC alert in the "Actions Required" sidebar looks like when you have not selected wallets to whitelist:
<figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FSVRqb0xQa8UONy3GFfVE%2Fimage.png?alt=media&token=c12f14ba-2a14-44ca-bfe2-4a50b83cc24f" alt=""><figcaption></figcaption></figure>
Once you have selected the wallets you want to whitelist, you will see the KYC alert with the "Select your country" dropdown option and the "Begin KYC" button like this:
<figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2Fr8nOZwsounZZzzBOrcwo%2Fimage.png?alt=media&token=88741d10-9db5-406b-a63c-25d440823705" alt=""><figcaption></figcaption></figure>
# How do I know my Node is running in the CLI?
If you have already run the `boot-operator` command, you can scroll up in the CLI to see the `Started listener for new challenges` message. If you see this it means your node is running properly.
If you do not see this message, then follow [these steps](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3b-start-the-sentry-wallet-a.k.a-operator) to run your node.
# How do I KYC if I'm using the CLI?
1. [Download and install the desktop app](/xai-network/en/about-xai/sentry-key-setup/step-1-download-and-run-the-xai-sentry-node).
2. Navigate to the Keys page.
3. Click "+Add wallet".
4. In the right sidebar, click Assign Wallet.
5. Assign your wallet using the web flow.
6. Return to the desktop app and click Start Sentry.
7. Click "Start KYC".
8. Select the country you reside in in the right sidebar.
9. Click "Start KYC" again.
You will be directed to the BlockPass website to continue the KYC process.
# How can I see my rewards?
{% hint style="info" %}
Node rewards are granted every hour to Keys that participate in a challenge. See more info [**here**](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/accruing-node-rewards).
{% endhint %}
You can see your accrued esXAI rewards in the desktop app. After you [download and install the desktop app](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/step-2-download-and-run-the-xai-sentry-node), follow these steps:
1. Navigate to the Keys page.
2. Click "+Add wallet".
3. In the right sidebar, enter the the public key of the wallet you want to view accrued esXAI for.
4. Click "Add Wallet".
You will see accrued esXAI rewards for each Key you add. You can also see the total esXAI at the top of the page.
# Crashing, inconsistent Emissions / missing revert data errors
This can be caused by running the `boot-operator` command too many times or by an unstable internet connection. Check the following to resolve these issues:
1. Check to make sure that you're running only one instance of the CLI. If you have multiple instances running, close all of them.
2. Check to make sure you're not running the Sentry on the desktop app at the same time as the CLI. If you are, pause the Sentry Wallet on the desktop app.
3. Make sure your internet connection is stable.
If all steps above are completed, then proceed to the following steps:
1. Close and reopen the CLI.
2. Run the `boot-operator` command.
# According to BlockPass, my KYC is approved, but the desktop app still says I am not approved
Check back in the Xai Node desktop app 24 hours after being approved by BlockPass. If your status in the app is still not approved, reach out our Telegram or Discord.
\
If you have failed KYC and you think you should not have, email <support@blockpass.org>.
# I see "Transaction in progress" message after assigning my wallet. Did my wallet not get assigned?
After clicking "Assign wallet" in the desktop app, you will be redirected to your web browser where you can connect the wallet containing the Keys. While you're on this page, the desktop app will display a "Transaction in progress" modal. When you complete assigning your wallet in the browser, you can click "Return to Xai Client" and it will direct you back to the desktop app. The "Transaction in progress" modal should go away and you should see a modal confirming the successful transaction. If the "Transaction in progress" modal is still visible after successfully assigning your wallet to the Sentry and returning from the web browser, you can close the modal. Then, proceed to the Sentry Wallet page, click "Pause Sentry" at the top, then click "Start Sentry". You should see your newly assigned wallet populate on this page.
---
[Next Page](https://xai-foundation.gitbook.io/xai-network/llms-full.txt/3)
# How do I delegate my Keys to another user's operator?
#### Here are the steps to delegate your keys to another user's operator:
1. Go to <https://sentry.xai.games/#/assign-wallet/**\\[insert-other-operator-public-address>]\*\* (be sure to edit this URL)
2. Click "Assign wallet to Sentry"
3. Sign the transaction
Then tell the other user to stop & restart their Sentry (or if they are using a CLI, ask them to run the boot-operator command again).
#### If you decide to no longer delegate your keys to that user's operator, you can use the steps below:
1. Go to <https://sentry.xai.games/#/unassign-wallet/**\\[insert-other-operator-public-address>]\*\* (be sure to edit this URL)
2. Click "Unassign wallet from Sentry"
3. Sign the transaction
Then tell the other user to stop & restart their Sentry (or if they are using a CLI, ask them to run the boot-operator command again).
# Why did my Accrued esXAI balance decrease?
There are two ways your Accrued esXAI balance may decrease and neither one is an issue:
1. If you [passed KYC](/xai-network/en/about-xai/sentry-key-setup/how-to-videos/desktop-client/claim-node-rewards-after-passing-kyc), you will begin claiming node rewards. When this happens, your **esXAI balance** will increase and your **Accrued esXAI (unclaimed)** balance will de프로젝트로 돌아가기