Computing Library
Earlier articles
Troubleshooting
Why a short MQTT outage resends 24 hours of history
A sub-minute MQTT outage should replay at most a couple of minutes of records. When roughly a day of already-published history comes back, broker retransmission is not the cause: the rolling history buffer's read position has re-selected stored records. Trace the publisher's first batch by source timestamp and keep downstream deduplication in place.
Explainer
What one Telegraf point really costs on InfluxDB disk
InfluxDB writes points into compressed columns, so nothing in a query reports the bytes one stored point occupies. Trim each point to value, timestamp and topic tag, measure one sensor's compacted size over a test week, and scale it by the point count that your interval, sensor count and retention days produce.
Troubleshooting
Why OPC HDA backfill gives PI winter timestamps one hour off
A winter-only one-hour error in an OPC HDA backfill means one component is subtracting a fixed daylight-saving offset from timestamps that need the standard offset. Compare paired winter and summer events in UTC at each boundary of the path, find the first boundary where the UTC instant changes, and correct the conversion there before any bulk backfill.
Explainer
What a historian migration moves and what you must rebuild
A one-time SIMATIC IT Historian to PI migration is three jobs: a mapped backfill of archived measurements through the RDBMS via ODBC interface with your own TSQL queries, a live path commissioned separately (PI Connector for Siemens SIMATIC PCS 7 over OPC UA where data originates in PCS 7), and a rebuilt alarm, trend, calculation and audit layer. Run parallel, reconcile batches, then decommission.
Troubleshooting
MQTT Transmission fails to validate the primary host online
The message means your Transmission Set has a Primary Host ID configured, but no Sparkplug Host Application with that same ID is connected and publishing its STATE online message. Match the identifiers and restore the host connection; clearing the Primary Host ID is a design change that removes the presence check, not a fix.
Troubleshooting
Tag historian query tall format shows shifted data key aliases
When a report's tag historian query runs in tall format and a data key shows t_stamp where a tag alias belongs, the query's returned key list is offset against the configured aliases, not the stored data. Compare returned keys to configured tag paths first, then fix the report binding or script an explicit key-to-tag mapping.
Troubleshooting
Python paho MQTT connection refused Errno 111 at the broker
Errno 111 happens at the TCP connect stage, before any MQTT traffic: nothing is listening at the address and port you set, or a firewall rule rejects the connection. Confirm the broker listener, give the publisher scoped access to the MQTT port, and only then publish JSON and map it to tags with an MQTT Engine custom namespace.
Explainer
Store-and-forward SQL buffering during MES outages
Treat the MES requirement as a durable store-and-forward buffer, not a database mirror. Capture every record locally with its acquisition timestamp — a file for event-level data, a queue table or a local time-series store for measurement streams — and replay only what the remote SQL database has actually committed. Size the buffer from record rate, record size and outage duration; at the worked rates a 256 MB partition carries a 72-hour outage.
Troubleshooting
Vijeo Historian log all samples for unchanged tag values
A zero deadband only removes change filtering; it does not store repeated values. To keep every 00:05:00 sample of a stable tag, enable Log all samples on that historian tag, prove the result with raw-record queries, and make the change in the configuration that owns the tag so synchronization cannot revert it.
Troubleshooting
Why ArchestrA Historian storage shows high CPU usage
Identify the busy aahStorage.exe instance in Task Manager's Details tab with the Command Line column, then trace whether a historical trend, report or background client drives the load. Storage also reads raw history blocks, so retrieval usually explains the CPU before collection settings are involved.
Explainer
Why the v2 Java client cannot create a database on InfluxDB 1.8
InfluxDB OSS 1.8.5 implements only the v2-compatible write and query endpoints, so the v2 Java client's createV1 plus getBucketsApi().createBucket returns 404 and creates nothing. Create the database with a POST of CREATE DATABASE to the 1.x /query endpoint, admin credentials when authentication is on, and keep the v2 client for writes and reads.
Troubleshooting
Telegraf cannot reach an InfluxDB container by its name
Docker container names resolve only inside the Docker network, so a Telegraf service running on the host cannot use the container name with the published number. Point the InfluxDB output at the published host port, localhost with 8087 for an 8087:8086 mapping. If that address returns EOF, name resolution is fixed and a separate published-endpoint fault remains; verify it with a direct query to the query endpoint before touching Telegraf.