Skip to main content

Troubleshooting

Start with the symptom you see. Each table gives the likely cause and what to do. If a table does not solve it, collect the facts in the last section and contact support.

First three checks
  1. Is the Console healthy? curl -fsS http://<console>:8080/api/v2/health (see Health and logs).
  2. Is the runtime Online? Open Connectivity → Runtimes.
  3. Is the device Connected? Open Connectivity → Devices.

Error codes you may see​

The Console returns errors as {"error":{"code":"MI-xxxx","class":"…","message":"…"}}. The full list is in Error codes. The ones you meet in operation:

CodeHTTPMeaningFix
MI-1009500The database schema does not match this Console binary (the Console is older than the database)Start the new Console version, or restore the old database. See Upgrade
MI-1010400TLS configuration invalid: certificate or key missing, mismatched or unreadableCheck MI_CONSOLE_TLS_CERT_FILE and MI_CONSOLE_TLS_KEY_FILE
MI-1011500The master key is missing, shorter than 32 characters, or cannot open stored secretsSet MI_MASTER_KEY (at least 32 characters). After a restore, put back the original key
MI-1012503The Windows runtime EXE is not installed on this ConsoleProvide the packages (MI_RUNTIME_PACKAGES_DIR)
MI-1013413The request body is too largeSplit large tag writes into batches
MI-1020400An environment variable of the old 1.x naming is still setUse the MI_* names
MI-2001502Connection failed (to a device, uplink or control plane)Check network and address
MI-2002504An operation timed outCheck the link and the device
MI-2003502TLS handshake failedCheck certificates and time
MI-3001502The device answered with a protocol exception (for example a Modbus exception)Check the address and the register map
MI-3003400Device address invalid or outside the mapCorrect the tag address
MI-3004400The data type is not valid for this addressChange the data type
MI-4001401Sign-in required: token missing or invalidSign in again
MI-4002403Permission deniedAsk for a role with the permission. See Users and roles
MI-4003429Too many attempts or requestsWait, then retry. See Retry-After
MI-5001422A licence limit would be exceededSee Licensing
MI-5002422The licence is missing, invalid or expiredUpload a valid licence
MI-5003402The feature is not in your editionEnterprise licence needed
MI-6001500Internal errorRead the Console log
MI-6002500The configuration store (PostgreSQL) is unavailableCheck the database. See below

Console​

SymptomCauseFix
The page does not loadThe Console is not running, wrong port, or a firewall blocks itCheck the health URL from the server itself first. Then check the firewall (TCP 8080)
Browser shows "not secure"The default is plain HTTPUse a reverse proxy with TLS or set MI_CONSOLE_TLS_CERT_FILE and MI_CONSOLE_TLS_KEY_FILE
Console exits at start with MI-1011MI_MASTER_KEY missing or too short (not set in a container)Set it. In the plant stack it is in the mii-secrets volume
Console exits at start with MI-1009The Console is older than the databaseUse the newer image. See Upgrade
Console exits with MI-6002, or /ready returns 503PostgreSQL is not reachableCheck MI_DB_URL, the mi-db container, or in Lite the postgres.log
Banner: "This Console is on standby and only reads."This is the standby node of a high-availability pairMake changes on the active Console
Banner: "This Console is not taking changes right now. It is starting, stopping or on standby."The Console returned 503 for a changeWait for it to finish starting
Banner: "The Console cannot be reached." / top bar "Console unreachable"The browser lost the ConsoleCheck the network and the service
UI is in TurkishThe default language is TurkishClick the language button (TR/EN) in the top bar or set it in Settings → Profile
Slow pages with many machinesThe Overview reads at most 80 machines, the graph at most 2000 nodesUse filters and the plant graph focus
Behind a proxy all users show the proxy addressThe Console does not trust forwarded headersSet MI_TRUST_PROXY=true

Sign-in​

SymptomCauseFix
Do not know the admin password (Lite)It is generated once on first startRead FIRST-LOGIN.txt in the data folder (sudo cat /var/lib/makeintelligent/FIRST-LOGIN.txt or C:\ProgramData\MakeIntelligent\FIRST-LOGIN.txt)
Do not know the admin password (plant stack)Generated into the secrets volumedocker compose -f compose.plant.yml exec mi-console cat /run/mii/secrets/admin_password
Changed the password but the file still shows the old oneThe file is written once and never updatedDelete the file after the first login
Account locked5 failed sign-ins lock the account for 15 minutesWait 15 minutes, or ask another administrator
MI-4003 on sign-inToo many attempts from one address (the limit is per client address)Wait one minute. Behind a proxy set MI_TRUST_PROXY=true so each user is counted separately
New password refusedPasswords need at least 12 and at most 128 characters, and common passwords are rejectedChoose a longer, less common one
LDAP or SSO sign-in failsNeeds the platform.sso feature (Enterprise) and correct settingsSee LDAP and SSO

Device connection​

First read the state of the device in Connectivity → Devices.

Device showsMeaning
ConnectedThe driver is connected and reads good values
Connecting…The driver is trying. The reason shows, for example "Connecting to PLC". The Console probes again every 15 s ("Auto-recovering — probing every 15s")
DisconnectedThe probe or the driver reported an error, or all tags report bad quality. The error text is shown
SuspendedYou suspended the device. Polling is stopped. Click Resume
Symptom or messageCauseFix
"Edge runtime offline"The runtime that hosts the device is offlineSee Runtime offline below
"Waiting for edge driver"The runtime has not started the driver yetWait a minute. Check the runtime is Online and the protocol is hosted by it
"Connecting to PLC" staysThe PLC is unreachable: wrong host or port, no route, a firewall, or the PLC allows only a limited number of connectionsFrom the runtime computer test the port. Demo plant: host demo-sim, port 5020 (Modbus) and 4840 (OPC UA). Check the unit id and that no other client holds the only connection slot
"All tags reporting bad quality"The connection works but every read failsCheck the addresses and data types. Modbus: unit ids 1 to 4 in the demo plant; address form 1!40002
Test connection failsWrong parametersCompare with the protocol page in Protocols
Serial device does not connectThe port is wrong, in use, or the runtime user cannot open itOn Linux the runtime user needs the dialout group. Check baud rate, parity and stop bits
Connection works but values are wrongWrong data type, byte or word order, or scalingChange the data type, the endian option or the scale. Modbus Temperature is INT16 with scale 0.1
Read works, write failsThe tag is not writable, writes are held, or safe write is onSee Writes and Approvals and safe write
OPC UA fails with a certificate errorThe server certificate is not trustedTrust it under Administration → Certificates. See Certificates
MI-3001The device returned a protocol exceptionWrong address or function for this device

The plugin reports an error code per tag. The Console shows its text:

TextOT codeMeaning
read failure3000The device did not answer a read correctly
write failure3001A write failed
disconnected3002The link to the device is down
tag not readable3003The tag attribute does not allow reading
tag not writable3004The tag attribute does not allow writing
tag type mismatch3007The data type does not match the address or the value
protocol decode error3010The answer could not be decoded
plugin not running3011The protocol plugin of the device is not running
tag not ready3012The tag has no value yet (first poll not done)
timeout3014The device did not answer in time
invalid tag address2202The address text does not fit the protocol
OT error NotherSee the full table below

Work from the device to the screen.

StepCheckIf it fails
1The device is ConnectedSee Device connection
2The tag is in a group with a poll interval, and the group is enabledAdd the tag to a group. See Groups and tags
3The tag shows a live value with quality goodSee quality in Data types and quality
4The tag is bound to equipment in the modelBind it. See Plant browse
5The runtime shows Samples/s above 0 and few Unknown tagsUnknown tags means data for tags the Console does not know. Check the tag configuration
6The historian is on: Settings → Plant historian, "Store samples in the historian"Switch it on and click Test connection
7The selected runtime in the top bar is the one that holds the deviceSelect it. Trends shows only the selected runtime
8The tag is numericTrends lists only numeric tags
9No disk guard pauseThe page shows "history is NOT being stored". Free disk space
10Retention did not delete the rangeCheck How long history is kept
SymptomCauseFix
Chart has gapsBad readings or no dataFix the device or the address
Chart is dashedUncertain qualityCheck the data type and scaling
History is delayed by minutesThe runtime sends a backlog, or the lag is highLook at Lag and Buffer on the runtime page
Chart shows old data onlyThe runtime is offline and buffers locallyThe buffer is delivered when it is back (the plant stack buffers 4 hours by default)
Values jump after a unit changeA unit or scaling change is marked with a dotted lineValues are not converted. See Trends

