Linux VPS9 min read•Last updated: •By SkyRain Cloud Team

VPS Troubleshooting Guide: 15 Common Problems and How to Fix Them

Most VPS problems come from a small set of causes: a full disk, exhausted memory, a crashed service, a firewall rule or an expired certificate. Good VPS troubleshooting is mostly about checking those in a sensible order instead of restarting things at random and hoping.

This guide covers the 15 problems we see most often on Linux VPS servers, each with the symptom, the command that confirms it and the fix. The commands assume Ubuntu or Debian; most work unchanged on AlmaLinux and Rocky Linux.

Quick answer

Start every investigation with four commands: df -h (disk space), free -h (memory), uptime or top (load and CPU) and systemctl --failed (crashed services). Then read the logs with journalctl -xe or journalctl -u servicename. These five checks explain the majority of VPS outages, including 502 errors, sites that stop loading, failed SSH logins and sudden slowdowns.

VPS troubleshooting: a five-minute triage routine

uptime                      # load averages and how long since reboot
df -h; df -i                # disk space and inodes
free -h                     # memory and swap
systemctl --failed          # services that crashed
journalctl -p err -b        # errors since last boot

If SSH itself does not work, use your provider's web console (VNC) to run them. The triage results point you to one of the sections below. For filtering logs by service, time or priority, the journalctl manual lists every option.

Triage findingGo to problem
Disk at 100% or inodes at 100%1, 2
Memory full, swap heavily used, or "Killed" in logs3, 4
High load average5, 6
A web or database service failed7, 8, 9
Cannot connect at all10, 11
Everything runs but something is wrong outside the server12–15
VPS troubleshooting – SkyRain Cloud servers in India

Disk problems

1. Disk full

Symptoms: databases refuse writes, uploads fail, services will not start. Find what is using space:

sudo du -xh / --max-depth=2 2>/dev/null | sort -h | tail -20
sudo journalctl --disk-usage

Common culprits are logs, old backups stored on the same disk, Docker images and package caches. Fix with sudo journalctl --vacuum-size=200M, sudo apt clean, docker system prune (check what it removes first) and log rotation. Move backups off the server; see our backup guide.

2. "No space left on device" with free space showing

You have run out of inodes (file entries), usually because of millions of tiny files such as PHP sessions or cache fragments. df -i confirms it. Find the folder with sudo find / -xdev -type f | cut -d/ -f2-3 | sort | uniq -c | sort -n | tail and clean it up, then fix whatever creates the files.

Memory problems

3. Processes killed by the OOM killer

Symptoms: MySQL or your app restarts at random; logs show "Out of memory: Killed process". Confirm with:

sudo dmesg -T | grep -i -E 'killed process|out of memory'

Reduce memory use (fewer PHP-FPM children, a smaller database buffer pool), add a modest swap file as a safety net, or move to a plan with more RAM.

4. Heavy swapping makes everything slow

If free -h shows swap in heavy use and vmstat 1 shows non-zero si/so columns, the server is constantly moving memory to disk. Swap is a safety net, not extra RAM. Find the biggest processes with ps aux --sort=-%mem | head and right-size them.

CPU and load problems

5. High load average

Load counts processes running or waiting. Run top and read the CPU line: high us means your applications are busy, high wa means they are waiting on disk, and high st means the host is taking CPU time away; see CPU steal time explained. Sort by CPU in top (press P) to find the process responsible.

6. A process you do not recognise is using all the CPU

An unfamiliar process at 100% CPU, especially from /tmp or with a random name, can be a cryptominer installed after a break-in. Check with ls -l /proc/PID/exe, look for unknown cron jobs (crontab -l, /etc/cron.*) and new SSH keys. If compromised, rebuild from a clean image and restore data from a known-good backup rather than trying to clean it.

Service problems

7. Website shows 502 Bad Gateway

Nginx is running but cannot reach the application behind it (PHP-FPM, Node.js, Gunicorn). Check the backend:

systemctl status php8.3-fpm     # adjust to your version or app
sudo tail -50 /var/log/nginx/error.log

Typical causes are a crashed backend, a wrong socket path after an upgrade, or the backend killed by the OOM killer (problem 3).

8. A service will not start

sudo systemctl status nginx
sudo journalctl -u nginx -n 50 --no-pager
sudo nginx -t

