AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: mlat error  (Read 17240 times)

0 Members and 1 Guest are viewing this topic.

Taxom

  • New Member
  • *
  • Posts: 26
mlat error
« on: July 15, 2022, 03:59:44 AM »
Orange Pi Zero
After the update, "Mlat" stopped working.

How to fix it?

Code: [Select]
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

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: mlat error
« Reply #1 on: July 15, 2022, 04:41:45 AM »
Reboot Pi and after reboot, check again.
« Last Edit: July 15, 2022, 04:44:04 AM by abcd567 »

Taxom

  • New Member
  • *
  • Posts: 26
Re: mlat error
« Reply #2 on: July 15, 2022, 05:19:08 AM »
I tried it. But it doesn't help

Code: [Select]
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
« Last Edit: July 15, 2022, 05:34:44 AM by Taxom »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: mlat error
« Reply #3 on: July 15, 2022, 10:26:50 PM »
I tried it. But it doesn't help

Code: [Select]

   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


Code: [Select]
     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
Code: [Select]
sudo apt update



After update, issue following commands and post their outputs

Code: [Select]
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
Code: [Select]
cat /etc/rbfeeder.ini 




« Last Edit: July 15, 2022, 10:36:05 PM by abcd567 »

Taxom

  • New Member
  • *
  • Posts: 26
Re: mlat error
« Reply #4 on: July 15, 2022, 11:47:45 PM »
At the same time, mlat on Adsbexchange continues to work normally



« Last Edit: July 15, 2022, 11:49:58 PM by Taxom »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: mlat error
« Reply #5 on: July 16, 2022, 01:08:55 AM »
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

  • New Member
  • *
  • Posts: 26
Re: mlat error
« Reply #6 on: July 16, 2022, 01:52:48 AM »
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.
« Last Edit: July 16, 2022, 01:58:37 AM by Taxom »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: mlat error
« Reply #7 on: July 16, 2022, 03:23:29 AM »
(1) Why port 30205 instead of 30005 ?
See attached screen shot.

(2) Try these commands

Code: [Select]

sudo apt-get install --reinstall rbfeeder

sudo reboot

sudo systemctl status rbfeeder 



« Last Edit: July 16, 2022, 03:29:35 AM by abcd567 »

Taxom

  • New Member
  • *
  • Posts: 26
Re: mlat error
« Reply #8 on: July 16, 2022, 03:35:22 AM »
this

Taxom

  • New Member
  • *
  • Posts: 26
Re: mlat error
« Reply #9 on: July 16, 2022, 03:45:17 AM »
nothing changed ((

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: mlat error
« Reply #10 on: July 16, 2022, 04:26:14 AM »
Try these commands

Code: [Select]

sudo apt-get install --reinstall mlat-client

sudo apt-get install --reinstall python3.7

sudo reboot

sudo systemctl status rbfeeder 




abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: mlat error
« Reply #11 on: July 16, 2022, 02:01:03 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)
Code: [Select]
/usr/lib/piaware/helpers/fa-mlat-client 

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

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


.
« Last Edit: July 16, 2022, 02:08:39 PM by abcd567 »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: mlat error
« Reply #12 on: July 16, 2022, 02:42:04 PM »
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:
Code: [Select]
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

  • New Member
  • *
  • Posts: 26
Re: mlat error
« Reply #13 on: July 16, 2022, 05:06:27 PM »
here
« Last Edit: July 16, 2022, 05:10:16 PM by Taxom »

Taxom

  • New Member
  • *
  • Posts: 26
Re: mlat error
« Reply #14 on: July 16, 2022, 05:22:55 PM »
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 .
« Last Edit: July 16, 2022, 05:28:04 PM by Taxom »