-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Bug]: Messages not dropping from the MashChat db #16
Comments
Additional info: Zone=MeshChat The reported issue can be found on several nodes in this zone. |
Thank you @N5MXI for the bug report. I have pulled out the offending message entries for further analysis.
The first two lines are valid, but the remaining lines are the ones that are not being removed from the DB. Now that I see the entries I have a better understanding of what is going on with those entries. The timestamp that is there (14557688943) is a 34 bit number. The UNIX timestamp is only 32 bits long. I am willing to make a bet that the 2 most significant bits are being masked off some where and the resulting timestamp is 1672787055--although something else is amiss as that timestamp is earlier than all the rest of the timestamps in your DB. Because of the oversized timestamp, they will never be purged from the DB. Since they were all created by N2MH, I will contact him to see if he has fixed his code or at least apprise him of the problem. Unfortunately, the only way to get these messages out of the DB is to purged the messages from all MeshChat instance DBs. It is a bunch of work and may be easier to just wipe the DB on each instance. |
For reference, this is what @N5MXI was seeing on his MeshChat instance that produced this issue. Originally reported in https://www.arednmesh.org/content/purge-old-meshchat-messages ![]() |
@n2mh, I will be contacting you out of band on this issue. |
Contact Details
[email protected]
Version
v1.x
System Type
Linux
What happened?
AREDN v.3.23.8.0
API on Mikrotik node: mesh-api_2.9_all.ipk
MeshChat on R pi: meshchat-api_1.02_all.ipk
Issue: Messages dated in the future are not purged from the list. This causes new messages to appear lower in the list are are sometimes difficult to find.
messages.MeshChat.txt
What browsers are you seeing the problem on?
Chrome
The text was updated successfully, but these errors were encountered: