Skip to content

Troubleshooting

Doug Snitker edited this page Dec 2, 2026 · 5 revisions

Troubleshooting

Start with the check and the log:

~/mesh-contingency/install.sh --check
journalctl --user -u mesh-contingency -n 50

The installer

What you see What to do
Missing: git or Missing: python Run the install command it prints, then the installer again.
Python can't make a virtual environment Run the command it prints (python3-venv on Debian and Ubuntu).
--counties: counties are a name and a state ... Write them as Taylor, TX; Jones, TX.
--admin-key: a public key is 64 hex digits ... Copy the radio's whole key, not the 12-character prefix.
… has changes to its files; commit or undo them first Files in the node folder were edited (not your config, which git ignores). git -C ~/mesh-contingency status lists them; git -C ~/mesh-contingency restore . undoes them.
No systemd user session here You're in su or a container. Log in as the user directly (or over SSH) and run it again.
Couldn't turn on lingering Run sudo loginctl enable-linger "$USER", so the node starts at boot with nobody logged in.
A port problem See Let your account use the radio.

The log

What you see What to do
No serial device found, over and over The radio isn't plugged in or isn't seen. ls /dev/serial/by-id/ should list it. systemd tries again every 30 s.
Permission denied on /dev/ttyUSB0 Join the port's group: step 2.
Could not connect to MeshCore device, or odd errors Something else may have the radio open: the MeshCore app over USB, or a copy of the bot started by hand. Close it and restart. pgrep -af mesh-contingency should show one. Once at boot is normal.
Lost the radio (...); stopping. The USB link dropped. systemd starts the bot again every 30 s until it's back.
Warning: No Public channel on the radio Add MeshCore's Public channel back in the node radio's app, then restart.
Warning: No free channel slot on the radio for #... Delete a channel you don't use from the node's radio in the MeshCore app, then restart.
Warning: ... can be read or changed by other accounts Run the chmod 600 ... it shows, then restart.
Auto alerts: couldn't look up the NWS code of ... No internet yet, or the NWS doesn't know that county: check the spelling and state (Choosing counties).
Warning: listing settings or commands that no longer exist Your config is from before 1.0. It runs; delete what it names to quiet it (Updating).
A config mistake, then the bot stops The message says what and where. Fix it; systemd keeps trying every 30 s.
Auto alerts: couldn't check for alerts (...) No internet, or api.weather.gov is down. It tries again each round and logs when it's back.
Auto alerts: N new alert(s) not posted (filtered out by [alerts]) Your filter at work.
... one is an admin, so remove the impostor from the radio Two contacts share an admin's key prefix, so neither gets admin rights. Delete the one that isn't yours from the node's radio.

On the radio

What happens What to do
The node doesn't answer at all It hasn't heard your advert, or yours hasn't heard its: Meet the node.
unrecognized user or function The node doesn't see you as an admin. Check your full key is in [admins] keys, restart, then advert from your radio.
Someone gets no reply to wx Their radio isn't in the node's contacts (on a manual-add radio, only admins are added), or [commands] has no wx line.
wx says unknown zipcode or the NWS has no county Check the spelling; a county needs its state, e.g. Taylor, TX.
A wx reply has no forecast Normal when alerts fill the message: alerts come first and the forecast is left out first. Otherwise the NWS forecast didn't answer; ask again later.
alert or testalert says no Public channel on the radio The node's radio lost its Public channel: add it back.
No alerts arrive, though weather.gov has one Check it's for one of your counties and passes your filter; the log says when one is filtered out. An alert already posted (or seen) isn't posted again.
Alerts arrive, but some radios don't see them Those radios are out of range or have no Public channel. The node's radio and antenna placement matter most.

The console

See If it doesn't open on the Console page.

It doesn't start after a reboot

  • systemctl --user is-enabled mesh-contingency should say enabled. If not, systemctl --user enable mesh-contingency.
  • loginctl show-user "$USER" -p Linger should say Linger=yes. If not, sudo loginctl enable-linger "$USER".
  • It works only while you're logged in: that's lingering being off.
  • If journalctl --user -u mesh-contingency -b -1 (the boot before) shows nothing, the journal is kept in memory only. To keep it: sudo mkdir -p /var/log/journal && sudo systemctl restart systemd-journald.