KISS connection seems unstable #37
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: W1CDN/aprs_tool#37
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follows from #5.
Allegedly,
but experience with #30 suggests I'm not thinking about this right.
Might consider using aprs3 package instead? https://github.com/python-aprs/aprs3
Following from experiments around #30 (comment), maybe the issue is partly on the direwolf side? Sometimes it stops responding to connections at all.
Left it running since Saturday and now it appears to have been working? Weird.
Haven't seen a packet in this system in four days, but there should have been a bunch yesterday.
Trying to think of how to keep the connection alive without cron or some other timer. I would do "every n packets restart the connection," but I think even that would break eventually.
I guess there are options: https://stackoverflow.com/questions/22715086/scheduling-python-script-to-run-every-hour-accurately
Trying this
It looks like the reconnections have been happening, but didn't record this packet:
Replaced
BlockingScheduler
withBackgroundScheduler
per https://apscheduler.readthedocs.io/en/3.x/userguide.html#choosing-the-right-scheduler-job-store-s-executor-s-and-trigger-s.Going to wait and see if this error causes any problems or not. Although I'm not sure why this would happen if I'm calling
ki.stop()
.Still not working. May need to try
AsyncIOScheduler
, which I think is where the error is coming from.Seeing the same thing even with a pause between closing and reopening the connection, but the connection is obviously no longer there (doesn't show packets I just sent).
But the dw log also shows
KISS client application 0 has gone away.
when I kill the aprs_api process. So I don't really know what's up.Likely some more package collisions going on: #30 (comment)
I don't know if this is even an issue on the kiss connection side, or whether my code is just hanging. It might be related to inability to parse certain packets (like #32). Noticed that it just stopped responding today a few times (#38 (comment)). I think I previously thought this was because of a lack of connection, but in this example, the program didn't get to the next debug line, which would have been "Inserting into database".
from
aprs_api.log
:I took this far down the wrong path, and I think my observation in the last post is correct. At #38, I am adding log messages to track exactly what packets are causing the code to fail and I will work through those so it quits failing.