Skip to main content

Troubleshooting

A room is disabled but still has internet​

A disabled rule alone does not prove that the internet is off. In order of likelihood:

  1. A later ACCEPT policy. Run Check on the firewall (Firewalls → Check). Every later_accept_policy: policy N "…" after room … accepts the room's computers when the room is disabled (…) warning is a policy further down the list, with the same direction (or any), whose source (all, the same objects, or a network covering the room's computers) lets the traffic through. For example a general Internet Access for Students policy for the whole student network, placed after the room policies (policy 1 in the simulator). The FortiGate's administrator must take the managed addresses out of it or add a blocking policy after the rooms. Matrix does not change other policies.
  2. A screen wall path that is too broad. A wall_path_too_broad: or wall_path_service: warning means the screen wall path policy, which sits above the rooms, lets more than HTTPS to the agent host through (for example destination all): every room that is off reaches the internet through it. Narrow it to the single /32 Matrix screen wall and HTTPS; the firewall's Screen wall path card gives the CLI.
  3. Established sessions. Connections opened before the change may continue. firewall-session-dirty check-all makes the FortiGate re-evaluate them, which does not guarantee that they are cut. Test with a new connection.
  4. The computer is not in the room's group, or has another IP than its address object. Check Addresses and groups.
  5. The change did not happen: see the room's last result and the Activity → History entry with its steps.
  6. It is not a room at all. A room_policy_not_managed: warning of Check names a policy that looks like a room by name and direction but is a DENY policy or negates its addresses; Matrix does not manage it (Setting up the FortiGate → Room policies). Make it an ACCEPT policy without negation.

Stale data​

The rooms show State not current and cannot be switched while the firewall's data is stale (Rooms → Stale data). The banner says why:

ReasonWhat to do
the connector is offlineCheck the connector computer: the service Entrosity Matrix Connector running, outbound TCP 443 to hub.entrosity.com, the log C:\ProgramData\Entrosity\Matrix Connector\logs\connector.log.
the last report is too oldThe connector is online but cannot finish reading the firewall in time. Look at the firewall's status and the connector's log.
no report yetA new firewall: store its token, and wait one report interval.
A firewall status (below)See Firewall status.

Firewall status​

Status / codeLikely causeWhat to do
unreachableThe connector computer cannot open the FortiGate's HTTPS management port.Address and port on the firewall's page; routing; the FortiGate's admin access on that interface (HTTPS allowed); the API administrator's trusted hosts (the FortiGate does not answer from other addresses).
tlsThe FortiGate's certificate does not verify.Paste the right CA certificate (PEM); check the host name or IP in Address is in the certificate.
auth_failedHTTP 401/403: wrong or revoked token, the connector's IP is not a trusted host, or the profile lacks a permission.Store a new token; check the trusted hosts (the IP after NAT) and the access profile (Setting up the FortiGate).
version_mismatchThe FortiOS version is not Expected FortiOS version (for example after an upgrade).Check the room policies still behave the same on the new version, run Check, then update the pinned version.
direction_invalidThe source or destination interface or zone is not on the FortiGate (renamed?).Correct them on the firewall's page.
invalid_responseThe FortiGate returned inconsistent data (a list that changed while it was read, an answer from another VDOM, duplicate policy IDs, a page with more rows than asked for), or a table larger than 64 MiB (the FortiGate table is too large).Usually passes on the next read. If it persists, check the VDOM and the connector's log.
unknown_firewallThe connector does not know the firewall (yet).Wait a minute after adding or moving it; check the firewall is in use and on the right connector.
unknown_driversimulator on a connector that was not started with --dev.Trying Matrix with the simulator.

Refusals​

A Refused change wrote nothing. The reason tells why:

