watchping floods logs when WAN is down

Open Beginner friendly
#1,302 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, shell
Domain
networking

Research direction

The warning comes from the ping call at line 53 of packages/watchping/files/usr/bin/watchping, which runs while the WAN interface is down and has no IP. Read the loop around that line to see how the interface is chosen and how often it retries. Done when the script skips the ping while the interface is down, and no warning is logged in that state.

Written by the indexing model from the issue text.

Description

Testing LibreMesh compiled on OpenWrt 25.12, I observed the following message several times in logread:

Mon Nov 23 12:10:07 2026 daemon.err watchping[5998]: ping: Warning: source address might be selected on device other than: wan

Apparently, this originates from this line:

https://github.com/libremesh/lime-packages/blob/e17fc270f2d681d54be7a4429e8f7bca299ee1f7/packages/watchping/files/usr/bin/watchping#L53

when the WAN interface is down (no ethernet cable connected to it) and does not have any IP.

A solution could be to check if the interface is up before trying to use it for ping.

Dominant language
Lua
Stars
338
Forks
113
Avg merge
8d 3h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libremesh/lime-packages

All issues in libremesh/lime-packages

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.