Announcement

Collapse
No announcement yet.

Fr24feed program crashed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • G_monitor
    replied
    Ok... I wrote a script to restart fr24feed.
    Here's the script in case someone has the same problem.

    pi@raspberrypi:~/fr24watchdog $ cat fr24watchdog.sh
    #!/bin/bash

    log_file="/home/pi/fr24watchdog/log.log"

    log() {
    if [ "$1" ]; then
    echo -e "[$(date +"%Y-%m-%d %T")] - $1" >> $log_file
    fi
    }

    if pgrep -x "fr24feed" > /dev/null
    then
    log "Fr24feed running well!"
    else
    log "Something goes wrong! Restarting program."
    sudo kill $(pgrep -x "dump1090") # kill dump1090
    sudo systemctl stop fr24feed
    sudo systemctl restart fr24feed
    log "Restart done!"
    fi

    watchdoglog.png

    Leave a comment:


  • Strix technica
    replied
    Originally posted by Oblivian View Post
    First questions. What power supply being used. If it's less than about 2.5a the USB will be losing power
    2A should be sufficient.

    I'm running two SDRs and two decoders (dump1090 and rtl_airband) without a powered hub on a Pi3 on a 2A adaptor and it seems reliable (touch wood).

    Also, there's a (standards imposed) absolute current limit of 500mA per USB port and 1.2A across all USB ports, and the core itself needs < 1A (IIRC). This post on r/RTLSDR seems to suggest max 300 mA per SDR.

    The 2.5A adaptor is probably only required if you are running power-hungry peripherals such as an LCD and other devices drawing current from the GPIO header.

    Leave a comment:


  • G_monitor
    replied
    I'm using a 2A one. But I don't think this is the problem since it is working well before May.
    Yes, there is some traffic. Not that much or no traffic at night, but definitely traffics at day.

    Leave a comment:


  • Oblivian
    replied
    First questions. What power supply being used. If it's less than about 2.5a the USB will be losing power

    2nd is there actual traffic. The server will boot you if no data seen for a period

    Sent from my XT1092 using Tapatalk

    Leave a comment:


  • G_monitor
    started a topic Fr24feed program crashed

    Fr24feed program crashed

    I'm running fr24feed on raspberrypi2.
    The feed program crashed multiple times with unknown reason.

    pi@raspberrypi:~/fr24feedlog $ tail fr24feed.log
    2017-05-28 21:35:10 | [feed][n]waiting 9 seconds
    2017-05-28 21:35:11 | [mlat][i]No ADS-B time reference available (0/0)
    2017-05-28 21:35:19 | [feed][n]ZB[--HIDE--]@[IP]:[Port]/UDP
    2017-05-28 21:35:19 | [feed][n]connecting
    2017-05-28 21:35:28 | [mlat][i]No ADS-B time reference available (0/0)
    2017-05-28 21:35:28 | [mlat][i]Pinging the server
    2017-05-28 21:35:29 | [mlat][i]Stats 42780/0
    2017-05-28 21:35:38 | [mlat][i]No ADS-B time reference available (0/0)
    2017-05-28 21:35:39 | [feed][n]connected via TCP (fd -1)
    2017-05-28 21:35:39 | [feed][n]working

    dump1090 still running.
    dump1090running.png

    pi@raspberrypi:~/fr24feedlog $ sudo systemctl status fr24feed
    ● fr24feed.service - LSB: Flightradar24 Decoder & Feeder
    Loaded: loaded (/etc/init.d/fr24feed)
    Active: active (running) since Sat 2017-05-27 04:15:43 CST; 3 days ago
    Process: 16998 ExecStop=/etc/init.d/fr24feed stop (code=exited, status=0/SUCCESS)
    Process: 17008 ExecStart=/etc/init.d/fr24feed start (code=exited, status=0/SUCCESS)
    CGroup: /system.slice/fr24feed.service
    └─20716 /usr/lib/fr24/dump1090 --raw --mlat

    May 27 04:15:43 raspberrypi fr24feed[17008]: Starting FR24 feeder: fr24feed.
    May 27 04:15:43 raspberrypi systemd[1]: Started LSB: Flightradar24 Decoder & Feeder.

    And I need to kill dump1090 before restart fr24feed (seems reasonable)

    Any idea? Or just write a watchdog script to auto kill dump1090 and restart fr24feed?
Working...
X