Runtime offline or degraded​

SymptomCauseFix
Offline, LiteThe service is stopped or a component is degradedmii status, mii health, and the logs in the logs folder
Offline, plant stackThe mi-siterun container is stopped or cannot reach the Consoledocker compose ps, then logs mi-siterun. It reaches the Console at http://mi-console:8080
Offline, remote runtimeThe service is stopped, there is no outbound HTTPS, or the clock is wrongWindows: .\mii-runtime.exe status. Linux: systemctl status makeintelligent-runtime. Check the time on the host
Compose fails with "Create a runtime in Console and set MI_SITERUN_TOKEN"The variable MI_SITERUN_TOKEN is not setCreate the runtime in the Console and set the token
Waiting for first contactThe runtime was created but never started, or the token was already usedInstall and start it. Create a new token if needed
Wrong token on a direct runtime10 wrong attempts per minute per address are rate limitedRotate the token and set it on the runtime
DegradedSee the ingest states below

Ingest states​

Shown on the Runtimes page for remote runtimes.

State (label)CauseFix
ok (Sending)NoneNone
catching_up (Catching up backlog)The runtime delivers buffered data after an outageWait. Lag falls. The newest data goes first
backpressure (Gateway is slowing it down)mi-ingest or the historian is overloaded (429 or 503 with Retry-After)Wait. If it stays, check the historian and the gateway load
offline (Gateway unreachable, buffering)No route to the gateway, DNS, proxy or firewallAllow outbound HTTPS 443 to the ingest address. Check MI_INGEST_PUBLIC_URL
cert_revoked (Certificate revoked)The certificate was revoked in the ConsoleCreate an enrollment token and run enroll --force on the host
outbox_full (Buffer full, dropping oldest)The disk buffer (default 10 GiB, or the free-space guard) is fullRestore the link, free disk space. Dropped data is counted in the Errors column
Gateway certificate not trustedThe gateway uses a certificate from a private CAProvide the CA: MI_INGEST_SERVER_CA_FILE on the Console or MI_INGEST_SERVER_CA on the runtime
409 on enrollment tokenMI_INGEST_PUBLIC_URL is not set, or the runtime is a direct runtime that is onlineSet the variable, or create a new runtime for the remote computer
Gateway answers 422A batch was rejectedCheck the runtime version against the Console version, and the runtime logs

Licence​

SymptomCauseFix
Banner "Free mode — data, rules and configuration reset in HH:MM"No .lic is installed. Free mode wipes configuration, rules, history, alarm history and proposals every 3 hours. The audit log is keptUpload a licence in Settings → License. Uploading stops the wipe
Licence state invalid after upgrade to 4.xThe licence was signed with the old development key (before 4.0)Ask for a re-issued licence (same installation id and limits)
invalid: "installationId does not match"The licence belongs to another installationSend the Installation ID of this Console (button Copy ID) to get a matching licence
State expiredPast the end date and the grace daysReads still work, changes are refused. Upload a renewed licence
State gracePast the end date, within the grace daysChanges are allowed. Renew soon
MI-5001A limit in the licence is reached (runtimes, devices or tags)Remove items or upgrade the licence
MI-5003The feature is Enterprise only (edge.multi_runtime, sor.connectors, platform.sso, platform.ha, fleet.inventory, hitl.policies, if.a2a)Get an Enterprise licence
403 edition_lite when adding or deleting a runtimemii Lite has exactly one built-in runtimeUse the Enterprise plant stack for more runtimes

Lite service​

