🩺

A crash report receiver for our own apps

the OshaPlay player sends crashes and logs to a server we run ourselves

Our own crash-report and log receiver for the OshaPlay player: data goes to our own server with a token, is kept for 90 days and is read only by the developer, with no third-party cloud services.

In production Β· in-house product
90 days
report retention, no more than 800 MB in total
up to 5 MB
one compressed report: log, device, audio outputs, DAC check
0 third-party services
reports live only on our own server

The task

Our own OshaPlay player has testers with different phones and DACs. A message saying "it doesn't work" gives the developer nothing to act on: they need the log, the version, device details and the crash reason.

One more condition: reports must not go to third-party services. Tester data lives on the developer's server.

The solution

Our own report receiver. The app collects diagnostics itself and sends them with a token. What was done:

  • The OshaPlay receiver accepts logs, crashes and DAC reports as a compressed file of up to 5 MB and keeps them for 90 days within 800 MB.
  • The player sends a report every 12 hours, after a crash and on a playback error, and there is a "Send report to developer" button.
  • A developer script reads reports from the server.
  • The receiver's liveness check is part of the sites server's common check.

How it works

Token-protected receiving, nothing served outward

The receiver is a small Python program in a Docker container. A token is required to submit: without it a report is rejected. Reports are never served outward; only the developer reads them on the server. The receiver sits behind the sites server's shared entry nginx. The same server distributes player releases for self-update.

What is inside a report

A log of up to 5 MB, the phone model and firmware, audio outputs and inputs, audio decoders, connected headphones, the DAC check report and accumulated listening statistics. Music files are not sent.

When a report is sent

OshaPlay sends a report every 12 hours, after a crash on the next launch, and immediately on a playback error; there is also a "Send report to developer" button. Without a network, the report waits for the next launch.

Results

  • The receiver runs in production.
  • OshaPlay reports are used to analyse real failures: the cause of audio stutter with the screen off was found from a phone's reports.

Technologies and why

  • Python: the receiver code.
  • Docker: packaging and running the receiver as a separate container.
  • nginx: the HTTPS entry server through which reports reach the receiver.
  • A token for submitting: only our own app has access; the key is kept outside the repository.

Status

In production. The OshaPlay receiver was added in sites server release 1.11.0 of 28 September 2026.

Questions about this project

How can crash reports be collected without third-party cloud services?
The app sends the log, version, device state and crash reason to a receiver on our own server. Sending uses a token, and the developer reads reports with a script. Instead of 'it doesn't work' in a chat, the developer gets a set of data to analyse, and all of it stays with the owner.
What is inside a player report?
A log of up to 5 MB, the phone model and firmware, audio outputs and inputs, audio decoders, connected headphones, the DAC check report and accumulated listening statistics. Music files are never sent.
What happens if the receiver is unreachable?
Without a network, the OshaPlay player keeps the report until the next launch. Sending never blocks the app.
How long are reports kept, and who sees them?
The receiver keeps reports for 90 days, no more than 800 MB in total, with a single report of up to 5 MB compressed. Reports are never served outward: only the developer reads them. Receiving is protected by a token.
Can we order such a receiver for our own team's app?
Yes. The scheme carries over to another app: it needs a report format, a token, sending from the device and a small Python service in Docker behind nginx.

Need something similar?

Tell us about the task β€” we'll show how we solved it and estimate the scope.