Pie5 Unable to access meshtasticd while running

Unable to access meshtasticd while running
Assuming issue is that “Error starting Web Server framework, error number: 4”

raspberry pi 5
Waveshare sx1262-lorawan-hat, sku 24654, Part Number: SX1262 868/915M LoRaWAN/GNSS HAT
with ML1220 1220 Lithium 3V Rechargeable Battery

cat /etc/debian_version
12.5

cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 12 (bookworm)”
NAME=“Debian GNU/Linux”
VERSION_ID=“12”
VERSION=“12 (bookworm)”
VERSION_CODENAME=bookworm
ID=debian

installed by

sudo apt install libgpiod-dev libyaml-cpp-dev libbluetooth-dev
sudo apt install openssl libssl-dev libulfius-dev liborcania-dev
curl -o meshtasticd_2.3.7.30fbcab_arm64.deb https://github.com/meshtastic/firmware/releases/download/v2.3.7.30fbcab/meshtasticd_2.3.7.30fbcab_arm64.deb
sudo apt install ./meshtasticd_2.3.7.30fbcab_arm64.deb

serial Port enabled
serial console enabled
Remote GPIO enabled


/boot/firmware/config.txt

dtparam=spi=off
dtoverlay=spi0-0cs
#dtoverlay=uart0
enabled_uart=1




/etc/meshtasticd/config.yaml

Module: sx1262 # Waveshare SX126X XXXM
DIO2_AS_RF_SWITCH: true
CS: 21
IRQ: 16
Busy: 20
Reset: 18
DIO3_TCXO_VOLTAGE: true
gpiochip: 4

GPS:
SerialPath: /dev/ttyAMA0

Logging:
LogLevel: debug # debug, info, warn, error

Webserver:
Port: 443 # Port for Webserver & Webservices
RootPath: /usr/share/doc/meshtasticd/web # Root Dir of WebServer


meshtasticd -c /etc/meshtasticd/config.yaml


DEBUG | ??:??:?? 0 Filesystem files:
DEBUG | ??:??:?? 0  /.. (0 Bytes)
DEBUG | ??:??:?? 0  /prefs/.. (0 Bytes)
DEBUG | ??:??:?? 0  /prefs/db.proto (512 Bytes)
DEBUG | ??:??:?? 0  /prefs/channels.proto (57 Bytes)
DEBUG | ??:??:?? 0  /prefs/. (0 Bytes)
DEBUG | ??:??:?? 0  /. (0 Bytes)
INFO  | ??:??:?? 0 No I2C device configured, skipping.
INFO  | ??:??:?? 0 No I2C devices found
INFO  | ??:??:?? 0 Meshtastic hwvendor=37, swver=2.3.7.30fbcab
INFO  | ??:??:?? 0 Initializing NodeDB
INFO  | ??:??:?? 0 Loading /prefs/db.proto
INFO  | ??:??:?? 0 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 1
INFO  | ??:??:?? 0 File /prefs/config.proto not found
INFO  | ??:??:?? 0 Installing default LocalConfig
INFO  | ??:??:?? 0 Setting default channel and radio preferences!
DEBUG | ??:??:?? 0 Expanding short PSK #1
INFO  | ??:??:?? 0 Wanted region 0, using UNSET
INFO  | ??:??:?? 0 File /prefs/module.proto not found
INFO  | ??:??:?? 0 Installing default ModuleConfig
INFO  | ??:??:?? 0 Loading /prefs/channels.proto
INFO  | ??:??:?? 0 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 0 Loaded saved channelFile version 22
INFO  | ??:??:?? 0 File /oem/oem.proto not found
DEBUG | ??:??:?? 0 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 0 Using nodenum 0x672ec0d6 
DEBUG | ??:??:?? 0 Expanding short PSK #1
INFO  | ??:??:?? 0 Wanted region 0, using UNSET
DEBUG | ??:??:?? 0 Set Timezone to GMT0
DEBUG | ??:??:?? 0 Read RTC time as 1714629492
DEBUG | ??:??:?? 0 NeighborInfoModule is disabled
INFO  | ??:??:?? 0 File /prefs/cannedConf.proto not found
INFO  | ??:??:?? 0 CannedMessageModule is enabled
DEBUG | ??:??:?? 0 Attempting to activate sx1262 radio on SPI port /dev/spidev0.0
DEBUG | ??:??:?? 0 SX126xInterface(cs=21, irq=16, rst=18, busy=20)
DEBUG | ??:??:?? 0 SX126X_DIO3_TCXO_VOLTAGE defined, using DIO3 as TCXO reference voltage at 1.800000 V
INFO  | ??:??:?? 0 Starting meshradio init...
DEBUG | ??:??:?? 0 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | ??:??:?? 0 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO  | ??:??:?? 0 Radio freq=906.875, config.lora.frequency_offset=0.000
INFO  | ??:??:?? 0 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30
INFO  | ??:??:?? 0 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)
INFO  | ??:??:?? 0 Radio myRegion->numChannels: 104 x 250.000kHz
INFO  | ??:??:?? 0 Radio channel_num: 20
INFO  | ??:??:?? 0 Radio frequency: 906.875000
INFO  | ??:??:?? 0 Slot time: 42 msec
INFO  | ??:??:?? 0 Set radio: final power level=22
INFO  | ??:??:?? 0 SX126x init result -707
INFO  | ??:??:?? 0 Frequency set to 906.875000
INFO  | ??:??:?? 0 Bandwidth set to 250.000000
INFO  | ??:??:?? 0 Power output set to 22
DEBUG | ??:??:?? 0 Current limit set to 140.000000
DEBUG | ??:??:?? 0 Current limit set result 0
DEBUG | ??:??:?? 0 Setting DIO2 as RF switch
DEBUG | ??:??:?? 0 Using MCU pin -1 as RXEN and pin -1 as TXEN to control RF switching
INFO  | ??:??:?? 0 Set RX gain to boosted mode; result: 0
INFO  | ??:??:?? 0 SX1262 Radio init succeeded, using SX1262 radio
INFO  | ??:??:?? 0 Using webserver port from yaml config. 443 
INFO  | ??:??:?? 0 Webserver started ....
ERROR | ??:??:?? 0 Error starting Web Server framework, error number: 4
INFO  | ??:??:?? 0 API server listening on TCP port 4403
DEBUG | ??:??:?? 0 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=237, time 2000 ms
DEBUG | ??:??:?? 0 LoRA bitrate = 118.500000 bytes / sec
INFO  | ??:??:?? 0 PowerFSM init, USB power=1
DEBUG | ??:??:?? 0 Enter state: BOOT

