Skip to content

Troubleshooting

Start with the web page's Service panel. Each instance shows "Connection to TriggerGate", "GPIO System" and the clock, and the text beside a red or amber light says what is wrong in TriggerGate's own words. Then look at the service log, which records every edge, command, faceoff and connection, and the reason for anything that was refused.

Read the service log

The Windows and Uno services write one log file per day:

Edition Folder
Windows %ProgramData%\GameshowPro\TriggerGate\logs
Uno /var/lib/GameshowPro/TriggerGate/logs. The service also writes to the system journal: sudo journalctl -u triggergate -f.

You do not need access to the machine: any time range of the log can be downloaded from the web page or from a .NET client. See Device log. An ESP32 board keeps its own device log, which is downloaded the same way, and also writes a log on its serial port; see Set up an ESP32 board.

Each line has five tab-separated columns: the time, the logger, the level, the message and any exception.

2026-11-16 14:03:22.123456Z ... INFO    ...
  • Times are UTC, with microseconds, ending in Z. Files are named by the UTC date, so a new file starts at midnight UTC, not at local midnight. To read a line in local time, add the machine's offset from UTC (Get-Date -Format K in PowerShell shows it).
  • The time is when the line was written, which is later than the event it describes. For an edge, use the edge report's own time. Lines about individual edges are written by a background thread, a few tens of milliseconds after the edge; if that queue ever fills, one warning gives the number of lines lost.
  • Times come from the system clock, the same clock edge reports' absolute times are derived from, so log lines and edges can be put on one timeline. Lines from two machines agree only as well as their clocks do; see Clocks and time.
  • The service keeps four files, today's and the three before, so the log reaches back about three full days.

The service state says...

These are the messages a Windows or Uno service shows for "GPIO System" when it cannot read inputs.

Advantech cards

Message What to do
The Advantech DAQNavi runtime (biodaq.dll) is not installed. Install Advantech's DAQNavi runtime, then restart the service.
The installed biodaq.dll is too old: it has no AdxDaqNaviLibInitialize export. Install a current DAQNavi runtime.
Advantech interrupt stamping is unavailable: tgstamp.dll was not found next to ... A file of the TriggerGate installation is missing. Uninstall and install the TriggerGate.Windows package again.
Advantech interrupt stamping is unavailable: tgstamp.dll has ABI version ..., but this build expects ... (or: entries are ... bytes) Files from two TriggerGate versions are mixed. Uninstall and install the package again.
Advantech interrupt stamping is unavailable: tgstamp.dll could not be loaded: ... Windows refused to load the file; the rest of the message gives Windows' reason.
No Advantech devices are installed DAQNavi lists no device. Check the card in Advantech Navigator.
No usable Advantech device. ...: in use by another application (...). Close Advantech Navigator and stop any other service using the card, such as GPI Gateway DAQNavi lets only one application configure a card at a time. Close the other application. TriggerGate tries again by itself.
No usable Advantech device. ...: its driver is missing or does not match the DAQNavi runtime (...) Reinstall the card's driver from the same DAQNavi version.
No usable Advantech device. ...: the card is not present; DAQNavi still lists it from an earlier installation (...) Fit the card, or remove the old entry in Advantech Navigator.
No usable Advantech device. ...: does not support digital input (...), or: has no digital inputs The card is not one TriggerGate can read.
No usable Advantech device. ...: the demo device is only used when Advantech is selected explicitly Only DAQNavi's demo device is present. It is ignored unless TriggerGate:WindowsDevice is Advantech; see Install on Windows.
Advantech device removed The card went away, for example a USB module was unplugged. TriggerGate opens it again when it returns.
Advantech read failed: ... The driver returned an error while reading.

While the stamping library or DAQNavi is missing, no Advantech device is opened, and faceoffs that ask for interrupt edges are refused.

When it opens a card, the service turns off the card's hardware input filter, which would otherwise delay every edge. If it cannot, the log says so with an error naming the channels: turn the filter off in Advantech Navigator.

X-keys

Message What to do
No XKeys devices detected Connect an X-keys device. The instance opens it when it appears.
No XKeys device at index N: ... are connected, at indexes ... The client asked for a device index that holds no device. Choose one of the indexes named. See Platforms and devices.
...: opening The device is being opened.
Could not open ...: ... Windows refused to open the device. Unplug it and plug it in again.
... was removed The device was unplugged.

Advantech UNO

Message What to do
Initialization exception: ... The service could not open the input expander on I2C bus 1 (/dev/i2c-1, address 0x27). Run triggergate-setup --check. If it finds missing setup, run sudo triggergate-setup, restart the device, then check ls /dev/i2c-1. The package normally prepares I2C on first install; an opt-out or failed setup leaves this for the operator. See Install on an Advantech UNO.

Any platform

