Installing the Joystream node for the little ones!
(The guide was updated on 09.04.2021 Testnet-5)
This guide is intended for beginners who have not had experience installing nodes and want to try to run a JoyStream node without paying for a VPS server and with minimal use of the command line to configure them. To avoid any errors during installation, this guide uses the most easy-to-understand tools that allow you to successfully and quickly launch nodes without unnecessary problems.
- Register on Vultr.com follow this link (please note that the $ 100 voucher is only available for new users of the service).
- Click “ Deploy a new server”, select any of the presented server locations, Ubuntu 20.04 x64, server characteristics (2 CPU, 4 GB RAM, 80 SSD) and write any server name.
- After creating the server, click on it, in the server control panel you will be able to see information about it (IP address, user name and password).
( Since my node has been running for a long time, my SSD is already full ).
Now we need to connect to our VPS server via SSH. We will use the PuTTY program (https://www.putty.org). The program is absolutely free. To connect via SSH, you will again need the server data on Vultr (IP address, username and password). To connect to the server, write “ ssh root@YOUR_SERVER_ADDRESS” and press enter. Write your password, press enter.
If everything is done correctly, you will see information that you have logged in to the server. ( If you copied the password to the command line, and the password is not displayed, just press enter and you should see information about entering the server.)
- Install Docker
sudo apt updatesudo apt install apt-transport-https ca-certificates curl software-properties-commoncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add-sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"sudo apt updateapt-cache policy docker-cesudo apt install docker-ce
2. Install the node
cd ~wget https://github.com/Joystream/joystream/releases/download/v9.3.0/joystream-node-5.1.0-9d9e77751-x86_64-linux-gnu.tar.gztar -vxf joystream-node-5.1.0-9d9e77751-x86_64-linux-gnu.tar.gzwget https://github.com/Joystream/joystream/releases/download/v9.3.0/joy-testnet-5.json./joystream-node --chain joy-testnet-5.json --pruning archive --validator
3. Press CTRL+C and get to root
cd /etc/systemd/systemtouch joystream-node.servicenano joystream-node.service
4. In the future, you will open a separate window. In the window, you need to copy the entire bottom line, but first change the name section (Insert your name there).
Replace <MemberID-memberHandle> with your member id and your handle without <>. For example, 982-DRmarkovi
[Unit]
Description=Joystream Node
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/
ExecStart=/root/joystream-node \
— chain joy-testnet-5.json \
— pruning archive \
— validator \
— name <memberId-memberHandle> \
— telemetry-url “wss://telemetry.joystream.org/submit/ 0” \
— telemetry-url “wss://telemetry.polkadot.io/submit/ 0”
Restart=on-failure
RestartSec=3
LimitNOFILE=8192
[Install]
WantedBy=multi-user.target
Do CTRL+S to save the data and then CTRL+X. to exit the window.
5. Final Insert the lines below
systemctl daemon-reloadsystemctl start joystream-nodesystemctl status joystream-nodesystemctl enable joystream-node
If you entered everything correctly, you will see the line below. At the very end should be your name as in the example:
joystream-node.service - Joystream Node
Loaded: loaded (/etc/systemd/system/joystream-node.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-02-16 10:46:12 UTC; 15min ago
Main PID: 11437 (joystream-node)
Tasks: 29 (limit: 4619)
Memory: 2.7G
CGroup: /system.slice/joystream-node.service
└─11437 /root/joystream-node --chain joy-testnet-5.json --pruning archive --validator --name username
Congratulations, the node is running. Now happily go and search for yourself in https://telemetry.polkadot.io/#/Joystream
If the node freezes and there are no updates to the blocks?
Open the VPS (via putty) and enter:
systemctl restart joystream-node
If you get: “Failed to restart joystream. service: Unit joystream. service not found” then enter the line below:
cd /etc/systemd/systemtouch joystream-node.servicesystemctl restart joystream-node
Check now if your node is displayed https://telemetry.polkadot.io/#/Joystream
Author of the article: DRmarkoviBil#5096