Forwarding logs and troubleshooting
What each result in the forwarding logs means, and what to check when forwarding fails.
"Forwarding logs" in the portal's sidebar lists the forwarding result of every message your devices upload, newest first. When forwarding doesn't arrive as expected, start here.
What the forwarding logs show
| Column | Description |
|---|---|
| Time | When CeresGate received the message, in the account's time zone |
| IMSI | The device that uploaded the message |
| Type | UL (uplink): data sent from the device over the satellite network to CeresGate |
| Adapter | The destination type it was forwarded to; "—" when not forwarded |
| Result | Forwarded, Failed or Not forwarded; see the next section |
| Details | Why it wasn't forwarded, or the code and error message of a failure |
| Payload | The JSON sent to the destination ({"IMSI": …, "Payload": …}; see Forwarding format) |
- Filter by date range, IMSI, result and adapter; 50 entries per page.
- "Export CSV" exports the entries matching the current filters (up to 50,000). The CSV's
status_codecolumn is the HTTP status for ThingsBoard; for MQTT Broker, AWS IoT Core and Azure IoT Hub it is 200 (success) or 100 (failure), not an HTTP status. - Logs are kept for 7 days and then deleted automatically. Keep any data you need long-term in your destination system.
- "Forwarding stats" shows forwarded and failed counts per hour; messages that were not forwarded aren't counted.
The three results
| Result | Meaning |
|---|---|
| Forwarded | The destination confirmed receipt: ThingsBoard answered HTTP 200; the MQTT Broker, AWS IoT Core or Azure IoT Hub acknowledged the published message |
| Failed | CeresGate tried to forward it, but the destination refused it, couldn't be reached or didn't acknowledge it. It is not retried |
| Not forwarded | CeresGate received the message but, because of the account's or device's status, did not forward it |
Why a message wasn't forwarded
| Details shows | Cause and what to do |
|---|---|
| No adapter assigned to the device | The device has no destination yet. Choose an adapter in the Adapter column of the device list. |
| Account suspended | The free trial ended without a subscription, or the subscription ended. An account administrator can choose a plan on the Subscription plans page; new messages are forwarded again once subscribed, but messages that weren't forwarded are not sent later. |
| POC period ended | The POC account's period has ended. To keep using CeresGate, contact us (support@creative5.io) or subscribe to a plan. |
When forwarding fails
Details shows a code and an error message, which mean different things for different destination types:
ThingsBoard
The code is the HTTP status ThingsBoard answered with, and the error message is the one in ThingsBoard's response. For a converter or rule-chain script error, ThingsBoard's response carries no message, so the forwarding logs show ThingsBoard returned an internal error without a readable message …; the details are in the Events tab of the converter or rule chain in ThingsBoard. Only HTTP 200 counts as success.
| Code | Common cause | Check |
|---|---|---|
| 403 | Header check failed | Whether the adapter's username and password match the values in the ThingsBoard integration's headers filter |
| 404 | The URL doesn't exist | Whether the adapter's httpurl is right and the integration is enabled |
| 500 | ThingsBoard hit an error while processing it, most often a bug in the data converter's code | The Events of the integration and the converter in ThingsBoard; whether the converter handles content that isn't JSON (see Forwarding format) |
| No code; a connection or timeout error | ThingsBoard couldn't be reached or didn't answer within 10 seconds | The httpurl's host name; whether ThingsBoard is reachable from the internet; whether the server is overloaded |
MQTT Broker, AWS IoT Core, Azure IoT Hub
These three destinations use MQTT; Details shows the error message:
| Error message | Meaning | Check |
|---|---|---|
Failed to connect to … | The connection couldn't be made (MQTT Broker adds the reason after a colon, for example certificate verify failed) | Host name and port; whether mqtt/mqtts matches the broker; username and password; whether the certificate is right, unexpired and matches the private key; whether the root CA is the one the destination uses; whether a firewall allows connections from the internet |
Failed to send payload to … | Connected, but the published message wasn't acknowledged in time | Whether the certificate may publish to the uplinktopic (for example the AWS IoT Core policy); whether the uplinktopic is right; the destination's load and network; whether the timeout (connectiontimeout) is too short |
For how to set up each destination, see that destination's guide.
Nothing at all in the forwarding logs
If your device has sent data but the forwarding logs show nothing, the data wasn't recognised as coming from one of your account's devices, and CeresGate keeps no log of it. Check:
- The IMSI is bound: confirm in the device list that the device's IMSI is bound to your account.
- The packet format: the first 15 characters of the packet must be the bound IMSI, and the whole content must be encoded as a hex string. See Device connection.
- The right address: whether the UDP Gateway's IP and port are right (shown in Device connection once you log in).
- The device actually sent it: whether the device is within satellite coverage and the SIM's satellite network service is active (ask your satellite network provider).
- The date range: the forwarding logs show today only by default; widen the date range.
Shown as "Forwarded", but the data isn't there
- ThingsBoard: HTTP 200 means the integration received it; check the converter's output and the device's latest telemetry in ThingsBoard.
- MQTT destinations: make sure the topic you subscribe to is exactly the adapter's uplinktopic (case, slashes), and that the subscription existed before the message was published. CeresGate's messages aren't retained (retain = false), so messages published before you subscribed aren't delivered later. Also check the broker's ACL: brokers such as Mosquitto acknowledge a publish they aren't allowed to deliver and drop it, so it shows as "Forwarded".
Getting help
Email support@creative5.io with the device's IMSI, the time it happened (with time zone), and the result and details shown in the forwarding logs, so we can look it up.