CodeMeaningWhat to do
room_not_grantedAt write time: your right for this room was removed after the change was sent.Ask a tenant admin (Room rights).
forbiddenYour role cannot do this.Roles and permissions.
writes_disabledChanges are switched off for the firewall, in Matrix or in the connector's guard.Firewalls → Changes; guard set <id> --policy-writes on / --address-writes on.
guard_pending, guard_mismatchThe connector's local guard has not accepted this firewall, or its configuration changed (also Verify the FortiGate's TLS certificate or the CA certificate (PEM)).matrix-connector guard show, then guard accept <id> on the connector computer (Connectors → The local guard).
snapshot_staleThe firewall's data is stale.Stale data.
connector_offlineThe connector is not connected.Check the connector computer.
busyAnother change of the same room (or, for addresses, of the same firewall) is running.Wait a moment.
rate_limitedMore than 10 changes per minute by you, or 30 in the tenant (or the connector's local cap).Wait a minute.
unknown_roomThe firewall does not report this room (any more); for a teacher also a room not granted to them (This room is not available to you (any more)).Refresh; check the policy on the FortiGate; ask a tenant admin for the right (Room rights).
forbidden_policyThe policy is not a manageable room policy (name, direction or VDOM does not match, or it is not an ACCEPT policy or negates its addresses).Check the policy and the firewall's pattern and direction (Setting up the FortiGate → Room policies).
room_mismatch, policy_changedThe policy changed on the FortiGate between the reads (renamed, another room, status changed by someone else).Refresh and look again before retrying.
unauthorizedMatrix refused the write at the last moment: the right was removed, the author was signed out, the change expired, changes were switched off. The history's steps name the reason.Check the steps; send a new change if it is still wanted.
conflictAddresses: the group or the IP changed since you loaded them.Refresh, check, retry.
duplicate_ip, duplicate_nameAnother managed computer has this IP; an object with this name exists.Choose another.
shared_objectThe group or object is also used outside this room, also by FortiGate settings Matrix does not read (for example a local-in policy, IPsec or SD-WAN).Change it on the FortiGate if needed.
invalid_inputThe name or IP was rejected.A single DNS label plus the suffix; a single host's IPv4 address.

Allowed sites​

Refusals and messages of allowed sites:

Code or messageMeaningWhat to do
sites_not_set_upThe list's address group or its ACCEPT policy is missing on the FortiGate (also as a job error, when it disappeared after the page was loaded).A tenant admin opens Settings → Firewalls, the firewall, FortiGate setup of the sites lists → Allowed sites and has the commands pasted into the FortiGate (Allowed sites → FortiGate setup).
connector_outdatedThe firewall's connector does not support allowed sites yet (The connector of this firewall does not support allowed sites yet. Update the connector.).Update the connector (Connectors → Updates).
invalid_domainA domain is not valid: an IP address, a path, a character that is not allowed, or more than 200 domains.Use a name like example.com or *.example.com.
group_read_onlyMatrix may not change the group: it is also used as a source address or inside another group, or has nested groups.Use the group only as the destination of its allowed-sites policy, on the FortiGate.
writes_disabledAllow editing allowed sites is off for the firewall, or the connector's guard does not allow site writes.Firewalls → Allowed sites; on the connector computer matrix-connector guard set <id> --site-writes on.
conflictThe list changed since you loaded it (someone else saved it, or it was changed on the FortiGate).Refresh, check the domains and save again.
rate_limitedThe save needs more writes than the connector's local cap has left this minute (the change needs N writes but the local limit is M writes per minute…, or the cap is used up). Nothing was written.Save in smaller steps, a minute apart, or raise the cap on the connector computer: matrix-connector guard set <id> --max-writes-per-minute N (up to 600).
forbidden, unknown_roomThe list for all rooms is for tenant admins; a teacher changes only the lists of their rooms.Roles and permissions.

Unconfirmed changes of a list: use Check / retry on the list (Allowed sites → Saving and results).

Blocked sites​

Blocked sites are refused with the same codes as allowed sites, except:

Code or messageMeaningWhat to do
blocked_sites_not_set_upThe list's address group or its DENY policy is missing on the FortiGate.A tenant admin opens Settings → Firewalls, the firewall, FortiGate setup of the sites lists → Blocked sites (Setting up the FortiGate → Blocked sites).
Policy below the room / blocked_sites_below_room:The list is saved, but its DENY policy comes after a room policy, so the FortiGate never reaches it and nothing is blocked.Run the move command the list shows in the FortiGate CLI.
Allowed sites below / blocked_sites_above_allowed:Allowed-sites policies come after a DENY policy of the same rooms. An allowed site (for example a test site behind Cloudflare) is blocked for a few minutes whenever it shares an address with a blocked site; students see the page drop and come back.Run the move commands the list shows, so the allowed-sites policies come first.
A blocked site still opensThe computer still has an open connection, it reaches the site through other addresses than the FortiGate resolved, or the domain is a subdomain not on the list.Wait for open connections to close, add *.example.com, and check that the list is Set up.
Other sites stop workingThe blocked domain shares its addresses with them (Cloudflare, large CDNs).Remove the domain; block such sites with a FortiGate web filter instead.

Removing the old Entrosity services group​

FortiGates set up with an earlier version of Matrix have the address group Matrix Entrosity services as a second destination of the shared allowed-sites policy (Matrix allowed sites). Matrix no longer reads or writes it, and nothing has to change: the policy still counts as the allowed-sites policy. To clean up, an admin runs in the FortiGate CLI (<shared policy id> is the ID of the policy Matrix allowed sites):

config firewall policy
edit <shared policy id>
unselect dstaddr "Matrix Entrosity services"
next
end
config firewall addrgrp
delete "Matrix Entrosity services"
end

Take the group out of the policy first: FortiOS refuses to delete a group that a policy still uses. Until the group is removed, whatever it holds besides none stays reachable from rooms with their internet off.

Screen wall path​

Computers are offline in Axis while a room's internet is off​

Also: the screen wall of a room is dark while its internet is off. Matrix has no built-in exception for Entrosity: while a room's internet is off, its computers reach only the allowed sites and, when it is set up, the screen wall path. Without the path the Entrosity Axis agent on them loses its connection until the internet is on again (the computers show as offline in Axis, the screen wall shows them as Offline; remote support, scripts and deployments wait).

  1. Open the firewall's Screen wall path card (Firewalls → Screen wall path). Not set up: have the FortiGate's administrator paste the commands of Show FortiGate CLI (Setting up the FortiGate → Screen wall path). Needs attention: fix what the warnings say (below). The server has no agent host address: the Entrosity server is not set up for the path; contact Entrosity support.
  2. The agents must be from this release and must have been online once since the server started advertising the agent host: rmm-agent status on a computer shows preferred server https://agent.entrosity.com. A computer that has never been told cannot use the path; turn the room's internet on once.
  3. Agents normally already use the agent host. One that is still on hub.entrosity.com (the agent host did not answer when it connected) loses that connection when the room is switched off and reconnects to the agent host within a few minutes; the tile then shows the screen again.

Do not add the Hub's domains to an allowed-sites list instead: they are behind Cloudflare, whose addresses are shared with many other sites, so allowing them opens those sites to the room too (Allowed sites → Entrosity Axis agents).

Screen wall path warnings​

WarningWhat to do
wall_path_policy_disabled:Enable the policy (set status enable).
wall_path_not_covering:Add the listed room groups to its sources (append srcaddr …), for example after a new room was added.
wall_path_below_room:move <id> before <first room policy>: below a room, a room that is off never reaches it.
wall_path_too_broad:Set its destination to only Matrix screen wall (a /32). Until then rooms that are off reach the internet.
wall_path_service:Set its service to only HTTPS.
wall_path_schedule:Set its schedule to always.
wall_path_matches_room_pattern:Rename it so that it does not match the policy name pattern (otherwise it is also listed and switchable as a room).
wall_path_ip_mismatch:The Matrix screen wall address is not the agent host's address (the server moved, or a typo): set its subnet to the address the card shows.
wall_path_not_configured:The Entrosity server has no agent host address; nothing to do on the FortiGate. Contact Entrosity support.

Show FortiGate CLI on the card gives the commands for every fix that applies. A broad wall path policy also brings back the usual warnings (later_accept_policy for a policy below the rooms, shared_object on address changes), because Matrix then treats it like any other policy.

Errors​

An Error / Failed change wrote nothing: the firewall could not be reached or answered unexpectedly (unreachable, tls, auth_failed, version_mismatch, direction_invalid, invalid_response), or the change reached the connector too late (expired, never taken by the connector: it was offline). See Firewall status.

Unconfirmed changes​

Unconfirmed means a write was sent, or may have been, and its confirmation did not arrive: the connection to the FortiGate broke after the write, the connector restarted in the middle, or the change expired after the connector took it.

  1. Refresh and look at the room (or the computer).
  2. Open the change in Activity → History: the steps show how far it got.
  3. Only then change it again if needed. Matrix never repeats an unconfirmed write on its own.

For address operations use Check / retry on the unfinished operation (Addresses and groups).

The guard​

  • guard: run this from an elevated (administrator) prompt: open the command prompt with Run as administrator.
  • firewall … is unknown (it appears after the server applied it): the firewall has not reached the connector yet; check it is in use and assigned to this connector, and wait a minute.
  • guard.json can be changed by non-administrators; it is ignored: its permissions were changed. Reset them (only SYSTEM and Administrators) or delete the file and accept the firewalls again.

Failed re-enables​

A room disabled until a time was not turned back on (Schedules). Look at Detail: usually the connector was offline for 24 hours, the guard was not accepted, or changes were switched off. Enable the room by hand once the cause is fixed.

Where to look​

  • Activity → History: every change with its steps and result.
  • Activity → Audit log (tenant admins): changes of the setup (firewalls, tokens stored and fetched, connectors, enrollment tokens).
  • The connector computer: logs\connector.log and the Application event log (source EntrosityMatrixConnector); matrix-connector status; matrix-connector guard show; matrix-connector check --config.