ADS-B Feeder Not Working

Creating a bug report/issue

I have searched the existing open and closed issues
I have searched the forum and youtube to see if anyone had any simliar issues.

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=5
    G_DIETPI_VERSION_RC=1
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
    G_LIVE_PATCH_STATUS[0]=‘not applicable’

  • Distro version |
    bookworm

  • Kernel version | uname --all
    Linux DietPi 6.6.32-current-rockchip64 #1 SMP PREEMPT Sat May 25 14:22:56 UTC 2024 aarch64 GNU/Linux

  • Architecture | dpkg --print-architecture
    arm64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    NanoPi R4S (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)
    5V 3A

  • SD card used | (EG: SanDisk ultra)
    SanDisk Ultra 32GB

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
    ADSB-Feeder #141

  • Was the software title installed freshly or updated/migrated?
    Installed Freshly

  • Can this issue be replicated on a fresh installation of DietPi?
    Same Issue on Fresh Build of DietPi
    ← If you sent a “dietpi-bugreport”, please paste the ID here →

  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. …Go To DietPi Software and choose #141 ADS-B Feeder and install it
  2. …Try to go PI’s IP and Port 1099 and nothing

Expected behaviour

  • …Should load webgui

Actual behaviour

  • …Web Gui Not Loading

Extra details

  • …I have tried installing docker, docker-compose and protainer before and after. No changes.
● adsb-setup.service - ADS-B Feeder Setup Service
     Loaded: loaded (/etc/systemd/system/adsb-setup.service; enabled; preset: enabled)
     Active: activating (start-pre) since Fri 2024-06-28 22:57:01 BST; 41ms ago
  Cntrl PID: 6427 (bash)
      Tasks: 2 (limit: 4458)
     Memory: 1.3M
        CPU: 31ms
     CGroup: /system.slice/adsb-setup.service
             ├─6427 /usr/bin/bash /opt/adsb/pre-start.sh
             └─6434 pkill -f "python3 /opt/adsb/adsb-setup/waiting-app.py"

Jun 28 22:57:01 DietPi systemd[1]: Starting adsb-setup.service - ADS-B Feeder Setup Service...
root@DietPi:~# systemctl status adsb-setup
● adsb-setup.service - ADS-B Feeder Setup Service
     Loaded: loaded (/etc/systemd/system/adsb-setup.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2024-06-28 22:57:02 BST; 4s ago
    Process: 6427 ExecStartPre=/usr/bin/bash /opt/adsb/pre-start.sh (code=exited, status=0/SUCCESS)
    Process: 6438 ExecStart=/usr/bin/python3 /opt/adsb/adsb-setup/app.py (code=exited, status=1/FAILURE)
   Main PID: 6438 (code=exited, status=1/FAILURE)
        CPU: 324ms

For some reason the module `requests is missing

pip install requests

After that I startet the setupo service again and was able to reach the stup page at default http port 80, so use just http://<IP_of_your_Pi>

systemctl restart adsb-setup.service

@MichaIng we should install this package within the setup and I’m not sure if the setup should also run on port 1099, or is this just for the app after the setup?

1 Like

Thanks so much for the quick help. I’m going through the setup now. You all are awesome! If I can provide anything else.

Let me know

@dirkhh can you have a look pls

1 Like

This is the reason: ADS-B Feeder Image: adapt to v2.1.1 by dirkhh · Pull Request #7115 · MichaIng/DietPi · GitHub
This service started a script which installed the requests module: adsb-feeder-image/src/modules/adsb-feeder/filesystem/root/opt/adsb/software-prep.sh at 59bde1bca2af798e55b82f9667f7daebcf94958d · dirkhh/adsb-feeder-image · GitHub
It has however been removed.

@dirkhh I guess we just need to add it like Flask is manually installed, matching also app-install.sh? adsb-feeder-image/src/tools/app-install.sh at aa9818369aedcba7d70239c239a804ca8b78c332 · dirkhh/adsb-feeder-image · GitHub
I’d however install both just with pip and skip the conditional APT vs pip call. Both have an arch-agnostic pre-compiled wheel on PyPI, and we override the “break system package” prevention on Bookworm and above.

I found an actual requirements.txt, but it seems to contain more than what is required for our implementation? adsb-feeder-image/src/modules/adsb-feeder/filesystem/root/opt/adsb/adsb-setup/requirements.txt at aa9818369aedcba7d70239c239a804ca8b78c332 · dirkhh/adsb-feeder-image · GitHub

2 Likes

So all the dependencies should get installed when dietpi-software runs.
requests is definitely needed, so I wonder what I got wrong so that is no longer done :disappointed:

As for the port used, again it is supposed to recognize that this is an app install and switch to 1099.

I’ll do a fresh install and test later this evening.

Thanks for the @ - ping, @Joulinar

2 Likes

I tested this, was able to reproduce it, and submitted a pull request with a fix.

3 Likes

Fix merged for next release, planned for next weekend: ADS-B Feeder Image: fix install issues by dirkhh · Pull Request #7133 · MichaIng/DietPi · GitHub

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.