Main Menu

mlat error

Started by Taxom, July 15, 2022, 03:59:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Taxom

Orange Pi Zero
After the update, "Mlat" stopped working.

How to fix it?


root_orangepizero:~# sudo systemctl status  rbfeeder
● rbfeeder.service - RBFeeder Service
   Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2022-07-14 23:21:50 EDT; 34s ago
  Process: 25645 ExecStartPre=/bin/mkdir /var/run/rbfeeder (code=exited, status=1/FAILURE)
  Process: 25646 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/run/rbfeeder (code=exited, status=0/SUCCESS)
  Process: 25647 ExecStartPre=/bin/touch /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
  Process: 25649 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
  Process: 25650 ExecStartPre=/bin/chown rbfeeder:rbfeeder /etc/rbfeeder.ini (code=exited, status=0/SUCCESS)
  Process: 25651 ExecStartPre=/bin/setfacl -m u:www-data:rwx /etc/rbfeeder.ini (code=exited, status=0/SUCCESS)
Main PID: 25652 (rbfeeder)
    Tasks: 9 (limit: 421)
   Memory: 1.5M
   CGroup: /system.slice/rbfeeder.service
           └─25652 /usr/bin/rbfeeder

Jul 14 23:21:50 orangepizero rbfeeder[25652]:     open(pidfile, 'w').write(pid)
Jul 14 23:21:50 orangepizero rbfeeder[25652]: PermissionError: [Errno 13] Permission denied: '/run/mlat-client.pid'
Jul 14 23:21:51 orangepizero rbfeeder[25652]: [2022-07-14 23:21:51]  Connection established.
Jul 14 23:21:51 orangepizero rbfeeder[25652]: [2022-07-14 23:21:51]  Client type: Raspberry Pi
Jul 14 23:21:51 orangepizero rbfeeder[25652]: [2022-07-14 23:21:51]  Connection with RadarBox24 server OK! Key accepted by se
Jul 14 23:21:51 orangepizero rbfeeder[25652]: [2022-07-14 23:21:51]  This is your station serial number: EXTRPI014534
Jul 14 23:22:20 orangepizero rbfeeder[25652]: Traceback (most recent call last):
Jul 14 23:22:20 orangepizero rbfeeder[25652]:   File "/usr/bin/mlat-client", line 108, in <module>
Jul 14 23:22:20 orangepizero rbfeeder[25652]:     open(pidfile, 'w').write(pid)
Jul 14 23:22:20 orangepizero rbfeeder[25652]: PermissionError: [Errno 13] Permission denied: '/run/mlat-client.pid'
lines 1-25/25 (END)

abcd567

#1
Reboot Pi and after reboot, check again.

Taxom

#2
I tried it. But it doesn't help


root@orangepizero:~# sudo systemctl status  rbfeeder
● rbfeeder.service - RBFeeder Service
   Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2022-07-15 01:13:36 EDT; 3min 30s ago
  Process: 1119 ExecStartPre=/bin/mkdir /var/run/rbfeeder (code=exited, status=0/SUCCESS)
  Process: 1217 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/run/rbfeeder (code=exited, status=0/SUCCESS)
  Process: 1230 ExecStartPre=/bin/touch /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
  Process: 1241 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
  Process: 1242 ExecStartPre=/bin/chown rbfeeder:rbfeeder /etc/rbfeeder.ini (code=exited, status=0/SUCCESS)
  Process: 1243 ExecStartPre=/bin/setfacl -m u:www-data:rwx /etc/rbfeeder.ini (code=exited, status=0/SUCCESS)
Main PID: 1244 (rbfeeder)
    Tasks: 9 (limit: 421)
   Memory: 1.7M
   CGroup: /system.slice/rbfeeder.service
           └─1244 /usr/bin/rbfeeder

