Skip to main content

Traffic policy is available only on paid plans

Traffic policy is available only on paid plans: https://my.tuna.am/subscription

tuna CLI shows this error when you start an HTTP tunnel with tuna http or a command built on it. The tunnel doesn't start, and the client exits right away. Without the interactive interface, for example in a service log or with --log=stdout, the line looks like this:

FATA[12:00:00] Traffic policy is available only on paid plans: https://my.tuna.am/subscription

Cause​

Traffic policies require a subscription. After signing in, the client checks for rules (rules) and stops if the subscription isn't active.

Rules are read from several places:

  • the .tuna.yml file in the current directory, read by default even without flags;
  • the file from --policy-file or the TUNA_POLICY_FILE variable;
  • the URL from --policy-url.

That's why the error often shows up when you start a tunnel from a project directory where a teammate has already put a .tuna.yml.

What to do​

  1. Check whether there's a .tuna.yml in the directory you start the tunnel from, and whether --policy-file, --policy-url or TUNA_POLICY_FILE is set.
  2. If you don't need the rules, start the tunnel from another directory or point to a file without rules: --policy-file=/path/to/empty.yml.
  3. Run tuna whoami to check that the client is signed in to the account with the subscription.
  4. If you need the rules, get a subscription or renew it in the dashboard.