Error codes in logs
Log messages that TPOSS prints may contain a code number for the error or warning. This document contains the list of possible code numbers with description and recommendations that you can apply.
General errors
Here are the general errors that may appear in TPOSS logs:
| Code | Description | Recommended action |
|---|---|---|
| 1000 | Informational code that does not require any action. | None. |
| 1001 | TPOSS is in a critical state due to one or more of its sub-systems repeatedly failing. Possible causes include too high rate of database errors, connection failures to NATS, or failures in TPOSS internal subsystems. | Check the status of the connected NATS and database instances, and review the TPOSS logs, especially entries immediately preceding this message. |
| 1003 | Failure of an event triggered by the TPOSS HTTP API call. For some API calls, in addition to the main API handler, TPOSS attaches event handlers. For example, when creating a balance, TPOSS may try to change the state of a service session to Online. You may see this log message if one of these event handlers fails, which may be caused by TPOSS having problems connecting to external systems. | Check the status of external systems and the data that TPOSS receives from the HTTP API calls. |
| 1005 | A handler for an incoming RADIUS/Diameter/HTTP request failed to handle the request. This may happen when one of TPOSS internal sub-systems fails. Such log messages usually contain the details of the failed request and the stack trace of the handler. | If such errors happen often, check the logs and submit a ticket with attached logs. |
| 1007 | A charging handler for incoming RADIUS/Diameter/HTTP request failed to handle the request. This may be caused by issues with the MySQL database or service sessions in an unexpected state. The log message usually includes details of the failed request and the stack trace of the handler. | If such errors happen often, check the logs and submit a ticket with attached logs. |
| 1008 | TPOSS failed to initialize some metrics, most likely those related to the number of objects within the database. This may lead to the inaccuracy or absence of some metrics. | If metrics are missing, read the Metrics troubleshooting guide. |
Database errors
Here are the database-related errors that may appear in TPOSS logs:
| Code | Description | Recommended action |
|---|---|---|
| 1002 | Database connection pool was restarted or terminated. This may impact TPOSS ability to connect to the database. | Check the status of the database to which TPOSS is connected. |
| 1004 | TPOSS database connection pool is too busy for the current load. This may be caused by issues with the MySQL database, invalid configuration, or insufficient system resources. | Check the db_requests_query_rtt and db_requests_queue_rtt metrics for more information. In addition, you can check and tune the TPOSS database connection pool settings, such as database.connections and database.queue_target. For more information, see the Database settings document. |
| 1013 | TPOSS detected a change in database availability. Once the database recovers, TPOSS will automatically restore the connection and log a recovery notice with the same code. | If the database is marked unavailable, check the status of the MySQL instance and its connectivity from TPOSS. See also codes 1001, 1002, and 1004 for related database failure and overload events. |
IP pool errors
Here are the IP pool-related errors that may appear in TPOSS logs:
| Code | Description | Recommended action |
|---|---|---|
| 1009 | Failed to allocate an IP or encountered a generic failure of an IP pool. These issues typically prevent the TPOSS instance from managing IP addresses. The impact depends on what exactly failed - it could range from a single IP allocation to the failure of an entire IP block, potentially affecting the whole IP range. | Check the IP pool configuration and report a ticket if the error recurs, even with a potentially correct configuration. |
| 1012 | No suitable IP pool found for a network session. | Check the configuration of IP pools and profiles. For more information, see the Service profiles and IP pools configuration guide. |
RADIUS/Diameter errors
Here are the RADIUS and Diameter errors that may appear in TPOSS logs:
| Code | Description | Recommended action |
|---|---|---|
| 1011 | No active RADIUS server available for sending Disconnect request. "Active" means that TPOSS tried to send outgoing RADIUS requests for a given network session but didn't get a response. As a result, duplicate network sessions may persist in TPOSS, since they can't be properly terminated with the outgoing RADIUS Disconnect request. | Check the health of the RADIUS endpoints TPOSS uses to send outgoing RADIUS requests. |
| 1014 | Multiple Used-Service-Unit AVPs received for Online rating group without Tariff-Change-Usage AVP for the given session. Tariff time change will not be applied. | Check the PGW/TDF and OCS charging configuration. |
NATS errors
Here are the NATS errors that may appear in TPOSS logs:
| Code | Description | Recommended action |
|---|---|---|
| 1010 | TPOSS cannot connect to NATS. | Check the status of your NATS instance and related NATS configuration. If the NATS instance is healthy but the error still occurs periodically, check the NATS resource usage and increase it, if insufficient. You may check the nats_requests_rtt metric to see how fast NATS is handling requests from TPOSS. |
Kubernetes errors
Here are the Kubernetes errors that may appear in TPOSS logs:
| Code | Description | Recommended action |
|---|---|---|
| 1006 | A TPOSS instance failed to use the Kubernetes API. As a result, TPOSS instance may not be able to join the TPOSS cluster and handle incoming requests. | Check the status of your Kubernetes cluster. Additionally, check if Kubernetes roles and role bindingsOpens in a new tab for TPOSS are set up correctly and if TPOSS is allowed to use list and get APIs for StatefulSet objects. |