WatchDog Node Deployment Tutorial

In this guide, we'll walk you through the process of setting up your own SendingNetwork WatchDog node. WatchDog nodes act as supportive validators that produce evidence for proof of availability. This is crucial for assessing the relay availability of Edge nodes within the network. Operating as ordinary messaging clients, WatchDog nodes randomly select Edge nodes to relay challenge messages and earn rewards based on their challenge activities.

For more information about the nodes and network architecture, please refer to Introducing the Edge, WatchDog, and Guardian Nodes.

Minimum System Requirements

Before diving into the setup process, let's make sure your system meets the necessary requirements to run a WatchDog node efficiently. Here's what you'll need:

  • Hardware:

    • CPU: A CPU with ARM or x86-64 architecture is required. While a dual-core processor is the minimum, we recommend a quad-core or higher for the best performance.

    • Memory: At least 4GB of RAM.

    • Storage: A minimum of 100GB of free space. SSDs are preferred over HDDs for faster data access and better performance.

  • Operating System:

    • Recommended: Linux (Ubuntu 20.04 LTS)

    • Optional: Windows 10, MacOS 12.0 or above

  • Network:

    • Always-on 100 Mbps internet with a minimum 100 GB monthly data plan.

WatchDog Node Deployment

WatchDog nodes function like ordinary messaging clients that send and receive messages, so they do not require a public IP address like Edge nodes do. While they can be run on a laptop or PC, we recommend setting it up on a VPS for better stability.

We support deploying the WatchDog node on Linux, macOS, and Windows. However, Linux is recommended. Please note that the Windows and macOS deployments are still in beta and may encounter issues.

You may deploy the node on a Virtual Private Server (VPS) with a Linux operating system. For details about setting up the VPS, see VPS setup guide. You don't need to configure any specific firewall policy for any ports for running watchdog node.

Please refer to our tutorials below for deploying WatchDog nodes. Should you encounter any issues or have questions, refer to the troubleshooting section at the end of this tutorial or seek support from the SendingNetwork community. Check our FAQ docs for common questions.

Next Steps

After finishing the installation, interact with our auto-reply bot on the SendingMe app to check your node's stats. SendingMe is an all-in-one web3 instant messaging app built on top of SendingNetwork. Refer to Check Node Stats with Auto-Reply Bot in SendingMe for instructions on utilizing the bot to monitor your node's performance.

Should you encounter any issues or have questions, don't hesitate to seek support from the SendingNetwork community.


Troubleshooting

Error: Unable to start WatchDog node

There are several reasons why you might encounter this error:

  1. Non-whitelisted Wallet Address:

    • Log Message:

      Unable to start WatchDog node.
      Please use a whitelisted wallet address.
    • Solution: Ensure you are using the correct whitelisted wallet address that you submitted in the Discord channel.

  2. Restricted Area Deployment:

    • Log Message:

      Unable to start WatchDog node.
      Node service is not supported in this IP country.
    • Solution: Mining is not supported in mainland China. Please make sure you are deploying the node from a supported location.

  3. Multiple Active Nodes:

    • Log Message:

      Unable to start WatchDog node.
      Only one WatchDog node can be run per wallet address.
    • Solution: Only one active node is allowed at a time per wallet address. If you run a second node in a new location while the original one is still active, you will see this error. To run a new node in another location (such as a different directory or machine), follow these steps:

      1. Stop the current node according to the stop node instructions.

      2. Wait for 10 minutes.

      3. Start the new node in the desired location.

      4. This will create a new node ID, and points will be accrued with this new ID. Previous points will remain valid under the original node ID.

  4. Running the installation script with sudo:

    • Log Message:

      Please input your wallet address: ./watchdog_mac.sh: line 17: read: read error: 0: Input/output error
      your wallet: 
      Killed: 9
      ...
      Unable to start Watchdog node.
    • Solution: If you are running the script directly, please do NOT run it with sudo as it will impact the node daemon process. Instead, you can run it under a common user account, or by using sudo su or the root account.

      For Linux, run the script with the following command:

      ./watchdog_linux.sh

      For macOS, run the script with the following command:

      ./watchdog_mac.sh

Last updated