Relay troubleshooting
A Relay edge collects Network devices, vCenter, Hyper-V, SolarWinds, firewall policy (Check Point, Fortinet and SCALANCE S/SC) and monitoring data inside a network the cinqstack server cannot reach, and sends signed results back to the server. Relay needs the Enterprise edition.
Before you start
- Direction. The edge only makes outbound HTTPS connections to the cinqstack server. Nothing connects in to the edge.
- Local access. The edge needs whatever the routed jobs need at its site: SSH to switches, 443 to vCenter, SSH (22 by default) to Hyper-V hosts, 17774 to SolarWinds (17778 on Orion releases before 2023), 443 to the Check Point management server, and the FortiManager or FortiGate admin port (443 by default, often 8443 or 10443 on a FortiGate), and SSH (22 by default) to SCALANCE S/SC appliances. Edges need a release that includes the Fortinet source before they run Fortinet jobs.
- Software. The edge is the cinqstack package itself. Running the same version as the server is best.
- Settings screen. Admins manage edges on the Relay page. New edge › Create enrolment code gives a one-time code valid for 30 minutes. Under Routes you send a job to an edge.
- Clock. Every request is signed with a timestamp. The edge clock must be within 120 seconds of the server clock.
- TLS. Use HTTPS between edge and server:
--hubis the server's HTTPS address on your reverse proxy, not its plain-HTTP port. With an internal CA, enrol with--ca bundle.pem.--insecureis for labs only.
Enrol and start an edge like this:
cinqstack edge enrol --hub https://cinqstack.example.com --code ABCD-EFGH-JKLM-NPQR --name "Halden Foods site 2"
cinqstack edge run
cinqstack edge status
Run cinqstack edge run as a service. The edge polls the server about every 20 seconds.
Common problems
| Message you see | What it means | What to do |
|---|---|---|
enrolment refused: enrolment code is unknown, used or expired | The code was mistyped, already used, or older than 30 minutes. | Create a new enrolment code on the Relay page and enrol again. |
enrolment refused: too many failed enrolment attempts; wait 10 minutes | Ten failed attempts came from this address. Enrolment is blocked for 10 minutes. | Wait 10 minutes, then enrol with a fresh code. |
already enrolled as … with …; delete …/edge.json to re-enrol | This state directory already holds an enrolled edge. | Use the existing enrolment, or delete edge.json in the state directory to enrol again. |
cannot reach the cinqstack server: … | The edge could not open HTTPS to the server. It retries with a growing wait, up to 5 minutes. | Check outbound HTTPS from the edge, the --hub address, a proxy, and the CA bundle. |
POST /relay/v1/poll: 401 timestamp outside the 120s window (skew …s); check the edge clock | The edge and server clocks differ by more than 120 seconds. | Set up time synchronisation on the edge (and the server) and let it retry. |
POST /relay/v1/poll: 401 unknown or revoked edge | The server no longer accepts this edge. It was revoked or deleted. | Create a new enrolment code, delete edge.json on the edge and enrol again. |
Relay edge … did not collect within 6 h. | The run waited for the edge, but the order was not delivered within 6 hours. | Check on the Relay page that the edge is online, and run cinqstack edge status on the edge. |
Relay edge …: … | The edge tried to collect and failed. Its message follows, for example SSH authentication failed or vCenter login failed. | Fix the cause named in the message. The collector pages for that module explain each one. |
Other run messages you may see on a routed run:
Waiting for relay edge … to collect.The run is parked with statusrelayuntil the edge answers. This is normal.Routed to relay edge …, which is revoked.Remove the route or route the job to an active edge.Not collected by the Relay edgeon a device in a Network devices job. The edge returned no result for that device. Check that it is online and can reach the device.this edge (version …) cannot collect … schema …; upgrade itinside a failed run. Upgrade the edge to the server's version.
Collect details for support
On the server:
- Open the failed run of the routed job and click Download log. The file is named
<module>-run-<run id>.log. - Note the edge name and the work order on the Relay page under Recent work orders.
On the edge, in the state directory ($CINQSTACK_EDGE_DIR, or ./data/edge by default):
edge.log, the rotating agent log.status.json, the time of the last status, the number of results waiting in the outbox, and the last error.cinqstack edge statusprints the same.
Edge-side messages in the table above appear in edge.log and as the last error in status.json.
Send the server run log, edge.log, status.json, the cinqstack version on server and edge, and the edge's operating system. Never send edge.json: it holds the edge's private keys.
An admin can also download a diagnostics bundle under Settings › Support › Download diagnostics. The page lists every file in it before you download, so you can check what you send. It never contains passwords, API keys, NetBox tokens, the licence file, device configurations or photos.