How to Restart Services in the Ancor Server and Verify Listening Port Status and Versions

Modified on Mon, 29 Sep at 11:28 AM

Product version:6.5.0.0


Overview

Sometimes the hosted On-Premise URL may fail to load in a browser due to unknown reasons. This is often caused by critical services not running or required ports not being in a listening state. This guide explains how to:

  • Restart essential services on the Saner CVEM Ancor Server
  • Check listening port statuses
  • Verify installed versions of key 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 

This displays all TCP ports currently in a listening state along with the associated services.

2. Restart Necessary Services

Restart the following services individually using the commands below:

Restart Apache Service

/etc/init.d/apache2 stop 
/etc/init.d/apache2 start 
OR systemctl restart apache2

Restart Tomcatd Service

/etc/init.d/tomcatd stop 
/etc/init.d/tomcatd start
OR systemctl restart tomcatd

Restart Redis Server

systemctl stop redis-server.service 
systemctl start redis-server.service

Restart MongoDB Server

systemctl restart mongo

Restart MySQL Server

systemctl restart mysql

3. Analyze Ancor Server Logs for Debugging

Access Ancor Logs:
Navigate to the logs directory and review the main Ancor log:


cd /usr/local/scaprepo/logs 
vim Ancor.log

Verify Apache-Tomee Logs:
Review catalina.out and access logs to check for errors:

cd /usr/local/scaprepo/apache-tomee-plus 
vim catalina.<date>.log


4. Retrieve the Account ID

Use the following command to locate the account ID in the logs:

grep -i 'root ' /usr/local/scaprepo/logs/Ancor.log*


5. Check Installed Versions of Services

Run the following commands to verify installed versions of critical components:

# Redis redis-server --version 
# MongoDB mongo --version 
# Apache apache2 -v 
MySQL mysql --version 
# Python python --version


Conclusion

By following this guide, administrators can troubleshoot and resolve issues related to service failures or port unavailability on the Saner CVEM Ancor Server. Regularly monitoring service statuses and verifying their versions helps maintain optimal server performance and ensures uninterrupted access to hosted services.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article