You are here

MeshChat 2.9 would not re-install after 3.23.12.0

25 posts / 0 new
Last post
K7EOK
MeshChat 2.9 would not re-install after 3.23.12.0

Hi everyone,

I spent the afternoon moving some nodes to 3.23.12.0 ... some were a sysupdate from 3.23.8.0 and some were a complete re-install from earlier versions to avoid dangerous upgrade.

On all the nodes that updated (Mikrotik QRT5, BaseBox5, various SXTs) the existing MeshChat 2.8 went away as often happens but the port forwarding stayed in place which also seems to be normal.  OK, no worries has happened before, need to remove meshchat, reboot, install meshchat, fix the advertised name, reboot ... like before

The latest MeshChat was 2.9 and when I installed that it would not install at all.  Never got past the upload package and ended up finding some old files of MeshChat 2.8 which immediately and easily re-installed.

So I can't get the 2.9 to work.  Part of the mystery is that when I went to uninstall the package 2.8 as part of re-installation ... there was no MeshChat 2.8 anywhere on the package list after updating the firmware.

Weird.  At least it's all up and running but something is not playing nice with something else.

73,  Ed
 

KY4G
Problems with any meshchat version beyond 2.0

I recently ordered a Mikrotik LDF2 and converted it to an AREDN node using the 3.23.12.0 build.  I tried installing the latest meshchat (2.9) and got the following error: Collected errors: * pkg_init_from_file: Malformed package file /tmp/web/upload/newpkg.ipk.  I got the same error message going back to previous builds from 2.8 all the way back down to v2.4.  I also tried v2.2 which gave the same behavior.  I was able to get meshchat_2.0_all.ipk to upload successfully.  What device were you using Ed?  I'm curious how you got v2.8 to load and if I am the only other one having problems like this.

73,
Stephen - KY4G

Image Attachments: 
K7EOK
Hi Stephen,

Hi Stephen,

I can recall several things.  First I believe the 2.9 is for server based installations, all of my node based installations are 2.8 version.  I might be missing some nuance here but that is what I have now.

The process sometimes requires a complete removal of the package, reboot, install the package.  There might be some stray files that sometimes have to be removed using ssh access to the file system.  I don't recall perfectly right now.

The thing that messed me up the most is github itself.  I am new to using github, and it turns out there are multiple places with a hyperlink that appears to be where you download the package ... but most just return empty files and not the actual package.  It's not intuitive as I see it.  Once I found the correct hyperlink and downloaded the correct file, everything went smoothly.  FWIW my stored package waiting for use ... meshchat_2.8_all.ipk is 63KB size. 

Ed
 

W7FCL
W7FCL's picture
Hi Ed,
Hi Ed,
I'm coming up empty finding meshchat-api_2.8_all.ipk.  Can you point me to the correct location?
Thanks in advance,
Eric
K7EOK
I guess they are now on 2.9 .
I guess they are now on 2.9 ... I can't keep up.    What is the status of your install?    When I have the malformed package message that usually means the download was from the wrong link on the github and had no content.   Ed
W7FCL
W7FCL's picture
Hi Ed,
Hi Ed,

I was able to install 2.9, however the chat messages don't show up as you'd expect in the lower part of the screen.  I then uninstalled 2.9, and am looking for a previous installation to try and see if that fixes it.

Thanks!
Eric
WT0F
There is virtually no
There is virtually no difference between the 2.8 and 2.9 versions of MeshChat. There was a bug fix to correct the the listing of files on remote hosts during the syncing process. This patch would not affect the transfer of chat messages between MeshChat instances.

Did you see messages at all? Or were there never any messages? Was meshchatsync running in the background?

73
--
Gerard, WT0F
 
nc8q
nc8q's picture
meshchat_1.02 and meshchat-api_2.9
Hi, Eric: You need meshchat-api_2.9_all.ipk installed on the node hosting the meshchat service. If the meshchat service is installed on the node, you need meshchat_1.02-lua_all.ipk installed on the node (with recent AREDN firmware). If the meshchat service is installed on a host computer, you need meshchat_1.02_all.deb installed on the computer. I hope this helps. Chuck
nc8q
nc8q's picture
Meshchat

There are several meshchat_y.x(.ipk/.deb) programs
One for the Raspberry Pi or any computer running Debian OS.
Some for AREDN nodes running earlier firmware <= 3.22.1.0, written in perl.
Some for AREDN nodes running more recent firmware => 3.22.6.0, written in lua.

The node may have meshchat-y.x.ipk program installed or be linked to a RPi or computer running meshchat_y.x.deb .
The node hosting a meshchat_y.x (internal or external) must have a meshchat-api_y.x_all.ipk installed.
I think.

73, Chuck

 

kf7yrs
Having problems finding the MeshChat version for raspbery pi
Hi,  We're starting a new mesh in SW Utah.   Right now we have a "tunnel mesh" where 8 or so Miktotik hAPs are connected to server by internet.   Our RF nodes are going up but the tunnel mesh was a fast way to get some Aredn basic training and explore services.  We plan to be almost totally RF connected in  a month or two.   I've got meshchat_2.9_all.ipk (from the KN6PLV Github) running on a few nodes (hAPs) and it seems to work well.  We also have a Winlink Telnet Post Office running on a  Windows server.  I would like to make a Raspberry Pi meshchat server to store and transfer larger files but can not find the right version of meshchat to download now that the Amazon servers are gone.   Can you or anyone else point me in the right direction?

Thanks,  Lee
WT0F
Welcome Lee,
Welcome Lee,

At this point you are limited to using MeshChat v1.02 on the Raspberry Pi. In doing so, you will need to load the MeshChat API package (any of the v2.x versions should work well enough) on one of the hAPs. Or actually quite simply run MeshChat v2.9 on a hAP like you have now and point the AREDN node in the config file on the Raspberry Pi. I forget the configuration variable name, but it is something like api_host.

Now in saying that, in a while I will be working on getting MeshChat updated for Linux based installs without the need of installing the API package on an AREDN node. This will eliminate the need to produce a seperate API package. This will also allow all MeshChat installs to finally be on the same code base and receive the same bug fixes.

I was hoping to have the v2.10.0 release of MeshChat back in early December, but it was a perfect storm of the holiday season, getting married and getting sick that has significantly delayed the release. Lately the preparations for Hamcation have been occupying much of my time and so the release probably will not happend until after Hamcation. Once that is done I will be able to make the changes to allow MeshChat (LUA version) to run on Linux which will go into 2.11.0. Actually a good amount of the work was done in my AAMM package so it should come pretty quickly as it will be mostly just bringing over code changes from that package.

73
Gerard, WTØF

 
kf7yrs
Thanks for the quick reply and update
Thanks Gerard, the MeshChat future looks bright, thanks to your efforts.   Since I am trying to "sell" my fellow hams on the utility of the Aredn mesh, I need to provide them with examples of how it might be used, and used by those who are "computer averse".     MeshChat is so darn easy to use it is ideal for that purpose, however the memory on the node itself is not enough for the high resolution pictures they would like to transfer, to the EOC for example.    I thought an RPi server would be a better example, and would be glad to start with v1.02, if I could only find a place to download it from.   The links on Trevor's page point to an Amazon server that has been recently shut down, I think.   I would later upgrade to your improved version.   Any idea where in github or anywhere else I could find the current RPi version?    Thanks! 
WT0F
Yes, the beauty of MeshChat
Yes, the beauty of MeshChat is that anyone can participate at any time without having to create an account. This can be invaluable during an activation or deployment when there are operators participating that have never really paid attention or used MeshChat. MeshChat also accelerates at easy/automatic replication of the message database among the nodes so that the entire database stays robust and available.

Now as far as the amount of diskspace available on a hAP, you can mount a USB flash drive on the hAP and move the message database and file storage to the USB drive. This may be the short term solution for you.

Something to keep in mind is that the files stored on a MeshChat server does not replicate to the other MeshChat servers. Just the metadata about the files is replicated between the servers. So when you see a file on a remote MeshChat server it is just a link to the original file on the original MeshChat server. This can be a single point of failure, but just something to be aware of.

The MeshChat v1.02 distribution can be found on K7FPV's website for the orignal version of MeshChat. https://www.trevorsbench.com/meshchat-messaging-for-mesh-networks/

73
Gerard, WT0F
nc8q
nc8q's picture
find the right version of meshchat*.deb for raspberry
"Raspberry Pi meshchat server to store and transfer larger files but can not find the right version of meshchat to download"

Hi, Lee:

caveat emptor
kf7yrs
Thanks for the link and the education!
Hi Gerard and Chuck, 

Thanks for the links, and the helpful MeshChat tips.   I wondered how I might use the USB port on the hAP.   

