O
O
Otnode
Search…
Node Monitoring and Maintenance

1. Monitor your node for free with NetData Cloud

  • Create an account on NetData Cloud
  • Install the application on your server
1
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
Copied!
Confirm “Y” and press Enter twice when asked during the installation.
Then you need to claim the node, through the claiming script. In Netdata Cloud Dashboard, and click on Claim Nodes. On the popup on the right, copy and paste and run the command displayed across all of your nodes.
You will see a confirmation in the node that it was successfully claimed:
On your registered e-mail you will start receiving notifications regarding anything related to your node – low RAM, low space, node is unreachable, etc. You can also set custom commands, and a I guide on those will be included below at a later time.
If your node is not discovered on the dashboard, you need to restart the process:
1
sudo systemctl restart netdata
Copied!

2. Get info on the locked and available tokens

1
docker exec otnode curl -s 'http://127.0.0.1:8900/api/latest/balance?humanReadable=true'
Copied!
Here are few commands to use to maintain your node.

3. Perform manual job payouts

Go to the My nodes section on OTHUB and open the node you want to make payouts for. In the jobs section find the jobs which are Completed and not paid out yet:
Option 1: Click on Payout and follow the instructions
Option 2: Payout from the node terminal
Run the below command by replacing the XXXXX with the job offer ID, listed on the same row, which you obtained from OTHUB.
1
docker exec otnode curl -s -X GET http://127.0.0.1:8900/api/latest/payout?offer_id=XXXXX
Copied!
Important: This command will use ETH from the Operational wallet. Due to the high GWEI, make sure you have set a “max_allowed_gas_price”: setting in your .origintrail_noderc configuration file, to limit the expenses.
Alternatively you can obtain a list of offers you can payout (however this includes all offers including those that just started, which could payout a very minimal amount) (replace XXXX below with your node ID):
1
curl -X GET "https://othub-api.origin-trail.network/api/nodes/DataHolders/XXXXXXXXXXXX" -H "accept: text/plain" | grep -o -P '(?<=OfferId":").*?(?=","FinalizedTimestamp")'
Copied!

4. Update the applications on the server

1
apt update && apt upgrade -y
Copied!

5. Check logs for the past 48 hours

1
docker logs --since 48h otnode | more
Copied!

6. Restart the node

1
docker restart otnode
Copied!

7. Remove swap space

1
cat /proc/swaps
Copied!
1
sudo swapoff /swapfile
Copied!
1
sudo rm /swapfile
Copied!
1
nano /etc/fstab
Copied!
Then remove the following from the file and save it: /swapfile swap swap defaults 0 0

8. Alternative way to configure the node is through Houston tool, which you can find here (please note this version requires SSL):

Alternatively you can use this version which has the SSL version disabled:

9. I have disabled auto payout, but for old jobs they keep trying to payout with error “info – Gas price too high, delaying call for 30 minutes” but it appears to be popping up every 5 seconds.

Open the bash console inside your node with the following command:
1
docker exec -it otnode bash
Copied!
Go to the data section of your node:
1
cd /ot-node/data
Copied!
Open the SQLite shell of your database
1
sqlite3 system.db
Copied!
Add a 30 minute period (in milliseconds) for all payout commands
1
update commands set period=1800000 where name="dhPayOutCommand";
Copied!
Exit the SQLite shell and the container by pressing Control+D twice.
Restart the node
1
docker restart otnode
Copied!
Due to frequent node access to the database, some commands listed above might fail, but you can just run the command again.
Last modified 3mo ago