No MLAT Feed

Discussion in 'Feeding' started by Matthew Summers, Mar 23, 2021.

  1. Matthew Summers

    Matthew Summers New Member

    Hi,

    I have set up a vanilla Pi and installed dump1090-fa. I installed Piaware to feed to FA and the FR24 feeder. Both seem to be working fine. I can view ADSB and MLAT results on SkyView. However, I have followed the instructions on ADSBExchange to install their feeder. It installed with no errors but for some reason is not working correctly. When I check my IP, it has a good ADSB feeder connection but no MLAT connection. My feeder also does not appear on the feeder map.

    I have searched the internet high and low and different sites talk about different ports for the MLAT feed. What I doing wrong?
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

  3. Matthew Summers

    Matthew Summers New Member

    Thanks for the quick response. The original script seems to be the same as the script that I downloaded directly from ADSB Exchange following the feeder instructions on the site itself.
    The update script not included on the ADSBExchange site produces the following error:

    sudo bash /tmp/axupdate.sh
    cp: cannot stat 'uninstall.sh' : No such file or directory
    [ERROR] Error in line 86 when executing: c uninstall.sh $IPATH

    The log file for the MLAT client shows it trying to start but failing:

    adsbexchange-mlat.service: Service RestartSec=30s expired, scheduling restart.
    adsbexchange-mlat.service: Scheduled restart job, restart counter is at 2030
    Stopped adsbexchange-mlat
    Started adsbexchange-mlat
    adsbexchange-mlat[9164]: /usr/local/share/adsbexchange/adsbexchange-mlat.sh: line 19: /usr/local/share/adsbexchange/venv/bin/mlat-client: No such file or directory
    adsbexchange-mlat.service: Main process exited, code=exited, status=127/n/a
    adsbexchange-mlat.service: Failed with result 'exit-code'

    Any thoughts?
     
  4. wiedehopf

    wiedehopf Administrator Staff Member

  5. Matthew Summers

    Matthew Summers New Member

    I have repeated the process and this time it did work thank you. However, the problem with line 19 persists, unable to locate /usr/local/share/adsbexchange/venv/bin/mlat-client.
     
  6. wiedehopf

    wiedehopf Administrator Staff Member

    Hmm once more please ... :/

    You can also run

    sudo bash /usr/local/share/adsbexchange/git/uninstall.sh

    and then run the update.sh again see if that helps.

    Let's see if there is something useful in the log:
    cat /usr/local/share/adsbexchange/lastlog
     
  7. Matthew Summers

    Matthew Summers New Member

    Sorry just to clarify, you want me to run through the whole process again per the link and then follow it with uninstall.sh and update.sh?
     
  8. wiedehopf

    wiedehopf Administrator Staff Member

    Just uninstall / update, the configuration wasn't the issue yet :)
     
  9. Matthew Summers

    Matthew Summers New Member

    Ok so I went through the process you described. Still the same issue. I opened the log and it highlighted an issue with missing python3-venv package and kindly told me what to do to install it. I installed the package and then went through the whole feeder install/update process again. Still the same issue with the missing mlat-client but the log file is now clear. I did however notice an error when going through the install process that seems connected.
     

    Attached Files:

  10. wiedehopf

    wiedehopf Administrator Staff Member

    Best guess: sd-card is dying?

    Check the output for dmesg if you see any sd-card related errors:

    dmesg
     
  11. LongBowNL

    LongBowNL New Member

    Checking in with the same issue. Just reinstalled my client, because it was not feeding to FR24 properly. Used the FR24 image. Feeding ADS-B normally, no MLAT with the same error as Matthew.

    Mar 23 12:55:44 raspberrypi adsbexchange-mlat[21046]: /usr/local/share/adsbexchange/adsbexchange-mlat.sh: line 19: /usr/local/share/adsbexchange/venv/bin/mlat-client: No such file or directory
     
  12. wiedehopf

    wiedehopf Administrator Staff Member

    Ok i'll check the issue, getting closer.
    I'll let you know once i've changed the code.
     
  13. wiedehopf

    wiedehopf Administrator Staff Member

  14. Matthew Summers

    Matthew Summers New Member

  15. LongBowNL

    LongBowNL New Member

    I can confirm that MLAT works again here as well.
     
  16. wiedehopf

    wiedehopf Administrator Staff Member

    Thank you both for sticking with it and your continued data contribution.
     
  17. shingwell

    shingwell New Member

    I've recently set up a Pi4 too, and I am very impressed at how smoothly it went, I had much less of a tech battle than I was expecting! wiedehopf your github pages and scripts were particularly useful, thank you. Now feeding ADSBx successfully. :)
     
  18. tk3k

    tk3k New Member

    FYI, I've run into the same problem. Using a brand new install of piaware. I've ensured that the appropriate python3-venv and other bits as required in the setup script are installed; no matter what I've tried (uninstalling and reinstalling, stepping through the script by hand, etc.) it seems to be pretty well broken on creating the venv. I'm not familiar enough with python to fix this, but I figured I'd point it out in the event anyone else is having a similar issue as it appears to be the same problem as others here have had but has since been resolved.

    ---------------------------------
    adsbexchange-mlat service couldn't be started, please report this error to the adsbexchange forum or discord.
    Try an copy as much of the output above and include it in your report, thank you!
    ---------------------------------
    # cat lastlog
    The virtual environment was not created successfully because ensurepip is not
    available. On Debian/Ubuntu systems, you need to install the python3-venv
    package using the following command.

    apt-get install python3-venv

    You may need to use sudo with that command. After installing the python3-venv
    package, recreate your virtual environment.

    Failing command: ['/usr/local/share/adsbexchange/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
     
  19. wiedehopf

    wiedehopf Administrator Staff Member

    The image you mean?

    I suppose i'll have to do a test.
     
  20. wiedehopf

    wiedehopf Administrator Staff Member

    I have it running without issues.

    You're likely having problems with your sd-card or something along those lines.

    You can try and just rerun the setup ....

    Code:
    wget -O /tmp/axupdate.sh https://raw.githubusercontent.com/adsbxchange/adsb-exchange/master/update.sh
    sudo bash /tmp/axupdate.sh
    
    I'm not sure what exactly you've been doing ... maybe using an outdated version of the install scripts?

    And the issues orginally mentioned in this thread have been fixed when this thread was active.
    So it's not the same problem but rather a similar problem.