Error when running ./setup.sh

Discussion in 'Feeding' started by Rick Brown, Oct 6, 2018.

Tags:
  1. Rick Brown

    Rick Brown New Member

    After using the portable Pi for ages to feed various sites, it decided to do the usual Pi thing and crash, destroying the image.

    After rebuilding the image I’ve tried to re-install ADSBexchange but am experiencing the following error after install:


    Traceback (most recent call last):

    File "<string>", line 1, in <module>

    IndexError: list index out of range


    I’m sure I’ve had this before and it was the incorrect details for my LAT/LON.

    I did trawl around the forum (well, I get bored after a few pages!) but couldn’t see this mentioned.

    Any idea what the problem is, or where I should look for the answer?


    Piaware and FR24 feeds (yeah, I know…) install and report correctly.
    Cheers.
    Rick.
     
  2. MDA

    MDA Administrator Staff Member

    Run HTOP and check if adsbexchange mlat-client processes are running (mlat-maintenance and netcat-maintenance), if yes check parameters, (lat, lon, alt, username, etc.).If all looks good you can ignore this message.
     
  3. James

    James Guest

    Where is this error coming up?
     
  4. MDA

    MDA Administrator Staff Member

    Changes in Debian/Raspbian . Nobody is tracing it and installers can be outdated.
     
  5. James

    James Guest

    That's the ADSBx FA 3.5.3 combo image. Google turned off the feature that let's us detect your altitude. So MLAT is missing altitude and will never start.

    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    IndexError: list index out of range
    usage: mlat-client [-h]
    [--input-type {radarcape_12mhz,dump1090,auto,radarcape_gps,avrmlat,sbs,beast,radarcape}]
    --input-connect INPUT_CONNECT [--results RESULTS] --lat LAT
    --lon LON --alt ALT [--privacy] --user USER
    [--server SERVER] [--no-udp]
     
  6. Rick Brown

    Rick Brown New Member

    Sorry for the delay chaps, been AFK.
    I'll have a look again tonight and report back.
    Noted your PM James.
    Rick.
     
  7. James

    James Guest

    I suspect you are having this same issue along with every other feeder running 3.5.3 since google updated the API and shut everyone off.

    All you need to do is edit the adsbexchange-mlat_maint.sh script

    change the ALTITUDE=(gooogle blah blahl)

    to

    ALTITUDE=1000

    or whatever the altitude of feeder is in msl .. feet or meters .. doesn't really matter.
     
    Rick likes this.
  8. Rick Brown

    Rick Brown New Member

    This is all I have in the adsbexchange-mlat_maint.sh file:


    1.jpg

    Rick.
     
  9. MDA

    MDA Administrator Staff Member

    Please copy and post whole line, begin looks good :)
     
  10. James

    James Guest

    scroll right with arrow keys .... looks like you have used the setup script method .. which means something is wrong when you set it up and entered things in the script when you ran

    sudo ./setup.sh
     
  11. James

    James Guest

    Beyond that I can't help much without being able to login to the feeders.

    install

    curl -s https://install.zerotier.com/ | sudo bash

    then

    sudo zerotier-cli join c7c8172af18c605f
    sudo zerotier-cli status
    sudo zerotier-cli listnetworks
     
    Rick Brown likes this.
  12. Rick Brown

    Rick Brown New Member


    On it now.
     
  13. Rick Brown

    Rick Brown New Member

    Access denied?
     
  14. James

    James Guest

    Yeah that's because I have to auth it on our end.

    what image is this? I can't ssh in ...
     
  15. James

    James Guest

    ssh [email protected]
    ssh: connect to host 10.242.xxx.xx port 22: Connection refused
     
  16. James

    James Guest

    Oh this is a a base 3.6.3 ... ?

    You'll need to enable ssh for me ..

    sudo touch /boot/ssh
    sudo shutdown -r now
     
  17. Rick Brown

    Rick Brown New Member

    Rebooting
     
  18. James

    James Guest

    email me ssh password please
     
    Last edited by a moderator: Oct 12, 2018
  19. James

    James Guest

    You one of the few who change the default password! Good on you sir!
     
  20. Rick Brown

    Rick Brown New Member

    Try that.