/hostinger:troubleshoot-vpsfrom hostinger
Diagnoses and fixes Hostinger VPS issues (unreachable, slow, disk full, broken services) using Hostinger MCP, SSH, and hPanel. Names the cause with evidence before applying fixes.
Ships in hostinger. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One server and one symptom in; a named cause, the evidence for it, and a fix out. Stay read-only until the cause is stated and the user agrees to the fix. Deploying something new is deploy-to-vps; reinstalling is provision-vps.
inputSchema that search returns before the first call of each operation. If a name below is rejected as unknown, search for what the step does (e.g. "virtual machine metrics").search returns can be called. Several fixes exist only in hPanel or Hostinger Agent — resetting SSH or the guest firewall, removing a CPU limit, cleaning the disk, running commands without SSH. When the fix needs one, tell the user where it is in hPanel.multi-execute; values pass between steps as $steps.<i>.<path>. A batch stops at its first failure. The Hostinger Connector runs vps and dns as separate servers.Too Many Attempts is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. [VPS:9999] Request failed (HTTP 500) is usually temporary: retry a read once later. Never resend a change that failed with 500 straight away: it may have gone through, so check the outcome with the matching read or vps_actions_list first, and tell the user what you found.[VPS:2047] or [VPS:2048], poll vps_virtual-machines_get until actions_lock is unlocked, then send the call again only if state allows it. 2048 names the wrong state and is also the answer while another action runs. On [VPS:2049] or [VPS:2053], tell the user and retry once later.vps_actions_get, waiting longer between checks, until state is success or error (created, sent, delayed, started are still running). An action that ends in error did not finish its change: read the server again, actions_lock included, and tell the user what failed. Firewall sync and delete answer Request accepted instead, and vps_ssh-keys_add-virtual-machine returns the server's key list; check the result with the matching read operation. Restart, emergency mode and a restore usually finish within minutes; a large disk takes longer.vps_virtual-machines_restart and vps_virtual-machines_stop (downtime), vps_virtual-machines_set-root-password, vps_recovery_start and vps_recovery_stop (reboots), vps_snapshots_restore and vps_backups_restore (overwrite the disk), vps_snapshots_create (replaces the snapshot), vps_firewall_deactivate (opens every port on that server) and vps_firewall_delete (opens every port on every server using the group). A request to fix the server is not consent to any of them.vps_virtual-machines_list; keep id, ipv4[0].address, state, actions_lock, template.name, plan, memory, disk and bandwidth (MB) and firewall_group_id. Then vps_actions_list: a recent error, or a restore or reinstall the user did not mention, is often the whole story.
state | Meaning | Next |
|---|---|---|
running | the hypervisor sees it up | step 2 |
stopped | stopped from the dashboard, or by Hostinger after malware was found; data is kept | ask the user whether they stopped it; if not, check hPanel and email for a malware notice before vps_virtual-machines_start |
suspended | suspended for non-payment or abuse | non-payment: renew in hPanel (data kept for up to 21 days after expiry). Abuse: the suspension email gives the reason; fix it and reply to that email. Nothing the API can do |
initial | bought, waiting for setup | provision-vps |
recovery | emergency mode is on: the rescue system is running, not the server's own OS, and actions_lock is unlocked | ask the user whether they still need it; vps_recovery_stop boots the server's own OS again (step 6) |
error | the last operation failed | not locked: a restore, emergency mode or a reinstall is still accepted, while start, stop and restart are refused; Hostinger support if a restore fails too |
any other (starting, stopping, restoring, recreating, …) with actions_lock: locked | an action is running | wait and poll vps_actions_list. An action sent for 12 hours is stuck — Hostinger support |
A server shown as running can still have an expired plan; billing_subscriptions_list tells.
ping -c 3 IP
nc -zv -w 5 IP 22; nc -zv -w 5 IP 80; nc -zv -w 5 IP 443
curl -sS -o /dev/null -w "%{http_code} ttfb=%{time_starttransfer}s\n" http://IP/
dig +short A DOMAIN
Before trusting nc, run it against 192.0.2.1, a reserved address with no server. Any port that answers there is faked by the local network (a VPN or proxy; 80, 443 and 8080 are common), so judge those ports only by an HTTP answer from curl. On macOS add -G 5 to nc; without it a port that drops traffic hangs for over a minute.
running → firewall (step 3) or the guest OS (step 4 through the browser terminal).502/503 → the app or proxy (step 4).dig returns another IP → DNS, not the server: dns_records_list and deploy-to-vps step 6.firewall_group_id set → vps_firewall_get. An active group drops all inbound traffic without an accept rule, on IPv4 and IPv6, and overrides any accept rule inside the OS. Check there is a rule for every port the user expects (an SSH rule restricted to an old IP is a classic cause) and that is_synced is true; false means changes are not pushed — vps_firewall_sync-to-all-assigned-v-ms, which answers Request accepted; confirm with vps_firewall_get showing is_synced: true. Missing rule → propose vps_firewall_create-rule, then sync. Changes reach new connections within about two minutes.
ssh root@IP, or the hPanel browser terminal (Web Console on the VPS Overview), which works without SSH. Collect before changing anything:
uptime; free -m; df -h /; df -i /
systemctl --failed
journalctl -p err -n 50 --no-pager | grep -v 'sshd-session.*preauth'
ss -ltnp
docker ps -a 2>/dev/null
The grep drops failed SSH logins from the internet, which are normal noise on a public server and would hide the real errors.
| Evidence | Cause | Fix to propose |
|---|---|---|
df -h / near 100 % | disk full | find the growth (du -xh / --max-depth=2 | sort -h | tail, journalctl --disk-usage, docker system df) and remove what the user agrees to. If /var/log is what grew, hPanel → Settings → Main settings → Delete unnecessary logs clears it; the public API has no cleanup operation |
a service in systemctl --failed, error in its journal | the app crashed | the log line names it; fix config or env, then restart the service |
Out of memory: Killed process in the journal | memory exhaustion | fewer workers or containers, swap, or a plan upgrade |
a container Restarting | crash loop | docker logs <name>, or vps_docker_logs for a Docker Manager project |
nginx or the app not listening in ss | the service is down | systemctl status <service>, its journal, then restart |
Docker Manager projects: vps_docker_list ([VPS:2044] means this server has no Docker Manager; availability does not follow the template name), vps_docker_containers for state and health (state holds the fixed values such as running and restarting; status is free text like Up 18 seconds; an empty health means the container has no healthcheck), vps_docker_logs for the last 300 lines; vps_docker_restart after the log shows the cause.
vps_virtual-machines_metrics with date_from/date_to for the last 24 h: cpu_usage (%), ram_usage and disk_space (bytes, compare with memory and disk in MB), incoming_traffic and outgoing_traffic (bytes) and uptime. Over SSH, top -bn1 | head -20 names the process.st in top). The limit lifts on its own after CPU use drops, or the user can press "Remove limitations" in hPanel once every 7 days. Find and fix the process first, or the limit returns.bandwidth is throttled until the quota resets; it is not charged. Sum the month's incoming_traffic and outgoing_traffic from the metrics to check; they are in bytes and bandwidth is in MB, so convert before comparing.In this order, each confirmed with the user first:
sshd_config (port 22, standard authentication) and keeps passwords and keys; Reset firewall configuration is the documented way back when a firewall locked the user out — Hostinger's documents disagree on whether it resets the guest firewall (ufw, iptables, fail2ban bans) or the Hostinger firewall group, so tell the user to check the firewall rules afterwards. The API has neither.vps_virtual-machines_set-root-password (password rules as in provision-vps), then add a key with vps_ssh-keys_add-virtual-machine.vps_virtual-machines_restart; loses nothing on disk.vps_recovery_start with a temporary root_password that applies only to the rescue system. The server boots a separate rescue system with the original disk mounted under /mnt (find the main partition with lsblk, e.g. /mnt/sda1; chroot into it to act as the server). SSH and the browser terminal work in it for up to 24 hours, but the Hostinger firewall may still block SSH — check step 3 first. Say what will change before changing files, then vps_recovery_stop.vps_snapshots_restore: the single snapshot, kept for one day only (vps_snapshots_get for its created_at; 404 means none). The snapshot is still there after its own restore.vps_backups_restore with a backupId from vps_backups_list: weekly by default, the two latest kept (plus two daily with the paid add-on). A backup taken on another OS brings that OS back. A backup restore deletes a snapshot taken after that backup.
Name the date and everything that will be lost after it, and wait for the user's "yes".provision-vps step 5.State the cause, the evidence and the single change proposed, and make it only after the user agrees. Re-run the step 2 checks to show the symptom is gone.
rsync or SFTP.What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/audit-hostingAudit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website, SSL problems, broken or vulnerable WordPress installs, failed Node.js builds and vulnerable npm packages, databases and Agency Plan orders near their limits, and hosting plans about to lapse. Read-only; produces a prioritised to-do list and names the skill that fixes each item. Triggers: what do I have on Hostinger, audit my hosting, check all my websites, what needs attention, health check my sites, are any of my sites broken, which of my sites are insecure./audit-vpsAudit every Hostinger VPS (KVM plans) on the account and report what needs attention: server state and failed actions, CPU, memory, disk and monthly traffic use, firewall missing or not synced, SSH keys, Monarx malware counts, backup age, Docker Manager projects that are not healthy, old OpenVZ servers, and VPS plans about to lapse. Read-only; produces a prioritised to-do list and names the skill or hPanel page that fixes each item. Triggers: what VPS do I have, audit my servers, check all my VPS, which servers need attention, health check my VPS, are my servers secure, is my VPS backed up, when does my VPS expire./connect-domainConnect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to the site, point DNS at Hostinger without breaking existing email or verification records, install SSL, turn on the HTTPS redirect, and verify it resolves. Handles domains registered at Hostinger or elsewhere, moving a site off its free *.hostingersite.com subdomain, subdomains and aliases. Triggers: connect my domain, point my domain to my site, use my own domain, move off the free subdomain, add a subdomain, park a domain, add a domain alias, my domain is not working.npx claudepluginhub hostinger/claude-plugin --plugin hostingerOther plugins' skills for the same job