VPS

Troubleshooting Common VPS Issues

VPS acting up? This guide covers the most common issues — high CPU load, SSH lockouts, connectivity drops — with step-by-step fixes to get your server back online.

Natasha M. 11 Apr 2024 8 min reading
Troubleshooting Common VPS Issues
Table of Contents

The usage of a virtual private server (VPS) in companies or for personal needs is becoming increasingly popular. It is very convenient to have a dedicated server, and managing it is also cost-effective. Nevertheless, VPS hosting has many common issues that sometimes take a long time to resolve. In our article today, we will discuss these problems and solution methods.

Overview of Common VPS Issues

Overview of Common VPS Issues

Everything related to the network is at risk from common issues related to connectivity, performance, security, and other errors. We will tell you exactly what issues you may encounter and how to diagnose and fix them.

Network Issues

The most common issue that can affect VPS hosting is a network issue. When diagnosing connection problems, you may encounter situations ranging from physical cable failure to network signal blockage. These types of issues prevent access to the server and interfere with the user's experience. Once you have identified a problem, it is essential to know how to fix it properly.

Problem diagnosis

Potential solutions

Check the integrity and serviceability of the network connection cable.

If you suspect a faulty cable, replace the cable.

Check your router.

  • Plug the WAN port of the router into the computer. If the network works fine, the problem is with the router.
  • Reboot the router.
  • Reset your router to factory settings.
  • Replace your router if it is faulty by contacting your Internet Service Provider.

Make sure there is no debt for communication services and that the Internet is turned on.

Check your connection and balance in your personal account.

Check if antivirus software is installed.

  • Update your antivirus versions.
  • Scan your computer for viruses.
  • Temporarily disable your antivirus software.

Find out if you have firewalls installed.

Temporarily disable firewalls.

Check that the DNS servers are configured correctly.

Update or replace DNS servers in your device settings.

Check the operation of your computer and router using the PING command.

From our article, you can learn how to check and reduce ping if necessary.

Resource and Performance Issues

Online work and business success directly depend on reliable and well-functioning VPS solutions. Optimizing performance and resources requires a lot of attention and constant maintenance, but it plays a key role in the stable and efficient operation of your server.

There are several methods to improve VPS performance:

  • Correct configuration of server services. Proper configuration of servers, disabling background processes, and choosing the appropriate server infrastructure help free up RAM and resources for priority tasks.
  • Resource monitoring. Manage resources effectively – ensure that your VPS has enough RAM and power for stable operation. Monitoring tools like htop or Glances can help you track resource usage.
  • Performance tracking. Tools such as top, iotop and netstat are used to identify process problems or network congestion. And Nagios, Zabbix or Prometheus are suitable solutions for monitoring server performance. Regular checks of server logs for errors and performance monitoring allow you to identify bottlenecks in a timely manner and quickly optimize your VPS.
  • Data caching. Caching techniques can speed up the process of retrieving previously used data and help improve performance by reducing the number of disk or database accesses.
  • Constant software updates. Regular software updates optimize code and fix bugs, thus improving security and performance.

Security and Unauthorized Access

Security and Unauthorized Access

Small and medium-sized businesses often use virtual servers to conduct e-commerce and projects that require custom Internet solutions.

Besides the required volume of traffic and multifunctionality, the most important characteristics and indicators when choosing a virtual server remain security and protection from unauthorized access.

Signs of a Server being Hacked

The following signs indicate a possible server hack:

  • Unstable VPS operation.
  • Lack of access to user rights.
  • Increasing the amount of traffic on the server.
  • Non-standard network operations, including transferring files via SSH, sending mail in the absence of the user, and other functions.
  • Spam from VPS.

If any of the symptoms are detected, it is necessary to conduct a thorough check of the server and system. In some situations, outages may not be related to compromised systems, but may result from technical or software problems.

Server diagnostics

Server diagnostics include verification of login times and command histories, as well as comparing their activation times with login times. It is important to clarify which colleagues have access and conduct regular IP address verification, identifying unfamiliar addresses and unauthorized use of the server. Pay special attention to suspicious sessions (unexpected background operations).

Regardless of the Windows or Linux OS you use, there are general methods to protect your server from attackers.

General Principles of VPS Security

