N1obu
March 28, 2024, 9:43am
1
I just watched Jonathan’s YT video about Meshtasticd on the RPi. I’ve ordered my HAT and now I wait.
I’m preparing my RPi. The video discusses accessing Meshtastic through the webpage, but the video (nor online documentation) discusses setting up a Webserver. Do I need to get Apache running first?
1 Like
Presumably, you’re talking about this video from Jonathan Bennett. Based off of what’s shown , I would assume that you don’t need to spin up a separate web server – it appears meshtasticd
runs its own webserver (the video shows “Port: 443” in the config file, and a “RootPath” entry, both hinting that meshtasticd
runs its own webserver).
1 Like
Hi and thanks to all who have contributed to Meshtastic and a special thanks to the creators of Portduino and meshtasticd.
I am debugging a problem in which the meshtasticd process crashes about every 75 minutes. I see the same behavior on two different Raspberry Pi devices, each running meshtasticd. I’ve set the meshtasticd LogLevel in /etc/meshtasticd/config.yaml to ‘debug’ and I notice a huge stream of empty meshtasticd INFO and DEBUG log messages that seem to lack newline characters and that have nonsensical time stamps such as ??:??:??, 02:44:41, and 15:38:14 on a log entry line from 08:57:41 . This one log entry line is 9577 characters long. Perhaps this is the result of a C string that was not properly terminated?
To see this, scroll to the right below. Hopefully the problem can be found and fixed easily.
Configuration
Device 1
Raspberry Pi 3 Model B Rev 1.2
OS: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.6.20+rpt-rpi-v8
meshtasticd_2.3.8.d490a33
LogLevel: debug
Using Adafruit LoRa Bonnet
Device 2
Raspberry Pi 4 Model B Rev 1.5
OS: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.6.20+rpt-rpi-v8
meshtasticd_2.3.8.d490a33
LogLevel: debug
Using Dragino LoRa + GPS HAT
Thanks.
Bob
Long log message is the last one – scroll right:
May 08 08:37:55 meshtastic-repeater meshtasticd[17751]: INFO | ??:??:?? 0 Initializing NodeDB
May 08 08:37:55 meshtastic-repeater meshtasticd[17751]: INFO | ??:??:?? 0 Loading /prefs/db.proto
May 08 08:37:55 meshtastic-repeater meshtasticd[17751]: INFO | ??:??:?? 0 Loaded /prefs/db.proto successfully
May 08 08:37:55 meshtastic-repeater meshtasticd[17751]: INFO | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 20
May 08 08:37:55 meshtastic-repeater meshtasticd[17751]: INFO | ??:??:?? 0 Loading /prefs/config.proto
May 08 08:43:30 meshtastic-repeater sudo[17972]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/journalctl -u meshtasticd.service -S today --follow
May 08 08:43:30 meshtastic-repeater sudo[17972]: pam_unix(sudo:session): session opened for user root(uid=0) by pi(uid=1000)
May 08 08:44:17 meshtastic-repeater sudo[17972]: pam_unix(sudo:session): session closed for user root
May 08 08:57:41 meshtastic-repeater meshtasticd[17751]: INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 DEBUG | ??:??:?? 0 DEBUG | ??:??:?? 0 INFO | ??:??:?? 0 DEBUG | ??:??:?? 0 DEBUG | ??:??:?? 0 DEBUG | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 DEBUG | ??:??:?? 0 DEBUG | ??:??:?? 0 INFO | ??:??:?? 0 DEBUG | ??:??:?? 0 DEBUG | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 DEBUG | ??:??:?? 0 DEBUG | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 DEBUG | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 DEBUG | ??:??:?? 0 DEBUG | ??:??:?? 0 INFO | ??:??:?? 0 DEBUG | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 0 INFO | ??:??:?? 30 INFO | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 INFO | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 30 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 32 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 33 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 INFO | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 INFO | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 DEBUG | ??:??:?? 34 INFO | ??:??:?? 34 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 35 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 INFO | ??:??:?? 37 DEBUG | ??:??:?? 37 INFO | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 INFO | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 37 DEBUG | ??:??:?? 38 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 INFO | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | ??:??:?? 56 DEBUG | 02:44:41 56 INFO | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 INFO | 15:38:14 56 DEBUG | 15:38:14 56 INFO | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 INFO | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 56 DEBUG | 15:38:14 57 DEBUG | 15:38:15 58 DEBUG | 15:38:15 58 DEBUG | 15:38:15 58 DEBUG | 15:38:15 58 DEBUG | 15:38:15 58 DEBUG | 15:38:15 58 DEBUG | 15:38:15 58 DEBUG | 15:38:15 58 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 INFO | 15:38:27 70 DEBUG | 15:38:27 70 INFO | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 INFO | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:27 70 DEBUG | 15:38:28 70 DEBUG | 15:38:29 72 DEBUG | 15:38:29 72 DEBUG | 15:38:29 72 DEBUG | 15:38:29 72 DEBUG | 15:38:29 72 DEBUG | 15:38:29 72 DEBUG | 15:38:29 72 DEBUG | 15:38:29 72 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 INFO | 15:38:40 82 DEBUG | 15:38:40 82 INFO | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 DEBUG | 15:38:40 82 INFO | 15:38:40 82 DEBUG | 15:38:40 83 DEBUG | 15:38:40 83 DEBUG | 15:38:40 83 DEBUG | 15:38:41 83 DEBUG | 15:38:42 84 DEBUG | 15:38:42 84 DEBUG | 15:38:42 84 DEBUG | 15:38:42 84 DEBUG | 15:38:42 84 DEBUG | 15:38:42 84 DEBUG | 15:38:42 84 DEBUG | 15:38:42 84 DEBUG | 15:39:16 118 DEBUG | 15:39:16 118 INFO | 15:39:16 118 INFO | 15:39:16 118 DEBUG | 15:39:16 118 INFO | 15:39:16 119 DEBUG | 15:39:16 119 INFO | 15:39:16 119 DEBUG | 15:39:16 119 INFO | 15:39:16 119 INFO | 15:39:16 119 DEBUG | 15:39:16 119 INFO | 15:39:16 119 INFO | 15:39:16 119 DEBUG | 15:39:16 119 INFO | 15:39:16 119 INFO | 15:39:16 119 DEBUG | 15:39:16 119 INFO | 15:39:16 119 INFO | 15:39:16 119 DEBUG | 15:39:16 119 INFO | 15:39:16 119 INFO | 15:39:16 119 DEBUG | 15:39:16 119 INFO | 15:39:17 119 INFO | 15:39:17 119 DEBUG | 15:39:17 119 INFO | 15:39:17 119 INFO | 15:39:17 119 DEBUG | 15:39:17 119 INFO | 15:39:17 119 INFO | 15:39:17 119 DEBUG | 15:39:17 119 INFO | 15:39:17 120 INFO | 15:39:17 120 DEBUG | 15:39:17 120 INFO | 15:39:17 120 INFO | 15:39:17 120 DEBUG | 15:39:17 120 INFO | 15:39:17 120 INFO | 15:39:17 120 DEBUG | 15:39:17 120 INFO | 15:39:17 120 INFO | 15:39:17 120 DEBUG | 15:39:17 120 INFO | 15:39:18 120 INFO | 15:39:18 120 DEBUG | 15:39:18 120 INFO | 15:39:18 120 INFO | 15:39:18 120 DEBUG | 15:39:18 120 INFO | 15:39:18 120 INFO | 15:39:18 120 DEBUG | 15:39:18 120 INFO | 15:39:18 121 INFO | 15:39:18 121 DEBUG | 15:39:18 121 INFO | 15:39:18 121 INFO | 15:39:18 121 DEBUG | 15:39:18 121 INFO | 15:39:18 121 INFO | 15:39:18 121 DEBUG | 15:39:18 121 INFO | 15:39:18 121 INFO | 15:39:18 121 DEBUG | 15:39:18 121 INFO | 15:39:18 121 INFO | 15:39:18 121 DEBUG | 15:39:18 121 INFO | 15:39:18 121 INFO | 15:39:18 121 INFO | 15:39:18 121 DEBUG | 15:39:18 121 INFO | 15:39:19 121 DEBUG | 15:39:19 121 INFO | 15:39:19 121 DEBUG | 15:39:19 121 INFO | 15:39:19 121 DEBUG | 15:39:19 121 INFO | 15:39:19 122 DEBUG | 15:39:19 122 INFO | 15:39:19 122 DEBUG | 15:39:19 122 INFO | 15:39:19 122 DEBUG | 15:39:19 122 INFO | 15:39:19 122 DEBUG | 15:39:19 122 INFO | 15:39:19 122 DEBUG | 15:39:19 122 INFO | 15:39:19 122 DEBUG | 15:39:19 122 INFO | 15:39:19 122 DEBUG | 15:39:19 122 INFO | 15:39:19 122 DEBUG | 15:39:19 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 122 DEBUG | 15:39:20 122 INFO | 15:39:20 123 DEBUG | 15:39:20 123 INFO | 15:39:20 123 DEBUG | 15:39:20 123 INFO | 15:39:20 123 DEBUG | 15:39:20 123 DEBUG | 15:39:20 123 INFO | 15:39:20 123 DEBUG | 15:39:20 123 DEBUG | 15:39:20 123 INFO | 15:39:20 123 DEBUG | 15:39:20 123 DEBUG | 15:39:20 123 INFO | 15:39:20 123 DEBUG | 15:39:20 123 DEBUG | 15:39:20 123 INFO | 15:39:20 123 DEBUG | 15:39:20 123 DEBUG | 15:39:20 123 INFO | 15:39:20 123 DEBUG | 15:39:20 123 DEBUG | 15:39:20 123 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 INFO | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 DEBUG | 15:39:21 124 INFO | 15:39:21 124 INFO | 15:39:21 124 INFO | 15:39:22 124 DEBUG | 15:39:22 124 DEBUG | 15:39:22 124 DEBUG | 15:39:42 145 ERROR | 15:39:42 145 DEBUG | 15:39:42 145 DEBUG | 15:39:44 147 DEBUG | 15:39:44 147 DEBUG | 15:39:44 147 DEBUG | 15:39:44 147 DEBUG
N1obu
May 9, 2024, 11:56pm
4
I haven’t seen any lock-ups. I’m running a RPi 4 64-bit Bookworm with a Waveshare SX1262 HAT. I’m still running 2.3.7 firmware. My node is configured as a Router.
sbntx
June 6, 2024, 1:27am
5
You guys are getting further than me. When I start the meshtasticd service it dies about 64 seconds in with a segmentation fault.
root@:~# systemctl status meshtasticd.service
× meshtasticd.service - Meshtastic Daemon
Loaded: loaded (/etc/systemd/system/meshtasticd.service; enabled; preset: enabled)
Active: failed (Result: signal) since Wed 2024-06-05 20:20:15 CDT; 1s ago
Duration: 65ms
Process: 25024 ExecStart=/usr/sbin/meshtasticd (code=killed, signal=SEGV)
Main PID: 25024 (code=killed, signal=SEGV)
CPU: 64ms
Jun 05 20:20:15 systemd[1]: meshtasticd.service: Scheduled restart job, restart counter is at 5.
Jun 05 20:20:15 systemd[1]: Stopped meshtasticd.service - Meshtastic Daemon.
Jun 05 20:20:15 systemd[1]: meshtasticd.service: Start request repeated too quickly.
Jun 05 20:20:15 systemd[1]: meshtasticd.service: Failed with result ‘signal’.
Jun 05 20:20:15 systemd[1]: Failed to start meshtasticd.service - Meshtastic Daemon.
:~# cat /etc/os-release
PRETTY_NAME=“Raspbian GNU/Linux 12 (bookworm)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“12”
VERSION=“12 (bookworm)”
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
:~# uname -a
Linux 6.6.28+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.28-1+rpt1 (2024-04-22) armv7l GNU/Linux
/etc/meshtasticd/config.yaml
Lora:
Module: sx1262 # Waveshare SX126X XXXM
DIO2_AS_RF_SWITCH: true
CS: 21
IRQ: 16
Busy: 20
Reset: 18
I didn’t find this in any of the instructions relating to meshtasticd docs I saw. I had to uncomment the “gpiochip: 4” line in the config.yaml for that board to work on the Rpi 5.
. ### Set gpio chip to use in /dev/. Defaults to 0.
. ### Notably the Raspberry Pi 5 puts the GPIO header on gpiochip4
. gpiochip: 4
It is obvious once you read the comment but I wasn’t looking for it.
Anyone know is the RAK2245 Pi Hat is supported? It’s uses the SX1301 chip i believe.