OriginTrail
Search…
Setup instructions (Dockerless)
These setup instructions for DKGv6 are "Work in progress" and are subject to change. The development team expects to introduce improvements as well as a more automated process of setting up the DKGv6 node in the future.
Need any assistance with node setup? Join the DKGv6 Discord chat and find help within the OriginTrail tech community!
IMPORTANT: These instructions are not intended for migrating your current v5 node to v6. Attempting this will most likely break your v5 node at this point. You should only use these instructions in order to setup a fresh OriginTrail v6 testnet node.

Prerequisites

  • A dedicated 4GB RAM/2CPUs/50GB HDD Ubuntu server (minimum hardware requirements)
  • An installed and running GraphDB
GraphDB installation process:
In order to download GraphDB, please visit their official website and fill out a form. Installation files will be provided to you via email. Use the standalone version of GraphDB. Upload the <graphDB_file>.zip file to your server (e.g. using scp or some other way).
1
apt install default-jre
2
unzip graphdb-free-9.10.1-dist.zip
3
nohup ~/graphdb-free-9.10.1/bin/graphdb &
Copied!
When graphDB is started, please check the nohup.out file that was generated in order to confirm that it is running in the background .

Installation steps

Step 1:

OriginTrail v6 node requires npm and Node.js (v14) or higher. In order to install them, please execute the following set of commands:
1
cd ~
2
curl -sL https://deb.nodesource.com/setup_14.x -o setup_14.sh
3
sudo sh ./setup_14.sh
4
sudo apt update
5
sudo apt install nodejs npm
Copied!
Alternatively, you can use nvm to manage your npm/nodejs version or do this to install node:
1
apt install aptitude
2
aptitude install nodejs npm
Copied!

Step 2 - Install forever

1
npm install forever -g
Copied!

Step 3 - Install mysql and create a local operational database

1
apt install tcllib
2
apt install mysql-server
3
service mysql start
4
mysql -u root -e "CREATE DATABASE operationaldb /*\!40100 DEFAULT CHARACTER SET utf8 */;"
5
mysql -u root -e "update mysql.user set plugin = 'mysql_native_password' where User='root';"
6
mysql -u root -e "flush privileges;"
Copied!
Disable binary logging in the mysql config file:
1
nano /etc/mysql/mysql.conf.d/mysqld.cnf
Copied!
Find a line that reads "log_bin" and remove or comment next line:
1
#max_binlog_size = 100M
Copied!
Disable logs by adding the following to configuration file:
1
disable_log_bin
Copied!
Close and save the file. Restart:
1
service mysql restart
Copied!

Step 4 - Get the DKG code by cloning the repo and checking out the proper branch

1
git clone https://github.com/OriginTrail/ot-node
2
cd ot-node
3
git checkout v6/release/testnet
Copied!

Step 5 - Install dependencies

1
npm install
Copied!

Step 6 - Allow traffic on ports 8900 (RPC) and 9000 (libp2p)

Step 7 - Create .env file:
1
nano .env
Copied!
Paste the following variable into the .env file, save and close:
1
NODE_ENV=testnet
Copied!
Step 8 - Create .origintrail_noderc file .origintrail_noderc example can be found on our GitHub.
OriginTrail v6 testnet node is running on Polygon Mumbai (testnet) network and it is currently not requiring any test TRAC tokens. Make sure that the wallet you are using in your configuration file is funded with test MATIC tokens.

Polygon Mumbai MATIC faucet: https://faucet.polygon.technology/

Step 9 - Run DB migrations:

1
npx sequelize --config=./config/sequelizeConfig.js db:migrate
Copied!
Step 10 - Start OriginTrail v6 node In order to start the node, execute the following command:
1
forever start -a -o out.log -e out.log index.js
Copied!
Checking node logs: In order to check if the node started successfully, you can access node logs byecuting the following command:
1
tail -f -n100 out.log
Copied!
Successfully started
In order to stop your node, use the following command:
1
forever stop index.js
Copied!
Step 11 - Enable SSL (optional, but recommended): Ensure that the following certificate files are in the right directory: /root/certs/privkey.pem & /root/certs/fullchain.pem
Congratulations. Welcome to v6 beta
We would love to meet you in our Discord chat - join us here.
Last modified 17d ago