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 finding | Go to problem |
|---|---|
| Disk at 100% or inodes at 100% | 1, 2 |
| Memory full, swap heavily used, or "Killed" in logs | 3, 4 |
| High load average | 5, 6 |
| A web or database service failed | 7, 8, 9 |
| Cannot connect at all | 10, 11 |
| Everything runs but something is wrong outside the server | 12–15 |

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 sshandsudo 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 sshdshows 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?
How do I fix 'No space left on device'?
What causes 502 Bad Gateway on a VPS?
How do I access my VPS if SSH is not working?
How do I know if my VPS was hacked?
Should I just reboot when something goes wrong?
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check 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.