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.
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?
What is inside a player report?
What happens if the receiver is unreachable?
How long are reports kept, and who sees them?
Can we order such a receiver for our own team's app?
Need something similar?
Tell us about the task β we'll show how we solved it and estimate the scope.