Common Problems
This section covers common problems and their solutions for the Keralis system.
Inaccessible API
If the hash server API is inaccessible:
-
Check that the service is running:
pm2 status hash-server
-
Restart the service:
pm2 restart hash-server
-
Check the logs and identify the problem:
pm2 logs hash-server
-
Check port and firewall configuration:
netstat -tulpn | grep 3001
sudo ufw status
Emails Not Received
If email alerts are not being received:
-
Check the SMTP configuration in the
.env
file -
Test email sending with the test script:
cd /root/keralis/blockchain
node test-integrity-system.js -
Check logs for SMTP errors:
pm2 logs blockchain-checker
-
Make sure your SMTP server allows connections from the blockchain server's IP address
Inaccessible Dashboard
If the dashboard is inaccessible:
-
Check that the service is running:
pm2 status dashboard
-
Restart the service:
pm2 restart dashboard
-
Check logs to identify the problem:
pm2 logs dashboard
-
Check firewall configuration (see Inaccessible API section)
MongoDB Connection Problems
If you encounter problems with MongoDB:
-
Check that MongoDB is running:
sudo systemctl status mongod
-
Restart MongoDB:
sudo systemctl restart mongod
-
Check MongoDB logs:
sudo tail -f /var/log/mongodb/mongod.log
-
Check connection configuration in the
.env
file