Most failures are a configuration syntax error (test it with the service's own check, as with nginx -t above), a port already in use (sudo ss -tlnp), or file permissions.

9. Database connection errors

"Error establishing a database connection" usually means MySQL or PostgreSQL stopped, often because the disk filled or memory ran out. Check systemctl status mysql, its log, and problems 1 and 3. If it runs but is slow, see our database tuning guide.

Access problems

10. SSH connection refused or timing out

  • Refused: sshd is not running or listens on a different port. From the web console: systemctl status ssh and sudo ss -tlnp | grep ssh.
  • Timeout: a firewall is blocking you. Check sudo ufw status; see setting up UFW on a Linux VPS.
  • Worked yesterday, not today: Fail2ban may have banned your IP. sudo fail2ban-client status sshd shows banned addresses.

11. Permission denied (publickey)

The server does not accept your key. Check that the public key is in ~/.ssh/authorized_keys for the right user, that ~/.ssh is mode 700 and the file is 600, and that you are using the matching private key (ssh -v shows which keys it tries). Our SSH security guide covers key setup. If you added two-factor authentication to SSH, also check that the server's clock is synchronised, because one-time codes depend on it.

Network, DNS, time and certificates

12. Site not loading after changing DNS

Check what the world sees with dig +short example.com (or nslookup), and compare with your server's IP. DNS changes can take time to spread depending on the record's TTL.

13. HTTPS certificate expired

Let's Encrypt certificates last 90 days. Test renewal with sudo certbot renew --dry-run; failures usually mean port 80 is blocked or the domain no longer points to the server.

14. Slow network or packet loss

Run mtr -rwc 50 your-server-ip from your own computer to see where latency or loss starts. Loss at the final hop only, with high CPU, means the server is overloaded rather than the network.

15. Wrong time breaks logins, cron and certificates

timedatectl should show System clock synchronized: yes. If not, enable time sync with sudo timedatectl set-ntp true, and set the time zone with sudo timedatectl set-timezone Asia/Kolkata if you want Indian time in logs.

Preventing the next outage

  • Set up uptime and resource alerts; see our monitoring guide.
  • Configure log rotation and keep at least 20% disk free.
  • Keep off-server backups and test restoring them.
  • Apply security updates weekly and reboot when the kernel changes.
  • Tune the stack once it is stable; see how to optimise an Ubuntu VPS.
  • Write down what you fixed. The same problem rarely happens only once.

Why developers choose SkyRain Cloud VPS

Troubleshooting is easier on a VPS that gives you full access to everything. SkyRain Cloud Intel VPS plans include:

  • KVM virtualization. Your own kernel and allocated vCores, so you can tune the system the way this guide describes.
  • Intel Xeon Platinum 8269CY hosts. Server-class Cascade Lake CPUs with DDR4 ECC memory.
  • NVMe SSD storage on every plan, which keeps I/O wait low for databases and builds.
  • Full root access to install and configure whatever your stack needs.
  • Unmetered 1 Gbps port in India, close to your users.
  • Simple billing and real support. Monthly billing in rupees with UPI, plus 24/7 tickets, WhatsApp and Discord.

Frequently Asked Questions

Why is my VPS so slow?
Check top for high user CPU, I/O wait or steal time, free -h for swapping, and df -h for a full disk. The cause is usually an overloaded application, too little memory or slow storage access.
How do I fix 'No space left on device'?
Find large folders with du, clean old logs (journalctl --vacuum-size), package caches and stale backups. If df -h shows free space, check df -i for exhausted inodes.
What causes 502 Bad Gateway on a VPS?
The web server cannot reach the application behind it, usually because PHP-FPM or the app crashed, its socket path changed, or it was killed for using too much memory.
How do I access my VPS if SSH is not working?
Use your provider's web or VNC console from the control panel. It gives you a login screen without depending on SSH or the network configuration.
How do I know if my VPS was hacked?
Warning signs include unknown processes using high CPU, new cron jobs or SSH keys, unfamiliar users and unexpected outbound traffic. If confirmed, rebuild from a clean image and restore from a trusted backup.
Should I just reboot when something goes wrong?
A reboot can restore service quickly, but collect logs first (journalctl, dmesg) so you can find the cause. Otherwise the problem will come back.

Conclusion

Effective VPS troubleshooting follows a routine: check disk, memory, load and failed services, read the logs, then fix the specific cause. Most outages are a full disk, memory exhaustion or a crashed service, and all three are easy to spot with the commands above. Add monitoring and backups, and the next problem becomes an alert instead of an outage.

For a KVM VPS with NVMe and full root access in India, see our Intel VPS plans.

SkyRain Cloud Intel Xeon VPS Plans

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.

Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning