Page 1 of 22 12311 ... LastLast
Results 1 to 10 of 213

Thread: Archived: Feed issues with 19-2

  1. #1
    Passenger mbirth's Avatar
    Join Date
    Oct 2015
    Location
    Berlin, Germany
    Posts
    4

    Archived: Feed issues with 19-2

    I just upgraded the fr24feed package on my RasPi from 1.0.18-9 to 1.0.19-2 and now dump1090 is missing in /usr/lib/fr24. Is this intentional?
    T-EDDI15RasPi2 + RTL2838 USB dongle + stock antenna

  2. #2
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,850
    sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"

    It installs dump1090-mutability_1.14, instead of dump1090-mr
    Please scroll-down and see code lines in red below

    Code:
    pi@raspberrypi:~ $ wget  http://repo.feed.flightradar24.com/install_fr24_rpi.sh
    
    --2018-01-16 04:24:23--  http://repo.feed.flightradar24.com/install_fr24_rpi.sh
    Resolving repo.feed.flightradar24.com (repo.feed.flightradar24.com)... 52.216.97.133
    Connecting to repo.feed.flightradar24.com (repo.feed.flightradar24.com)|52.216.97.133|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1504 (1.5K) [application/x-sh]
    Saving to: ‘install_fr24_rpi.sh’
    
    install_fr24_rpi.sh 100%[=====================>]   1.47K  --.-KB/s   in 0s
    
    2018-01-16 04:24:23 (28.4 MB/s) - ‘install_fr24_rpi.sh’ saved [1504/1504]
    
    
    
    pi@raspberrypi:~$ cat install_fr24_rpi.sh
    
    #!/bin/bash
    
    # Stop on first error
    set -e
    
    # to skip any questions from APT
    export DEBIAN_FRONTEND=noninteractive
    
    AUTO_SIGNUP=0
    
    while getopts "a" opt; do
            case $opt in
            a)
                AUTO_SIGNUP=1
                ;;
            esac
    done
    
    if [ "$(id -u)" != "0" ]; then
       echo "This script must be run as root" 1>&2
       exit 1
    fi
    
    # Import GPG key for the APT repository
    # Use keys pool: https://sks-keyservers.net/overview-of-pools.php
    gpg --keyserver pool.sks-keyservers.net --recv-keys 40C430F5
    gpg --armor --export 40C430F5 | apt-key add -
    
    # Add APT repository to the config file, removing older entries if exist
    mv /etc/apt/sources.list /etc/apt/sources.list.bak
    grep -v flightradar24 /etc/apt/sources.list.bak > /etc/apt/sources.list || echo OK
    echo 'deb http://repo.feed.flightradar24.com flightradar24 raspberrypi-stable' >> /etc/apt/sources.list
    
    # Download and install dump1090-mr
    wget -O /tmp/dump1090-mutability_1.14_armhf.deb https://github.com/mutability/dump1090/releases/download/v1.14/dump1090-mutability_1.14_armhf.deb
    dpkg -i /tmp/dump1090-mutability_1.14_armhf.deb
    rm -f /tmp/dump1090-mutability_1.14_armhf.deb
    
    # Update APT cache and install feeder software
    apt-get update -y
    apt-get install fr24feed -y
    
    # Stop older instances if exist
    systemctl stop fr24feed || echo OK
    
    # Run the signup wizard
    if [ $AUTO_SIGNUP -eq 0 ]; then
        fr24feed --signup
        chmod a+rw /etc/fr24feed.ini
    
        # Restart the feeder software
        systemctl restart fr24feed
    fi
    
    echo "Installation and configuration completed!"
    Last edited by abcd567; 2018-01-16 at 09:35.

  3. #3
    Super Moderator
    Join Date
    May 2011
    Location
    T-NZCH1, PP:PH New Zealand
    Posts
    5,047
    Quote Originally Posted by abcd567 View Post
    sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"

    It installs dump1090-mutability_1.14, instead of dump1090-mr
    Please scroll-down and see code lines in red below
    Well spotted.

    I wasn't sure how to show what the scripting was doing when using standard apt-get upgrade to see where it fell off

    Guess the new norm even for upgrading is to use the bash.

    Note theres a change in the status commandline now too
    sudo fr24feed-status


    Looks like traditionally did on stretch
    Last edited by Oblivian; 2018-01-16 at 11:02.
    Posts not to be taken as official support representation - Just a helpful uploader who tinkers

  4. #4
    Super Moderator
    Join Date
    May 2011
    Location
    T-NZCH1, PP:PH New Zealand
    Posts
    5,047
    Please don't take offence chaps, need to remove some of those posts/suggestions we come up with prior to not cause confusion to anyone else finding it.

    It appears like the bash needs to be re-run for this release to do correctly and reconfigure the .ini to suit the new dependencies.

    I've updated a few key threads/posts to reflect

    A straight update may break if not a user of Dump1090-mutability or other feeder D1090 version already. But re running the bash looks the ticket.
    Posts not to be taken as official support representation - Just a helpful uploader who tinkers

  5. #5
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,850
    SUCCESSFUL FRESH INSTALLATION OF fr24feed 1.0.19-2 ON RASPBIAN STRETCH

    SCROLL DOWN TO SEE ALL STEPS

    After installation, location of dump1090-mutability is /usr/bin/dump1090-mutability

    Code:
    STEP-1: UPDATE
    pi@raspberrypi:~ $ sudo apt-get update
    
    STEP-2: INSTALL 2 DEPENDENCIES
    pi@raspberrypi:~ $ sudo apt-get install dirmngr
    
    pi@raspberrypi:~ $ sudo apt-get install librtlsdr0
    
    STEP-3: INSTALL FR24FEED
    pi@raspberrypi:~ $ sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
    
    STEP-4: CHECK INSTALLED VERSIONS
    pi@raspberrypi:~ $ apt-cache policy fr24feed                                    
    fr24feed:
      Installed: 1.0.19-2
      Candidate: 1.0.19-2
      Version table:
     *** 1.0.19-2 500
            500 http://repo.feed.flightradar24.com flightradar24/raspberrypi-stable armhf Packages
            100 /var/lib/dpkg/status
    
    pi@raspberrypi:~ $ apt-cache policy dump1090-mutability
    dump1090-mutability:
      Installed: 1.14
      Candidate: 1.14
      Version table:
     *** 1.14 100
            100 /var/lib/dpkg/status
    
    STEP-5: CHECK dump1090-mutability is working OK
    pi@raspberrypi:~ $ sudo systemctl stop dump1090-mutability
    
    pi@raspberrypi:~ $ /usr/bin/dump1090-mutability
    Tue Jan 16 04:59:20 2018 EST  dump1090-mutability v1.14 starting up.
    Found 1 device(s):
    0: , p▒▒v, SN:  (currently selected)
    usb_open error -3
    Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules
    Error opening the RTLSDR device: Permission denied
    
    #Above Error is given in Raspbian STRETCH. In Raspbian JESSIE, this error is not there.
    
    #WORKAROUND (ONLY FOR RASPBIAN STRETCH)
    pi@raspberrypi:~ $ sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"
    
    --2018-01-16 05:00:59--  https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules
    Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.124.133
    Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.124.133|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 5794 (5.7K) [text/plain]
    Saving to: ‘/etc/udev/rules.d/rtl-sdr.rules’
    
    /etc/udev/rules.d/r 100%[===================>]   5.66K  --.-KB/s    in 0.001s
    
    2018-01-16 05:00:59 (5.13 MB/s) - ‘/etc/udev/rules.d/rtl-sdr.rules’ saved [5794/5794]
    
    
    REBOOT TO IMPLEMENT ABOVE WORKAROUND
    pi@raspberrypi:~ $ sudo reboot
    
    
    STEP-6: CHECK dump1090-mutability is working OK
    pi@raspberrypi:~ $ sudo systemctl stop dump1090-mutability                      
    
    pi@raspberrypi:~ $ /usr/bin/dump1090-mutability
    Tue Jan 16 05:03:02 2018 EST  dump1090-mutability v1.14 starting up.
    Found 1 device(s):
    0: Realtek, RTL2832U, SN: 00001003 (currently selected)
    Detached kernel driver
    Found Rafael Micro R820T tuner
    Max available gain is: 49.60 dB
    Setting gain to: 49.60 dB
    Exact sample rate is: 2000000.052982 Hz
    Gain reported by device: 49.60 dB
    *5daaf183137271;
    CRC: 000000
    RSSI: -32.1 dBFS
    Time: 2447729.50us (phase: 0)
    DF 11: All Call Reply.
      Capability  : 5 (Level 2+, airborne)
      ICAO Address: aaf183
      IID         : II-00
    Last edited by abcd567; 2018-01-16 at 10:34.

  6. #6
    Passenger mbirth's Avatar
    Join Date
    Oct 2015
    Location
    Berlin, Germany
    Posts
    4
    Quote Originally Posted by abcd567 View Post
    sudo bash -c "$(wget -O - h**p://repo.feed.flightradar24.com/install_fr24_rpi.sh)"

    It installs dump1090-mutability_1.14, instead of dump1090-mr
    Please scroll-down and see code lines in red below

    Code:
    # Download and install dump1090-mr
    wget -O /tmp/dump1090-mutability_1.14_armhf.deb h**ps://github.com/mutability/dump1090/releases/download/v1.14/dump1090-mutability_1.14_armhf.deb
    dpkg -i /tmp/dump1090-mutability_1.14_armhf.deb
    rm -f /tmp/dump1090-mutability_1.14_armhf.deb
    But why can't that package be included in the repo and set as a dependency for fr24feed? Maybe even with a symlink from /usr/lib/fr24/dump1090 ... that way, a simple update of the (previous) default installation wouldn't break anything.
    T-EDDI15RasPi2 + RTL2838 USB dongle + stock antenna

  7. #7
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,850
    FRESH INSTALL OF fr24feed 1.0.19-2 ON RASPBIAN STRETCH (NOT UPDATE OF EXISTING FEEDER)

    FR24-1.0.19-2-map.png FR24-1.0.19-2-status.png FR24-1.0.19-2-settings.png

  8. #8
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,850
    Quote Originally Posted by Oblivian View Post
    I was going to ask if .14 had the web portal built in, assumming that is without the extra httpd install?

    As that would have sorted antonioag95s concerns by simply re-running the bash scripted install
    Yes, the web portal at :8080 came WITHOUT installing lighttpd

    And did you have to do the dirmgr install? (that was removed from the linked install guide page by FR24 staff)
    YES, both the dirmngr and librtlsdr0
    PLUS workaround for Stretch (rtlsdr rules)

    Code:
    STEP-1: UPDATE
    pi@raspberrypi:~ $ sudo apt-get update
    
    STEP-2: INSTALL 2 DEPENDENCIES
    pi@raspberrypi:~ $ sudo apt-get install dirmngr
    
    pi@raspberrypi:~ $ sudo apt-get install librtlsdr0
    
    STEP-3: INSTALL FR24FEED
    pi@raspberrypi:~ $ sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
    
    #WORKAROUND (ONLY FOR RASPBIAN STRETCH)
    pi@raspberrypi:~ $ sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"
    Last edited by abcd567; 2018-01-16 at 12:19.

  9. #9
    Super Moderator
    Join Date
    May 2011
    Location
    T-NZCH1, PP:PH New Zealand
    Posts
    5,047
    FR24feed Purge or Uninstall Commands

    AKA DVBT users Fresh install after broken upgrade if you are brave (non brave should just reimage the SD card..)

    *results may vary - those with other feeders using dump1090-mutability may be affected or have issues

    Note down feeder location and key settings beforehand. Or backup fr24feed.ini and re apply later.

    Confirm version via webpage or command - dpkg -s fr24feed | grep Version

    sudo apt-get update
    sudo apt-get remove -- purge fr24feed
    * remove dump1090 at bottom
    sudo apt-get clean

    Rerun install script

    ( - may ask if you wish to over-write fr24feed.ini, do so)

    Sudo fr24feed - confirm running and config by normal web page method.

    OK? - Close down and start as service

    sudo service fr24feed start
    (may require reboot before/after)

    Config not OK?

    sudo fr24feed --signup


    stop auto-update
    sudo rm /etc/cron.d/fr24feed_updater




    DVBT stick / Solo + Independent FR24feeders who have not performed dump1090 installs previously -
    (removal/stop of newly included dump1090-mutability may be also required as suggested elsewhere - this will most certainly effect units running FA or other feeders.. you have been warned)

    pgrep -l dump1090
    sudo kill -9 <id of dump1090>
    sudo killall dump1090-mutability
    sudo apt-get remove --purge dump1090-mutability


    Users of FR24feed prebuilt Image
    Repeat setup instructions to burn pi24 image
    https://www.flightradar24.com/build-your-own (hopefully is 18-9)

    Additional step-by-step check commands
    https://forum.flightradar24.com/thre...ll=1#post74851
    Last edited by Oblivian; 2018-01-28 at 09:28.
    Posts not to be taken as official support representation - Just a helpful uploader who tinkers

  10. #10
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,850
    Wont re-imaging (format microSD card + Pi24 img), or (format microSD card + Raspbian img + feeder install by bash script) or (format microSD card + Piaware img + feeder install by bash script) easier and cleaner solution?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •