Feed dropping out

Discussion in 'Feeding' started by ktb, Jan 3, 2019.

  1. ktb

    ktb Member

    James, You wrote:

    "You should also do the same with socat to feed ADSBx with because every time the proxy server restarts or the daily reboot happens, our server closes the connection and socat exits .. thus you won't be feeding ADSBx.
    I assume you might be thinking dump1090 feeds ADSBx automatically .. it does not."

    This was in reference to bash scripting an auto-restart for dump1090. I am noting that my feed to exchange is dropping out. Not sure if it's because my dump1090 has reset or if, as you said, your server reboots or the proxy server restarts. Either way, you mentioned making the same auto-restart script on the adsbexchange-netcat_maint.sh file (I think).

    My question is what line of text do I insert, that is the command to restart that file? It would be inserted in the script between the lines (I assume) like this, between the "do" and the "and"

    while true;
    do
    command to restart adsbexchange-netcat_maint.sh
    and
    sleep 5;
    done;

    Am I on the right track?
     
    Bob Randolph likes this.
  2. James

    James Guest

    sort of ... I guess I need you to clarify how exactly you setup your feeder!

    I assume you must have used the script method to install ADSBx MLAT and feeder script.

    Did you do the below? If so all they require is dump1090 running and beast output on 30005. Like I said it uses rc.local to start on boot .. so since you are using Lubuntu? need to make sure rc.local is enabled ...

    Code:
    sudo apt-get install git
    git clone https://github.com/adsbxchange/adsb-exchange.git
    cd adsb-exchange
    chmod +x setup.sh
    sudo ./setup.sh
    
    I've also been working on HAProxy server for the feeds, so when I reload HAProxy will will reset incoming connections. If dump1090 is crash then at is something else not related to ADSBx scripts.

    adsbexchange-netcat_maint.sh

    That script should have the reconnect logic ..

    nano adsbexchange-netcat_maint.sh

    to view it ..

    CTRL+X to exit
    CTRL+O to write and changes ( only if you know what you are doing ) :D
     
    Bob Randolph likes this.
  3. James

    James Guest

    Bob Randolph likes this.
  4. ktb

    ktb Member

    James, Everything has been working as far as feeding. The problem is that every now and then it quits feeding. I check on the map from xchange and see no planes and my dump1090 is still running. I have run the script to install the xchange folder on my pc. It has the two files needed. So I assume the files are all ok that the exchange script has set up. The script you had me write to keep dump going works fine. I'll look at the two links you've provided.
     
    Bob Randolph likes this.
  5. James

    James Guest

    Those links only if things don't start on reboot.

    It quits feeding ADSBx or dump1090 stops working?

    It's going to stop feeding now lately, I've been refreshing the Proxy server a lot .. it should only go down for a few seconds at most tho - whatever the sleep is set to in that netcat_maint.sh script.
     
    Bob Randolph likes this.
  6. ktb

    ktb Member

    rc.local is enabled. I check it by ... sudo systemctl status rc-local. It came back ... active (running).
     
    Bob Randolph likes this.
  7. ktb

    ktb Member

    To answer your question, the feed is not seen at exchange but dump1090 has been running all the time.
     
    Bob Randolph likes this.
  8. ktb

    ktb Member

    Perhaps the situation is what you said, you've been refreshing the proxy server a lot. I'll look over things on my end to make sure rc.local is always up after booting.
     
    Bob Randolph likes this.
  9. MDA

    MDA Administrator Staff Member

    Can you install Zerotier and join my or James network?
    Look into logfiles can be helpful. You can create new user without sudo rights for us.
     
    Bob Randolph likes this.
  10. ktb

    ktb Member

    James, I'm not sure if I could. Never heard of Zerotier until yesterday. I'll keep checking things on my end to make sure all is right here. If I can't find a solution, I'll get back to you on this. I don't want to tie you up needlessly.
     
    Bob Randolph likes this.
  11. MDA

    MDA Administrator Staff Member

    Bob Randolph likes this.
  12. ktb

    ktb Member

    MDA, I got it working. I realized just today that when I initially was working to restore the functionality of the rc.local system in the newest Lubuntu distro, I messed up my Linux system and there was no easy way for me to fix it since I'm a novice. I actually formatted the pc and completely started everything over from scratch. After I realized what was wrong, I didn't want to waste ads-b exchange admin time fixing my Linux system to make this work. That's why I declined the Zerotier solution. Btw, just installing that program in Linux looked more daunting than fixing my problem.

    Ok. I'm exhausted. I'll leave you to fix someone else's situation. You wrote: "We are here to help" and I appreciate that. :)
     
    Bob Randolph and MDA like this.
  13. James

    James Guest

    Cool. The more experienced you get with Linux, it's very very rare to completely wreck a linux system like windows .. everything is reversible.
     
    Bob Randolph likes this.