Fixes:
Alphabetical file list
File list column width changes
Fixes for long channel names
An attempt at stretch support. If someone has a pi to try this on that would be great.
To install on a PI:
copy file to your pi
dpkg -i /home/pi/meshchat_1.01_all.deb
You may be prompted if you want to keep your config, in most cases you want to keep your local config. Just check that mechschatconfig.pm has what you want in it after install.
Files:
https://s3.amazonaws.com/aredn/meshchat_1.01_all.deb
https://s3.amazonaws.com/aredn/meshchat_1.01_all.ipk
Let me know any problems you find. Thanks!
No problems updating. Just had to put the node back in the config. This is a Jesse pi.
Ian
Change the password for user 'pi'.
Create new user
Give new user the same groups as user 'pi'.
sudo apt-get update
sudo apt-get upgrade
Installed meshchat_1.0_all.ipk on node (Ooopps, fixed later.)
sudo apt-get install curl apache2
dpkg -i meshchat_1.01_all
Edited 'our $pi_zone=' to local usage.
Load meshchat from node into browser and logon.
Send test message:
"Error sending message: Could not get lock"
Logoff of meshchat.
sudo systemctl stop apache2
Edited /lib/systemd/system/apache2.service, set 'PrivateTmp=false'.
sudo systemctl start apache2
Node:
remove meshchat_1.0_all.ipk
install meshchat_1.01_all.ipk:
Installing meshchat (1.01) to root...
Applying service announcement
Mesh Chat has been setup at http://NC8Q-Loaner-locoM2-167:8080/meshchat
An advertised service has been added for Mesh Chat on the Services configuration page
Configuring meshchat.
Failed to restart all services, please reboot this node.
Rebooted node.
Success:
meshchat_1.01 loads current MESHCHAT messages from local AREDNMESH network.
Send message works.
\/
/\ fingers crossed.
3s, Chuck
Edited /lib/systemd/system/apache2.service, set 'PrivateTmp=false'.
sudo systemctl start apache2
If I read the OP correctly, weren't Stretch users supposed to not have to do that with 1.01?
https://github.com/tpaskett/meshchat/blob/master/src/pi/control/postinst
I backed out the Pi Stretch fixes I made awhile back and 1.01 is still working on 3.17.1.0RC1 with meshchat api 1.0
without the previous Stretch fixes.
Somehow I wound up with a .pm file with our $meshchat_path = "/tmp/meshchat";
instead of "/var/www/html/meshchat";
and a meshchatconfig-stretch.pm file I don't remember putting there... but I don't remember a lot these days...
Nice to have the channel field truncated... We're running a local zone, MVMchat, FWIW.
Thanks, Trevor!
Thanks for the update! I installed on my Raspberry Pi and everything looks good. Fixed the long channel names issue. (Thank you!!) Also Files section column widths look good for long file names! Alphabetical sorting is a nice feature too.
Sorry I don't have a stetch version of Raspbian (running on Wheezy) to try. Thanks again.
The test for 9.0 is too restrictive as 9.4 is the current stretch release.
When I modified the /etc/debian_version to 9.0 I get this
Setting up meshchat (1.01) ...
cp: cannot stat '/usr/lib/cgi-bin/mechchatconfig-stretch.pm': No such file or directory
I saw that there is a type-o in the filenames "mechchatconfig" should be "meshchatconfig" ??
if grep -Fxq "9.0" /etc/debian_version
-Craig
https://s3.amazonaws.com/aredn/meshchat_1.02_all.deb
https://s3.amazonaws.com/aredn/meshchat_1.02_all.ipk
pi@ki5aax-pi:~ $ sudo dpkg -i /tmp/meshchat_1.02_all.deb
(Reading database ... 106060 files and directories currently installed.)
Preparing to unpack /tmp/meshchat_1.02_all.deb ...
Unpacking meshchat (1.02) over (1.01) ...
Setting up meshchat (1.02) ...
pi@ki5aax-pi:~ $
thanks!
Thanks for the instructions. I had the "Error sending message: Could not get lock" problem.
Followed your instructions on a RPi 3 with Buster and everything seems good.
Using MeshChat 1.02 on NS M2.
Don, KM4DC
We've been using Mesh Chat for Davis County, UT for a while now. Running v1.02 on a node. Last week we noticed that many months of messages were gone. There were a bunch of messages sent during our ARES net last week after we discovered the first set of messages gone. A few days after these new messages were posted, they also disappeared. Any suggestions on troubleshooting? It appears from the node page there is memory available on the node (a Nanostation NS2).
free spaceflash = 1416 KB
/tmp = 13928 KB
memory = 3312 KB
Thanks for your help and suggestions.
K7BBR - Brandon
You mentioned that you have it installed "on a node". You probably already know this, but the entire MeshChat textfile of messages (database) is based in memory which gets reset when a node is power-cycled. However, if another node, connected by RF, has the exact same zonename it will have an automatically sync'd copy and your node will repopulate its database from that shortly after it powers back up and connects by RF. That database (typos and all) will survive as long as at least one connected zonename node stays powered up. If all instances are powered down, it will be lost. Some use Raspberry Pi installs to overcome this for single node installs.
HTH,
- Don - AA7AU (who generally has several instances running concurrently just to be safe and archived)
Don - Thanks for the reply. Makes sense now that the memory doesn't persist when the node is reset. I didn't realize that about Mesh Chat and the node memory. In the past we had as many as 5 instances of Mesh Chat on 5 nodes plus a Raspberry Pi. That seemed to be too many for our instance, in that the nodes would talk back and forth and slow things down. Looks like at least 2 instances would be good so we have message backup. We'll get another instance spooled up. It's a great program and tool for our group. Thank you!
Brandon - K7BBR
/tmp = 13928 KB
memory = 3312 KB
The /tmp file system space where meshchat messages are stored is defined to be a fixed and given size. Of this size, we see how much space is remaining. However, since /tmp space is also physcially in RAM, it additionally is limited by how much RAM is available. In this case with 3.3M of RAM remaining, the node has limited space to function.
All the functions of the device including ,meshchat messages, routing, responding to UI requests, and more are using this limited RAM. One possible explanation is during a busy point in time, /tmp could not allocate space and some of the messages were lost (and there wasn't another meshchat instance to sync back with).
Joe AE6XE
Thanks for your reply and for your hard work on the AREDN firmware!
Brandon - K7BBR
The RF "chatter" between different instances of Meshchat using the same zonename is basically swapping a hash-code based on database size. Way less than OLSR chatter. If no messages have been added (individual messages cannot be deleted), there is no additional "synch" traffic. When you bring up a node which has been powered down, it may take a minute or two for it to get a new copy of the database. But remember that is simply text and not terribly large, less than the size of a very small image (a year of ours is less than 50k of text but it's not terribly active). Download your own copy and look at it. Meshchat defines Total Storage: 512.0 KB
Of course, I defer to Joe on the technicallities on all this - his advice is always spot on.
HTH,
- Don - AA7AU