Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.
usb_claim_interface error -6
Failed to open rtlsdr device #0.
pi@raspberrypi:~ $ sudo apt install -reinstall dump1090-fa
E: Command line option ‘r’ [from -reinstall] is not understood in combination with the other options.
pi@raspberrypi:~ $
It doesnt seem to recognise the command. What should I do?
piaware.service - FlightAware ADS-B uploader
Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor prese>
Active: active (running) since Tue 2022-01-11 00:15:14 WET; 16min ago
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Main PID: 801 (piaware)
Tasks: 2 (limit: 4915)
CPU: 6.395s
CGroup: /system.slice/piaware.service
`-801 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -stat>
Jan 11 00:30:59 raspberrypi sudo[2916]: pam_unix(sudo:session): session closed >
Jan 11 00:30:59 raspberrypi piaware[801]: no ADS-B data program is serving on p>
Jan 11 00:31:40 raspberrypi sudo[2971]: piaware : PWD=/ ; USER=root ; COMMAND=>
Jan 11 00:31:40 raspberrypi sudo[2971]: pam_unix(sudo:session): session opened >
Jan 11 00:31:40 raspberrypi sudo[2971]: pam_unix(sudo:session): session closed >
Jan 11 00:31:40 raspberrypi piaware[801]: no ADS-B data program seen listening >
Jan 11 00:31:59 raspberrypi sudo[2979]: piaware : PWD=/ ; USER=root ; COMMAND=>
Jan 11 00:31:59 raspberrypi sudo[2979]: pam_unix(sudo:session): session opened >
Jan 11 00:31:59 raspberrypi sudo[2979]: pam_unix(sudo:session): session closed >
Jan 11 00:31:59 raspberrypi piaware[801]: no ADS-B data program is serving on p>
lines 1-20/20 (END)
Jan 11 09:59:56 raspberrypi dump1090-fa[586]: adaptive: changing gain from 42.1>
Jan 11 09:59:56 raspberrypi dump1090-fa[586]: rtlsdr: tuner gain set to 40.2 dB>
Jan 11 10:00:06 raspberrypi dump1090-fa[586]: adaptive: available dynamic range>
Jan 11 10:00:06 raspberrypi dump1090-fa[586]: adaptive: changing gain from 40.2>
Jan 11 10:00:06 raspberrypi dump1090-fa[586]: rtlsdr: tuner gain set to 38.6 dB>
Jan 11 10:00:16 raspberrypi dump1090-fa[586]: adaptive: available dynamic range>
Jan 11 10:00:49 raspberrypi dump1090-fa[586]: adaptive: available dynamic range>
Jan 11 10:00:49 raspberrypi dump1090-fa[586]: adaptive: changing gain from 38.6>
Jan 11 10:00:49 raspberrypi dump1090-fa[586]: rtlsdr: tuner gain set to 37.2 dB>
Jan 11 10:00:59 raspberrypi dump1090-fa[586]: adaptive: available dynamic range>
lines 1-20/20 (END)
Jan 11 09:59:56 raspberrypi dump1090-fa[586]: adaptive: changing gain f>
Jan 11 09:59:56 raspberrypi dump1090-fa[586]: rtlsdr: tuner gain set to>
Jan 11 10:00:06 raspberrypi dump1090-fa[586]: adaptive: available dynam>
Jan 11 10:00:06 raspberrypi dump1090-fa[586]: adaptive: changing gain f>
Jan 11 10:00:06 raspberrypi dump1090-fa[586]: rtlsdr: tuner gain set to>
Jan 11 10:00:16 raspberrypi dump1090-fa[586]: adaptive: available dynam>
Jan 11 10:00:49 raspberrypi dump1090-fa[586]: adaptive: available dynam>
Jan 11 10:00:49 raspberrypi dump1090-fa[586]: adaptive: changing gain f>
Jan 11 10:00:49 raspberrypi dump1090-fa[586]: rtlsdr: tuner gain set to>
Jan 11 10:00:59 raspberrypi dump1090-fa[586]: adaptive: available dynam>
~
~
lines 1-20/20 (END)
Im not sure which of the last two posts of changes fixed FA but its back. As is ADSBx. Thank you both so much for the help! Im a little lost as to what we changed thoug, and am wondering if in reactivating FA we havee taken eg, FR24, PF or PP offline? FR24 I have emailed but it does seem to be working. RB24 also seems to be working. Is there a workaround so they can all live in harmony on the same Pi that I can use as a guiding principle when tinkering with them?
It would be amazing if someone were to build a multifeeder that plugged in to all the sites more or less turnkey, or eg with a small fee for some help getting it up and running… Im guessing most people would want to feed all the sites if it was easy, so it would probably be popular. If a user could pick and choose which features from which sites they want in a front end that would be amazing also but Id be happy with a turnkey multiinstaller.
Following command fixed the problem by blacklisting the kernel module dvb_usb_rtl28xxu which has grabbed the dvbt dongle, and was not letting dump1090-fa to use it.
So … after installing librtlsdr (installed when installing dump1090-fa), you need to reboot or replug the SDR.
Otherwise you won’t be able to use the SDR.
The udev rules are applied on boot or when you replug the SDR.
Rethinking it … that wouldn’t have presented like this.
No clue why you needed the blacklisting or why it helped.
Does that blacklisting mean that one of the other feeders is now missing access to something it needs? ADSBx, FR24, PF and RB24 all seem to be working. The final feeder I was trying to set up was PP and I used an outdated setup process by accident. I’m guessing its the culprit so will try to work out how to reverse what I did and follow the correct procedure this time. The thread showing the stroy so far is at How-to Feed Plane Plotter Site directly from Raspberry Pi if you want to have a look and see if you think this may have caused the issues we’ve now corrected.
Having made no changes at all since the above modifications that we did together. I’m sad to say that 1090 radio and mlat are both down again on FA, ADSBx and RB24 show no flights either. FR24 and PF are seemingly still online. PP I haven’t started trying to reverse the damage as am awaiting feedback in that other thread as to how to do so.
Dump1090-fa is seemingly still running. pi@raspberrypi:~ $ sudo systemctl status dump1090-fa
Jan 12 11:26:59 raspberrypi systemd[1]: Started dump1090 ADS-B receiver (Flight>
Jan 12 11:27:00 raspberrypi dump1090-fa[526]: Wed Jan 12 11:27:00 2022 WET dum>
Jan 12 11:27:00 raspberrypi dump1090-fa[526]: rtlsdr: using device #0: Generic >
Jan 12 11:27:00 raspberrypi dump1090-fa[526]: Found Rafael Micro R820T tuner
Jan 12 11:27:00 raspberrypi dump1090-fa[526]: rtlsdr: tuner gain set to about 5>
Jan 12 11:27:01 raspberrypi dump1090-fa[526]: adaptive: using 50% duty cycle
Jan 12 11:27:01 raspberrypi dump1090-fa[526]: adaptive: enabled adaptive gain c>
Jan 12 11:27:01 raspberrypi dump1090-fa[526]: adaptive: enabled dynamic range c>
Jan 12 11:27:11 raspberrypi dump1090-fa[526]: adaptive: reached upper gain limi>
lines 1-19/19 (END)