Stats/jq spamming syslog when no aircraft present

Discussion in 'Feeding' started by asclepi, Jan 10, 2021.

  1. asclepi

    asclepi New Member

    My SD card was failing, so last week, I took a new SD card, installed the latest version of Raspberry OS, and installed the ADSBX software on that, along with the latest -stats software. I didn't copy anything from the old card, I installed everything fresh and configured all software as new. There have been no git commits for the -stats package since I did this.

    Whenever there are no aircraft detected, the -stats software starts spamming my syslog.

    adsbexchange-stats[390]: jq: error (at /run/adsbexchange-stats//json-AkUUQ19Jg7:5): null (null) number required

    It sends this error to the syslog about 30 times a minute. It stops doing that whenever an aircraft is received and starts doing it again when there are no more aircraft present. This means spamming mostly happens during the middle of the night, and the messages show up when I review the logs in the morning.

    This didn't occur in my previous -stats install on the old SD card, although I'm sure it wasn't running the latest version of -stats either.
     
  2. James

    James Guest

    Will look into it ... that's ... odd
     
  3. James

    James Guest

    Unable to recreate.

    Code:
    jq -c '.aircraft' aircraft.json 
    
    []
    
     
  4. James

    James Guest

    Ok I was able to recreate. Will look into it further.
     
  5. James

    James Guest

    Should be fixed. Update stats from github.
     
  6. asclepi

    asclepi New Member

    Can confirm it's fixed! No more spam.

    Thanks a lot!