Crash reports
When the LemmeKnow app crashes, it can send a short report to your hub, so you find out about it and have the details to hand. Reports are collected in a feed on the hub that you can read in the web UI or on your phone.
Turning reports on and off
Reports are sent only from phones that turn on Send crash reports to hub for this hub, and only to an https:// address, because a report carries the user's access key. See Crash reports in the app guide for the switch, and Remote access for setting up HTTPS.
Where reports go
The hub writes each report to its Crash Reports feed, a private feed it creates when it starts. Open it on the Feeds page, or subscribe to it on your phone like any other feed. You can rename it, filter it, and grant it to other users; if you delete it, the hub creates it again on its next start. See Server feeds.
Each report is one item at level error:
- The title is the exception, such as
java.lang.IllegalStateException: .... - The details are
Device: ...,User: ...(the hub username the report was sent with), and the stack trace.
Reports aren't published as log entries, so they don't show up on the Logs page or in the app's Monitor tab.
The feed reads from crash_report.log in the hub's logs folder. The file is kept to about 1 MB: when it fills up, it moves to a single backup and the feed starts over with an empty file.
Sending a report yourself
Any client can submit a report the same way the app does, with your hub credentials:
POST /api/crash-report
X-Username: alice
X-Access-Key: your-access-key
Content-Type: application/json
{
"device": "Pixel 8 (API 35)",
"exception": "java.lang.IllegalStateException: Example",
"stacktrace": "java.lang.IllegalStateException: Example\n\tat com.example.Main.run(Main.kt:12)",
"ts": 1761200000000
}
| Field | Required | Meaning |
|---|---|---|
exception | yes | The exception, used as the item's title. |
stacktrace | yes | The stack trace. Each line becomes a detail line. The app sends at most 2,000 characters. |
device | no | Device description. Defaults to android. |
ts | no | Time of the crash in milliseconds (Unix epoch). Accepted but not used: the item is stamped with the time the hub received it. |
The hub answers 204 No Content on success, and 401 without valid credentials. See the REST API.