Skip to content

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.

  • “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 or setpriv missing, or a certificate aftab-panel cannot read). Nothing was changed: do what the line says after Fix:, 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 with journalctl -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.

  1. Check that it runs. sudo aftab status says whether the panel is running and how many WireGuard links are up. If it is not running, sudo aftab restart starts it again, and sudo aftab log shows why it stops.
  2. Check the address. sudo aftab info shows it. The whole address has the port and the secret path in it, and it starts with https:// only when the panel has HTTPS.
  3. sudo aftab health asks the panel itself whether it is up and answering, and its exit status is 0 when it is.
  4. If sudo aftab health says 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.
  5. A browser that warns about the certificate of an IP address: that certificate lasts 6 days and renews itself. sudo aftab ssl status shows it, and sudo aftab ssl renew renews it now.
  • You lost the password. sudo aftab reset-admin sets 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 unban lifts every block, or sudo aftab unban ADDRESS one.
  • You lost your authenticator. sudo aftab 2fa-off turns off two-factor sign-in. See Security.

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 apply makes the server match the panel now, and sudo aftab log shows 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.

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 with journalctl -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 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 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 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.

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.

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.