Jul 15 01:15:53 orangepizero rbfeeder[1244]: [2022-07-15 01:15:53]  Connection with RadarBox24 server OK! Key accepted by server.
Jul 15 01:15:53 orangepizero rbfeeder[1244]: [2022-07-15 01:15:53]  This is your station serial number: EXTRPI014534
Jul 15 01:16:38 orangepizero rbfeeder[1244]: Traceback (most recent call last):
Jul 15 01:16:38 orangepizero rbfeeder[1244]:   File "/usr/bin/mlat-client", line 108, in <module>
Jul 15 01:16:38 orangepizero rbfeeder[1244]:     open(pidfile, 'w').write(pid)
Jul 15 01:16:38 orangepizero rbfeeder[1244]: PermissionError: [Errno 13] Permission denied: '/run/mlat-client.pid'
Jul 15 01:16:52 orangepizero rbfeeder[1244]: [2022-07-15 01:16:52]  ******** Statistics updated every 60 seconds ********
Jul 15 01:16:52 orangepizero rbfeeder[1244]: [2022-07-15 01:16:52]  Packets sent in the last 60 seconds: 61, Total packets sent since startup: 6
Jul 15 01:16:52 orangepizero rbfeeder[1244]: [2022-07-15 01:16:52]  Data sent: 2.3 KB
Jul 15 01:16:52 orangepizero rbfeeder[1244]: [2022-07-15 01:16:52]  Data received: 31 B

abcd567

#3
Quote from: Taxom on July 15, 2022, 05:19:08 AM
I tried it. But it doesn't help



   CGroup: /system.slice/rbfeeder.service
           └─1244 /usr/bin/rbfeeder




The mlat-client did not start. If started, you will see 3 lines in CGroup: like below



     CGroup: /system.slice/rbfeeder.service
             ├─1484 /usr/bin/rbfeeder
             └─1496 /usr/bin/python3.9 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.com:40900 --lat 43.>




First update

sudo apt update




After update, issue following commands and post their outputs


apt-cache policy rbfeeder

apt-cache policy mlat-client

apt-cache policy python3.9




Also post output of following command
NOTE: Replace your feeder key by xxxxxxxxxx  when posting in forum

cat /etc/rbfeeder.ini 






Taxom

#4
At the same time, mlat on Adsbexchange continues to work normally




abcd567

OK you have Buster (Debian 10), whuch requires python3.7 to run mlat-client.

Please post output of following command

apt-cache policy python3.7

Taxom

#6
In the previous post there is the result of this command. In the first screenshots.

Sorry for the screenshots, but the forum does not allow to publish a text code, referring to the presence of spam in it.

abcd567

#7
(1) Why port 30205 instead of 30005 ?
See attached screen shot.

(2) Try these commands


sudo apt-get install --reinstall rbfeeder

sudo reboot

sudo systemctl status rbfeeder 




Taxom


Taxom


abcd567

Try these commands


sudo apt-get install --reinstall mlat-client

sudo apt-get install --reinstall python3.7

sudo reboot

sudo systemctl status rbfeeder 




abcd567

#11
Quote from: Taxom on July 15, 2022, 11:47:45 PM
At the same time, mlat on Adsbexchange continues to work normally

If Flightaware MLAT and Adsbexchange MLAT are working OK, it does not guarantee that RB24 MLAT should also work OK.

The reason is that there are THREE (3) INDEPENDENT mlat-clients installed on your Pi. These 3 work independent of each other. If any one of these is defective or stops working, it will stop mlat of only that feeder for which it was installed. Other feeder's mlat will continue to work normally.

(1) mlat-client for Flightaware (installed automatically during installation of piaware)
/usr/lib/piaware/helpers/fa-mlat-client 


(2) mlat-client for Adsbexchange (installed automatically during installation of Adsbexchange feeder)
/usr/local/share/adsbexchange/venv/bin/mlat-client 


(3) mlat-client for Radarbox24 (installed manually by the user: sudo apt install mlat-client)
/usr/bin/mlat-client



.

abcd567

Try this command to see if mlat-client is OK
(Replace xx.xxx, yy.yyyy, zzz, aaaaa by their actual values)

Quote

sudo  /usr/bin/python3.7 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.com:40900 --lat xx.xxx --lon yy.yyy --alt zzz --user aaaaaaa


If mlat-client is OK, you should get this:

mlat-client ax_0.3.9 starting up
Connected to multilateration server at mlat1.rb24.com:40900, handshaking
Server says:

        AirNav Server

        The multilateration server source code is available under
        the terms of the Affero GPL (v3 or later). You may obtain
        a copy of this server's source code at the following
        location: https://github.com/adsbexchange/mlat-server

Handshake complete: Compression zlib2, UDP transport disabled, Split sync disabled
Input connected to 127.0.0.1:32457
Input format changed to BEAST, 12MHz clock



Taxom

#13
here

Taxom

#14
I do not know, it can help solve my problem. But in this time with Radarbox  update, the system was automatically installed by two packages dh-sysuser_1.3.3_all.deb and sysuser-helper_1.3.3_all.deb .