For reliable protection and security of VPS, it is important to be guided by the following principles:

  • Update your software regularly. Constant software updates help improve not only server performance, but also its security. Regular updates and installation of the latest software versions, but only from trusted sources, help protect the server from vulnerabilities that have not yet been discovered by hackers, but are already known to developers.
  • Deactivate background servers and programs. Deactivate background servers, thereby preventing them from being hacked.
  • Configure automatic disconnection of sessions. Automatic disconnection of an idle session will also save you from hacking. To continue working after a long break, you will need to re-enter your password, making your system less vulnerable.
  • Minimize privileges. Limit yourself to a unique account, a minimum number of users with access rights and low privileges.
  • Enable backup. The backup function will help you easily restore a copy in the event of a server hack.
  • Use secure protocols. SFTP or SCP protocols that are protected by SSH are considered secure.
  • Set up firewalls. For additional protection, you can set up firewalls. Our article about firewalls will help you familiarize yourself with the main types of firewalls and the principles of their operation.
  • Change account settings. Change the administrator name immediately after purchasing the server (we strongly recommend not using the root account), and create several more accounts with limited rights. These measures strengthen security and prevent all systems from being infected by cyber attacks.

Issues Related to Web Servers

Problems often arise when the server slows down, or it is even difficult to get a response from it. The first thing that comes to the user’s mind is to change the company because most speed problems are caused by the hosting. However, there are many issues with web servers that you can fix yourself. Let's look at them by using the example of working with the server through the ispmanager control panel or by launching the server via SSH.

Apache/Nginx Connection

First, let's figure out what Apache and Nginx are and why they are needed in VPS operations. Nginx is a powerful web server that is commonly used as a reverse proxy and improves the performance of the main Apache web server that is responsible for hosting client sites.

Web Server Nginx:

  • Reduces and balances the load on the server.
  • Reduces application load through caching.
  • Helps handle hundreds of thousands of simultaneous connections on a single physical server.
  • Performs user authentication.

You can check the operation of the web server and enable the Nginx and Httpd services in the ispmanager control panel by following the link: https://<your_server_IP>:1500/ispmgr (the default panel address).

After logging into your personal account, follow the steps:

  1. Go to the Monitoring and logs > Services section.
  2. Check the connection of Nginx and Httpd services. Apache/Nginx Connection
  3. If Nginx and Httpd are disabled, select the desired service and click the Start button.

If you cannot enable services through the ispmanager control panel, connect to the server via SSH, open a command line, and enter certain commands.

  • For FreeBSD Apache: sysrc apache24_enable=YES, then service apache24 start
  • For Debian/Ubuntu Apache: systemctl start apache2
  • For AlmaLinux/Rocky Linux Apache: systemctl start httpd
  • For FreeBSD Nginx: sysrc nginx_enable=YES, then service nginx start
  • For Debian/Ubuntu/AlmaLinux/Rocky Linux Nginx: systemctl start nginx

Database: Connection Check

Depending on your OS, the server may have database management systems (DBMS) such as MySQL or MariaDB installed. If there are potential problems with the database, you need to check its connection and accessibility.

For VPS servers based on the ispmanager panel, just follow the steps:

  1. Log in to the ispmanager control panel.
  2. Go to the Databases > Database servers section. Database: Connection Check
  3. There, you can check whether MySQL or MariaDB is active. Database: Connection Check
  4. You can also restrict access only to certain IP addresses, thereby editing users of a specific database.Database: Connection Check

After connecting to the server via SSH, run the following commands:

  1. Restart MySQL for Ubuntu, Debian: systemctl restart mysql
  2. Restart MariaDB for AlmaLinux/Rocky Linux: systemctl restart mariadb (for MySQL: systemctl restart mysqld)
  3. List MySQL processes to check: ps axuw | grep mysql

SSL/TLS: Configuration Issues

First, briefly about the SSL/TLS protocols and their role in the operation of the server.

The cryptographic protocols SSL (Secure Sockets Layer) and TLS (Transport Layer Security) provide secure data transmission over a computer network. When establishing a connection, you need to tell the server whether the client wants to establish TLS, since most communication protocols can be used with or without TLS/SSL.

  1. Use the 443 port for HTTPS, where the connection is a priori established with TLS.
  2. Use the special STARTTLS command.

