What Changes in 3.2
Find which 3.1 behaviours change in 3.2, who each change affects, and what to do before and after upgrading.
- Release
- 3.2.0, a minor release
- Upgrade step
- upgrade apply, once
- Upgrade from
- 3.1.x
3.2 needs upgrade apply once on 3.1 data: follow Upgrading from 3.1 to 3.2. upgrade check reports the changes below that touch your own data before anything is changed. For what is new in 3.2, see the release notes.
Find what affects you
| Change | It affects you if | What to do |
|---|---|---|
| Upgrading from 3.1 | You run 3.1 | Run upgrade check, then upgrade apply once, before 3.2 starts. On Helm, the chart's upgrade Job runs it. |
| Reclaim the lineage disk (TimescaleDB) | MaestroHub keeps its data in TimescaleDB | After the upgrade, give the space of the old lineage records back to the disk, at a quiet time or at once. |
| Rolling upgrades | You upgrade the services of the high-availability chart one after the other | Upgrade the graph service and the connectors service before the engine. A single process is not affected. |
| Lineage takes a fraction of the disk | You read a value's run id, read times or a trigger's per-message ids from its lineage (API, MCP or the lineage map) | New values no longer carry them. Open a pipeline's runs around the value's time instead. |
| A resent write is the same record | A Kafka consumer reads the maestrohub.produced-at header, or you send events to Splunk | The header is on every pipeline write now; it no longer means the record came from the buffer. |
| A write whose outcome is unknown | A pipeline writes with Retry on Fail or Retry on Timeout on | A write whose result is unknown is resent only when writing it twice is safe; others fail once with WRITE_OUTCOME_UNKNOWN. |
| Order of readings | A pipeline runs One at a time and writes to Kafka, Kinesis, Event Hubs or Pulsar with an empty key | The key is now the reading's tag. A key you set wins. |
| An AI agent's tools are dependencies | A pipeline's AI agent uses functions as tools | Deleting such a function is refused unless forced. |
| What clients receive | A script creates custom roles with the schedule or webhook permission, or a client reads provenance from live MQTT messages or bulk reads | Drop those permissions (use pipeline:read and pipeline:update); ask the lineage endpoint for a value's lineage. |
| The data volume is big enough, or says so | You run the single-node chart, or MaestroHub's data volume is small | The chart's data volume is 13Gi by default; check a native install with context-platform storage check. |
| IEC 104 command confirmations | You send commands to IEC 104 outstations | A confirmation must mirror the command; one that does not ends the command as Transient. |
| Elasticsearch, OpenSearch and the AWS connectors | You use Elasticsearch, or an AWS connector with a session token and no access keys | Fix the setting the next time you edit the connection. |
| App Studio (Beta): the Draft preview simulates writes | Builders test apps in the Draft preview, or you use Test Pipeline or an AI client's dry runs | Writes from the Draft preview and test runs are simulated; turn on Act on the real plant to test writes for real. |
| App Studio (Beta): what published apps see differently | An app looks up a topic's live status in a table of its own | Handle the new statuses late and silent. |
| App Studio (Beta): copying, sharing and restricting apps | People copy or share apps | Copying needs app:create; a share opens the app by default; Who can open it can restrict an app to its list. |
| A stop that leaves a store open exits with status 1 | Something acts on MaestroHub's exit status: systemd (OnFailure= units, a failed unit), a supervisor, a script | Expect failed after such a stop. Read the ERROR line it logs, then start and stop MaestroHub once. |
| OAuth2 always runs | Your config.yaml, environment or Helm values still set modules.oauth2.enabled (oauth2.enabled in the high-availability chart) | Nothing if it says true. If it says false, delete the line; on the high-availability chart, first read what a release that ran without OAuth2 needs. |
| Auth always runs | Your config.yaml, environment or Helm values still set modules.auth.enabled (auth.enabled in the high-availability chart) | Nothing if it says true. If it says false, delete the line. |
| Five more modules always run | Your config.yaml, environment or Helm values still set enabled for authz, connectors, license, workspaces or pipelineEngine (engine in the high-availability chart) | Nothing if it says true. If it says false: the module is started by this upgrade. Read what that means before you upgrade, then delete the line. |
| The loss ledger is one database on Postgres | MaestroHub keeps its data in Postgres (the high-availability chart, or storage.engine: postgres) | With an external Postgres, create loss_ledger_db. On a single node with Postgres, run upgrade apply: the loss history from before the upgrade is not carried over, and the old file is kept as loss_ledger.db.set-aside-by-upgrade. On SQLite, nothing: loss_ledger.db stays where it is, with its history. |
| Buffers are always on disk; the run queue has its own setting | Your config.yaml, environment or Helm values set nats.embedded.streamStorage | Rename it nats.embedded.runQueueStorage. It now decides only the pipeline run queue; MaestroHub warns at start while the old name is set. Leave room on the data disk for the buffers. |
| Retained messages keep the newest value | A gateway replays older readings into the UNS, or a client reads retained UNS topics | The retained message is the newest value by time, not the last one to arrive. |
| The MQTT broker refuses malformed packets | A device or tool connects to MaestroHub's MQTT broker and sends a credential without its flag, a Will Topic with + or #, No Local on a $share/ subscription, or (MQTT 5) a padded length. Or an MQTT connection has a Last Will topic with + or #, or a Sparkplug B connection has a Group ID or Edge Node ID with +, # or / | Change the MQTT will topic to one topic, or the Sparkplug B Group ID or Edge Node ID to a plain name. After the upgrade, look for mqtt: the broker refused a client's packet and closed the connection in the log. Fix the client's settings, or ask its vendor for a client that follows MQTT. |
| A Sparkplug B connection that only listens publishes nothing | A Sparkplug B connection has no Publish Device Data function, and something (a SCADA tag, an alarm) watched its own NBIRTH or NDEATH | Add a Publish Device Data function if MaestroHub's node must stay visible. Otherwise nothing: such a connection now needs no Group ID or Edge Node ID. |
| TimescaleDB: the time index is replaced in the background | Your historian is TimescaleDB | Nothing. Allow free database disk for one more index per uncompressed chunk (about 0.4 GB on a chunk of 22 million values) for a day or two. |
| Failures are counted per trigger | A pipeline has more than one trigger, or you clear a failing pipeline with a run from a separate Manual Trigger, or an alert reads maestrohub_pipeline_failure_streak | To clear a failing pipeline, Retry the failed run or use Fire Trigger on the trigger the Overview names. |
| A host field beside a Port field holds one host | A connection has a port (10.0.0.5:102) or a list (10.0.0.5, 10.0.0.6) in an address field that takes neither | Put the port in the Port field and keep one host. Until then Start answers 422 INVALID_CONFIG naming the field, and the connection does not dial. upgrade check lists each one. |
| A function over its list bound fails every run | A function names more items in a list than its connector's bound (for example more than 100 points of an S7 multi-read), most likely one created through the HTTP API or MCP | Split the list over several functions, or, for a list that cannot be split, remove items. Until then every run fails naming the field and the bound, and a subscription over its bound is not started. upgrade check lists each one. |
| An S7 STRING[254] is refused at a 240-byte PDU | An S7, LOGO!, S5 or SINUMERIK 808D function reads or writes one value longer than one request carries, such as the default STRING[254] on a LOGO! or an S7-300 or S7-1200 that answers a 240-byte PDU | Declare a shorter string type in the PLC (the error names the longest that fits, such as STRING[220] for a read) and set the function's size to match. Until then the read or write fails and nothing is sent. upgrade check lists each one. |
| OPC UA: BadTooManyOperations is final | An OPC UA server refuses a request for too many operations, and MaestroHub cannot split it further | Nothing to change in MaestroHub. Such a failure is no longer retried: a buffered write goes to the dead-letter queue. Raise the server's operation limits if it is too low. |
| A boolean setting holds true or false | A client saves a boolean setting as text other than "true" or "false" ("yes", "1") or as a number, through the HTTP API, MCP or a bundle | Send true or false. Such a save is refused with 400 naming the field. A row stored with such a value keeps running; its next save is refused, and upgrade check lists it. |
| ClickHouse: a host list with an IPv6 address does not connect | A ClickHouse connection without a CA or client certificate lists several hosts and one of them is an IPv6 address | Give that node by its host name. Until then the connection starts but does not connect, and shows why. upgrade check lists it. |
| A connection or function without a timeout runs on the default | A connection without a Request Timeout, or a function without a Timeout, was created through the HTTP API, MCP or an import | Set the Request Timeout or the function's Timeout where a call needs longer than the default. |
| A Request Timeout that bounds one request no longer cuts the whole call | A function on Alstom Redundant Modbus, FANUC FOCAS, Ignition, InfluxDB, ODBC, OPC DA, OPC UA, PI System, PI Web API, Prometheus or SAP IDoc relied on the Request Timeout to end a long call sooner | Set the function's own Timeout. |
| New Response Timeout settings | A Keyence, FANUC Ethernet, Panasonic, Universal Robots, IEC 61850, ABB Robot Web Services or IMAP device takes longer than the default to answer one request | Set a longer Response Timeout in the connection form. |
| A stop during a restart is no longer undone | A script calls Restart or Start all on connections | Handle 409 RESTART_HALTED from Restart, and read each connection's outcome in the results of Start all. |
Upgrading from 3.1
Every 3.1.0 installation runs upgrade check and then upgrade apply once before it starts 3.2: a workspace connected to a demo plant is carried over to the plant model of 3.2 (#8346), and the Git remote settings (with their encrypted access tokens) and edit sessions that deleted App Studio apps left behind are removed (#8629); upgrade check lists them per workspace. On Helm, an install with App Studio now goes through the chart's upgrade Job too (App Studio's store gains its first migration only upgrade apply may run): the Enterprise chart needs your database snapshot, given as upgrade.snapshotTaken, and both charts stop MaestroHub for a short downtime while upgrade apply runs, as described in Helm. See Upgrade commands.
A build older than 3.2 refuses to start on data 3.2 has written. To go back, restore the backup upgrade apply took.
Reclaim the lineage disk (TimescaleDB)
The lineage records 3.1.0 wrote are deleted once the values that refer to them are past their retention, but PostgreSQL keeps the space for the table instead of returning it to the disk. Pick one:
- Keep the lineage of older values. Once the values stored by 3.1 have aged out, run
VACUUM FULL telemetry_provenance;. It locks the table while it runs, so writes wait: run it in a quiet period. Where thepg_repackextension is installed in the database,pg_repack --table=telemetry_provenancedoes the same without the lock. - Free the space at once. Stop every MaestroHub instance, run
TRUNCATE telemetry_provenance;, then start 3.2. Every value stored until then keeps its value, time and quality and loses only its lineage. Do not addRESTART IDENTITY: the stored values still hold the numbers of the deleted records, and restarted numbers would point them at the lineage of other values. Do not truncate while MaestroHub runs: a running instance keeps writing references to the records it remembers, and the values it writes would have no lineage.
Rolling upgrades: the graph service before the engine
Where the graph service and the engine are upgraded one after the other, upgrade the graph service first. A 3.2 graph service adds an AI agent's tool links to what an older engine sends when a pipeline is saved, so nothing is lost while older engines still run. A graph replica still on 3.1.0 does not: if it handles the save of an AI agent pipeline after the first 3.2 replica has rebuilt the graph, that pipeline loses its tool links until it is saved again. After every graph replica runs 3.2, either save those pipelines again or choose Rebuild graph in the Dependency Graph's ⋯ More menu (or POST /api/v1/dependencies/rebuild) once per workspace. A single-process installation is not affected.
Rolling upgrades: the connectors service first
Where the connectors service and the engine are upgraded one after the other, upgrade the connectors service first. While it is still on the older version:
- it ignores the tag's key on a write, so an empty Kafka, Kinesis, Event Hubs or Pulsar key of a One at a time pipeline stays empty;
- it does not tell the engine that a Kafka batch is written whole, so a One at a time pipeline's Kafka buffer sends a tag's waiting messages in one call; if the broker refuses one of them, a later message of that tag in the same call can land before it.
Both end when the connectors service runs 3.2. A single-process installation is not affected.
Lineage takes a fraction of the disk
A value's lineage is stored in four parts: where it came from, the reads, the definition versions, and the item of a read group. Each part is stored once and shared by every value that has the same one, so a pipeline writes a new part only when it, its reads or a definition is edited. A pipeline started by a message writes nothing per message either: what is new on every message (a Kafka offset, a sequence number, a receive time) is no longer stored, see Message ids below. Everything the lineage map showed stays, except two facts:
- New values carry no run id and no read time.
execution_id, and theatof each external input, are no longer written on values stored from 3.2; values stored before keep them. On the lineage map, clicking a pipeline opens its runs around the value's time, and the sentence no longer says how long before the value a read was taken. See Where it comes from.
A value names the read that made it
A pipeline that reads four read groups of 200 tags and publishes one value per tag stamped every value with all 800 functions, because lineage named every read that could reach the publish. From 3.2 a value names its own read when the pipeline says which member it came from, and the lineage map, the API and the MCP tool say which of the two a list is:
- Narrowed. When the publish's value is one member's path (
{{ $node["Read"].result.State.value }}), or its Read group item field names the member, the value's definitions are that member's function and connection at the versions its read reported, plus the global functions the pipeline pins, shown as available to the pipeline. When the Read group item named the member, the list also holds the single reads that can have fed the publish, shown as also read by the pipeline. The lineage map shows a Made by block with only the member's own function and connection, with as named by the pipeline when the Read group item named it. The API and the MCP tool mark each entry the same way (roleread,availableoralso_readintrace_lineage). - Read group item
*/<key>. The Read group item accepts*/<key>: the one read group that ran and read a member under that key. For a per-tag loop over several read groups,*/{{ $item2.id }}names each value's member without naming the group. When no read group or more than one read a member under that key, nothing is named and the publish counts it in_metadata.inputItemUnresolved, as for any reference that names nothing. A read group on a branch that does not run every time can make the same publish alternate between narrowed and the full list. - Reachable. Otherwise the list is every read that can have fed the value. The map shows it collapsed, This pipeline's reads at the time (N definitions); when the reads include a read group or more than one connector function it adds the pipeline does not say which one this value came from, with how to name the member. Every value stored before 3.2 reads this way.
- A batch publish (Publish Batch) keeps the full list for its records: they share one lineage. A record that names its member says so: read named by the pipeline: X; definition versions are for every read that can have fed it.
Lineage records the pipeline version
A value's lineage records the version of the pipeline that made it (pipeline_version, pipeline_schema_version), and the lineage map opens the pipeline at that version. A value stored before 3.2 reads version not recorded.
Lineage continues across chained pipelines
A pipeline started by another pipeline's run (Pipeline Event trigger) recorded nothing about that run, so a value it published looked as if nothing came before it. From 3.2 its values name the pipeline whose run started it: an external input of kind pipeline_event, pipeline:<id>, with the pipeline's name as it was (sourcePipelineName). The lineage map shows that pipeline by name and says when it has been renamed or deleted since. The upstream run itself is not stored, for the same reason as the run id above.
Buffered and held values keep their sources
A value made from data a node held across runs, a Buffer flush, an Aggregator result or a value held by hold-last-good, carries the sources of the readings it was made from, instead of the reads of the run that happened to publish it. A held value keeps the function and connection versions of the read that produced it. When the source of a held reading is not known (it was held before 3.2, or too many distinct sources were held), the value says so with lineage_incomplete, and the map says made from readings held across runs, names the sources it knows and says some readings' sources were not recorded.
Message ids
A trigger used to stamp each value with ids that are new on every message, so every message stored a new lineage record. From 3.2 each id a trigger records is one of three kinds:
- Kept: what is fixed by configuration, such as the connection, the topic, the subscription or the QoS. It stays in the value's lineage.
- No longer stored: a transport position or a fact about one delivery: Kafka partition and offset, sequence numbers, delivery counts, receive and source timestamps, the remote address, the Kafka key, a request id. These expire at their source, like the run id. A trigger's identifier no longer carries them:
kafka://<connection>/<topic>/<partition>/<offset>becomeskafka://<connection>/<topic>. - Stored as the value's message key: a key the sender set that outlives the broker and finds the source document, such as a Service Bus or AMQP
messageId, a CloudEventsid, an IDoc number or a database LSN. It is stored with each value, asmessage_key("servicebus:messageId=4711"), and shown on the lineage map.
| Connector trigger | No longer stored | Stored as message_key | Kept |
|---|---|---|---|
| AMQP | correlationId, subject | messageId | address |
| AWS IoT (subscribe) | retained | none | topic, QoS |
| AWS IoT (shadow) | version, shadow timestamp | none | thing, shadow name |
| Azure Cosmos DB | etag, modified time | partitionKey, id, lsn (were in the id) | container |
| Azure Event Hubs | partition, sequence number and offset (were in the id), partition key, enqueued time | none | none |
| Azure IoT Edge (input) | none | sys_mid | input name, sending device and module |
| Azure IoT Edge (method) | request id | none | method name |
| Azure IoT Edge / IoT Hub (twin) | version, isFullTwin | none | none |
| Azure Service Bus | sequence number, session id, correlationId | messageId | entity, subscription, sub-queue |
| CANopen | NMT state | none | node, index, sub-index, data type |
| CoAP | response code, observe sequence | none | path, content format |
| DNP3 | cause, source timestamp | none | outstation, point type, index, object |
| FANUC | item count | none | function, event type |
| Firestore | change type, read time | document path (was in the id) | collection |
| Google Pub/Sub | messageId, ordering key, publish time | none | subscription |
| Greengrass, MQTT | retained | none | topic, QoS |
| IEC 60870-5-104 | cause, source timestamp | none | common address, IOA, type |
| Ignition, OPC DA | tag count | none | function, event type |
| Kafka | partition and offset (were in the id), key | none | topic |
| Kinesis | shard (was in the id), partition key, sequence number | none | stream |
| LoRaWAN | parse status | none | device EUI, port, profile |
| NATS | reply subject | none | subject |
| OPC UA | source and server timestamp, status code | none | namespace, node id |
| Open Protocol (results, alarms, job info) | source timestamp | none | MID, revision, controller |
| PI System | value count, frame type, backfill, out of order, dictionary generation | none | function |
| PI Web API | action, timestamp | none | path, WebId |
| Pulsar | message id (was in the id), key | none | topic, subscription |
| SAP Event Mesh | event time | CloudEvents id, subject | topic, source, type |
| Sparkplug B | sequence number, Sparkplug timestamp, metric count | none | topic, message type, group, edge node, device |
| SQS | messageId, message group id, receive count | none | queue |
| Syslog | peer address | none | host name, transport, app name |
| TCP | receive time | none | endpoint, encoding |
| TwinCAT | source timestamp | none | symbol, data type |
| Universal Robots | controller time | none | function |
| Webhook | remote address, request id | none | method, path |
A resent write is the same record
A pipeline write now carries one produce time, chosen before its first attempt: the direct attempt, a Retry on Fail, the store-and-forward resend and a replay from Failed messages all carry it. Before, the first attempt was stamped with the connector's clock and a resend with the time it was buffered, so a destination that identifies a record by its time (InfluxDB, Prometheus, Bigtable, AWS IoT SiteWise, Amazon Timestream) kept two records when the first attempt's answer was lost. Two visible changes come with it:
- Kafka:
maestrohub.produced-atis on every pipeline write that store-and-forward can buffer, not only on records delivered from the buffer, with the same value on every delivery. Its presence no longer means the record came from the buffer. See Kafka. - Splunk: a pipeline write sends its event time. An event with no Event Time of its own is stamped with the time it was produced, the same on the first send and on a replay; before, Splunk stamped the first send with the time it received it. See Splunk.
A write whose outcome is unknown is retried only when that is safe
- Retry on Fail and Retry on Timeout no longer resend every write. When a write ends after it was sent but before the destination answered (the node's or the call's timeout, or the connector reports the outcome as unknown), it is sent again only if its connector declares it safe to repeat: writing a value to a register, tag, variable or equipment constant, such as a Modbus register or an S7 or OPC UA value. Any other write (an append, a message, a clock sync, an SNMP set, a PI write, a move or a request) fails once with
WRITE_OUTCOME_UNKNOWN, and its error says it was not retried. Before, the retry depended on the error's text, so a write that timed out could be sent twice. - Reads keep their retries, and control commands are unchanged (
COMMAND_OUTCOME_UNKNOWN, never resent). - What to do. Find pipelines whose runs now fail with
WRITE_OUTCOME_UNKNOWN, check the destination, and run them again yourself where that is right. If your PLC program treats a written bit or register as a request (it starts a sequence when the bit turns on), turn Retry on Fail and Retry on Timeout off on that node: a value write is still resent. See A write whose outcome is unknown.
Order of readings
- A One at a time pipeline's buffer drains each tag in order. On a pipeline that runs One at a time, a buffer on an Any order output (MQTT, REST, S3, SAP IDoc and others) delivers each tag's messages in order, and different tags side by side. A refused message of one tag is retried while the other tags flow. If it is still refused while many newer messages of its tag wait, it moves to Failed messages with the new reason Held its tag too long (
tag_backlog), with a warning in the log that says what to do. A Parallel pipeline's buffer drains as before. See Delivery order. - An empty destination key takes the tag on a pipeline that runs One at a time: the Kafka record key, the Kinesis and Event Hubs partition keys and the Pulsar key. The key is the reading's tag: a UNS value's topic path, or a connector reading's 16-character code; one longer than the destination takes (Kinesis 256 characters, Event Hubs 128; Kafka and Pulsar set no limit) is given as a stable hash. A write that carries readings of more than one tag (a Buffer or Aggregator window) takes no tag's key. A key you set wins, and a Parallel pipeline sends no key, as before. See Keeping readings in order end to end.
- Batched runs of a One at a time pipeline are queued one at a time. On a pipeline that runs One at a time, a trigger with Batch runs on queues its runs single file, in arrival order, and one run takes up to 256 messages and 8 MiB. A Parallel pipeline's batched runs are unchanged: up to 32 messages a run, several runs queued at once.
- A UNS write is answered once its trigger event is stored. A topic's values reach the pipelines that subscribe to it in the order they were written; a write waits for that storing step before it returns.
- After a scheduler replica takes the intake over uncleanly, a tag that had readings in flight at the previous replica waits for them to come back (at most 30 seconds) on a pipeline that runs One at a time, so its readings stay in order. A Parallel pipeline's readings are not held.
- Nothing else changes for a Parallel pipeline. Its readings are stamped and counted, and it runs, batches, buffers and partitions as before.
- Order is counted.
GET /api/v1/engine/order-countsreturns, per hour, what the connector and intake stations counted: readings that arrived out of order (swap), repeated (repeat) or after a gap (gap), per pipeline at the intake and per connection and function at the connector. A connection that runs more than one instance is not counted: its readings carry no sequence, and the log says so once. - Order is counted where writes land. The same endpoint has a third station,
output: per pipeline output (scopeispipelineId:outputNodeId, also returned aspipelineIdandoutputNodeId), each write the destination confirmed is compared with the newest reading of its tag already landed there. It countsswap(an older reading landed after a newer one),repeat(the newest landed again) andpossible_stale_final(a tag whose last landing was a swap and that had no newer landing for about 10 minutes: its destination may still hold the older value; inferred from the order in which the engine learns of the landings, and counted when the tag is dropped). Direct writes and store-and-forward deliveries are both counted, on Parallel and One at a time pipelines alike; writes without a tag and a sequence, replays, writes inside a For-Each, writes of a Buffer or Aggregator window and smart connector writes are not.pipeline=<id>returns a pipeline's intake and output counts together. The output counts only: nothing waits, is dropped or reordered. With more than one engine replica each counts only its own writes (perReplica: true), so the number is a lower bound. - One at a time does not promise "nothing dropped" from a source that cannot be held back; the guide and the Orchestrate overview now say so.
An AI agent's tools are dependencies
- A function an AI agent step uses as a tool is a dependency of its pipeline. The Dependency Graph shows a
callslink from the pipeline to each tool function, and deleting such a function is refused (409,HAS_DEPENDENTS, naming the pipeline) unless it is forced. Before, the function was deleted without a warning and the agent failed at its next run. See Giving the agent tools. - The first start of 3.2 rebuilds the Dependency Graph once, in the background, so links like these appear for pipelines saved before. Until a workspace's rebuild finishes it keeps the links it had, so what blocked a deletion still blocks it. A rebuild that cannot finish (a service is down) runs again at the next start. With more than one graph replica, one replica rebuilds and the others wait for it.
- Bundles carry an agent's tools. Exporting a pipeline names its agent's tool functions (
toolFunctionRefs, asconnection/function) instead of the source workspace's ids, the export wizard lists them with their connections, and importing one maps them to the destination's functions. A bundle that does not include a tool function is refused at import, naming it; a tool deleted before the export is imported with a warning that the agent will fail when it runs.
What clients receive
-
The
scheduleandwebhookpermissions are retired. A pipeline's schedule and webhook triggers are part of the pipeline, seen withpipeline:readand changed withpipeline:update. They are gone from the permission catalog and from the built-in roles. Creating or updating a custom role that adds one (POST /api/v1/authz/roles,PUT /api/v1/authz/roles/:name) is refused with400(UNKNOWN_VERB), namingpipeline:readandpipeline:updateas the replacement; scripts and infrastructure-as-code that create such roles must drop them. A custom role that already holds one keeps working: the permission grants nothing, the role editor flags it, and saving the role removes it. -
maestro_user_limitscan be granted. The routes that read, set and clear a person's Maestro limit (GET,PUT,DELETE /api/v1/maestro/users/:user_id/limit) were open to System Administrators only.maestro_user_limits(read,write) is now in the permission catalog, so a custom role can delegate it; no built-in role holds it. There is no page for these limits yet: use the API. -
Live MQTT messages carry no provenance. The
provenancemember is gone from the message subscribers receive for every stored value, and from the last value a live WebSocket subscription is greeted with.sourcestays. A client that readprovenancefrom live messages asksPOST /api/v1/uns/data/lineagefor a value's lineage. -
Reads of many records carry where each record came from, without its reads and definitions.
POST /api/v1/uns/data/recent,/range,/recordsand/latest, and the MCP toolquery_topic_datawithinclude_provenance, return each record's provenance withoutexternal_inputsanddefinitions_used.POST /api/v1/uns/data/lineageand/lineage/walk, the lineage map and the MCP tooltrace_lineagereturn them as before.trace_lineagenames the pipeline, withpipeline_id, where it named the run. -
Lineage says what its definitions are. On
POST /api/v1/uns/data/lineageand/lineage/walk, a record'sprovenance.input_item.narrowedisexactordeclaredwhendefinitions_usedis the value's own read; without it the list is every read that can have fed the value. The MCP tooltrace_lineageaddsdefinitions_scope(narrowedorreachable) besidedefinitions_used, aroleon each entry of a narrowed list (read, oravailablefor a global function available to the pipeline), andpipeline_version,lineage_incompleteandmessage_keyon each node. Its summary says made by this value's read only for a narrowed list. -
New fields, all optional:
pipeline_version,pipeline_schema_version,lineage_incompleteandmessage_keyon a record's provenance,narrowedon itsinput_item. A value stored before 3.2 has none of them.
Small data volumes start, and a full message store says so
- Installs on a small data volume start. MaestroHub's message store reserved space for its internal queues at their full sizes, made for large disks. On a small volume the reservations did not fit, and MaestroHub stopped at start with
create stream …: insufficient storage resources available. This affected the single-node Helm chart's default 5 GiB data volume, where the internal queues are on disk. The queues are now sized from the room the volume has, together with the store's other streams, and the store's limit always covers what they reserve, so MaestroHub starts on any volume. On a large volume nothing changes. - The first start after the upgrade may restart the message store once, when it holds more than this start's plan allows. Nothing is deleted: a queue is never made smaller than what it holds.
- A full message store is reported as itself. When the store is full, a source that MaestroHub can hold back is held back instead of being recorded as lost, and every refusal is counted as "the message store is full", or "out of memory" for streams kept in memory. The system status names the disk, not slow pipelines, and the disk floor warning keeps its severity.
- The queue size settings keep their meaning.
modules.pipelineEngine.executionQueue.maxBytesanddlqMaxBytes(0is unbounded) andmodules.connectors.telemetryStreamMaxBytes(0is the default) are used exactly as set. Unset, they now follow the volume.
The data volume is big enough, or says so
MaestroHub writes its own data to its data volume: its internal message streams, its logs (1 GiB) and its run history (10 % of the volume). The single-node chart gave that volume 5Gi, too little for them: with the streams on disk, 3.1.0 did not start on it, and on a slightly larger volume the platform sat near its disk floor within weeks. 3.2 knows the smallest volume MaestroHub needs, about 11.9 GiB usable with the historian elsewhere and 13.0 GiB with the built-in historian on the same disk, and every way of installing it holds to it. See The smallest data volume.
- Single-node chart. The
/dataclaim is 13Gi by default (15Gi withhistorian.type=pebble), and a smallerpersistence.sizeis refused.helm upgradegrows a smaller claim, such as the 5Gi of earlier releases, to it; when the claim's storage class does not allow volume expansion, the upgrade stops before changing anything and the chart README shows how to move/datato a new claim. Claims onlocal-pathand other hostPath storage are neither grown nor refused, since their size is not enforced; MaestroHub then keeps 10 % of the node's disk plus 1 GiB free. - Native installers.
install.shandinstall.ps1runcontext-platform storage checkbefore they install, and stop with its answer when the volume is too small. Run it yourself withcontext-platform storage check --data-dir <dir> --config <file>. - The Overview. Below the minimum, disk_undersized is critical, with the size to grow to and how; it pages no one, and MaestroHub keeps running.
storage.recommendedVolumeBytes: -1turns the check off. With the historian on another server, the data volume is now judged against this minimum instead of not at all. - The Capacity page shows what other software holds on the disk (read live), the message store's plan as of startup (its room, its cap planned and in force, what the platform's own streams reserve, each data-path stream's cap, the room store-and-forward's pool comes from), and whether the volume meets the minimum. Setting a pool larger than that room is warned about, instead of comparing it with the free space.
- The alarm states are bounded. The UNS keeps one small state per alarm attribute that ever alarmed. It holds up to 128 MiB, room for about 32,000 alarm attributes with long alarm texts and about 75,000 plain ones, and the minimum counts it. An install whose store already holds more keeps all of it. When it is full, a new attribute's alarm is not evaluated: the log says so with what to do, and a full message store raises the Overview's "message store is full" issue naming alarm states. The same holds for the order epoch kept per connection: up to 16 MiB, room for about 32,000 connections and far more with the usual ids; a connection whose epoch cannot be written says why in the log, and its readings carry no sequence until it can. Store and forward's record of which items of a many-item write landed is bounded too (32 MiB); when it is full, the log says so and a resend may send such items again, never loses one. With NATS coordination, ownership or rate limits on the built-in message store, their stores are bounded and counted as well; a NATS rate limiter whose store is full refuses new callers.
- Store and forward on a 5 GiB volume gets only its headroom until the volume grows: the platform's own streams take the rest. A message an output cannot deliver is then kept in Failed messages with its reason, not lost, and the start log says how much the volume is short. Grow the volume before you rely on the buffers.
IEC 104 command confirmations
- IEC 104: a command is confirmed only by its own confirmation. The confirmation must mirror the command's S/E bit and value, as the standard says, not just its type and address. An outstation that answers with another S/E bit or value now ends the command as Transient, outcome unknown, with an error that says the confirmation
does not mirror the command: never as done, and never sent again on its own. A refused execute after a select is reported as refused. - IEC 104: a request whose connection drops before its confirmation says so. Its error now begins
the link ended after the request was sent; the outcome is unknown, followed by why the connection ended. It stays Transient, and a command is never sent again on its own.
Elasticsearch, OpenSearch and the AWS connectors
- Elasticsearch: a search with Size
0returns only the count. It returnstotalHitswith no documents. Before,0was ignored and the search returned 10 documents. A negative Size or From is refused. - Elasticsearch refuses a node that is not Elasticsearch. Pointed at OpenSearch, a connection fails with a message that names the OpenSearch connector, instead of reconnecting for ever. When an answer comes without the Elasticsearch product header (a proxy's maintenance page during an upgrade, say), that call fails and later calls are refused before they are sent. The connection recovers by itself when the node answers as Elasticsearch again, or when you restart it. See Elasticsearch.
- Elasticsearch and OpenSearch refuse a CA certificate that is not a certificate. A CA Certificate field that holds no PEM certificate is refused when the connection is saved. Before, it was accepted and every connection attempt failed. An existing Elasticsearch connection saved that way, which could never connect, is refused the next time it is saved: paste the CA certificate, or clear the field.
- Elasticsearch and OpenSearch validate index and document IDs. An ID with a
.or..path segment, or an unescaped#,?or%, is refused when saved: write those characters as%23,%3Fand%25. - AWS connectors: a session token needs its key pair. Saving a Session Token without its Access Key ID and Secret Access Key is refused on every connector that takes AWS keys, in the sign-in modes that sign with them. A mode that never reads the keys (AWS IoT Core with X.509, Apache Iceberg with a REST catalog over GCS, Redshift direct, OpenSearch with a username and password) is not affected. Connections saved before still load and connect; their next edit must add the keys or clear the token.
App Studio: the Draft preview simulates writes, and tests run only safe reads
- The builder's Draft preview simulates writes. Every write from the Draft preview (a pipeline, a topic publish, a device write) is checked as the published app's would be (the declared action, its rung, the scopes and the door's permission; a few checks inside the door run only live, see the guide), then answered simulated, not sent. A strip above the preview says so, and the confirm dialog shows a simulated banner. Device and tag value reads (OPC UA, Modbus, S7, MELSEC, EtherNet/IP, BACnet, Keyence, Panasonic, SNMP Get) still run for real; every other connector function, SQL and REST "reads" included, is simulated. A pipeline press runs the pipeline once in the engine's sandbox and returns its outputs. To test writes for real, a person who may publish the app turns on Act on the real plant for 15 minutes; each real write then asks them to confirm in MaestroHub's red dialog. The builder's Live toggle still runs the published version, whose writes are real. See The Draft preview simulates writes.
- The preview has its own data. Storage writes from the Draft preview go to a separate preview layer over the live data and never reach the live app; Reset preview data clears it, and a layer unused for 30 days is removed.
- Behaviour change: Test Pipeline and Maestro's dry runs read, they do not act. In a test run (the designer's Test Pipeline, an AI client's
dry_run, the Draft preview's pipeline press) only device and tag value reads in a read group, or as an agent tool, run for real; a single-function connector node was always stubbed in tests. What stops running for real: a manual read group's write, browse orsnmp.walkmembers, which are markedstubbed; and an AI agent's read tools that may consume or act, such as queue receives (rabbitmq.receive), SQL queries, REST GETs, search, graph and cloud API reads, and reads on device families outside that list, which get a "not run in a test" result. An agent's write tools were already refused in tests (#4402). The agent's model is still called in Test Pipeline. Live runs are unchanged. - An AI client's
try_functionruns only safe functions. A read runs only when the Draft preview would run it for real (device and tag value reads), and a discover only when it just browses structure. Any other read or discover is refused withread_not_preview_safeordiscover_not_browse_only, and the answer names Test Function and Test Pipeline instead. Before, it ran every read and discover for real, including reads that change what they read, such as a queue receive or a SQL query. - Upgrade. The preview's storage tables come with the 3.2 upgrade (see Upgrading from 3.1); there is nothing else to run. Upgrade App Studio and every other service to 3.2 before builders use the preview (Enterprise: every service pod; Lite is one process): until a service's write guard is updated, draft-preview writes through it are refused (
WRITE_GUARD_OUTDATED). A service that cannot yet run a device read or the sandbox run for the preview simulates the press or refuses it, never runs it for real: it fails safe.
App Studio: what published apps see differently
- A topic whose data is late or stopped no longer reads "Live" (#8621). Every app on
runtime-v1, including apps already published, now gets the live statuseslateandsilentwithout a rebuild, and the UI kit shows them ("Data late", "No new data"). An app that looks a status up in a table of its own, or switches on it with no default, shows nothing for them until it handles them: see the SDK changelog. - A long pipeline run keeps going on screen, and a declined confirmation is not an error (#8622, #8628).
usePipelineRunfollows a run past its wait in the background instead of failing it, a run the person stopped ends as cancelled rather than as an error, and pressing Cancel in MaestroHub's confirm dialog leaves the app as it was: see the SDK changelog.
App Studio: copying, sharing and restricting apps
- Copying an app also needs
app:create. A share ofclonealone no longer lets someone make new apps: the copy is refused with the missing right and who to ask. Copying an app that was never published copies its draft, so it also needsapp:updateon that app. - Sharing an app gives "can open it" by default. The share dialog ticks
readandrun, so the people you share with can open the app; untickrunto let them only see it in the list. A sharer can give only the rights they hold on the app. - Restricted apps (new, off by default). Who can open it in an app's settings limits the app to the people, groups and paired displays it is shared with, and to those who may share it (its owner, Workspace.Admin, Apps.Admin, System.Admin, and custom roles with
app:share). A role that opens or builds apps no longer reaches a Restricted app: someone off its list can neither open nor change it. Nothing changes until you turn it on.
A stop that leaves a store open exits with status 1
When MaestroHub stops, it closes every SQLite store. A read still running is stopped first. If a connection is still in use 5 seconds after its store was closed, the store keeps its -wal and -shm files, and upgrade apply refuses it later. Before 3.2 such a stop still said "Shutdown complete" and exited 0. On 3.2 it logs SQLite store left open at shutdown at ERROR, naming the store and what the connection was running, and exits with status 1.
Under systemd, systemctl stop then marks the unit failed and starts its OnFailure= units. It does not restart MaestroHub. Docker shows the container's exit code as 1. To clean the store, start MaestroHub once and stop it again. Before an upgrade, you can instead run upgrade apply --data-not-in-use once MaestroHub is stopped.
OAuth2 always runs
The OAuth2 module is required: MQTT devices log in through it with a client ID and secret, the token endpoint and the API clients live in it, and a pipeline can run as one of its clients. Its on/off switch is removed. Switched off, the single binary did not start, because the permission service needs the module's events.
Single binary and single-node chart. modules.oauth2.enabled (and the variable MAESTROHUB_MODULES_OAUTH2_ENABLED) is no longer read. A config.yaml that still sets it starts normally, with OAuth2 on. true says nothing. false logs one line at start:
config: `modules.oauth2.enabled` is false and is ignored: OAuth2 always runs (MQTT devices log in through it, and the token endpoint and the API clients live in it); delete it (docs/docs/upgrades/changes-in-3-1.md)
When the value comes from the environment, the line names the variable instead. The fix: delete the line from config.yaml, or unset the variable. The single-node chart no longer has modules.oauth2.enabled; a values file that still sets it is accepted, and false is said in the notes Helm prints after an install or upgrade.
High-availability chart. oauth2.enabled is removed and the oauth2 service is always deployed, with its database, service account and routes. A values file that still sets it is accepted, also with --reuse-values. oauth2.enabled: false no longer leaves the service out: it is ignored, and the notes Helm prints after an install or upgrade say so. The fix: delete the line from your values file.
A release that ran with oauth2.enabled: false gets the service with this upgrade, and needs two things for it:
- The database
oauth2_db. With the chart's own Postgres, nothing to do: the upgrade creates it. With an external Postgres, createoauth2_dbyourself, owned by the MaestroHub user. Until it exists, the oauth2 pod waits andhelm upgrade --waittimes out. - The keys
oauth2-secretandoauth2-encryption-keyin the release Secret. The Secret the chart renders always has both. If you manage the Secret yourself (secrets.existingSecret) and it lacks one, the upgrade is refused before anything is changed, naming the missing key. Add it and run the samehelm upgradeagain.
The chart's UPGRADING.md, "OAuth2 is always deployed", has the details.
Auth always runs
The auth module is required: sign-in, sessions, tokens and agent accounts live in it. Its on/off switch is removed. Switched off, MaestroHub did not run: the single binary stopped with an error while starting, and on the high-availability chart the permission service waited for the auth service and never became ready.
Single binary and single-node chart. modules.auth.enabled (and the variable MAESTROHUB_MODULES_AUTH_ENABLED) is no longer read. A config.yaml that still sets it starts normally, with auth on. true says nothing. false logs one line at start:
config: `modules.auth.enabled` is false and is ignored: the auth module always runs (sign-in, sessions, tokens and agent accounts live in it); delete it (docs/docs/upgrades/changes-in-3-1.md)
When the value comes from the environment, the line names the variable instead. The fix: delete the line from config.yaml, or unset the variable. The single-node chart no longer has modules.auth.enabled; a values file that still sets it is accepted, and false is said in the notes Helm prints after an install or upgrade.
High-availability chart. auth.enabled is removed and the auth service is always deployed. A values file that still sets it is accepted, also with --reuse-values. auth.enabled: false is ignored, and the notes Helm prints after an install or upgrade say so. The fix: delete the line from your values file. No working release ran without the auth service, so an upgrade has nothing to prepare for it.
Five more modules always run
Five more modules are required, and their on/off switches are removed: authz (permissions), connectors, license, workspaces and pipelineEngine. uns keeps its switch.
If one of these was switched off, this upgrade starts it. Read this before you upgrade:
connectorsandpipelineEnginewere off (withscheduleroff as well). Both start. The connections stored on this installation connect to their devices and systems again, and the stored pipelines run again when their triggers fire. If that must not happen, stop or delete those connections and disable those pipelines in a release where they are reachable, or disconnect the installation from the plant network for the first start and disable them then.schedulerkeeps its switch.authzorworkspaceswas off. MaestroHub started but refused every request after sign-in, so nothing depended on it.connectorsorpipelineEnginewas off alone. MaestroHub did not start.
Single binary and single-node chart. modules.<name>.enabled (and the variable MAESTROHUB_MODULES_<NAME>_ENABLED) is no longer read for these five. A config.yaml that still sets one starts, with the module on. true says nothing. false logs one line at start for each, in this form:
config: `modules.license.enabled` is false and is ignored: the license module always runs (it says which features and limits are in force); delete it (docs/docs/upgrades/changes-in-3-1.md)
When the value comes from the environment, the line names the variable instead. The line is logged as the module starts, not before: it does not hold the start back. The fix: delete the line from config.yaml, or unset the variable. The single-node chart no longer has these keys; a values file that still sets one is accepted, and false is said in the notes Helm prints after an install or upgrade.
A 2.x config.yaml names the workspaces switch modules.organizations.enabled. It is treated the same way: true, which every 2.6 config has, says nothing, and false logs the line.
High-availability chart. authz.enabled, connectors.enabled, engine.enabled, license.enabled and workspaces.enabled are removed, and the five services are always deployed. A values file that still sets one is accepted, also with --reuse-values. false no longer leaves the service out: it is ignored, and the notes Helm prints after an install or upgrade say so. The fix: delete the line from your values file.
A release that ran with one of them set to false gets the service with this upgrade, with the consequences above, and needs two things for it:
- The databases. With the chart's own Postgres, nothing to do: the upgrade creates them. With an external Postgres, create them yourself, owned by the MaestroHub user:
authz_db,connectors_db,engine_dbandskip_ledger_db,license_db,workspaces_db. Until a database exists, its pod waits andhelm upgrade --waittimes out. - The key
connectors-encryption-keyin the release Secret. The Secret the chart renders always has it. If you manage the Secret yourself (secrets.existingSecret) and it lacks the key, the upgrade is refused before anything is changed, naming the key. Add it and run the samehelm upgradeagain.
The chart's UPGRADING.md, "Five more services are always deployed", has the details.
The loss ledger is one database on Postgres
The loss ledger is what the pipelines page's lost runs, the overview's loss cards and the query_losses tool read. On Postgres it is now the database loss_ledger_db, which every engine replica writes and reads, like skip_ledger_db: the losses page shows the same totals whichever replica answers. The scheduler, connectors and UNS services of the high-availability chart send the losses they count to it too; before, those were only logged.
- SQLite (a single MaestroHub, Docker Compose without Postgres, Siemens Industrial Edge). Nothing changes: the ledger stays
loss_ledger.dbin the data directory and keeps its history. - Postgres. With the chart's own Postgres, the upgrade creates
loss_ledger_db. With Docker Compose, restart the database container after you update the files, before you start MaestroHub's:docker compose restart timescaledb(docker compose up -ddoes not restart a running container whose image did not change, and the start of the database container is what creates the database); until then MaestroHub's engine refuses to start and says so. With an external Postgres, create it yourself, owned by the MaestroHub user; until it exists the engine waits andhelm upgrade --waittimes out. - The loss history before the upgrade is not carried over on Postgres. The new ledger starts empty. On the high-availability chart the old ledgers were files on each engine pod's own disk, which did not survive a restart; nothing is left of them. On a single node with Postgres (Docker Compose, the single-node chart) the old file is in the data directory: until
upgrade applyhas run, MaestroHub refuses to start and names it;upgrade apply(the single-node chart's upgrade Job runs it for you) moves it aside, beside where it was, asloss_ledger.db.set-aside-by-upgrade. Nothing reads that file; it is kept, not deleted, andupgrade restoreputs it back. Delete it when you no longer need its last 30 days.
Buffers are always on disk; the run queue has its own setting
Until 3.2 one setting, nats.embedded.streamStorage (memory by default), decided where pipeline triggers, connector data and queued pipeline runs waited. In memory, a crash lost what they held, and the next start could only say that something may have been lost.
In 3.2:
-
The buffers are always on disk: pipeline triggers (
UNS_TRIGGERS), connector data (TELEMETRY,TELEMETRY_LIVE) and the dead-letter queues (TELEMETRY_DLQ,EXECUTIONS_DLQ), like store-and-forward, events and audit. -
The pipeline run queue (
EXECUTIONS) stays in memory by default, with its own setting,nats.embedded.runQueueStorage(memoryorfile). A crash still loses no reading: while the queue is in memory, a reading stays in its buffer, unacknowledged, until the runs it started have finished (their outputs written, buffered in store-and-forward, or counted as failed). After a crash the buffer delivers it again and it runs again. A run that had already written its output just before the crash can write it a second time, under the same write key (at least once).filekeeps the queued runs themselves. -
nats.embedded.streamStorageis deprecated. If it is set (inconfig.yaml, asMAESTROHUB_NATS_EMBEDDED_STREAMSTORAGE, or in the single-node chart's values), MaestroHub reads it asrunQueueStorageand warns once at start. IfrunQueueStorageis set too, it wins and the warning says the old key is ignored. Rename the key. -
Disk: the buffers now take their room on the data disk (the store's plan sizes them: TELEMETRY_LIVE from the room on the volume, the others at fixed caps), so the minimum size of the data disk of a native or Docker install that kept the earlier default grows. The single-node Helm chart already kept them on disk; its run queue moves to memory, which frees its 64 MiB there and reserves it in memory instead.
-
Memory: the buffers no longer reserve memory; a Lite start now reserves about 68 MiB of JetStream memory (the run queue and its failure counts) instead of about 484 MiB.
-
The notice after an unclean stop changes. It used to say that pipeline triggers, connector data and queued runs held in memory may have been lost. It now names the one thing a crash can still lose: up to 2,048 UNS values stored just before the stop may not have started their pipelines (their values are stored). It is an upper bound, not a count.
The first start of 3.2 moves each buffer to disk when it is empty, which it is after a restart from memory. A buffer that an earlier release kept on disk and that still holds messages stays where it is until it has drained.
Retained messages keep the newest value
- A UNS topic's retained message is its newest value by time. The values MaestroHub stores and passes to its MQTT broker are retained by their timestamp, so a gateway that replays an older reading, or a broker replica that reconnects to the cluster late, does not replace a newer retained value. Retained messages that clients publish to the broker directly are ordered by arrival, as before.
The MQTT broker refuses malformed packets
MaestroHub's MQTT broker refuses the packets MQTT 5.0 and 3.1.1 say a broker must refuse. Clients that follow the specification are not affected. MaestroHub's own MQTT and Sparkplug B connectors are not affected either, unless a connection was saved with a Last Will topic (MQTT), or a Group ID or Edge Node ID (Sparkplug B), that contains + or # (see What to do). A refused client is disconnected:
| What the client sends | What the broker does |
|---|---|
| A user name or password without its flag in the CONNECT | Refused (MQTT 5: CONNACK 0x81; MQTT 3.1.1: the connection is closed) |
A Will Topic with + or # | Refused (MQTT 5: CONNACK 0x90; MQTT 3.1.1: closed) |
No Local on a $share/ subscription (MQTT 5) | Disconnected with 0x82 [MQTT-3.8.3-4] |
| A Remaining Length or Property Length with more bytes than needed (MQTT 5) | Disconnected with 0x81 [MQTT-1.5.5-1]. MQTT 3.1.1 has no such rule: still read |
| A PUBACK, PUBREC, PUBREL or PUBCOMP with an unknown reason code, or with extra bytes | Disconnected (0x82 or 0x81) |
| A PINGREQ with a body, a DISCONNECT with extra bytes or an unknown reason code, packet type 0, or a packet only a broker sends | Disconnected with 0x81 or 0x82 |
| A Payload Format Indicator, Request Problem Information or Request Response Information other than 0 or 1 (MQTT 5) | Refused with 0x82 |
Messages that were already stored or replicated before the upgrade (retained messages, session logs, wills) are read as before, whatever they carry.
What to look for. Each refusal is logged as a WARN, mqtt: the broker refused a client's packet and closed the connection, with these fields:
client: the first 64 bytes of the client id.remote,protocol_version,packet_typeandreason_code.reason: the rule the packet broke, named in the client's MQTT version.
One line is written per reason per minute on each listener, with the number of refusals since the last line in since_last_report. The other refusals are logged at debug level. A refused CONNECT is also counted in uns_broker_connect_refused_total.
What to do. Fix the setting the line names (for example, a will topic with a wildcard), or update the client.
- MQTT connections. A connection saved with a Last Will topic that contains
+or#stops connecting after the upgrade, and cannot be saved again as it is. Set the will topic to one topic, such assite/line-3/status. - Sparkplug B connections. The Group ID and Edge Node ID are part of the node's Last Will topic (
spBv1.0/<group>/NDEATH/<node>). One that contains+or#stops connecting after the upgrade, and cannot be saved again as it is. One that contains/keeps connecting, but Sparkplug B forbids it, so the connection cannot be saved again until it is renamed. Use a plain name, such asline-3.
Connection health checks
-
A check waits as long as one request may take. A connector with a per-request timeout (a device's Response Timeout; the Request Timeout of ODBC, InfluxDB, Prometheus, OPC UA and the other connectors whose Request Timeout bounds one request; the Connection Timeout of MongoDB, Azure Cosmos DB, DynamoDB, Bigtable and Firestore, whose check waits on it to reach a server) is checked for that long, once for each try when the probe is sent again on silence (a MongoDB check, which selects a server and may then open a connection, each within its Connection Timeout, can so wait up to twice it,
60sby default and at most600s), and a quarter of a second more, even when that is longer than the check interval. That timeout is the one the connector runs each request with: an IEC 101 serial connection with no Acknowledgement Timeout set is checked for what one exchange takes at the line's speed (2.6sa try at 1200 baud), not1s, and a Modbus, S7, MELSEC, TwinCAT or EtherNet/IP Timeout of0sfor that connector's own default (5s, or10sfor S7 and EtherNet/IP). A Totalflow check, which opens a connection of its own, and an ABB Robot Web Services check, which may have to open one, wait the Connection Timeout and the Response Timeout together (an ABB RobotWare 6 check twice that, for a sign-in challenge its request is sent again for); a REST check with Web Token authentication waits twice the Timeout, since a token fetch within it may come first; a Totalflow station still silent when that is up now fails the check (it was taken as healthy once its connection opened). On ABB Robot Web Services the TLS handshake of each new connection is now bounded by the Connection Timeout too. A device that answers within its own timeout is no longer reported down by a shorter check. An Opto 22 connection's Timeout now also bounds each request's wait for the device's answer, which is what its check waits for: before, a request the device left unanswered waited for the check's or the function's own time. A CoAP check now ends at its ACK Timeout once for each send of the ping, where it used to wait for the check's time after the last retransmission went unacknowledged. An MQTT check waits the connection's Write Timeout (30sby default), the bound of its probe's round trip to the broker on MQTT 5 and, from 3.2, on MQTT 3.1.1 too. See How a connected connection is checked. -
A recent answer is the check. When an operation that asks the device succeeded since the previous check, no probe is sent; while such an operation is running, the check waits for it instead of queueing a probe behind it. When the operation is still running as the check's time is up, the probe is sent after all: a connector that serves several requests at once answers it alongside the operation, so a long operation is not a down device. A probe still waiting for its turn when its time is up (a connector that sends one request at a time) is no verdict. Such a busy check counts against the connection only once the operation it waited behind has run past its own deadline (its function's Timeout, or the operation's default): a long operation within its deadline never gets its connection cut. Past it, three busy checks in a row on the same session count as a failed check, so an operation that never ends no longer leaves a connection unjudged. A probe whose turn comes with less time left than one request may take is not sent, on every connector that sends one request at a time, Open Protocol, DNP3 and IEC 101 included; the check sends it once more with its whole wait. A connector whose probe does work of its own (Elasticsearch, STOMP, Kafka) is probed even while operations keep ending. See How a connected connection is checked.
-
A Modbus gateway shared by several connections. Modbus TCP connections to one gateway address take turns on its serial line. A probe that waited there behind another connection's request was cut by the check's time and failed the check, and one whose wait ran out on the line's own bound reported the connection healthy without asking the device. Both are now busy, no verdict, with nothing sent; a probe whose turn on the line comes with too little time left is not sent; an operation whose caller gave up while it waited for the line sends nothing. Busy checks behind the line count against the connection only when the line stops coming back, so a gateway that is saturated but answering is not cut.
-
Probes honour the check's time. S7, LOGO!, S5 and Modbus probes no longer outlive the check. A probe of a connector that sends one request at a time no longer waits for its turn past the check's time, counts an error, drops the session or fails the check when it only waited behind another request: LS XGT, ECOM, Allen-Bradley PCCC, TOYOPUC, GE SRTP, CODESYS, MELSEC, Saia S-Bus, HEIDENHAIN, Brother, Open Protocol, EtherNet/IP, Alstom Redundant Modbus, Bristol ControlWave, Bristol Network 3000, DNP3 and Universal Robots did one or more of these; SNMP, Opto 22 and SINUMERIK 808D counted an error; a plain FTP connection failed the check behind a transfer whose bytes did not move, and an ABB Robot Web Services connection failed it while it waited for one of the session's two connections (a probe that gets one too late for the check now sends nothing, too). A CANopen check set to SDO Read no longer runs its read beside an operation's SDO transfer, which mixed the two up: it waits for its turn. Every connector that MaestroHub tests against a simulated device is checked for it, except where that device's stall test is not written yet (eleven test devices, listed in #8845): its probe of a device that stopped answering returns when the check's time is up. One exception remains: an IEC 101 probe that has gone out waits for the link's own retries to end, which on a serial line can run a little past the check's time (the character gaps and idle line the declared wait leaves out, #8850). A UDP probe no longer resolves the host outside the check's time.
-
A BACnet or Omron FINS Timeout of
0sis the connector's default. A BACnet connection saved with0sfailed every request at once; an Omron FINS connection with0sgave each request 20 ms. Both now run on the default (10sfor BACnet,2sfor Omron FINS), and the health check waits for it. Saved connections keep working without a change.
New Response Timeout settings
These connectors get a Response Timeout: how long one request waits for the device's answer. Requests used to be bounded only by the function's own timeout; they are now cut at this value, which applies to existing connections without a change:
| Connector | Default |
|---|---|
| Keyence, FANUC Ethernet, Panasonic, Universal Robots, IEC 61850 | 5 s |
| ABB Robot Web Services | 10 s |
| IMAP | 2 min |
The IMAP default is the bound the email trigger already put on its own search, acknowledgement and start of IDLE, which now run under the Response Timeout too; a shorter value cuts them sooner. On ABB Robot Web Services the Response Timeout bounds the wait for the controller to start answering (its status and headers); the rest of the answer is read within the function's Timeout.
A device that takes longer than the default to answer one request needs a longer value: set Response Timeout in the connection form (each connector's page lists its range). A value saved before this release is kept by the form's next save.
An unset Request Timeout is the connector's default
A connection that does not set its Request Timeout (one created through the API, the MCP tools or an import without it) now gets the default its connector documents, the same value the connection form fills in. Before, such a connection had no Request Timeout at all, so its calls were bounded only by the function's and the node's own timeouts. On twenty connectors that default bounds the whole call, so such a connection's calls are now cut at it: for example BigQuery and Amazon SQS at 30s, ClickHouse and SMB Share at 60s, Databricks SQL at 120s, Amazon Athena at 300s; A connection without a Request Timeout lists all twenty. A call that needs longer must have the connection's Request Timeout set. On the eleven connectors whose Request Timeout bounds one request (below), the default bounds each request, not the call. A connection saved from the form is not affected. See Timeouts.
The same holds for a function: one that does not set its Timeout now runs under its operation's documented default, the value the function form shows and saves. A function created through the API, the MCP tools, an import or a seed without a Timeout used to have no bound of its own; it is now cut at that default. Most operations default to 30m, but some default to seconds (for example Couchbase get 30 s, Open Protocol 30 s, AWS IoT shadow 10 s); A function without a Timeout lists every operation whose default is under five minutes. A call that needs longer must set its own Timeout. A function saved from the form is not affected.
A Request Timeout that bounds one request no longer cuts the whole call
Eleven connectors use their Request Timeout as the bound of one request: Alstom Redundant Modbus, FANUC FOCAS, Ignition, InfluxDB, ODBC, OPC DA, OPC UA, PI System, PI Web API, Prometheus and SAP IDoc. MaestroHub used to apply the same value to the whole call as well, so a call that sends several requests was cut at it: an OPC UA browse at 5s, an Alstom read at 2s, even when every request answered in time. The whole call is now bounded by the function's own Timeout and the node's and pipeline's timeouts, and each request still by the Request Timeout. A function that relied on the Request Timeout to end a long call sooner needs its own Timeout set. See A Request Timeout that bounds one request.
The UDP connector's Request Timeout keeps bounding every call on the connection, as it did; its description now says so (it said "udp.request only").
This applies to the Request Timeout of these eleven only. Other timeout settings may still bound more than one thing on some connectors (a connect and each request on S7, LOGO!, S5, Opto 22 and EtherNet/IP); giving every timeout setting one declared meaning is tracked in #8850.
An address field beside a Port field holds one host
Most connectors with a Port field join it with their address field, so an address saved with its own port (10.0.0.5:19000) or as a list (10.0.0.5, 10.0.0.6) became an address no device answers, and the connection reconnected forever. From 3.2 these address fields, about 67 of them across the PLC, CNC, database, messaging and file connectors, take one host name or IP address: an IPv6 address bare (fd00::5) or in brackets ([fd00::5]), stored bare. While the connection's mode uses the field (see the modes below), a port or a list is refused naming the field, with "give the port in the Port field":
- when a connection is created or edited, through the form, the HTTP API or MCP, even when the value is the one already stored;
- when a bundle is imported;
- when a stored connection is started: Start answers 422
INVALID_CONFIGnaming the field, and the connection does not dial.
Some connections have a mode in which their connector does not read an address field, and in that mode no host rule judges it, so an address kept from the other mode refuses nothing when the connection is saved, when it starts or in upgrade check: the MongoDB host, port and database when the connection uses a connection URI; the Redshift host and port through the Data API; the Greengrass host and port with cloud discovery; the ODBC server and database port with a DSN; the Syslog host when it receives; and the Modbus TCP settings over Modbus RTU or ASCII. Each manifest declares it on the field (unusedWhen). A URL in such a field, and a password in a URL, are still refused, as they are what is stored in clear. A mode is read as the connector reads it. A boolean setting, in every connector and function, holds true or false. The text "true" or "false" (in any case, spaces around it ignored) is taken as that value. It is saved as the boolean, whichever way it arrives: the form, the HTTP API, MCP, a bundle import, a clone or a bulk create. A connection or function stored with that text before is handed to its connector as the boolean when it runs. MongoDB's useURI and TLS settings and SQS's autoDelete read the stored text as false (an SQS "false" deleted every message it was meant to keep) and now read it as written; a connector that decodes its settings refused the text when it connected and now takes it. Any other text ("yes", "1") or a number is refused when it is saved, naming the field. A connection or function stored with such a value keeps running as before; its next save is refused, and upgrade check lists it as a note. upgrade check also names, one note per setting, each stored boolean that holds the text "true" or "false", since it may now act differently. A boolean setting left blank ("" or only spaces) is the setting not given: it is saved without it and runs as its default, as the connectors read it before; a required one left blank is refused as missing. A boolean function parameter written as a placeholder (((on))) is filled in when the function runs, and the Test action runs it the same way. A mode stored in another case than its own (RTU) leaves the fields unused as Modbus and Redshift read it; the form and the API save only its own spelling, and upgrade check lists such a row as a note.
The fields that take a port on purpose keep doing so: Cassandra contact points, the ClickHouse and MongoDB hosts, the SQL Server host, the ODBC server and the TwinCAT address. A comma-separated list is taken only where the connector dials a list: Kafka brokers, Cassandra contact points, the MongoDB host (a replica set), the ClickHouse host and the ODBC server (the driver's own host,port). Every other host field (S7, TwinCAT, MELSEC, Modbus TCP, the Alstom endpoints, the Azure IoT Hub host name, the Bigtable and Firestore emulator hosts, the SQL Server host) refuses a comma when the connection is saved and before it connects: a comma in it never reached a device. A SQL Server host written with its port after a comma (MYHOST,50123, as SQL Server tools show it) is refused with "a port written after a comma goes in the Port field". An address that names no device is refused when a connection is saved, in every connector, in a field the connection's mode uses: a port with no host before it (:48898, []:502), 0.0.0.0 or [::]. Each of these connects to the machine MaestroHub runs on. Write the device's address, or 127.0.0.1 or localhost if that machine is meant. A connection already saved with such an address keeps running, and its other settings can still be edited. Its start logs a warning naming the field, and upgrade check lists it as a note. A connection saved with a port or a list in a field that takes neither never connected; edit its address to the host alone and put the port in the Port field. A host name is held to the DNS rules as well: labels of at most 63 letters, digits, - and _ that neither start nor end with -, at most 253 bytes in all, no space and no invisible or control character, and a name that ends in digits only must be a valid IPv4 address (10.0.0.256 and 010.0.0.1 are refused). A name may end in one dot; an IP address may not (10.0.0.5. is refused, saying to drop the dot). The TwinCAT address may carry a port; it must be a number of 1 to 65535. upgrade check names each such stored connection before you start 3.2, as a note.
A host field that takes a list (Kafka brokers, Cassandra contact points, the MongoDB host, the ClickHouse host) reads every entry the same way: an entry's own port wins. An entry without one takes the connection's Port field (Cassandra, MongoDB, ClickHouse); Kafka has no Port field, so a broker is written host:port and one written without a port takes Kafka's 9092. A MongoDB host h1:27017 with Port 27017 used to become h1:27017:27017, which the driver refuses. ClickHouse with a CA certificate or a client certificate used to send the whole host list as one address. ClickHouse without those refuses a host list that contains an IPv6 address, because its driver would drop or refuse some of the hosts; give that node by name. A stored ClickHouse connection with such a list starts but does not connect, and upgrade check lists it as a note. MaestroHub reads these lists the same way when a connection is saved: an entry that is no host or host:port (a port that is no number of 1 to 65535, such as k1:99999 or h1:abc, or an unclosed bracket, such as [fd00::5) is refused, naming the field and the entry's position, before the connection is stored. Kafka and MongoDB used to store such a list and fail when they connected; ClickHouse and Cassandra refused it in their own words. A stored connection with such an entry is refused when it starts (422 INVALID_CONFIG) and listed by upgrade check. The ODBC server is not read this way: it is handed whole to the ODBC driver, whose own syntax it is.
Every list has a bound
The read functions of several industrial connectors take a list of points, and each form has always stopped at a number of them: 100 points for SINUMERIK 808D, LOGO!, S5, S7 (both multi-reads), Omron and Totalflow; 256 for ADECOM, GE SRTP, KEYENCE, LS XGT, MELSEC, Opto 22, Panasonic and Saia; 500 for both Bristol connectors and FANUC Ethernet; 50 for BACnet; 1,000 OIDs for an SNMP Get and 128 values for an SNMP Set. The backend did not hold most of them to it, so a function created through the HTTP API or MCP could name any number of points, and one read then had no bound on how long it took.
The reads of more connectors had no bound at all, in the form or the backend. From 3.2 they have one, chosen from what one call of the protocol carries or how the connector sends it: 256 points for Brother TC, Brother Speedio, CODESYS, PCCC and TOYOPUC, which go out in one request per point or per range, one after another; 5,000 tags for an EtherNet/IP tag read, packed into as few packets as the connection allows; 500 for a TwinCAT block read (one ADS sum command, which carries at most 500) and for a FANUC read (as FANUC Ethernet); 1,000 nodes for an OPC UA batch read (sent in Read requests of at most the server's own MaxNodesPerRead, which the connector reads when it connects, so a server with a smaller limit no longer refuses the whole read; each request has the function's timeout and retries, so a split read can take as long as its requests together); 50 tags for an Ignition or OPC DA read (where the tag browser has always stopped); 4,000 paths for each PI System read (one request frame); and 11,616 fields for an EtherNet/IP I/O input read (one bit each of the largest input image). Writes and messages have their bounds too: 1,968 coils and 123 registers for a Modbus multiple write (one Modbus request), 800 coils and 62 registers for an Alstom redundant write (the Alstom core's block), and 100 addresses in each of To, Cc and Bcc of an SMTP send. Bounds some connectors held only when a function ran are now held when it is saved too, with the same number: 256 messages of an OpenAI chat completion, 1,000 constants of a SECS/GEM Set Constants, 500 records of a Firehose batch, 1,000 rows of a Cassandra Write Rows and 100 statements of its batch, and 10 operations of a Cosmos DB patch and 100 of its transactional batch.
From 3.2 each connector's manifest declares that number, and MaestroHub holds every function to it when the function is saved and again each time it runs. Where the form already stopped at the number, only a function created through the HTTP API or MCP can be over it; for the connectors that had no bound (Brother, CODESYS, PCCC, TOYOPUC, EtherNet/IP, TwinCAT, FANUC, OPC UA, PI System and EtherNet/IP I/O), a function saved in the form can be too. Such a function is refused when it is saved again. When it runs, it fails with a permanent error that names the field and the number, for example points names 120 items; one call takes at most 100, so split them over several functions, and nothing is sent to the device. A subscription (a FANUC, Ignition, OPC DA or PI System subscribe, an EtherNet/IP I/O input stream, an ABB Robot Web Services or Universal Robots monitor, a Cosmos DB change feed) over its bound is not started: the function's subscription status is Refused with the same message, and nothing is subscribed on the device. Split its points over several functions, or, for a list that cannot be split, remove some. upgrade check names each stored function over its bound before you start 3.2, as a note. The notes name the field and the rule, never the stored value. A connection or function stored by an earlier version is judged as upgrade apply converts it (a 2.6 Azure Blob oauth2 method gets no note, as apply renames it service_principal), on a 2.6.x store too, and a function that breaks two rules (a list over its bound and a setting the save refuses) gets a note for each. A stored connection or function whose config cannot be read (it is not a JSON object) gets a note of its own, and the check goes on to the rows after it.
A list written as text (comma-separated, one per line, or a JSON array in a text field) is counted the same way, as its connector sends it: every item counted, a repeated one too (it is sent as often as it is written; for the lists whose connector sends a repeat once, see the end of this section), blank items left out, and a JSON array by its length. These bounds were held by each connector when the function ran; they are now held by MaestroHub when it is saved and each time it runs, with the same number: 50 symbols or signals of an ABB Robot Web Services read and 200 of a monitor, 10 Discord embeds, 32 sources of a Google Cloud Storage compose, 1,000 references of an IEC 61850 read, 500 records of a Kinesis batch, 10,000 Loki lines, 500 PI Web API streamset paths (its field said 100; the connector has always taken 500), 10,000 events of a Splunk send, 64 Universal Robots RTDE variables, and 3 components of a Cosmos DB partition key. Four bounds are new, each the limit of the service itself, and a stored function over one is refused when it is saved again and when it runs: 1,000 stages of a MongoDB aggregation pipeline (MongoDB refuses more from 5.0 on; an older server took them), 10 chained IAM roles and 1,600 COPY columns for Redshift, and 18,278 columns of a Google Sheets append. A list of numbers and ranges (1-500) is counted by the numbers it names, each once, and held when it is saved too: 10,000 points of a DNP3 read, 10,000 addresses of an IEC 60870-5-101 or 104 read, 1,000 UIDs of an IMAP Move or Flag, and 1,000 IDs of a SECS/GEM status, constant, variable, event or alarm list. A DNP3 Read Direct or Freeze takes at most 292 numbers or ranges and an Assign Class 291, as each is one range header of one request fragment (2048 octets); before, a longer list failed when it ran with "request ... larger than one fragment". A list that holds a ((parameter)) is counted by its other entries when it is saved, and whole when it runs. A DNP3 or IEC 60870-5 monitor's list filters what arrives and has no bound.
Some bounds the connectors held in their own code, or a form held alone, are now declared and held when the function or connection is saved: 1,000 points of a Qdrant upsert, 20 metrics of an Azure Stream Analytics metrics read (Azure Monitor's limit; the connector said unbounded), 10,000 values of an OMRON write, 10,000 items and 16 or 32 attributes of an OTLP export, 32 OTLP resource attributes, 10 tags of an S3 object (Amazon S3's limit), 20 properties of an Azure IoT Hub or IoT Edge message, and 10 roles of a Redshift connection's default IAM role chain. A stored function or connection over one is refused when it is saved again and when it runs. What a refusal tells you to do follows what the list is, and every bounded list says which in its manifest (splits or indivisible, one of the two, refused when the manifest is loaded if it says neither or both). Most lists can be split: their items stand alone, so the refusal says to split them over several functions (points names 120 items; one call takes at most 100, so split them over several functions). A list that is one thing whole cannot be split that way, and its refusal says to remove items instead: a Redshift IAM role chain (a connection's default, and the role of a COPY or UNLOAD), the column list of a Redshift COPY, a Cosmos DB transactional batch, patch or hierarchical partition key, a Cassandra batch, the stages of a MongoDB aggregation pipeline, the columns of a Google Sheets append, the tags of an S3 object or a Grafana annotation, the properties of an Azure IoT Hub or IoT Edge message, OTLP attributes and resource attributes, the embeds of a Discord message, the labels of a new GitLab issue, the messages of an OpenAI conversation, the parameters of a SECS/GEM remote command, the fields of an EtherNet/IP I/O image, the tag table of a ControlLogix Server connection, the values of an SNMP Set (one request the agent applies whole, and a table row created with RowStatus needs all its columns in it), the sources of a Google Cloud Storage compose (composed in order into one object), the To, Cc and Bcc recipients of an email, the events and variables of a SECS/GEM event trigger (one connection's report IDs, one report per event) and the persistent variables of an ABB Robot Web Services monitor (200 per robot for every client together). For example iamRole names 11 items; a connection takes at most 10, so remove 1 of them, when the connection is saved, when it starts (422 INVALID_CONFIG) and in its upgrade check note. The OPC DA and Ignition subscribe forms took at most 50 tags although a subscription takes 50,000; they now take 50,000. A form's Add button at a list's bound says the same on the button and in its tooltip, and each row's Duplicate button is disabled with the same tooltip: Max 100 reached: split them over several functions, or Max 128 reached: remove one to add another for a list that cannot be split.
Azure IoT Hub and IoT Edge message properties are held to 20, the number the form already allowed. A function or a pipeline that sends more through the HTTP API, MCP or a ((parameter)) that fills the properties is refused when it is saved, or when it runs for a templated value, with properties names N items; one call takes at most 20.
A list counts every item it names, a repeated one too, because each is sent. Where the connector sends a repeated item once, it counted its bound after removing the repeats, and MaestroHub does the same: each item counts once, in the form, when the function is saved and when it runs. The manifest says so on the list (distinct). These lists are the To numbers of a Twilio message or call (one number written two ways, with spaces, hyphens, dots or brackets, is one), the labels of a new GitLab issue and the labels an update adds or removes, the tags of a Grafana annotation, the metrics of an Azure Stream Analytics metrics read, the paths of a PI Web API streamset read, the paths of each PI System read (current, recorded, interpolated and summary values) and the explicit paths of a PI System subscription, and the ids of a Qdrant Get Points or Delete Points (an id written twice is one point). In any other list, a stored function whose list repeats items and so names more than its bound now fails when it runs, naming the field and the number; upgrade check lists it as a note. Remove the repeats, or do what the message says: split the list over several functions, or, for a list that cannot be split, remove items.
S7 reads and writes are never split across requests
The S7, LOGO!, S5 (through a gateway) and SINUMERIK 808D connectors read and write through one S7 library, which cut a long read or write into several requests one after another. The PLC can run its program between them, so a value whose bytes straddled the cut was made of two scans. At the 240-byte PDU of a LOGO! and many S7-300 and S7-1200 CPUs that happened to a read of more than 222 bytes of points. Reads are now planned so that every request is whole, and totalReads counts the requests that went out.
A single value that does not fit one request is refused, with a permanent error that names the PDU, the limit and the fix, and nothing is read or sent:
- Writes of more than 205 bytes at a PDU of 240 (more than 445 at 480).
- Reads of one data point of more than 222 bytes at a PDU of 240 (more than 462 at 480).
Saving a function refuses a value that fits no PDU the connector can negotiate, more than 445 bytes for a write and 462 for a read. Only strings and raw byte ranges are that long. A WSTRING[254] (512 bytes) is refused at every PDU, for reads and writes: it is longer than one request carries even at 480. At a PDU of 240, which a LOGO! and many S7-300 and S7-1200 CPUs answer, the default STRING[254] (256 bytes) is refused too. Declare a shorter string type in the PLC and set the function's size to match; the error names the longest type that fits, for example STRING[220] for a read and STRING[203] for a write at a PDU of 240, or WSTRING[229] for a read and WSTRING[220] for a write at 480. A CHAR array is one value: declare a shorter one. A raw byte range can be read as several data points. A STRING data point with a size over 256 bytes is refused at save, as no STRING is that long. upgrade check names each stored function a 240-byte PDU would refuse, as a note: a read data point over 222 bytes, or a write over 205 bytes, such as a stored STRING[254] write. The note names the type that fits.
A bit is written alone on the S7: a BIT write to a data block, the merkers (M) or the outputs (Q) is one request that sets or clears that bit and no other. It used to read the byte and write the whole byte back in a second request, so a change the PLC program made to another bit of that byte in between was lost. A LOGO! still writes a bit by reading its byte and writing it back, as no LOGO! 8 has been shown to take a single-bit write; the operation's description and the docs now say that a change the program makes to another bit of that byte in between is lost.
Other connectors that write a bit by reading and writing back say so too (behaviour unchanged, tracked in #8849): Siemens S5 bits and DL/DR bytes, GE SRTP register bits, Keyence bits inside a DM word, Panasonic bits inside a register over MEWTOCOL-COM, and Omron's Toggle read the byte, word or bit and write it back in a second request; their descriptions and docs now say a change the PLC program makes in between is lost. Omron's bit control no longer claims to be atomic for Toggle, and no longer names Force Set/Reset: Set and Reset are one Memory Area Write of that bit alone.
OPC UA: a request refused for too many operations is split
A request the server refuses for too many operations (BadTooManyOperations) is not sent again as it was. MaestroHub splits it by the server's stated limit, or reads the limit again once when it could not read it at connect. If no split is left, the failure is final (Permanent): it is not retried, and a buffered write goes to the dead-letter queue instead of being retried. Subscribing creates monitored items in calls of at most the server's MaxMonitoredItemsPerCall.
A stop during a restart is no longer undone
Saving a running connection's settings restarts it in the background. A Stop that arrived during that restart could be undone by it: Stop answered success, and a moment later the connection was connected again. The same held for Stop all, which also skipped a connection that was in the middle of a restart, for a Suspend, and for workspace maintenance that began during the restart, which then started the connection again when it ended, as if it had never been stopped. Now a Stop, Stop all, Suspend or delete that arrives during a restart ends the restart, and the connection stays as that decision left it. A Start or Restart after the Stop brings the connection up, and so does a Resume after the Suspend. A Restart ended by a stop, a suspend or a delete answers 409 RESTART_HALTED with what ended it, one ended by a lost lease answers 503 CONNECTION_LEASE_LOST as before, and its audit row is a failure that names what ended it. A Start or Restart that arrives after such a Stop while the restart is still under way now answers that the connection was started, and writes a successful connection.started or connection.restarted audit row: the connection comes up. Before, a Start there answered that the connection was already running. An operator's Restart of a suspended connection lifts the suspension, during another restart too, and the suspension's message is cleared with it; a suspension by workspace maintenance is never lifted by a Restart. A restart that a change to a connection's functions starts (for example a Sparkplug B connection's first publish function) no longer starts a connection that was stopped meanwhile. The end of workspace maintenance no longer starts a connection an operator stopped after maintenance ended and before the connection had started again. Stop all now stops a suspended connection as a Stop does: it ends stopped, is reported as stopped, gets its connection.stopped audit row, and stays stopped when workspace maintenance ends. Before, Stop all reported it as not running and wrote no audit row for it; on a single replica it stayed suspended, and with several replicas the next reconcile pass, about 30 seconds later, stopped it. A Stop of a suspended connection, single or Stop all, also clears the suspension's message and the error it showed. A Restart that meets a replica shutting down answers 503 (SERVICE_ERROR, or REPLICA_DID_NOT_ANSWER with several replicas when that replica no longer takes the request; retry it), not 409 RESTART_HALTED. When a Resume lifts a recorded stop, its connection.resumed audit row says so (stopLifted), also when the resume then fails.
In a multi-replica deployment, a Stop served by one replica and a Start or Restart served by another are ordered by the order they were recorded, and the later one wins, whichever reaches the replica that runs the connection first: the connection ends stopped, or running with at most one replica per slot. A Start, Restart or Resume that reached the replica running the connection while a Stop was taking the connection off it used to start it there again, where it kept running after that replica had let the connection go. Now it starts nothing there, and a Start or Restart is answered from what was recorded. When the later decision recorded is to run, the connection starts again under a fresh lease, on that replica or on the one that takes the connection over, also when the Stop reached that replica after the later Start or Restart had already brought the connection up there. A start that took the connection's slot and was still waiting for its turn to connect when a later Stop let the slot go no longer connects without the slot: it answers 409 CONNECTION_STOPPED_BY_OPERATOR. A Stop that arrives while this replica is still connecting or disconnecting the connection's client (a start or a reconnect attempt under way, a restart or a settings change closing the old session, or another Stop disconnecting) lets go of the connection only once that has ended and any session it opened is closed, so another replica never opens a second session to the device meanwhile. A Stop or Suspend waits at most 30 seconds for the client to disconnect: before, a device that never answered the disconnect held the Stop, and with several replicas a second Stop could let go of the connection while the first was still disconnecting. When the disconnect does not finish within those 30 seconds (it times out, or ends on its own time limit), the client crashes while disconnecting, or a connect never returns, the replica cannot tell whether the session to the device is closed. A disconnect that ends with an error of its own, such as the device refusing it, counts as finished. In those cases the replica keeps the connection's lease until it expires (30 seconds by default) instead of giving it back, so no other replica connects to the device before then, and it does not connect that client again while the disconnect or connect may still be running: the next Start, Restart or reconnect attempt connects a new client built from the connection's settings, on a single replica too, and a session the old connect opens later is closed as soon as it returns. The connection then moves to another replica after the lease expires and that replica's next reconcile pass, up to about a minute in all (the lease time to live plus the 30 second reconcile interval). Each such lease is counted in the connector_lease_abandoned_total metric, with the reason session_unproved, or shutdown_undrained for a replica that shut down while a disconnect still ran, and logged as a warning. A Start during that window, on any replica, answers 503 with the code CONNECTION_SLOT_HELD and a Retry-After until the lease expires, not 200: no replica runs the connection until then, and it starts on its own afterwards. A replica that shuts down does the same for a connection whose disconnect is still running when its shutdown wait ends. A Start whose own connect is still running when its wait ends answers 503 CONNECTION_NOT_READY (retry, or read the connection's status) instead of 502 CONNECTION_FAILED: the device's answer is not known yet. A reconnect attempt that finished after a Restart had already connected no longer closes the Restart's session, and saving a connection's settings while another restart of it is under way now ends with the connection connected on the new settings, not on the client the settings replaced. Stop all also stops a start that a replica has prepared and not yet run, so that start connects nothing. Start all now answers 200 with each connection's outcome, as Stop all does (results, next to message); a connection that a restart is already bringing up counts as started: a connection that a Stop recorded after the Start all keeps stopped is reported as not started with CONNECTION_STOPPED_BY_OPERATOR, the answer a Start gives, not as a failure of the whole request, and its connection.started audit row is a failure.
During a rolling upgrade of a multi-replica deployment, a Restart served by a replica that still runs 3.1 answers 200 whatever the replica running the connection decides: 3.1 sends a restart to every replica and does not wait for what they did, so its answer and its audit row are a success even when a Stop, Suspend or delete ends the restart. The connection still stays as that decision left it. Once every replica runs 3.2, a Restart answers what happened. See Stopping a Connection.
A Sparkplug B connection that only listens publishes nothing
A Sparkplug B connection used to act as an edge node even when it only listened: it registered an NDEATH Last Will and published an NBIRTH under its Group ID and Edge Node ID. Under a broker ACL that lets it only subscribe, those publishes were refused; where they were allowed, MaestroHub appeared in a SCADA's tag tree as a node that ignores rebirth requests and goes offline through its will. From 3.2:
- A connection with no Publish Device Data function publishes nothing. No NBIRTH, no NDEATH will, no DDEATH on stop. An existing connection that only subscribes stops sending its NBIRTH and NDEATH after the upgrade. Anything that watched those messages (a SCADA tag for MaestroHub's own node, an alarm on its NDEATH) no longer sees them; add a Publish Device Data function if the node must stay visible.
- A connection with a Publish Device Data function is an edge node as before: the NDEATH will at connect, NBIRTH, DBIRTH on a device's first data. Saving a connection's first publish function, or deleting its last one, restarts the connection (a short reconnect) so that it connects as an edge node or as a listener. Until the function is saved, a publish on a listener, the Test dialog included, is refused with that remedy.
- Group ID and Edge Node ID are optional. They are needed only to publish. A connection that has a publish function but neither listens only, refuses each publish with the reason, and says so on its status. A connection saved with both keeps them and works as before.
- The connector no longer claims "SparkPlug B v3.0 compliant". It decodes Sparkplug B 3.0 payloads (protobuf, aliases, DataSet/Template) and is not a Sparkplug Host Application (no STATE, no rebirth requests). Replayed (
is_historical) history is not preserved yet. A connector now claims conformance only in a structured, test-backed list that the connection picker shows; Sparkplug B makes no such claim yet. See What the connector is, and is not.
TimescaleDB: the time index is replaced in the background
This applies only when your historian is TimescaleDB. The built-in historian is not affected.
On TimescaleDB 2.30 and newer, reading the oldest values of one topic could take many seconds on a busy installation: for example a history read that starts before the topic existed, or the first value of a newly created topic. The database chose the index on time alone and read a whole recent chunk to find one topic's rows. The cause was that index, which TimescaleDB adds by default.
The first start of this release replaces it with an index that serves the same reads across topics but cannot be chosen for a read of one topic. It does this in the background:
- New chunks get the new index at once.
- Existing chunks get it one at a time, without blocking writes. A chunk the compression policy is about to compress gets it right after it is compressed.
- The old index is removed chunk by chunk as each one has the new index, also without blocking.
With default settings this is finished within one to two days of the upgrade. Until then the installation behaves as it did before, no worse.
When the historian's database role is not a superuser. This is the case with the HA chart on CloudNativePG and on most database servers you run yourself; the single-node chart, Docker Compose and the HA chart's built-in database connect as a superuser. PostgreSQL then does not let the role create an index on an existing chunk. MaestroHub builds nothing there: new chunks get the new index, and each existing chunk keeps the old one until it is compressed and loses it then. With the default compression (after one day) that also ends within one to two days. state is waiting_for_compression meanwhile. Three things to know:
- To finish at once, a superuser of the database runs
GRANT CREATE ON SCHEMA _timescaledb_internal TO <the historian's role>;. MaestroHub then indexes the existing chunks in the background. You can revoke it whenstateiscomplete. - If you turned compression off, the old index stays on the existing chunks until retention drops them, and
detailsays so. Use the grant above. - If the role also does not own the historian's tables, the old index does not go away by itself even with compression on: compressing a chunk does not remove its old index, MaestroHub removes it afterwards, and only the role that owns the tables may. The grant is not enough then, and
detailsays so. Connect the historian as the role that created the tables.
What to look for. The Historian page (under Run) shows the time index while it is not complete: what is pending, the chunk counts, the last error, and the GRANT statement ready to copy when running it finishes the work. It reads the status again by itself, and shows nothing once the index is complete. The same is in storage.historian.timeIndex of GET /api/v1/system/uns/settings/status. Reading that status needs the uns_settings:update permission.
state:starting,building,removing_old,waiting_for_compression(see above) orcomplete.blockedmeans a step failed or cannot proceed;detailandlastErrorsay on what, for example a transaction left open for hours. A failed step is tried again by itself, less often while it keeps failing (after 1, 2, 4, 8, 16 and 32 minutes, then every hour). Four cases do not clear until you act, anddetailorlastErrornames each: a database role that does not own the historian's tables (connect the historian as the role that created them); a connection pool of one (maxOpenConns); another index or object that already has the name of the new index, on a table or on a chunk; and an index of your own on the signal tables that starts withts.chunks,chunksIndexedandchunksOnOldIndex: how far it is. It is done whenchunksOnOldIndexis 0; with a role that is not a superuser, compressed chunks need no index of their own, sochunksIndexedcan stay belowchunks.oldIndexPresent:trueuntil the old index is gone.needsAttention:truewhen the state isblocked(a step failed or cannot proceed; a failed step is tried again by itself, anddetailandlastErrorsay on what), or when the state iswaiting_for_compressionand the wait will not end by itself (no compression policy on the signal tables, or the historian's role does not own them).falseotherwise. The Historian page shows a warning when it istrue.operatorStatement: theGRANTstatement above with your schema and the historian's role filled in, when running it finishes the work.detailcarries the same statement. After you run it, the next pass starts within 15 minutes and indexes the existing chunks. It is absent when the grant would not be enough: the database refused the index for another reason, or the role does not own the historian's tables (connect the historian as the role that created them).
The log names each chunk as it is indexed (time index: chunk indexed), follows the state and the count as they change, and says when the old index is removed.
What to do. Nothing. Until it is done the old and the new index exist side by side, so allow free database disk for one more index on time per uncompressed chunk: about 0.4 GB on a chunk of 22 million values. The historian's connection pool (maxOpenConns) must allow at least two connections, which every default does. Going back to the release before needs no database action; it runs on the new index.
Failures are counted per trigger
In 3.1, MaestroHub counted a pipeline's failures for the pipeline as a whole. In a pipeline with two triggers, one failing on every run and one healthy, the healthy trigger's clean runs reset everything the failing one built up. 3.2 counts per trigger:
- Execution History keeps a failing trigger collapsed while another trigger runs. Identical failures of one trigger within one minute are one row with a count (Failed ×N). A clean run of another trigger no longer ends that row, so a trigger that fails once a second writes one row a minute, not one per failure. Two triggers that fail the same way each have their own row.
- The Overview's failing-pipelines warning is per trigger. It shows when one trigger of a pipeline has failed, or completed with errors, 3 runs in a row, whatever the pipeline's other triggers did in between. In 3.1 such a pipeline never reached the warning. The warning and the failing pipeline's row name the trigger to anyone who may read that pipeline. The topic briefing says that the runs are one trigger's, without naming the trigger; how to clear them is on the warning.
- A clean run from another trigger no longer clears it. A trigger clears its own count with its own first clean run, and only that. When two triggers of a pipeline are failing, a clean run of the one the warning names does not end the warning: it stays while the other has 3 or more failures in a row, and names that one next. After the fix, use Retry on the failed run in Execution History, or Fire Trigger on that trigger in the pipeline designer. A run started from a separate Manual Trigger node, which is what the REST trigger route and the MCP
trigger_manuallytool start, is a run of that node and leaves the failing trigger's count standing. A trigger that is removed from the pipeline, or switched off in it, keeps its count until the pipeline next finishes a run, and drops it then. A pipeline whose only trigger you switched off starts no run by itself, so its warning stays until something runs it: any run of the pipeline that finishes, such as Retry on the failed run, clears it.
The metric maestrohub_pipeline_failure_streak keeps its name and its one label, pipeline_id. Its value is now the longest run of consecutive failures of any one trigger of the pipeline, where it was the pipeline's consecutive failed runs. For a pipeline with one trigger the number is the same. An alert on it can fire for a pipeline with several triggers where it stayed silent before.