Docs / Help
Troubleshooting
Find the symptom, then the cause. Most answers start with a log line, so first: where the logs are.
Where the logs are
| Platform | Agent log |
|---|---|
| Linux | journalctl -u uptight-agent (and /var/log/uptight-agent/uptight-agent.log with the package) |
| macOS | /Library/Logs/Uptight/uptight-agent.log |
| Windows | C:\ProgramData\Uptight\logs\uptight-agent.log |
| FreeBSD | /var/log/uptight-agent.log |
Central logs to journalctl -u uptight, the web UI to journalctl -u uptight-web. Logs are JSON lines; the msg field says what happened.
The agent
The agent does not show up in Servers
- Run a dry run on the host:
uptight-agent test. If it prints an inventory, discovery works and the problem is between the host and central. - Read the agent log (above).
cannot reach central; results are buffered on diskmeans a network, DNS, TLS or proxy problem: checkcurl -v <central_url>/healthzfrom the host. invalid enrollment token(HTTP 401): the token is not in central'sagents.enrollment_tokens. Copy it again; watch for quotes and spaces.- Nothing in the log at all: the service is not running. Start it (systemd, launchd, Services or rc.d) and look again.
The agent exits at once with status 78
78 means "fix the config": the log line names the file and the key. Usually central_url or enrollment_token still holds the placeholder, or a ca_file or secrets_file it names cannot be read. On Linux the unit does not restart on 78 until you fix it and run systemctl restart uptight-agent.
409 agent already enrolled
Another live agent already has this id. The id comes from the machine's id (/etc/machine-id, the Mac's hardware UUID, Windows' MachineGuid), so this is a cloned machine, or a re-installed one that lost its key.
- A clone: give it a new machine id (Linux:
rm /etc/machine-id && systemd-machine-id-setup). - The same machine, re-installed: reset its key on central, then restart the agent:
curl -X POST -H "Authorization: Bearer $TOKEN" https://uptight.example.com/api/v1/agents/<agent_id>/reset-key
An agent is marked silent
Central has had no push from it for silent_after. Its checks read unknown and its <host>:agent heartbeat pages. Check the host is up, the service runs, and the agent log for cannot reach central. Results it could not send are buffered on disk and sent when it is back. A host you decommissioned should be retired: Settings → Fleet → Retire.
A disk is not discovered
The agent watches local filesystems only: ext2/3/4, xfs, btrfs, zfs, f2fs, jfs and vfat on Linux, APFS and HFS on macOS, NTFS, ReFS and exFAT on Windows, UFS and ZFS on FreeBSD. It leaves out read-only mounts, network filesystems, and container and snapshot paths (/var/lib/docker/, /run/, /snap/...). On macOS / is skipped on purpose: watch /System/Volumes/Data. uptight-agent test lists the disks it would watch.
CPU, memory or IO says "collecting samples"
These checks average over a window (5 minutes by default) and say nothing until the window is covered, so a restart never raises a false alarm. Give it the window.
The Windows service will not install or start
access denied: run the command from an elevated (Administrator) prompt.service uptight-agent already exists: runuptight-agent.exe service uninstallfirst.- It starts and stops: read
C:\ProgramData\Uptight\logs\uptight-agent.log. A config error stops the service without restarts; fix agent.yaml andRestart-Service uptight-agent. - SmartScreen or "this file came from another computer":
Unblock-File .\uptight-agent.exe.
macOS says the agent "cannot be opened"
Gatekeeper quarantined the downloaded file. Clear it: sudo xattr -d com.apple.quarantine /usr/local/bin/uptight-agent.
Data sources
A push answers 401 unknown source or invalid token
The source name in the URL (/ingest/v1/sources/<name>) must be a type: push source in the config, and the bearer token must equal its token. Both mistakes answer the same way on purpose, so the API does not reveal source names.
A push answers 400
The JSON is malformed or every host was refused. The answer's rejected list says why for each host: no usable host name, a percentage outside 0–100, or a mount point that is not an absolute path.
A source shows "not running: needs Uptight Pro"
Prometheus, InfluxDB, SNMP, SSH, Netdata and Glances sources are polled by the Pro edition. The Community edition accepts them in the config so one config works with both, and shows them as not running. "needs an Uptight Pro licence" means the Pro build runs without a valid licence key.
Checks say "no data from source …"
The source has not reported that metric for stale_after (5 minutes by default). After a few such results the check opens a "no data" warning. Settings → Data sources shows the source's last data and last error. A host the source stops reporting altogether is forgotten after forget_after (24 hours) and its checks are retired.
A source lists "check names already used by an agent"
The host also runs the agent, which owns <host>:cpu and the other names. The agent's checks win and the source's data for them is ignored. Remove the host from the source (its hosts globs or targets) or uninstall the agent.
SSH: "host key not in known_hosts" or "does not match"
The ssh source always checks host keys. Add the target's key to the source's known_hosts file:
ssh-keyscan -p 22 old-db.example.com >> /etc/uptight/known_hosts
"does not match" means the host key changed. Confirm it with the host's owner before replacing the line: it is what a man-in-the-middle looks like.
SNMP targets time out
Check, from central: UDP port 161 is open to the target, the community string is right and allowed from central's address (net-snmp: rocommunity <community> <central-ip> in snmpd.conf), and the agent answers snmpwalk -v2c -c <community> <target> 1.3.6.1.2.1.25.
Alerts and checks
A check page says "Alerts held until …"
A config reload added or changed the check less than config_quiet ago (5 minutes by default), so its alerts are held while you look at it. An incident still open when the quiet ends is announced as usual. Set config_quiet: 0s on the check, or in defaults, to turn it off.
A check is down but nobody was alerted
- Is it muted, in a maintenance window, or held after a config change? Its check page says so at the top.
- Does an alert rule match it? Settings → Alerting → "Who gets told?" answers for one check.
- Did the delivery fail? The dashboard shows a banner for failed or retrying deliveries; Settings → Channels has Send test.
The web UI
Every page answers 502
uptight-web cannot reach central or central refuses its token. Check UPTIGHT_API_URL and UPTIGHT_API_TOKEN in /etc/uptight/web.env; journalctl -u uptight-web | grep -i token names the problem.
Central: "another Uptight node holds the leader lease"
Two central servers point at the same database. Running more than one node is high availability, which needs Pro; otherwise stop the other one.