I really appreciate the Aredn help this forum provides.    
73
Lee
WT0F
I think that this is probably
I think that this is probably the best documentation at the moment: https://www.arednmesh.org/content/howto-meshchat-mikrotik-hap-using-extr...

73
Gerard, WT0F

 
nc8q
nc8q's picture
Off topic
"  I wondered how I might use the USB port on the hAP.   "
Off topic.
However,
https://www.arednmesh.org/content/challenges-mounting-usb-drive-mikrotik...

73, Chuck

 
nc8q
nc8q's picture
Can you or anyone else point me in the right direction?
" I would like to make a Raspberry Pi meshchat server to store and transfer larger files but can not find the right version of meshchat to download now that the Amazon servers are gone. Can you or anyone else point me in the right direction?"

Originally titled: "Having problems finding the MeshChat version for raspbery pi"

Reference: https://www.arednmesh.org/comment/22884#comment-22884

Lee:

Was your question answered?

73, Chuck
kf7yrs
Yes, thanks!!!
Looks like our posts "crossed in the mail".   
kf7yrs
I think I'm close to having MeshChat on the RPi
Hi, I'm back...  I've made a lot of progress getting a Pi 3B+ with Apache2 and meshchat_1.02_all.deb in place on the Pi. It took a couple days to find a raspian distro that would work (2023-12-05-raspios-bookworm-armhf-full.img) .   I put the Lua .api in the node and followed the directions on Trevor's Bench installing the Apache and meshchat programs error free.   I edited the two lines in the meshchatconfig.PM file. 

our $pi_zone   =  'Big File Meshchat';
our $local_meshchat_node    = 'KF7YRS-QTH-6';   (The hAP (LAN port) the pi connects to via Ethernet )

I advertised "Big File Meshchat" on my hAP connected to our local "tunnel mesh".   When I click on the link, it takes me to the "Apache2 Debian Default Page" which is presumably in the Pi.  Browsing to the Pi's ip address goes to this same page.  This was unexpected and I am bit stuck, any suggestions?   Is this normal?  I attached images that might help explain what I've done.   Maybe there is something I need to do to get past the Apache default page, or maybe I need to point the Pi-based meshchat toward the node-based api program?  Thanks...
 
Image Attachments: 
nc8q
nc8q's picture
MeshChat web pages folder
Hi, Lee:

You set your advertised page to the root directory of your HTML server and
that is exactly where your web browser went. :-|

My MeshChat web pages reside in a folder under the default HTML directory.
/var/www/html/meshchat

I also recommend that you set
our $local_meshchat_node    = localnode.local.mesh
so that you can more easily move this RPi server to any
node in your network.

73, Chuck

 
Image Attachments: 
kf7yrs
Thanks Chuck! - fixed my problem!
That worked and now Meshchat on the RPi is functional.    I also took your advice and changed the way the node was specified to be more general.   

Now I think I need to change some lines in the meshchatconfig.pm file to expand the file storage space from the default.  The current "$max_messages_db_size =500", I think that means 500 messages...should be enough.     The entry  "$max_file_storage  = 2 * 1024 * 1024;"  seems like the place to increase the acceptable file size and storage area, but I don't understand the format.    My goal is to use much of the 32 GB Pi SD card for file storage, any suggestions on how this is might be accomplished?   Maybe a USB memory stick would be a better idea.  Thanks again, 
Image Attachments: 
WT0F
The max_file_storage is
The max_file_storage is specified as number of bytes if I remember correctly. So the value of 2 * 1024 * 1024 should be 2 MB.

32 GB is not always 32 GB, so I would suggest that you set the value to 31.5 GB. That is unless you get the exact size and set the max_file_storage for that. So  you should be fine if you use 31.5 * 1024 * 1024 * 1024. Alternatively you could say 31.5 * 1024^3 (I think that is valid Perl expression). 

73
Gerard, WT0F
 
kf7yrs
Thanks,
Thanks Gerard!    I thought that was the line to change, but did not understand the formatting.   Your  examples will help a lot, and I learned something.

Lee
K7EOK
Now that's a different
Now that's a different problem.  You need to search the forum for some older threads about MeshChat instances syncing with each other.   I thought this was about the package not installing.  In our local mesh, we have 2.8 and 2.9 co-existing on various nodes just fine.

It can take quite a long time for a new installation to fully sync with others, and the advertised names have to match.  If you have been installing, un installing ... the files might need to be purged by a reboot after each step.

Ed
 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer