Skip to main content

Reporting a problem

When something is wrong on a gateway, one download usually answers every question support would otherwise have to ask for one at a time: the diagnostics package.

Send this​

  1. Open the CloudManager UI on the device: http://localhost:5004.
  2. On the Status page (or the Logs page), select Download diagnostics. It takes a few seconds — the button says Generating… while it collects from every service. It takes along all the history the gateway keeps; to send less, see How much history.
  3. Send us the resulting Capture.Edge.Diagnostics-<gateway id>-<date>-<time>.zip.
  4. Add three sentences: what you expected, what happened instead, and when (a rough UTC time is enough — it is what lets us find the right lines in the log).

Cannot get to the device? If the gateway is online, request the package from the Capture portal instead.

That is the whole ask. Everything below explains what is in the file and what to do when you cannot produce one.

What the package still holds

Edge2.3.1+ The gateway's passwords, tokens and keys are taken out while the package is built, and its cloud credentials are left out. What remains is still the gateway's full configuration, every address in it, the gateway id and the logs. Send it to support or your integrator, never to a public issue tracker or a shared drive.

Two things can still carry a password:

  • A connection's free-text Custom settings are not scanned. A password kept there is in the package as it is.
  • CloudManager logs written by a version before 2.3.1 contain each configuration pushed to the gateway, passwords included. They stay in the package until log retention removes them.

On a gateway before 2.3.1, the package holds the configuration's passwords in plain text and the gateway's cloud credentials. Treat it as a credential there: send it over the channel you would use for a password, and rotate anything you are not comfortable having shared.


How much history​

RequiresEdge2.3.1+

The arrow next to Download diagnostics opens Include history of: Everything, which is what the button itself downloads, Last 24 hours, Last 3 days or Last 7 days. A shorter history makes a smaller package, which matters on a slow or metered connection.

The choice limits two things:

  • Log files. A log file last written before the cutoff is left out; a file that runs across the cutoff comes along whole. startups.log always comes along, as the record of which builds ran before the cutoff.
  • Config backups. Every backup taken since the cutoff comes along, plus the newest one before it: the configuration the gateway was running when the period began, so the first change in the period can be read. Older backups are left out.

Everything else is a snapshot of the moment the package is built, and always comes along. Each file left out is named in Manifest.json.


Request the package from the Capture portal​

When you cannot reach the device itself, ask it for its package from the cloud. The gateway builds the same package, with the same credentials taken out, and uploads it.

  1. In the Capture portal, open the gateway under Sources › Edge Gateways, and go to its Diagnostics tab.
  2. Select Request package. It asks for the last 24 hours; the arrow next to it offers the other history choices.
  3. The request shows in the list as Waiting for gateway, then Preparing, Uploading and Ready. The gateway usually sends it within a minute.
  4. Download it from the list, and send it as in Send this.

What to know:

  • Who can. Requesting, listing and downloading packages need the permission to view the gateway's configuration, since that configuration is in the package. A user in a parent company with that permission can do it for the gateways of its sub-companies too.
  • How long it is kept. A package is deleted 30 days after it was requested; the Kept until column gives the date. That period is the same for every package and cannot be extended, so download one you need longer.
  • One at a time. A gateway has at most one request in progress. Ask again once it is Ready or Failed.
  • Size. A package is at most 100 MB. A larger one loses its oldest log files first until it fits, and Manifest.json names each one. A shorter history avoids that.
  • When it fails. A gateway that does not pick up the request within 15 minutes, for example because it is offline, or that stops reporting progress for an hour, ends the request as Failed with the reason.
  • Older gateways. On a gateway before Capture Edge 2.3.1 the button is disabled. Download the package on the device instead.

What is in it​

At the root of the zip, Manifest.json Edge2.3.1+ says what the package was built for and what it leaves out. Next to it is one folder per Capture service — CloudManager, Collector, Syncer, Analytics — each containing:

File / folderWhat it holds
Logs/That service's log directory, including the error-only files and startups.log, limited by the history asked for. See Logging.
Logs/journal-<yyyyMMdd>.logEdge2.4.0+upcoming On a Linux install without Docker, the service's console output read back from the systemd journal, one file per day — only when the log files miss lines the console has. See Console output from the journal.
LogSettings.jsonEdge2.4.0+upcoming How the service logs: every logging setting with its value and where it comes from (environment variable, configuration or default), plus any warnings, such as an invalid or deprecated environment variable. The same as Log settings on the Logs page. Read it before concluding that a line is missing from the logs.
Info.jsonEverything the service is currently reporting: connection states, sync progress, real-time sync, cloud connection, active issues, issue history. The same data the UI's View Raw JSON shows.
IssueList.jsonThe issues active at the moment the package was generated.
IssueHistory.logEvery issue raised and cleared since that service last started, oldest first, as plain text lines you can read against the log timestamps. See Issues.
ProcessInfo.jsonThe process: which executable, its commit hash, when it started, and its memory, thread and handle counts.
SystemInfo.jsonThe machine: OS, architecture, .NET version, processor count, whether it runs in Docker, the clock and time zone, and the environment variables (values of secret-looking names are redacted).
PerformanceMetrics.jsonGarbage-collection and thread-pool statistics — what to look at when a service is slow rather than broken.
FileSystemInfo.jsonEvery drive with its free space, plus the temp, working and logging directories — the first thing to check when writes are failing.
NetworkInfo.jsonHost name and every network interface with its addresses and state.

The CloudManager folder additionally holds:

File / folderWhat it holds
Config.jsonThe configuration the gateway is running right now, with its credentials taken out Edge2.3.1+.
ConfigBackups/The backup directory, so the configuration history comes along, limited by the history asked for and with the credentials taken out of each backup. A backup that cannot be read as a configuration is left out, since its credentials cannot be removed. See Config Backups.
DataStore/CloudManager's local databases (.db). Edge2.3.1+ CaptureConfigDatastore.db and CaptureConfigDatastore-log.db are left out: they hold the gateway's cloud credentials.
identity.guidThe gateway id this device authenticates with.
A missing folder is itself a finding

CloudManager collects from the other three services over HTTP. If one of them is not running or not answering, its folder is simply absent from the zip rather than the download failing — so a package with no Collector folder says the Collector was down. From Capture Edge 2.3.1, Manifest.json also names the service and the error it gave.

Manifest.json​

RequiresEdge2.3.1+

What the package was built for, and everything it leaves out. Read it before concluding that a file is missing.

FieldWhat it holds
createdUtcWhen the package was built.
version, commitThe CloudManager build that built it.
historyFromUtcThe history cutoff. Absent when the package includes everything.
requestIdThe portal request the package answers. Absent for a package downloaded on the device.
servicesEach service in the package with its version and commit, and a note when it did not answer.
leftOutEvery file or folder that is not in the package, each with its path and the reason: before the history cutoff, holds credentials, dropped to fit the size limit, the service did not answer, or the journal could not be read.

Credentials​

RequiresEdge2.3.1+

Credentials are taken out of the copy that goes into the zip. The files on the gateway keep their real values, so a backup can still be restored.

  • What counts as one. A setting whose name ends in password, passwd, pwd, pass, passphrase, secret, token, apikey, accesskey, accountkey, secretkey, saskey, privatekey, clientkey, connectionstring, credential, credentials, authorization, licensekey or licensekeys, in any case. Encrypted passwords are replaced as well.
  • What replaces it. <empty> when the value was empty, otherwise a marker such as <redacted len=12 fp=3f9a>: the value's length and a short fingerprint. The fingerprint is worked out with a key that never leaves the gateway, so it is the same for the same value in every package from that gateway and says nothing elsewhere. Comparing two backups still shows that a password changed, or that two connections share one, without showing the password.
  • What is not scanned. Free-text Custom settings, as the warning above says.
  • Environment variables whose names look like secrets are redacted in SystemInfo.json, as before.

Console output from the journal​

RequiresEdge2.4.0+upcoming

On Linux, the console output of a Capture service usually ends up on disk anyway: systemd stores it in the journal. That is why file logging is sometimes switched off there. The package then still holds that service's logs, because each service reads its own console output back from the journal and adds it to its Logs/ folder as journal-<yyyyMMdd>.log.

This happens only when the log files are missing lines the console has: file logging is off, or the file logs at a higher level than the console. Otherwise the journal would only repeat the log files.

The journal files cover the same days the log files would have:

  • as many days as the retained log files setting keeps (14 by default), and no further back than the history the download asks for;
  • each day stops at the log file size limit, where a log file would have stopped.

The lines read exactly like a log file's. Besides the service's own lines, they include what systemd logged about the service — started, stopped, exited with a status — which shows a crash or a restart that no log file records.

The journal is not always there to read:

SituationWhat the package holds
DockerNo journal files. The console output goes to the container runtime on the host, which a container cannot read. Keep file logging on, with the logs on a volume, or collect docker logs <container> yourself.
WindowsNo journal files. Keep file logging on.
A Linux service not started by systemd (for example from a shell)No journal files.
The journal holds nothing for those daysNo journal files. Many distributions keep the journal in /run/log/journal, which is lost at every reboot.

In each of these cases, Manifest.json says why the console output is not in the package.


If you cannot download the package​

If the gateway is online, request the package from the Capture portal. Otherwise take what you can, in this order:

  1. Logs — Download logs on the same page gives the log files without the rest. Or copy them from disk; the paths are in Logging.
  2. Configuration — http://localhost:5004/api/config/GetConfig, or a file from the backup directory. Unlike the package, these hold the passwords in plain text: remove them before you send the file.
  3. Gateway id — C:\ProgramData\Capture\identity.guid on Windows, /etc/capture/identity.guid on Linux.

If CloudManager itself is not running, the log files on disk are the whole story. Include errors<yyyyMMdd>.log as well as the main log: it has a longer retention, so it often still covers a problem that started days ago.


What to look at first yourself​

SymptomWhere to look
Anything at all is wrongThe Issues page in the CloudManager UI. See Issues.
Data is collected but does not reach the cloudStatus page: the Syncer's sync progress, and the cloud connection line for each service.
Nothing is being collectedStatus page: the Collector's connection list, and its values-per-minute.
The gateway cannot authenticateAuthentication failures.
A configuration change made things worseConfig Backups — compare against the previous configuration before restoring it.
The device cannot reach the cloud at allCloud connect requirements.
The commit hash is on the first line of every log file

It identifies the exact build the gateway is running, which is more precise than a version number when a fix is being confirmed. startups.log carries the same information for the last 1000 service starts.