Overview:
Sometimes, the hosted On-premise URL may fail to load in a browser due to unknown reasons. This is often caused by necessary services or ports not being in a listening state. This guide explains how to restart essential services, check listening port statuses, and verify installed versions of critical components.
Applicable Platform:
On-Premises Deployment
Solution:
1. Check Listening Ports and Service Details
Log in to the Ancor server and execute the following command to view the status of all ports and services:
netstat -nltp
2. Restart Necessary Services
Follow these commands to restart the required services individually:
- Restart the Apache Service
/etc/init.d/apache2 stop
/etc/init.d/apache2 start
OR
systemctl restart apache2
- Restart the Tomcatd Service
/etc/init.d/tomcatd stop
/etc/init.d/tomcatd start
OR
systemctl restart tomcatd
- Restart the Redis Server
systemctl stop redis-server.service
systemctl start redis-server.service
- Restart the Mongo Server
systemctl restart mongo
- Restart the MySQL Server
systemctl restart mysql
3. Analyze Ancor Server Logs for Debugging
- Access the Ancor Logs
To examine the Ancor logs, navigate to the logs directory with the following command:
cd /usr/local/scaprepo/logs
vim Ancor.log
- Verify Apache-Tomee Logs
Access the Apache-Tomee directory to review the catalina.out and access logs:
cd /usr/local/scaprepo/apache-tomee-plus
vim catalina.2023-09-22.log
4. To Retrieve the Account ID
Use the following command to find the correct account ID in the logs:
grep -i 'root ' /usr/local/scaprepo/logs/Ancor.log*
5. Check Installed Versions of Services
Run the appropriate commands to check the installed versions of key services:
Redis : redis-server --version
MongoDB: mongo --version
Apache: apache2 -v
MySQL : mysql --version
Python : python --version
Conclusion
By following this guide, you can troubleshoot and resolve issues related to service failures or port unavailability in the SanerCVEM Ancor server. Regularly monitoring service statuses and verifying their versions helps maintain optimal server performance.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article