Comments (8)
I've figure out that it was permission issues. But having some debugging would have helped found out sooner :)
from dump1090.
IIRC the original reason for silently suppressing errors was that they were very noisy in the face of misconfiguration (either you make the first error encountered make dump1090 bail out entirely, or you spam lots of errors into the logs - neither is really ideal). But I agree that silently eating errors is not great; let's see what I can do to find a middle ground.
from dump1090.
Shooting out errors on the first go encourages fixing the issue to get beautiful output again :)
There's also the use case of the filesystem getting full which you might not see immediately.
from dump1090.
If you fill up the filesystem is it preferable to keep logging that you filled up the filesystem, once a second, or to have dump1090 exit and restart? neither seems ideal..
from dump1090.
If the filesystem is already full, re-attempting to log will fail anyway until things have been cleaned up or storage has been extended, in which case the program can continue to log, and no further action is necessary.
It's the lesser evil :)
from dump1090.
But I think permission denied is different, and the application should come to a halt until it's fixed because spamming the filesystem with "Write Permission error" is filling up the filesystem for nothing and the user does not get the expected result that things are being logged.
from dump1090.
I took the middle ground and log-and-continue with rate limiting to no more than one message per minute:
$ ./dump1090 --write-json no-perms --net-only
Wed Aug 4 17:34:41 2021 +08 dump1090-fa unknown starting up.
Net-only mode, no SDR device or file open.
failed to create no-perms/receiver.json.Nr1pMT (for updating no-perms/receiver.json): Permission denied
failed to create no-perms/stats.json.nqseqU (for updating no-perms/stats.json): Permission denied (66 more error messages suppressed)
from dump1090.
Sounds good! Thanks.
from dump1090.
Related Issues (20)
- FEATURE REQ: Distance filter HOT 1
- Q: where is the military filter implemented? HOT 1
- No capturing any packet on dump1090 HOT 1
- CPU features for RISC-V architecture
- UI not updated ?
- Request: Missing some statistics in the json files HOT 3
- Fix host vs build var naming. Use DEB_HOST_ARCH in package builds breaks build on RaspiOS 64-bit (bullseye) HOT 2
- Cannot compile on macOS Ventura HOT 2
- UAT 978 HOT 1
- Query arguments no longer supported HOT 7
- Stale URL for Message Decoding
- Build on Debian 12 (bookworm) HOT 1
- dump1090-fa fails to build on pi4 4GB with 32 bit pi-os image HOT 2
- Merging dev into master HOT 1
- adaptive burst mode HOT 1
- Adaptive Duty Cycle does not work as expected HOT 2
- Background maintenance tasks disabled when running with `--ifile` option HOT 3
- dev branch soapy sdr support; how to get parameter and their names HOT 3
- adaptive burst mode not triggered by airplanes transmitting "on ground"
- Errors on Mac OS Sonoma 14.3.1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dump1090.