Skip to content
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]: Compatibility broken between OG (Mesh Chat v1.02) & (Mesh Chat v2.9) Lu #11

Open
mathisono opened this issue Nov 2, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@mathisono
Copy link

Contact Details

mathisono@gmail.com

Version

v2.9

System Type

AREDN node

What happened?

Compatibility broken between OG (Mesh Chat v1.02) for RPi & (Mesh Chat v2.9) Lua.

(Mesh Chat v2.9) Lua loaded on a Mesh node fails to display messages. Based on the attached photo (Mesh Chat v1.02) for RPi, dose receive the message. (Mesh Chat v2.9) Lua, fails to acknowledge.
image

Will not add Existing channel. on first message on a new node. Other meshchat nodes do recognize the message Channel.

image

Originating Meshchat web ui.

image

What browsers are you seeing the problem on?

No response

@mathisono mathisono added the bug Something isn't working label Nov 2, 2023
@hickey
Copy link
Owner

hickey commented Nov 2, 2023

Hey there @mathisono! Thanks for the bug report. I am just getting back from traveling across the US with the RV to final locate it in its new home. So it may take a couple days to really dig into this.

I can assure you that the method in which the message database is transferred between nodes is identical and fully interoperable between the 1.x and the 2.x code bases.

The first thought that I have on the problem you are seeing is that the time between the two instances running MeshChat is wildly different. I would have to look at the code to verify the exact time difference that is acceptable, but I think it is on the order of 30 days. In other words the time on the two nodes is greater than 30 days apart. This was written in by MeshChat's original author and I don't yet have an explanation as to why it is about 30 days.

I would refer you to the original issue that was created where this was discussed quite a bit, but it looks like @aanon4 has turned off issues on the old repository and that entire history and discussion is now lost.

When you have a moment can you determine what the time is set to on kj6weg-rpi and kj6dzb-cloudhub1?

Also, I suspect that kj6dzb-cloudhub1 is a Linux box/VM running v2.9 of MeshChat (at least that is what it looks like from the images). Is that box configured to point to and actual AREDN node that also has the meshchat-api installed?

@mathisono
Copy link
Author

mathisono commented Nov 2, 2023 via email

@hickey
Copy link
Owner

hickey commented Nov 4, 2023

Any help is always welcome. I believe that @csadams also had some thoughts/desire on developing documentation. You might want to reach out to him and sync up a bit. I would really like to see the documentation in the repo and maybe published with GitHub Pages?

Definitely feel free to create a feature request for collecting information and working on documenting external storage.

@csadams
Copy link
Collaborator

csadams commented Nov 4, 2023

l did write up instructions for installing MeshChat on a Raspberry Pi, including the fact that you have to install the old version (v1.02) on the Pi, and the new version (currently v2.9) API package on the connected node. It's currently this Doc: https://docs.google.com/document/d/1VEi6Moj8f4eBRtRizGgVMKeNO_EUr-Fdw2wJyFaq130/
I have not had time to do final review and testing, but if someone can test it and confirm that it all works, I would be happy to transfer it to someplace more public and permanent, like here on Github, on our Wiki or elsewhere.
And sorry, I don't know much about external storage on a hAP... haven't tried it.

@patruchon
Copy link

Here's an example of MeshChat v1.02 running on a Linux laptop (with v2.9 API on the hAPac3), vs MeshChat v2.8 running on a hAP. The messages synchronize, but the channels don't seem to:
MeshChatChannels

@hickey
Copy link
Owner

hickey commented Nov 28, 2023

@patruchon I believe that this is a known problem. I would have to go look at the code to be 100% certain, but the 2.x code base does not allow spaces in the channel names. This is primarily because all the messages reside in a single file where each line is a message and the channel is a "field" on the line. The way that the line gets tokenized could be why the channel is not allowed to have spaces in it.

Since this is not exactly the same sync problem that started this issue, I would suggest creating a new bug report so that the problem can be tracked and discussed further without confusing this issue.

@patruchon
Copy link

@hickey thanks for the reply, I added it in #21.
Cheers!

@n2mh
Copy link

n2mh commented Dec 2, 2023

Please check issue #15 for a possible behavior that I reported in that issue.

@mathisono
Copy link
Author

Glad to know every one is finding the new rep!!! Hope all the bug reporting, it can produces a new release, across all the deployment platforms. I will check on how USB storage adoption might fit into a later RC. Im looking to prolong the meshnodes flash memory, with a usable amount of data storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants