@rikifromgomel
@foxhunter
@wiedehopf
BUG IN RB24 SUPPLIED MLAT-CLIENT
Found the cause of @rikifromgomel’s problem:
The mlat-client which is supplied by Radarbox24 and installed by command sudo apt-get install mlat-client
has following bug:
When rbfeeder is restarted by command sudo systemctl restart rbfeeder
, the mlat-client fails to restart. Only if RPi is rebooted, then mlat-client starts.
I am using a systemd setup written by me for adsbexchange.This also uses mlat-client. When using RB24 supplied mlat-client, it starts successfully when RPi is booted, but fails to start when I issue command sudo systemctl restart adsbx-mlat
.
I replaced the RB24 supplied mlat-client (installed by command sudo apt-get install mlat-client
) by the mlat-client I have built from source code and uploaded to Github.
Here is what I did, and now mlat is working OK even when rbfeeder and adsbx-mlat are restarted. No need to reboot Pi to restart these.
1 - Uninstalled RB24 supplied mlat-client
sudo apt-get --purge mlat-client
2 - Installed mlat-client which I have built from source-code
wget https://github.com/abcd567a/mlat-client-package/releases/download/v1/mlat-client_0.2.11_BUSTER_armhf.deb
sudo dpkg -i mlat-client_0.2.11_BUSTER_armhf.deb
3 - Rebooted RPI to restart everything properly
sudo reboot
4 - Restarted rbfeeder and adsbx-mlat and checked status, both working OK with mlat
pi@piaware:~ $ sudo systemctl restart rbfeeder
pi@piaware:~ $ sudo systemctl status rbfeeder
● rbfeeder.service - RBFeeder Service
Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-12-13 18:47:29 EST; 42s ago
Main PID: 15124 (rbfeeder)
Tasks: 12 (limit: 2200)
Memory: 5.9M
CGroup: /system.slice/rbfeeder.service
├─15124 /usr/bin/rbfeeder
└─15138 /usr/bin/python3.7 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.com:40900 --lat 43.5
pi@piaware:~ $ sudo systemctl restart adsbx-mlat
pi@piaware:~ $ sudo systemctl status adsbx-mlat
● adsbx-mlat.service - Adsbexchange-mlat
Loaded: loaded (/lib/systemd/system/adsbx-mlat.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-12-13 18:49:54 EST; 12s ago
Main PID: 16270 (adsbx-mlat.sh)
Tasks: 2 (limit: 2200)
Memory: 4.0M
CGroup: /system.slice/adsbx-mlat.service
├─16270 /bin/sh /usr/share/adsbexchange/adsbx-mlat.sh
└─16273 /usr/bin/python3.7 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:30005 --lat 43.5xxx --lon -79.6xxx --alt 1xx -
Dec 13 18:49:54 piaware systemd[1]: Started Adsbexchange-mlat.