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

Modified on Sun, 16 Mar at 12:38 PM

 

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   
A screenshot of a computer screen 
Description automatically generated 


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   
    A computer screen shot of a black screen 
Description automatically generated 
     
  • 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   
A screen shot of a computer 
Description automatically generated 
 

  • 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   
A screen shot of a computer 
Description automatically generated 
 

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*   A black screen with colorful text 
Description automatically generated 
 

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   

A screenshot of a computer screen 
Description automatically generated 
 

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

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