Troubleshooting
Start with what you can see. Each section below is a symptom, with its usual cause and what to do about it. Most fixes are one command on the server, and the commands start with sudo: leave it out if you are signed in as root. Where a page of this manual explains more, the section links to it. If nothing here helps, the last section says what to collect and where to ask.
The installer stops or warns
Section titled “The installer stops or warns”- “this kernel cannot create WireGuard interfaces”. The server is an OpenVZ or LXC container. Rent a KVM or Xen server with Linux 5.6 or newer.
- “unsupported distribution”. The system is not one of those on Requirements.
- A line that ends “Fix: …, then run this installer again”. The panel runs as its own user, never as root, and this server cannot run it that way yet (
iptables-legacy, the panel’s users orsetprivmissing, or a certificateaftab-panelcannot read). Nothing was changed: do what the line says afterFix:, then run the installer again. For a certificate, let the panel’s user read it only if it is this panel’s own; otherwise clear the setting. - “the panel failed to start”. Read the log with
sudo aftab log, or its last lines withjournalctl -u aftab -n 50. - “HTTPS was not set up” or
No terminal: HTTPS skipped. The panel runs over plain HTTP. Add HTTPS any time: see HTTPS.
Install has the whole list.
The panel does not open
Section titled “The panel does not open”- Check that it runs.
sudo aftab statussays whether the panel is running and how many WireGuard links are up. If it is not running,sudo aftab restartstarts it again, andsudo aftab logshows why it stops. - Check the address.
sudo aftab infoshows it. The whole address has the port and the secret path in it, and it starts withhttps://only when the panel has HTTPS. sudo aftab healthasks the panel itself whether it is up and answering, and its exit status is 0 when it is.- If
sudo aftab healthsays the panel answers and your browser still cannot reach it, the way in is blocked: a closed TCP port in your provider’s firewall, or a wrong address. - A browser that warns about the certificate of an IP address: that certificate lasts 6 days and renews itself.
sudo aftab ssl statusshows it, andsudo aftab ssl renewrenews it now.
You cannot sign in
Section titled “You cannot sign in”- You lost the password.
sudo aftab reset-adminsets a new random one and prints it. - Sign-in is blocked. After too many wrong passwords from one address, the panel blocks that address for a while.
sudo aftab unbanlifts every block, orsudo aftab unban ADDRESSone. - You lost your authenticator.
sudo aftab 2fa-offturns off two-factor sign-in. See Security.
A client cannot connect
Section titled “A client cannot connect”Open Clients, open the client, and in Details press Why can’t they connect? The panel looks where a seller would: the account first, then the server, then the way in, then the person. It gives one cause and one thing to do. Its answers:
- The client is switched off. Switch the client on.
- The service has ended. Renew them.
- The traffic is used up. Renew them.
- The client has no config on any inbound. Edit the client and give it an inbound.
- Every inbound this client uses is off or not running on the server. Check the inbound. If it is on and still not running,
sudo aftab applymakes the server match the panel now, andsudo aftab logshows why it did not. - They have not opened their link yet. Send the link again and ask them to open it on their phone.
- They opened the link, but their way in is blocked from Iran. Point them to another inbound or a bridge: Inbounds → Move clients.
- They opened the link but have never connected. Send the link again. If an AmneziaWG inbound is on and the client has no config on it, edit the client and tick that inbound.
- They connected before but have been quiet for days. The panel calls a client quiet when its last connection is more than 3 days old. Send the link again and ask them to open it on their phone.
- Nothing is wrong: they connected recently. The problem is on the client’s side. A config imported before you changed the inbound’s protocol, port or AmneziaWG values no longer works: send the link again.
Under all of it, the inbound’s UDP port must be open in your provider’s firewall, and the app must fit the inbound: the WireGuard app does not open an AmneziaWG config, so clients need an AmneziaWG app. Inbounds and Clients and plans explain more.
It works abroad but not in Iran
Section titled “It works abroad but not in Iran”When the bridges’ tests from Iran get no answer from an inbound, the panel marks it Blocked from Iran, and the check above says so for the client. Try another port, an AmneziaWG inbound, or a bridge. Use a bridge in TLS tunnel mode when UDP across the border is blocked or slow: it crosses over TCP. See Iran bridges.
A bridge, an exit or a server stays offline
Section titled “A bridge, an exit or a server stays offline”- Waiting for install, on a bridge in Bridges: the install command was not run, or the server cannot reach the panel. On the Iranian server run
sudo /usr/local/lib/aftab-bridge/aftab-bridge status, or read the log withjournalctl -u aftab-bridge. See Iran bridges. - Waiting for exit node, on an exit: the install command was not run, or the UDP port is closed in the exit server’s firewall. See Exits.
- Bridges, exits and fleet servers join only a panel that has HTTPS: see HTTPS and Fleet servers.
The subscription link does not open
Section titled “The subscription link does not open”The subscription page has a TCP port of its own: port 2096 unless it was taken. sudo aftab get sub_port shows it, and your provider’s firewall must allow it. sudo aftab get sub_enabled must say true. A client whose link was replaced with New sub link must use the new one. See Clients and plans.
The certificate fails
Section titled “The certificate fails”The usual causes are on HTTPS: TCP port 80 is in use or closed, the A record does not point to this server, or Cloudflare’s proxy is on for a domain. A failed request changes nothing on the panel, so fix the cause and run the command again.
An update went wrong
Section titled “An update went wrong”An update that does not answer its health check within a minute rolls back by itself. To go back later, run sudo aftab rollback. See Updates and rollback.
Alerts or the shop bot are silent
Section titled “Alerts or the shop bot are silent”Settings → Integrations, where Telegram and the support bundle are, is hidden until you turn on Selling and operator tools in Settings → Panel (the full_mode setting). In Telegram, press Send a test message: alerts reach only the chats you listed, and only the groups that are on. See Monitoring and alerts. A shop bot that does not answer is explained in The Telegram shop.
What to collect before you ask
Section titled “What to collect before you ask”Note what you did, what you expected and what happened. Collect the version, sudo aftab version, and the last lines of sudo aftab log. If the panel opens, the Logs button on the Overview shows the same log, and Download support bundle, in Settings → Integrations, gives one file with versions, settings and recent logs: Monitoring and alerts says what it holds.
Never post the output of sudo aftab state, a backup, a client’s config or a subscription link: they hold private keys or secrets that let others in.
If nothing here answers your problem, use Ask a question, at the foot of the sidebar.