SymptomCauseFix
install failsNot run as administrator or rootWindows: elevated PowerShell. Linux: sudo
mii status shows unreachable in the first minuteThe Console is still startingWait 1 to 2 minutes
Service starts and stopsA component crashed more than the limit and the launcher gave upmii health; read the component log in logs\; fix the cause
Linux install fails about PostgreSQLPostgreSQL 16 server binaries are not installed (they are not bundled on Linux)sudo apt install postgresql-16 (the .deb depends on it). mii runs its own private cluster on 127.0.0.1:5433 and never uses the distribution cluster
Linux: programs do not start, GLIBC errorThe system library is too old (glibc 2.36 or newer is needed, Debian 12 baseline)Use a newer distribution
mii run refuses to runForeground run as root on LinuxRun as another user, or set MI_LITE_ALLOW_ROOT=1
"refusing to start"A restore was interruptedRun the restore again. See Backup and restore
Start aborted before migrationThe pre-upgrade backup failedFree disk space in the data folder
Another copy is runningThe lock file state/mii.lock is held by another mii of the same data folderStop the other one: mii stop
Disk is full, history stopsThe disk guard paused storing historyFree space or shorten retention. See Historian
Windows: nothing in the Services listNot installed, or installation failedRun mii.exe install in an elevated prompt. The service is called MakeIntelligent
Windows: others cannot open the ConsoleThe firewall rule only covers the standard portThe installer adds the rule "MakeIntelligent Lite (8080)". Check it exists and that the network profile matches
Cannot find the logsWrong folderC:\ProgramData\MakeIntelligent\logs or /var/lib/makeintelligent/logs

Ports in use​

If another program uses a port, the start fails. Lite uses these ports. Only 8080 is reachable from other computers by default. All others listen on 127.0.0.1.

PortUseChange with (mii.env)
TCP 8080Console, UI and APIMI_CONSOLE_LISTEN (default :8080)
TCP 5433Embedded PostgreSQLMI_LITE_PG_PORT
TCP 8081Collector local APIMI_LITE_COLLECTOR_PORT
TCP 8083ObservingMI_LITE_OBSERVING_PORT
TCP 8084OT runtimeMI_LITE_OT_PORT
TCP 9081Rules engineMI_LITE_STREAM_PORT
TCP 11884Internal MQTT brokerMI_LITE_MQTT_PORT
UDP 17001OT store to collector (Windows; Linux uses a unix socket unless set)MI_LITE_STORE_PORT
TCP 1883Optional public read-only MQTTMI_LITE_MQTT_PUBLIC_LISTEN (off by default outside Docker)

Rules: a port outside 1 to 65535, or two settings on the same port, stop the start with an error. A public port that collides with one of the ports above also stops it. A runtime installed on the same computer uses other loopback ports (collector 18081, OT 18084, stream 19081, MQTT 11883, store UDP 17101), so both can run together.

Find what holds a port:

Get-NetTCPConnection -LocalPort 8080 | Select-Object OwningProcess, State
Get-Process -Id <pid>
sudo ss -ltnp | grep ':8080'

Change the port in config/mii.env (the file wins over the environment) and restart the service:

MI_CONSOLE_LISTEN=:8090

If you change the Console port, open the new port in your firewall yourself. In the plant stack the Console port is published with MI_CONSOLE_PORT (default 8080); the other services have no host ports.

OT error codes (Site Runtime plugin host)​

These are the codes of the Site Runtime protocol engine. Most appear in the Console as the text shown in the Device connection section, or as OT error N for the rest. The word "node" in the code names means a device (connection profile).

General (1000 to 1009)​

CodeNameMeaning
1000EINTERNALInternal error of the OT runtime
1001BODY_IS_WRONGThe request body is malformed
1002PARAM_IS_WRONGA parameter is invalid
1003NEED_TOKENA token is required
1004DECODE_TOKENThe token could not be decoded
1005EXPIRED_TOKENThe token expired
1006VALIDATE_TOKENThe token could not be validated
1007INVALID_TOKENThe token is not valid
1008INVALID_USER_OR_PASSWORDWrong user or password
1009IS_BUSYThe runtime is busy. Try again

Devices (2002 to 2015)​

CodeNameMeaning
2002NODE_EXISTA device with this name exists
2003NODE_NOT_EXISTThe device does not exist
2004NODE_SETTING_INVALIDA connection setting is invalid
2005NODE_SETTING_NOT_FOUNDA required setting is missing
2006NODE_NOT_READYThe device is not ready
2007NODE_IS_RUNNINGThe device is running (the action needs it stopped)
2008NODE_NOT_RUNNINGThe device is not running
2009NODE_IS_STOPEDThe device is stopped
2010NODE_NAME_TOO_LONGThe device name is too long
2011NODE_NOT_ALLOW_DELETEThe device cannot be deleted now
2012NODE_NOT_ALLOW_SUBSCRIBENot allowed to subscribe
2013NODE_NOT_ALLOW_UPDATENot allowed to update
2014NODE_NOT_ALLOW_MAPNot allowed to map
2015NODE_NAME_EMPTYThe device name is empty

