I’ve been having random feed stoppages (site #42787) ever few days or weeks since last September. I’ve replaced the charger (CanaKit) with a new first thinking it might be failing but no joy. Then I replaced the Raspberry PI 3 board with a new Raspberry 4 board thinking it was failing but it still behaves the same way. This evening after about 3 days of use the feed stopped again. while this is all occurring, PiAware Skyware has continuously worked fine.
Each time it happens I shh into it and issue a systemctl restart piaware command to get it going again.
I just bought a replacement Blue stick but I haven’t installed it yet since I’m not sure that will fix it.
Given that I still see activity in SkyAware I not sure it is a network issue. I do have another Raspberry with Piaware for tracking 978 MHz signals and it does not have this issue. Both are on the same wired network.
When I replaced the Raspberry PI for the site 42787, I had to associate it with the config lines with the feeder site and id.
just saw this after I restarted. Will do it again before I do a restart next time.
In the meantime I’m copying the instance where the connection failed below from the piaware.log in case this is of help:
Feb 16 08:07:53 piaware piaware[15433]: 352296 msgs recv’d from dump1090-fa (5720 in last 5m); 352296 msgs sent to FlightAware
Feb 16 08:12:36 piaware piaware[15433]: NOTICE from adept server: 13% of multilateration messages (UDP) are not reaching the server - check your network?
Feb 16 08:12:53 piaware piaware[15433]: 361912 msgs recv’d from dump1090-fa (9616 in last 5m); 361912 msgs sent to FlightAware
Feb 16 08:17:53 piaware piaware[15433]: 368920 msgs recv’d from dump1090-fa (7008 in last 5m); 368920 msgs sent to FlightAware
Feb 16 08:18:21 piaware piaware[15433]: Lost connection to adept server at piaware.flightaware.com/1200: server closed connection
Feb 16 15:38:58 piaware piaware[15375]: creating pidfile /run/piaware/piaware.pid
If you trust me, and are ready to face (remote) chance of re-imaging your microSD card if something breaks down, then you can install the latest version (1.7.22) of tcl-tls package. This package I have rebuilt using Flightaware source-code with workaround for the bug mentioned by @obj, after upgrading it from ver 1.7.16 to 1.7.22,
## First install needed dependency package
sudo apt install libtcl8.6
## If your OS is Bullseye:
wget https://github.com/abcd567a/tcltls-rebuild/releases/download/v1/tcl-tls_1.7.22-1+fa1_armhf.deb
sudo dpkg -i tcl-tls_1.7.22-1+fa1_armhf.deb
sudo apt-mark hold tcl-tls
sudo reboot
## if your OS is Buster
wget https://github.com/abcd567a/tcltls-rebuild/releases/download/v1/tcl-tls_1.7.22-1+fa1.bpo10+1_armhf.deb
sudo dpkg -i tcl-tls_1.7.22-1+fa1.bpo10+1_armhf.deb
sudo apt-mark hold tcl-tls
sudo reboot
Feb 22 17:18:18 piaware piaware[530]: mlat-client(6159): Aircraft: 76 of 122 Mode S, 75 of 111 ADS-B used
Feb 22 17:18:36 piaware piaware[530]: 10490037 msgs recv’d from dump1090-fa (12776 in last 5m); 10487686 msgs sent to FlightAware
Feb 22 17:23:36 piaware piaware[530]: 10502312 msgs recv’d from dump1090-fa (12275 in last 5m); 10499961 msgs sent to FlightAware
Feb 22 17:28:36 piaware piaware[530]: 10514194 msgs recv’d from dump1090-fa (11882 in last 5m); 10511843 msgs sent to FlightAware
Feb 22 17:33:18 piaware piaware[530]: mlat-client(6159): Receiver status: connected
Feb 22 17:33:18 piaware piaware[530]: mlat-client(6159): Server status: synchronized with 451 nearby receivers
Feb 22 17:33:18 piaware piaware[530]: mlat-client(6159): Receiver: 869.8 msg/s received 262.1 msg/s processed (30%)
Feb 22 17:33:18 piaware piaware[530]: mlat-client(6159): Server: 0.1 kB/s from server 0.1kB/s TCP to server 2.6kB/s UDP to server
Feb 22 17:33:18 piaware piaware[530]: mlat-client(6159): Results: 15.4 positions/minute
Feb 22 17:33:18 piaware piaware[530]: mlat-client(6159): Aircraft: 68 of 141 Mode S, 80 of 119 ADS-B used
Feb 22 17:33:36 piaware piaware[530]: 10527058 msgs recv’d from dump1090-fa (12864 in last 5m); 10524707 msgs sent to FlightAware
Feb 22 17:37:27 piaware piaware[530]: Lost connection to adept server at piaware.flightaware.com/1200: server closed connection
pi@piaware:/var/log $`
My current build of piaware is 7.1. Looks like the new Raspberry 4 board came with Buster. I’ll your rebuild it a try tonight.
This is “normal” in that the internet being the internet, sometimes connections fail. The bug is that piaware should be automatically reconnecting at this point, but instead it just stops doing anything until restarted (probably due to the tcl-tls bug, which manifests as a hang within the tcl-tls code on disconnection in specific cases). Normally, you’d see reconnection attempts logged after the disconnect.