Closed mrcolak closed 7 months ago
Did websocket connection succeed when you try to use it?
I am getting this error failed: Connection closed before receiving a handshake response
Very great tutorial. you are the man.
You made an excellent tutorial that should have come with the package, thanks, the original tutorial is very bad or for expert users.
There wasn't a clear guide of how to install and run this tracker from scratch. I thought it would be helpful for others.
Installing Nodejs
sudo yum install epel-release curl -sL https://rpm.nodesource.com/setup_12.x | bash - sudo yum install nodejs node -v
Installing Git and cloning Repository
yum install git cd /usr/local git clone https://github.com/Novage/wt-tracker.git
Installing wt-tracker
cd wt-tracker/ npm install npm run build
#uWebSockets version v15.11.0 needed, so we are reinstalling uWebSockets npm uninstall uWebSockets.js npm install uNetworking/uWebSockets.js#v15.11.0
Creating config.json
vi /usr/local/wt-tracker/config.json
Adding firewall rules
firewall-cmd --permanent --zone=public --add-port=80/tcp firewall-cmd --permanent --zone=public --add-port=443/tcp firewall-cmd --reload firewall-cmd --zone=public --list-all
Creating Service
vi /etc/systemd/system/wt-tracker.service
Activating and Enabling Service
systemctl enable wt-tracker systemctl restart wt-tracker systemctl status wt-tracker
Increasing Open File Limit for Service
_#This changes will fix
Error: EMFILE: too many open files, uv_resident_set_memory
_mkdir /etc/systemd/system/wt-tracker.service.d/ vi /etc/systemd/system/wt-tracker.service.d/limits.conf
systemctl daemon-reload systemctl restart wt-tracker.service
Checking Stats
https://127.0.0.1/stats.json