Groups (2101 to 2107)​

CodeNameMeaning
2101GROUP_ALREADY_SUBSCRIBEDThe group is already subscribed
2102GROUP_NOT_SUBSCRIBEThe group is not subscribed
2103GROUP_NOT_ALLOWThe group action is not allowed
2104GROUP_EXISTA group with this name exists
2105GROUP_PARAMETER_INVALIDA group parameter is invalid (for example the interval)
2106GROUP_NOT_EXISTThe group does not exist
2107GROUP_NAME_TOO_LONGThe group name is too long

Tags (2201 to 2211)​

CodeNameMeaning
2201TAG_NAME_DUPLICATEThe tag name is used twice
2202TAG_ADDRESS_FORMAT_INVALIDThe address does not fit the protocol. Shown as "invalid tag address"
2203TAG_NAME_NOT_EXISTThe tag does not exist
2204TAG_ATTRIBUTE_NOT_SUPPORTThe attribute (read, write, subscribe) is not supported for this tag
2205TAG_TYPE_NOT_SUPPORTThe data type is not supported by the protocol
2206TAG_NAME_TOO_LONGThe tag name is too long
2207TAG_ADDRESS_TOO_LONGThe address is too long
2208TAG_DESCRIPTION_TOO_LONGThe description is too long
2209TAG_PRECISION_INVALIDThe precision is invalid
2210TAG_EXISTThe tag exists
2211TAG_VALUE_INVALIDThe value is invalid

Plugins (2301 to 2403)​

CodeNameMeaning
2301LIBRARY_NOT_FOUNDThe plugin library was not found
2302LIBRARY_INFO_INVALIDThe plugin information is invalid
2303LIBRARY_NAME_CONFLICTTwo plugins have the same name
2304LIBRARY_FAILED_TO_OPENThe plugin library could not be loaded
2305LIBRARY_MODULE_INVALIDThe plugin module is invalid
2306LIBRARY_SYSTEM_NOT_ALLOW_DELA built-in plugin cannot be deleted
2307LIBRARY_NOT_ALLOW_CREATE_INSTANCEA device of this plugin cannot be created
2308LIBRARY_ARCH_NOT_SUPPORTThe plugin does not fit this CPU architecture
2401PLUGIN_NAME_TOO_LONGThe plugin name is too long
2402PLUGIN_NOT_FOUNDThe plugin was not found
2403PLUGIN_EXISTSThe plugin exists

Device communication (3000 to 3030)​

CodeNameMeaningFix
3000PLUGIN_READ_FAILUREA read failedCheck address and device
3001PLUGIN_WRITE_FAILUREA write failedCheck the tag is writable and the value fits
3002PLUGIN_DISCONNECTEDThe device is disconnectedCheck network, power, host and port
3003PLUGIN_TAG_NOT_ALLOW_READThe tag cannot be readChange the tag attribute
3004PLUGIN_TAG_NOT_ALLOW_WRITEThe tag cannot be writtenSet it writable, or use a writable tag
3007PLUGIN_TAG_TYPE_MISMATCHData type mismatchUse the type of the register
3010PLUGIN_PROTOCOL_DECODEThe answer could not be decodedCheck protocol variant, byte order, device model
3011PLUGIN_NOT_RUNNINGThe plugin is not runningStart the device. Check the runtime log
3012PLUGIN_TAG_NOT_READYThe tag has no value yetWait for the first poll
3014PLUGIN_TIMEOUTThe device did not answer in timeCheck the link; raise the timeout in the device settings
3015PLUGIN_STATION_OFFLINEThe remote station or unit does not answerCheck the unit id, slave address or station
3030PLUGIN_WRITE_CANCELLEDA write was cancelled because the requester left before its turnRepeat the write

Collect information for support​

WhatHow
Version and editionmii version, or GET /api/v2/version and /api/v2/edition
Healthmii status, mii health, GET /api/v2/health
LogsThe logs folder of the data directory (zip it), or docker logs
Runtime factsThe runtime detail page: State, Lag, Buffer, Errors, Recent errors
The exact errorThe MI-xxxx code and the message, and the time it happened
LicenceSettings → License: Installation ID, status, expiry (never send the private files)

Do not send secrets/, master.key, passwords or tokens.