-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure after TLS issue #168
Comments
I am seeing the same - have enabled the autoheal container to trigger restarts for now |
Ok so ... i'm not sure but possibly we could just make a watchdog for this container that watches the piaware process. How regular is the log output? |
I'll aim to grab a log output - just upgraded the container a couple of hours back so the current log is gone. 2024-06-11 08:50:19+0100 [ INFO] [piaware (8fb95a0ab823)] Container restart was successful 2024-06-11 11:50:25+0100 [WARNING] [piaware (8fb95a0ab823)] Container is unhealthy with 3 failures 2024-06-11 11:50:25+0100 [WARNING] [piaware (8fb95a0ab823)] Container last output: [1] No connection to Flightaware, NOT OK. 54227 dump1090 messages sent in past hour, OK. Webserver listening on port 80, OK. Webserver listening on port 8080, OK. 2024-06-11 11:50:25+0100 [WARNING] [piaware (8fb95a0ab823)] Container restarting with 10s timeout 2024-06-11 11:50:28+0100 [ INFO] [piaware (8fb95a0ab823)] Container restart was successful 2024-06-11 13:20:35+0100 [WARNING] [piaware (8fb95a0ab823)] Container is unhealthy with 3 failures 2024-06-11 13:20:35+0100 [WARNING] [piaware (8fb95a0ab823)] Container last output: [1] No connection to Flightaware, NOT OK. 57745 dump1090 messages sent in past hour, OK. Webserver listening on port 80, OK. Webserver listening on port 8080, OK. 2024-06-11 13:20:35+0100 [WARNING] [piaware (8fb95a0ab823)] Container restarting with 10s timeout 2024-06-11 13:20:38+0100 [ INFO] [piaware (8fb95a0ab823)] Container restart was successful 2024-06-11 14:20:45+0100 [WARNING] [piaware (8fb95a0ab823)] Container is unhealthy with 3 failures 2024-06-11 14:20:45+0100 [WARNING] [piaware (8fb95a0ab823)] Container last output: [1] No connection to Flightaware, NOT OK. 28553 dump1090 messages sent in past hour, OK. Webserver listening on port 80, OK. Webserver listening on port 8080, OK. 2024-06-11 14:20:45+0100 [WARNING] [piaware (8fb95a0ab823)] Container restarting with 10s timeout 2024-06-11 14:20:48+0100 [ INFO] [piaware (8fb95a0ab823)] Container restart was successful 2024-06-11 15:50:55+0100 [WARNING] [piaware (8fb95a0ab823)] Container is unhealthy with 3 failures 2024-06-11 15:50:55+0100 [WARNING] [piaware (8fb95a0ab823)] Container last output: [1] No connection to Flightaware, NOT OK. 56664 dump1090 messages sent in past hour, OK. Webserver listening on port 80, OK. Webserver listening on port 8080, OK. 2024-06-11 15:50:55+0100 [WARNING] [piaware (8fb95a0ab823)] Container restarting with 10s timeout 2024-06-11 15:50:58+0100 [ INFO] [piaware (8fb95a0ab823)] Container restart was successful 2024-06-11 17:11:05+0100 [WARNING] [piaware (8fb95a0ab823)] Container is unhealthy with 3 failures 2024-06-11 17:11:05+0100 [WARNING] [piaware (8fb95a0ab823)] Container last output: [1] No connection to Flightaware, NOT OK. 50810 dump1090 messages sent in past hour, OK. Webserver listening on port 80, OK. Webserver listening on port 8080, OK. 2024-06-11 17:11:05+0100 [WARNING] [piaware (8fb95a0ab823)] Container restarting with 10s timeout 2024-06-11 17:11:09+0100 [ INFO] [piaware (8fb95a0ab823)] Container restart was successful 2024-06-11 17:51:15+0100 [WARNING] [piaware (8fb95a0ab823)] Container is unhealthy with 3 failures 2024-06-11 17:51:15+0100 [WARNING] [piaware (8fb95a0ab823)] Container last output: [1] No connection to Flightaware, NOT OK. 9632 dump1090 messages sent in past hour, OK. Webserver listening on port 80, OK. Webserver listening on port 8080, OK. 2024-06-11 17:51:15+0100 [WARNING] [piaware (8fb95a0ab823)] Container restarting with 10s timeout 2024-06-11 17:51:18+0100 [ INFO] [piaware (8fb95a0ab823)] Container restart was successful 2024-06-11 19:11:25+0100 [WARNING] [piaware (8fb95a0ab823)] Container is unhealthy with 3 failures 2024-06-11 19:11:25+0100 [WARNING] [piaware (8fb95a0ab823)] Container last output: [1] No connection to Flightaware, NOT OK. 52173 dump1090 messages sent in past hour, OK. Webserver listening on port 80, OK. Webserver listening on port 8080, OK. 2024-06-11 19:11:25+0100 [WARNING] [piaware (8fb95a0ab823)] Container restarting with 10s timeout 2024-06-11 19:11:34+0100 [ INFO] [piaware (8fb95a0ab823)] Container restart was successful` |
Grabbed the error in the log from today: [piaware] 2024/06/12 16:59:00 piaware has successfully sent several msgs to FlightAware! You only get the one error output then it dies. Restart of container starts a fresh log |
So using the log is suboptimal and possibly using the this file is an option for a watchdog.
Can you check if this file changes after the error happens? Edit: According to the patch comments on the FA repo, the whole process hangs. Edit2: watchdog added, image building now. |
possible workaround for sdr-enthusiasts#168
* add watchdog possible workaround for #168 * add PIAWARE_MINIMAL mode without maps
@Ottergoose so this watchdog is in adsb.im beta now. How often does this issue happen?
This would be in the log when the watchdog restarts piaware. Anyhow please report back and / or close this issue :) |
I will update and report back if issue happens again, thank you! |
I will keep an eye on the logs and see - turning off auto heal for now too. |
Looking good - it detected a drop and restarted. |
You got a log, was it the TLS error? Interesting that you got the error so quick, i've never seen it :) |
Yes:
|
@Ottergoose |
Currently running Running ADS-B Feeder Image v1.1.9-beta.1(beta) with containers from 2024-01-25T18:40:21-06:00, running on Raspberry Pi 3 Model B Plus Rev 1.3. adsb-im-raspberrypi64-v1.1.4.img; I assume it has the latest version of this software.
I noticed FlightAware said I wasn't feeding data for a few hours, and checked my logs; it looks like a TLS issue tripped things up, and it was unable to recover until I rebooted. After this happened, no data was going to FlightAware, and my CPU usage bumped way up.
07:29:43 AM [piaware] 2024/02/04 07:29:43 TLS alert (read): bad record mac
07:29:43 AM [piaware] 2024/02/04 07:29:43 TLS error: 0
07:29:43 AM [piaware] 2024/02/04 07:29:43 Lost connection to adept server at piaware.flightaware.com/1200: error reading "sock559fd35b60": software caused connection abort
Hope this helps, thank you for your work!
The text was updated successfully, but these errors were encountered: