nprobe should not give up trying to connect to the license server
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 1.8k
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
nprobe stops trying to connect to the license server instead of keep trying. See log below where it stops trying after only two minutes and four attempts.
A continuous retry is recommended, perhaps with a backoff algorithm. After a power down for instance, it may take a long time for the network to be available at the restart.
Apr 02 00:43:52 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:43:52 [licenseMgrClient.c:459] WARNING: Unable to connect to license manager [212.54.224.108:3003](http://212.54.224.108:3003/)
Apr 02 00:43:52 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:43:52 [licenseMgrClient.c:941] Connection failed: sleeping 30 sec [17/20 attempts]
Apr 02 00:44:22 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:44:22 [licenseMgrClient.c:459] WARNING: Unable to connect to license manager [212.54.224.108:3003](http://212.54.224.108:3003/)
Apr 02 00:44:22 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:44:22 [licenseMgrClient.c:941] Connection failed: sleeping 30 sec [18/20 attempts]
Apr 02 00:44:52 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:44:52 [licenseMgrClient.c:459] WARNING: Unable to connect to license manager [212.54.224.108:3003](http://212.54.224.108:3003/)
Apr 02 00:44:52 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:44:52 [licenseMgrClient.c:941] Connection failed: sleeping 30 sec [19/20 attempts]
Apr 02 00:45:22 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:45:22 [licenseMgrClient.c:459] WARNING: Unable to connect to license manager [212.54.224.108:3003](http://212.54.224.108:3003/)
Apr 02 00:45:22 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:45:22 [licenseMgrClient.c:941] Connection failed: sleeping 30 sec [20/20 attempts]
Apr 02 00:45:52 NanoPi-R3S nprobe[642]: 02/Apr/2025 00:45:52 [licenseMgrClient.c:950] Connection failed: giving up
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in licenseMgrClient.c around the retry handling reported at lines 941 and 950. Inspect how the current 20-attempt limit and 30-second delay are implemented, then determine how retries should continue while retaining an appropriate delay or backoff. Done means nprobe keeps trying to reach the license server after temporary network unavailability instead of logging "giving up."
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100