From Zero to Echelon Witness, Part 1: Preparations
A few days ago, @futureshock published Echelon has been launched. In this post, I share my experiences with setting up a witness for Echelon, as there are a few minor deviations from the instructions in the Readme. Maybe someone else would like to run an Echelon witness as well.
The reason I am looking into this is simple: I would find it really unfortunate, more than unfortunate, if the considerable time and energy invested in this project had been wasted.
So, let's get started with a freshly installed Ubuntu 22.04.
System update
Logged in as root, first perform a system update.
apt update && apt upgrade
Create user
The node should not run as root, so we create a new user named witness and give him root privileges.
adduser witness
usermod -aG sudo witness
Continue as user witness:
su witness
cd ~
What else we need.
sudo apt-get install -y gnupg curl
Install node.js
sudo apt update
sudo apt install nodejs
sudo apt install npm
At this point, node -v gives us v12.22.9 – but we need v20 or higher, which we'll fix right away.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
# Ensure nvm is available in the current terminal session
source ~/.bashrc
# Install Node.js version 20.19.4
nvm install 20.19.4
Looks better now, node -v now gives us the desired v20.19.4.
Install MongoDB
wget -qO- https://www.mongodb.org/static/pgp/server-8.0.asc | sudo tee /etc/apt/trusted.gpg.d/server-8.0.asc
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/8.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl start mongod
sudo systemctl enable mongod
Install pm2
npm install pm2 -g
Check everything is installed and working
systemctl status mongod
mongod --version
mongorestore --version
mongosh --version
node -v
npm --version
pm2 -v
It should look something like this:

Break!
Congratulations on making it this far. The easier part comes in the next few days, maybe even tomorrow. Then we'll get the witness up and running!
But first, we deserve a break.

Nachdem ich eure Kommentare gesehen habe, war ich schon sehr gespannt, was du herausfinden wirst... und jetzt geht's los!
Warte kurz, ich hole noch 'n Eimer Popcorn... 😇👍
0.00 SBD,
20.10 STEEM,
20.10 SP
Hey, guten Morgen!
Tatsächlich hat mich der Part bis hier her am meisten gefuxt. Na ja, war dann auch noch holprig, weil die Peers zeitweise nicht verfügbar waren, dazu kein Plan von node.js und Typescript. Gut für die grauen Zellen :-)
Meine Hoffnung wäre, wenn noch weitere Nodes dazukommen, dass das Projekt nicht in 4 Monaten stirbt. Ob die Sidechain ohne den Masternode (echelon-node1) von Hightouch weiterlaufen würde, bin ich mir allerdings nicht sicher. Einen Versuch ist es wert...
0.00 SBD,
21.67 STEEM,
21.67 SP
Das ist je gerade das Gute an dieser Sidechain. Sie kann von Grund auf wieder neu aufgebaut werden, jedenfalls hatte ich das bisher immer so von Hightouch wahrgenommen.
Außer dem Austausch in der Entwicklungsphase habe ich mich leider auch noch nicht damit beschäftigen können. Ich bin auf jeden Fall auch mit einem Knoten dabei, wenn ich die Gelegenheit dazu habe. Insofern bin ich gespannt, was du herausfindest. Ich finde, das Projekt darf nicht so sterben. Ich weiß bloß nicht, ob es ohne Hightouch gepflegt werden kann...
0.00 SBD,
3.05 STEEM,
3.05 SP
Habe gerade einen Post gemacht, hatte ja Sorge, dass dir dein Popcorn ausgeht :-)
Ja, ohne Hightouch ist es schwierig, obwohl der Quellcode an sich schön zu Lesen ist, es ist halt nicht wenig. Außerdem fehlen mir dann gewisse Basic's, z.B. wie die Nodes untereinander kommunizieren. Aktuell vermute ich, dass der einzige Peer den mir Hightouch genannt hat down ist. Da könnte ich vermutlich noch 10 Witness einrichten.
Aber alles nur Theorie, für dieses Jahr lasse ich es gut sein.
All the best.
A super creative day/week
🍀♥️
@wakeupkitty
A super creative day/week
🍀♥️
@wakeupkitty
👍
It will take only a programmer to understand those write up you made up there because for layman like me, reading it makes me more confused...
But the best part about reading this post is that, you care enough about the echelon project, that you don't want it to go to waste. You want it to succeed. Guides like this will definitely help more people get involved.
0.00 SBD,
3.04 STEEM,
3.04 SP
Let's see, I actually wanted to write the second part in the next few days, but unfortunately the sidechain is stuck. With my current level of knowledge, I can't continue.
0.00 SBD,
15.88 STEEM,
15.88 SP
@steemchiller