APIM instance problems
Weik.io 2026.2The problems of the gateway process that serves APIs. Its tables and entrances raise some. The caller addresses and limits it reads raise the rest.
On this page
An APIM instance is one running gateway process. These problems come from what it serves and what it can read. A row about a gateway goes to everyone who can read the gateway’s environment. A row about the instance goes to platform administrators.
| Problem | Kind | Severity |
|---|---|---|
| An APIM instance is behind its gateway | apim- |
Warning |
| A hub APIM instance doesn’t listen on an entrance | apim- |
Error |
| An APIM instance refuses a table | apim- |
Error |
| An APIM instance sees no caller address | apim- |
Warning |
| An APIM instance counts limits alone | apim- |
Warning |
An APIM instance is behind its gateway#
The instance serves an older revision of a gateway’s table, or an older certificate for one of its names. A newer one has been current for more than two minutes, so callers that reach this instance get the older routes or the older certificate. The row gives the revisions or the name.
An instance catches up when it reads the hub’s tables. Check that it reaches the hub, and read its lines:
$ weikio platform logs apimA hub APIM instance doesn’t listen on an entrance#
A hub instance listens on some of the hub’s entrances and not on the one the row gives, so the gateways on that entrance aren’t served by it. The row gives the entrances it does listen on. Check the instance on its hub server:
$ docker compose run --rm infra weikio-backend doctorAn APIM instance refuses a table#
The instance doesn’t serve a gateway’s hostnames because it refused the gateway’s table. The row gives the reason. Run the instance at the platform’s version, the one its stack’s images.env gives.
An APIM instance sees no caller address#
Requests reached the instance without the caller’s address, so it applied neither caller limits nor address ranges to them. The row gives how many requests and on which entrance.
The address comes through the load balancer and the terminator. Check that the balancer sends the PROXY protocol and that the terminator accepts it from the balancer’s addresses, which WEIKIO_BALANCER_ADDRESSES lists.
An APIM instance counts limits alone#
The instance can’t reach the shared counts of the subscriptions, so each instance counts a subscription’s limit on its own. A subscription can then use its full limit on every instance. Check that the instance reaches the hub.