Message What to do
Platform ... is not available on this server (available: ...) The client asked for a platform this server does not run, with ?platform= or the client library's platform setting. Choose one of those listed.

A faceoff is refused

The response says why, and the service logs it as "Rejected faceoff reset" or "Rejected pre-faceoff". The common reasons:

  • A participant's button is already pressed. "The faceoff was not started because input N is already pressed (at the active level). Nothing was changed; release it and try again." An ESP32 board says "Input(s) N held active". Check for a stuck button or a contact wired the wrong way round; the button health check finds both.
  • Interrupt edges were asked for on inputs that cannot raise them, or on more inputs than can be armed at once. Ask for polled edges, or choose inputs that support interrupts. See Triggers and faceoffs.
  • A button health check holds the device. Finish or cancel the check.
  • An ESP32 board is recovering from lost input events. It answers "GPIO inputs recovering" to every faceoff and pre-faceoff request, including one that only ends a faceoff, until its inputs have settled, which takes at least 0.6 seconds. See Lost input events below.

Other computers cannot reach the service

  • The web page needs HTTPS from another computer. Open the computer's or board's address in the browser; it leads to the certificate page, where you install TriggerGate's certificate once. See Open the web page over HTTPS, and If it does not work for certificate problems.
  • Windows Firewall. The installer allows the service on networks that Windows classifies as Private only. If the TriggerGate computer's network is Public or Domain, allow the service there, or change the network's profile.
  • Check the service on the machine itself. On Windows, open http://localhost:9090/ on the TriggerGate computer, and check the service with Get-Service TriggerGate.Windows. On the Uno, use sudo systemctl status triggergate.

An application cannot connect

  • Applications connect to http://<host>:9090/TriggerGate, over plain HTTP, on every edition.
  • On a Windows service that runs both X-keys and Advantech, an application without a platform setting gets the server's default. Set the platform (?platform=XKeysWindows or ?platform=AdvantechWindows) to choose; see Platforms and devices.
  • The find button in client applications lists TriggerGate services that advertise _gp-triggergate._tcp over mDNS. If a service is not listed, the two computers may be on different subnets, or mDNS may be blocked; enter the host name or address by hand. The tgtest tool can list what it finds with tgtest discover.

Processor idle states during faceoffs

On Windows, a processor waking from a deep idle state stamps an interrupt late, which would make faceoff ordering coarser (see Accuracy). So while a faceoff or pre-faceoff is armed on any platform, the Windows service makes sure idle states are disabled in the active power scheme (the AC value, and the DC value too on battery), and puts them back afterwards if it was the one that changed them.

  • A value that is already disabled, as it usually is on a computer that also runs a real-time renderer, is left as it is.
  • Otherwise the service records the power scheme and the previous value in %ProgramData%\GameshowPro\TriggerGate\idle-states-changed.json, then disables idle states.
  • 5 seconds after the last armed faceoff ends (a new faceoff in that time cancels the restore), or at once when the service stops, the service writes the previous value back, but only if that power scheme is still active and the value is still the one it set. Otherwise it leaves the value and the log says why. A record left by a service that did not stop cleanly is restored at the next start.
  • A faceoff counts as armed from the request that arms it until a client ends or cancels it, even after every participant has entered.
  • Every change and restore is logged at Info. A failure, such as missing permission, is logged as a warning once and never affects a faceoff.

Check the current value:

powercfg /qh SCHEME_CURRENT SUB_PROCESSOR IDLEDISABLE

To stop the service from changing it, set TriggerGate:FaceoffIdleStates to LeaveAlone in appsettings.json; see Install on Windows. A record left from earlier is still restored.

Log warnings worth knowing

Warning begins Meaning
Edge N (..., ordinal ...) took ... ms from its stamp to the hand-off to SignalR The service took longer than TriggerGate:EdgeHandoffWarnMilliseconds (5 ms by default) to pass an edge on. This is the service's whole share of the time from the edge to the client, so it tells you whether a slow trigger was the service or the network and client.
Interrupt faceoff entry on input N was handled ... µs after it happened, too late to be compared An Advantech interrupt reached the service too late to be grouped with entries already placed. It is placed after them.
The native stamp ring was full and N interrupts were dropped More Advantech interrupts arrived than the service could take in. Any interrupt faceoff they affected was canceled. Polling still reports the inputs' changes. Logged once.
The wall clock stepped by ... ms The computer's clock jumped. Absolute times of edges reported afterwards use the new offset; ordering is unaffected. See Clocks and time.
N log lines about individual edges were not written The queue of per-edge log lines was full. The edges themselves were reported normally.