I found the web service will start with
sudo meshtasticd

and I can access the web interface with https://localhost
after enabling chrome://flags/#allow-insecure-localhost

But I can’t seem to configure the radio through the web interface.

INFO  | ??:??:?? 0 No I2C device configured, skipping.
INFO  | ??:??:?? 0 No I2C devices found
INFO  | ??:??:?? 0 Meshtastic hwvendor=37, swver=2.3.7.30fbcab
INFO  | ??:??:?? 0 Initializing NodeDB
INFO  | ??:??:?? 0 Loading /prefs/db.proto
INFO  | ??:??:?? 0 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 1
INFO  | ??:??:?? 0 File /prefs/config.proto not found
INFO  | ??:??:?? 0 Installing default LocalConfig
INFO  | ??:??:?? 0 Setting default channel and radio preferences!
INFO  | ??:??:?? 0 Wanted region 0, using UNSET
INFO  | ??:??:?? 0 File /prefs/module.proto not found
INFO  | ??:??:?? 0 Installing default ModuleConfig
INFO  | ??:??:?? 0 Loading /prefs/channels.proto
INFO  | ??:??:?? 0 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 0 Loaded saved channelFile version 22
INFO  | ??:??:?? 0 File /oem/oem.proto not found
INFO  | ??:??:?? 0 Wanted region 0, using UNSET
INFO  | ??:??:?? 0 File /prefs/cannedConf.proto not found
INFO  | ??:??:?? 0 CannedMessageModule is enabled
INFO  | ??:??:?? 0 Starting meshradio init...
INFO  | ??:??:?? 0 Radio freq=906.875, config.lora.frequency_offset=0.000
INFO  | ??:??:?? 0 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30
INFO  | ??:??:?? 0 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)
INFO  | ??:??:?? 0 Radio myRegion->numChannels: 104 x 250.000kHz
INFO  | ??:??:?? 0 Radio channel_num: 20
INFO  | ??:??:?? 0 Radio frequency: 906.875000
INFO  | ??:??:?? 0 Slot time: 42 msec
INFO  | ??:??:?? 0 Set radio: final power level=22
INFO  | ??:??:?? 0 SX126x init result -707
INFO  | ??:??:?? 0 Frequency set to 906.875000
INFO  | ??:??:?? 0 Bandwidth set to 250.000000
INFO  | ??:??:?? 0 Power output set to 22
INFO  | ??:??:?? 0 Set RX gain to boosted mode; result: 0
INFO  | ??:??:?? 0 SX1262 Radio init succeeded, using SX1262 radio
INFO  | ??:??:?? 0 Using webserver port from yaml config. 443 
INFO  | ??:??:?? 0 Webserver started ....
INFO  | ??:??:?? 0 Web Server framework started on port: 443 
INFO  | ??:??:?? 0 Web Server root /usr/share/doc/meshtasticd/web
INFO  | ??:??:?? 0 API server listening on TCP port 4403
INFO  | ??:??:?? 0 PowerFSM init, USB power=1
INFO  | ??:??:?? 30 [NodeInfoModule] (left out sense I don't know if it's printing hardware specific information about the radio) 
ls -al /usr/share/doc/meshtasticd/web
total 1576
drwxr-xr-x 2 root root   4096 May  2 19:51 .
drwxr-xr-x 3 root root   4096 May  1 14:22 ..
-rw-r--r-- 1 root root   3213 Mar 29 00:13 apple-touch-icon.png
-rw-r--r-- 1 root root  15086 Mar 29 00:13 favicon.ico
-rw-r--r-- 1 root root   1944 Mar 29 00:13 icon.svg
-rw-r--r-- 1 root root 103965 Mar 29 00:13 index-BMhLjTmL.css
-rw-r--r-- 1 root root 668716 Mar 29 00:13 index-Bt2MYVVB.js
-rw-r--r-- 1 root root    500 Mar 29 00:13 index-CGqDWSD_.js
-rw-r--r-- 1 root root   1116 Mar 29 00:13 index.html
-rw-r--r-- 1 root root   1031 Mar 29 00:13 Logo_Black.svg
-rw-r--r-- 1 root root   1071 Mar 29 00:13 Logo_White.svg
-rw-r--r-- 1 root root 774864 Mar 29 00:13 maplibre-gl-BXZZhNda.js
-rw-r--r-- 1 root root     22 Mar 29 00:13 robots.txt
-rw-r--r-- 1 root root    312 Mar 29 00:13 site.webmanifest

Have you tried access web interface remotely? My pi4 (bookworm) has issue opening Chromium, tried http://<Pi’s local IP>:443 or https://<Pi’s local IP>:443 but always get empty response…