Skip to content
Pocket Homelab
Install

Pocket Errors

v0.4.0 · Self-hosted · MIT

Know what broke, and where.

Pocket Errors tracks the errors in your apps and websites: what broke, where in the code, how often, for how many people and since which release. Any Sentry SDK sends to it unchanged, a website needs one script line, and it reads this box's containers for panics. One Go binary, one SQLite file.

Install Errors with Pocket Core in one command:

curl -fsSL https://pockethomelab.com/install.sh | sh -s -- --apps errors

On any Linux machine or a Mac. Already running Pocket Core? Apps → Install app → Errors. Add more apps to the line →

  • Included in Pocket Box
  • Sign in with Pocket Core
  • Works with Pocket Alerts and Pocket Projects and Pocket Tasks and Pocket AI and Pocket Search and Pocket Day and Pocket Flows
Open issues on an iPhone: eight open, one came back, the last 24 hours by hour and a cart error at the topOpen issues on an iPhone: eight open, one came back, the last 24 hours by hour and a cart error at the top

Open issues

The inbox of what is broken.

The last 24 hours by hour, then every open issue with its project, where in the code it happened, how often, for how many people and when. Find one by error, file or project; resolve or ignore several at once.

Open issues: the last 24 hours by hour, then each issue with its project, where it happened, how often, for how many people and whenOpen issues: the last 24 hours by hour, then each issue with its project, where it happened, how often, for how many people and when

An issue

What went wrong, and how to fix it.

Press Explain and Pocket AI says what happened, the likely cause, where to look and how to fix it. Beside it: how often in the last 24 hours or 30 days, the releases, tags with how they spread and a note for whoever looks at it.

  • Your own frames first, the library ones folded
  • “Send to” Pocket Projects or Pocket Tasks
  • Resolved and back again: marked back
A cart error: Pocket AI's explanation, how often it happened, the linked issue in Pocket Projects, a note and the stackA cart error: Pocket AI's explanation, how often it happened, the linked issue in Pocket Projects, a note and the stack

Containers

Panics from this box's logs.

With the Docker socket mounted read-only, the logs of the pocket-* containers, or the names you pick, are read every 15 seconds for error lines, JSON logs, Go panics and Python tracebacks. Each container gets its project.

  • Every Pocket app's server errors, nothing to change
  • The log lines kept with the event
  • Admins only
A Go panic read from a Pocket app's container log: the frames, the log lines and the container tagsA Go panic read from a Pocket app's container log: the frames, the log lines and the container tags

On the phone

The stack in your pocket.

Each event with the stack and the code around the line, the steps before it, the request, the app's user, browser and OS. Resolve, ignore for an hour, a day, a week, a month or for good, or send it on.

  • Event by event, newer and older
  • Light and dark follow the system
A Go API error on an iPhone: the payment call that failed, its frames and the steps before itA Go API error on an iPhone: the payment call that failed, its frames and the steps before it

Projects

Swap the DSN, change nothing else.

Each project has its DSN for any Sentry SDK, browser, Go, Python or Node, the one script line for a website without an SDK, and a curl line to send plain JSON from a script. Send a test error to see it arrive.

  • /store/ and /envelope/ as Sentry SDKs send them
  • What to be told about, per project
  • At most 30 pushes an hour
A website project: its DSN, the script line to paste, the Sentry SDK setup and a curl line for plain JSONA website project: its DSN, the script line to paste, the Sentry SDK setup and a curl line for plain JSON

And the rest of it

  • Told when it matters

    A new issue, one that came back or one happening a lot, per project, through Pocket Alerts with your rules and quiet hours, or your own ntfy or Apprise push.

  • Safe to keep

    Passwords, tokens, cookies and keys are filtered out before anything is stored, and the app users' addresses too. Events are kept 30 days or as long as you choose; counts stay.

  • One issue per problem

    The same error type in the same code, or the same message with its numbers, ids and quoted values left out, is one issue. Your own fingerprint wins.

  • Ask Pocket AI

    “What broke today?”: Pocket AI answers from your errors, and Sum up puts the last 24 hours in a few sentences.

  • Everyone their own

    Each person has their own projects and errors on one box. Admins manage accounts but see no one else's errors.

Install

One container, one folder.

Run the image with a data folder and open it on port 8080. Create the first account, make a project and paste its line. Add -v /var/run/docker.sock:/var/run/docker.sock:ro to have this box's containers read.

Already installed on a Pocket Box, with sign-in through Pocket Core and the Ask panel on Pocket AI.

Every setting in the README →

The easiest way is the one command above. To run it on its own with Docker:

docker run -d --name pocket-errors -p 8080:8080 -v ./data:/data \
  -e BASE_URL=https://errors.example.com -e SECURE_COOKIES=true \
  ghcr.io/abjelosevic88/pocket-homelab-errors:latest