ESP32 board

  • The board gives no web page after a flash or an update. Read its serial log at 115200 baud. A line beginning Web UI unavailable: gives the reason. After an update, a board that cannot start its web page returns to its previous firmware by itself.
  • An update is refused. See When the board refuses an update.
  • The clock entry is red ("Clock unusable"). The board has not synchronized with its NTP server yet. Check that it can reach the server set in its settings dialog (pool.ntp.org by default, which needs internet access). See Clocks and time.
  • The web page does not finish loading. The board allows three HTTPS connections at once. Close other pages open on it.
  • The board answers to a name ending in -2. Another device on the network uses the same name. Its certificate stays valid only for the original name; see Find the board on the network.

Lost input events (GPIO queue overflow)

The board stamps every edge in an interrupt handler and queues it for processing. If edges arrive faster than they are processed, for example from a floating or noisy input wire, the queue fills and edges are lost. The board then recovers by itself:

  1. It stops listening to all of its inputs. "GPIO System" turns amber and reads "GPIO queue overflow on input N; recovering (M overflows)", where N is the input whose edge was lost and M counts losses since the board started.
  2. Any faceoff or pre-faceoff that was running is canceled, because a lost edge could have been an entry or an early press, so the order and the lockouts can no longer be trusted. Clients receive FaceoffCancelled with the reason "GPIO event queue overflow" (the web page's log shows "Faceoff cancelled: GPIO event queue overflow"). The notification is sent once at the start of each loss, even when no faceoff was running, and the faceoff health report gives the end reason InputLoss.
  3. After half a second it discards the queued edges and listens again: "GPIO inputs settling". Once no edge has arrived for 100 ms, the entry turns green and reads "Operational", and the board reads every input's level afresh. An edge in those 100 ms ("GPIO inputs still noisy") starts the half second again, so a wire that keeps chattering keeps the board recovering.

While it recovers, the board refuses faceoff and pre-faceoff requests with "GPIO inputs recovering" and refuses to start a button health check; input edges are ignored. A second loss during recovery restarts it without a second cancellation. Input diagnostics show the losses per input as observed queue overflows, which points to the wire to check.

Advantech UNO deployment

  • "package architecture (...) does not match system (...)" dpkg or apt refused the package because it was built for the other kind of Raspberry Pi OS. Install triggergate_<version>_arm64.deb on a 64-bit system and triggergate_<version>_armhf.deb on a 32-bit one; dpkg --print-architecture shows which the device is. If the preinstall script itself stops with "this package is for ..." and names the package's architecture and the system's, the cause is the same. See Install on an Advantech UNO.
  • A message that libc6 is too old or "pre-depends on libc6 (>= 2.36)" when installing. The device runs Raspberry Pi OS 11 (Bullseye) or older, which the package does not support. Nothing on the device was changed. There is no in-place upgrade: write a current Raspberry Pi OS Lite image (Bookworm or later, 64-bit recommended) to the device and install again.
  • "Unable to locate package ./triggergate..." or "Unsupported file" apt-get was given a name instead of the file. Run it in the folder that holds the package and keep the ./ in front of the file name.
  • The package prints "this device is not set up for fast input reads". It prints the current state when an upgrade or an install with setup opted out finds missing settings. Run triggergate-setup --check to see which setting is missing or waiting for a restart. If the setup was intentional, the note is informational; otherwise run sudo triggergate-setup and restart the device. See Install on an Advantech UNO.
  • The first install says "Restart needed". The package changed the boot configuration but does not restart the UNO. Run sudo reboot when safe. Until then I2C may be unavailable, or the bus and core clock may still run at their previous speeds. triggergate-setup --check distinguishes missing settings from settings pending a restart.
  • Setup was skipped on purpose. sudo TRIGGERGATE_SKIP_SETUP=1 apt-get install ./triggergate_<version>_arm64.deb or /etc/triggergate/no-setup prevents first-install changes. You must provide I2C and i2c-dev yourself for inputs to work. The opt-out also keeps the existing bus speed and core clock; an upgrade checks and prints a note but does not change them. If you want the package's setup later, run sudo triggergate-setup and restart.
  • The package installed, but the service shows no GPIO inputs. "GPIO System" reads "Initialization exception: ..." when I2C bus 1 is unavailable or the expander cannot be opened. Run triggergate-setup --check, apply missing setup with sudo triggergate-setup, restart, and check ls /dev/i2c-1. If the bus exists, inspect sudo journalctl -u triggergate -n 100 for the operating system error and check the expander connection. See Install on an Advantech UNO.
  • The log says "Uno input read mode Native is not available (...); reading in SingleTransfer mode instead". The service could not start its native reader and chose the managed single-transfer reader automatically. The text in parentheses names the cause, such as a missing or incompatible libtgunopoll.so. Check that the library and service come from the same Debian package, then restart the service. A refusal of FIFO scheduling is different: Native continues with normal scheduling and the startup log says so. See UNO read modes.
v2.0.62