# The EA is offline

> The license shows Offline, the EA panel says Disconnected, or commands stay Pending and expire. Find the cause and reconnect your MetaTrader 5 EA.

Source: https://zb-connector.com/docs/troubleshooting/ea-offline/

This is checkpoints 4 and 5 of [find where an alert stopped](https://zb-connector.com/docs/troubleshooting/find-where-it-stopped/). The command reached ZB Connector, but your EA is not collecting it.

## Symptom

One or more of these:

-   **Licenses** shows **Offline**. It reads Online while the EA has asked for commands in the last 8 seconds.
-   The MT5 chart panel says **Status: Disconnected**.
-   Rows in **Command History** stay **Pending** and then show **Expired**. A command expires 5 minutes after it was queued and never runs late.

## Causes, most likely first

1.  MT5 is closed or logged out, so nothing is polling.
2.  The EA is not on a chart. A running EA shows its name and icon in the upper right corner of the chart.
3.  The ZB Connector address is not in MT5’s list of allowed web addresses, so MT5 blocks every request.
4.  The license key in the EA is wrong, has a typo or has expired. The API refuses it, and the EA counts a refused poll as failed.
5.  The computer has no internet connection, or a firewall blocks MT5.

## Fix

1.  Open MT5 and check that it is logged in to your account.
    
2.  Look for the EA’s name and icon on the chart. If it is missing, attach the EA again: [install the EA](https://zb-connector.com/docs/install/install-the-ea/).
    
3.  Open **Tools → Options → Expert Advisors**. **Allow WebRequest for listed URL** must be ticked, with this address in the list:
    
    `https://dev.api.zb-connector.com`
4.  Double-click the EA input **License ID / Auth token** and compare it with the key in **Licenses**. Look for spaces or a missing character, and check the key has not expired.
    
5.  Open the **Experts** tab of the MT5 Toolbox. After 5 failed requests in a row the EA writes `Backend unreachable after 5 consecutive failures`, with the last HTTP status and error code. A fuller log is in `ZB_WebConnector_Log.txt` in the terminal’s `MQL5\Files` folder.
    
6.  Check that the computer is online.
    

## Confirm it is fixed

The panel says **Status: Connected** and **Licenses** shows **Online**. Commands that are still younger than 5 minutes are then collected, in one batch. Older ones stay **Expired**.

## Still stuck?

With these items we can find the failing step quickly. Collect them before you write.

-   The number of the **first checkpoint that failed** and the time of the alert, with your time zone.
-   The row from TradingView's alert log, including the **Webhook status** column.
-   The row from **Command History** (License Details page): status, time, and the reason shown when you hover **Failed**.
-   The last lines of the MT5 **Experts** log around that time.
-   Your alert message as TradingView sends it.

**Always remove:** your license key (write `YOUR_LICENSE_KEY`), passwords, and any screenshot where the EA panel shows the key.

[Write to support with this checklist filled in](mailto:contact@zb-connector.com?subject=Help%3A%20The%20EA%20is%20offline&body=Page%20I%20followed%3A%20https%3A%2F%2Fzb-connector.com%2Fdocs%2Ftroubleshooting%2Fea-offline%2F%0A%0AFirst%20checkpoint%20that%20failed%20\(1-6\)%3A%0A%0ATime%20of%20the%20alert%20\(with%20time%20zone\)%3A%0A%0ATradingView%20alert%20log%2C%20Webhook%20status%3A%0A%0AZB%20Connector%20Command%20History%20status%20\(and%20the%20reason%20shown%20when%20you%20hover%20Failed\)%3A%0A%0ALast%20lines%20of%20the%20MT5%20Experts%20log%3A%0A%0AAlert%20message%20\(replace%20the%20license%20key%20with%20YOUR_LICENSE_KEY\)%3A%0A%0A%0A%0ADo%20not%20send%20your%20license%20key%2C%20passwords%20or%20full%20screenshots%20of%20the%20EA%20panel%20\(it%20shows%20the%20key\).)(contact@zb-connector.com).

## Related

-   [If something goes offline](https://zb-connector.com/docs/reliability/if-something-goes-offline/)
-   [How delivery works](https://zb-connector.com/docs/reliability/how-delivery-works/)