A connection protected by TLS can have the following characteristics:

  • Confidentiality: Data in transit is encrypted and visible only to the two endpoints.
  • Authentication: Verifies the server's identity (and, optionally, the client's) using certificates and asymmetric cryptography.
  • Integrity: Detects any modification of data in transit. TLS 1.3 uses AEAD ciphers for this, and older versions can also use a MAC (Message Authentication Code).

When the certificates work correctly, the browser address bar looks normal. But when SSL connection errors occur, it looks like this:

SSL connection errors

There are many reasons for such errors and corresponding solutions to correct them:

Error reason 

Solution

An incorrect date and time on the device causes a certificate error because its validity period is checked when checking a certificate.

Set up-to-date time data on your device.

Blocking the certificate by the firewall.

If the server works normally after disabling the firewall, the problem is not in the certificate but in the firewall.

Blocking the certificate by antivirus.

Disable scanning of SSL and HTTPS protocols in your antivirus.

A network device or software on the path blocks or breaks QUIC (HTTP/3) connections.

Temporarily disable QUIC in your browser to check whether it is the cause.

QUIC is a standard IETF protocol (RFC 9000) that HTTP/3 runs on, but Chrome still lists its flag as experimental. To disable QUIC temporarily for diagnostics, follow the steps:

  1. In your browser's search bar, enter the command chrome://flags/#enable-quic.
  2. In the window that appears, find the highlighted option: Experimental QUIC protocol.
  3. Select Disabled from the drop-down menu. quic-disabled

Error reason 

Solution

Untrusted SSL certificate.

If the browser reports that the site's SSL certificate is not trusted, the problem is usually on the server: the certificate is self-signed, issued for a different domain, or installed without the intermediate certificates. Install a certificate from a trusted certificate authority (for example, Let's Encrypt) together with the full certificate chain (fullchain). On the client side, install OS updates to keep the root certificate store up to date. Do not import root certificates downloaded from third-party sites into the trusted root store.

Error reason 

Solution

Unupdated OS.

Install the latest updates.

The server supports only outdated protocols: SSL 3.0, TLS 1.0, or TLS 1.1.

Enable TLS 1.2 and TLS 1.3 on the server and disable older versions. In nginx: ssl_protocols TLSv1.2 TLSv1.3;, in Apache: SSLProtocol -all +TLSv1.2 +TLSv1.3. Modern browsers no longer support SSL 3.0, TLS 1.0, and TLS 1.1, so re-enabling them in the browser is not a solution.

After any decisions and operations related to web servers, it is advisable to reboot the device.

Email Service Issues

If the question concerns a spontaneous outage rather than a planned outage that occurs because of maintenance or updating, then you are most likely dealing with either software or hardware failures in the server or the threat of a hacker attack. Such failures can negatively impact corporate and personal security, so it is important to constantly be aware of the status of your mail and transmitted data if you use VPS as an email server.

Solution:

A suitable solution is to monitor your email using a round-trip 2-step session test email, which guarantees reliable control over the operation of your incoming and outgoing services. Connected to your services, the monitoring mail agent receives messages if the check is successful. Thus, compared to an error notification service, your mail is always under control. This solution minimizes the cost and time spent, as well as the risk of loss of transmitted information.

Data Backup and Recovery

Data Backup and Recovery

For the storage and security of your data, it's a good idea to play it safe and create a backup copy to restore the information stored there if necessary.

To create a backup copy on a VPS and then restore it, you need to configure the basic settings in the Backup copies section of your server’s control panel first. There, you will be asked to indicate the storage type, its directory, remote server address, login, and password for access.

Backup settings

In the advanced Backup settings, you can also set restrictions to save space on the server.

Backup settings

The created backups are displayed under Backup copies > Create copy > Full backup copy.

Backup settings

To check the created backup, you can click View files.

Backup settings

You can change your settings later by selecting Settings.

More detailed instructions on creating and scheduling backup copies, as well as restoring a backup, can be found in our guide “Setting Up ispmanager Backup”.

Conclusion

For anyone looking for an inexpensive way to have a dedicated server, VPS hosting can be a great option. However, it is important to understand VPS hosting common issues and how to solve them.

is*hosting VPS servers offer the flexibility and reliability businesses and individuals need for successful hosting, from resource allocation to security, compatibility, and performance features. If you have problems with VPS hosting that you cannot solve on your own, you can always contact is*hosting Techsupport Department.

VPS

Choose the suitable configuration and enjoy all the benefits of a virtual private server.

From $5.94/mo