Older RPi hardware - Grafana and MLAT doesn't work

Discussion in 'Hardware' started by John MI0SYN, Dec 27, 2019.

  1. John MI0SYN

    John MI0SYN New Member

    Hi all,

    I've some older RPi models around and considered using one for a remote site but it seems MLAT and Grafana won't work. ADSB feeds fine. Seems to be down to CPU type...


    Grafana needs arm7 CPU so the dashboard won't work (you'll see a connect failed when browsing to port 3000 because Grafana service won't run).
    Reference: https://community.grafana.com/t/grafana-wont-start-on-raspberry-pi/8525/9
    > The error is a result of trying to use your ARMv7 binary on ARMv6.
    > All the quad-core Pi’s (2, 3 and 3+) are v7 while the single-core (A, B, and Zero) are v6.
    > Installation works fine since Raspbian is “armhf”, however the binary will get a SIGKILL due to illegal instructions.
    This is what I saw in /var/log/daemon.log
    Dec 27 21:14:59 adsb1 systemd[1]: Started Grafana instance.
    Dec 27 21:14:59 adsb1 systemd[1]: grafana-server.service: Main process exited, code=killed, status=4/ILL
    Dec 27 21:14:59 adsb1 systemd[1]: grafana-server.service: Unit entered failed state.
    Dec 27 21:14:59 adsb1 systemd[1]: grafana-server.service: Failed with result 'signal'.
    Dec 27 21:14:59 adsb1 systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
    Dec 27 21:14:59 adsb1 systemd[1]: Stopped Grafana instance.
    Dec 27 21:14:59 adsb1 systemd[1]: Started Grafana instance.
    Dec 27 21:14:59 adsb1 systemd[1]: grafana-server.service: Main process exited, code=killed, status=4/ILL
    Dec 27 21:14:59 adsb1 systemd[1]: grafana-server.service: Unit entered failed state.
    Dec 27 21:14:59 adsb1 systemd[1]: grafana-server.service: Failed with result 'signal'.
    Dec 27 21:14:59 adsb1 systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
    Dec 27 21:14:59 adsb1 systemd[1]: Stopped Grafana instance.
    ...
    ...


    MLAT doesn't want to sync either - changing flash into newer hardware and it came back up quickly.

    So just logging further reference.

    Not sure if there's any value in just feeding ADSB so I'll probably buy a new Pi along with another AirNav USB and antenna.
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

  3. John MI0SYN

    John MI0SYN New Member

    Thanks. Didn't look into mlat-client issue yet, will try the image on an older Pi when I get a chance and report back.
    Standard Buster might be the way to go longer term (I'd prefer to spend money on another AirNav stick and Antenna... it boosted my rx range from 100km to 250-300km and it's still inside the loft)
     
  4. James

    James Guest

  5. John MI0SYN

    John MI0SYN New Member

    Thanks, had a look at the mlat-client and couldn't see where it's calling an arm7 binary - if it's the same issue perhaps it's a library somewhere.
    Anyway, looks like my spare Pi 1B+ units are underpowered for this job... will look into a Pi3 or 4 for the remote site when cashflow permits.
     
  6. James

    James Guest

    Where are you located? I might be able to send you a unit - if you promise to host it for ever and ever! :D
     
  7. John MI0SYN

    John MI0SYN New Member

    Thanks, I'm in Europe so probably cheaper to buy it locally. Time is probably more of a factor, the AirNav and antenna is half the spend anyway.

    Have DM'd my current location and the co-ords for proposed second site.Would appreciate your thoughts on the "value add" of that second site given it's ~7 miles from primary (but at a different altitude and we've hills in between blocking LoS so should see different things at lower plane altitudes).

    I'm mainly interested in tracking the local air ambulance take-offs so will likely turn my attention to the API for a while (and pay in some $... see there's a thread about monthly vs yearly so watching that to see what's more efficient first).
     
  8. James

    James Guest

    If you are serious about hosting one or more reliable feeds.

    Email me ( [email protected] and CC [email protected])

    They'll get you information and all the goodies. You'll just need to provide name, address, and get them up in 30 days.
     
  9. nicepix4u

    nicepix4u New Member

    I got it on my PI 2 b V1.3 running you just need to deinstall the grafana version what comes with the image and then install the correct one for your PI:

    sudo apt-get install -y adduser libfontconfig1
    wget https://dl.grafana.com/oss/release/grafana-rpi_6.7.1_armhf.deb
    sudo dpkg -i grafana-rpi_6.7.1_armhf.deb
     
    James likes this.
  10. James

    James Guest

    Well done! I thought that might be the work since I used packages.

    dump1090_exporter is also compiled but hopefully python doesn't care too much.

    His problem is different as it's Pi ZERO. A lot more issues with that.