mirror of
https://github.com/f00b4r0/uspot.git
synced 2026-04-25 22:25:51 +03:00
[GH-ISSUE #42] Accounting-On request may not be delivered at first boot #26
Labels
No labels
bug
enhancement
invalid
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uspot#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nemesifier on GitHub (Sep 2, 2025).
Original GitHub issue: https://github.com/f00b4r0/uspot/issues/42
Originally assigned to: @f00b4r0 on GitHub.
Describe the bug
While dealing with fixing stale RADIUS accounting sessions due to unexpected cold reboots (eg: power loss), I noticed freeradius provides a solution which listens on Accounting-On RADIUS packets to close any open previous session for the same NAS, so I started playing with it.
Unfortunately I noticed that uspot tries to perform the accounting-on request early in the boot process while DNS is not yet ready and hence the accounting-on request is not delivered to the server.
I am going to use a hacky workaround in rc.local for this, but I thought it may be a good idea to open an issue on github and look for a more robust generic solution in the long run.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Accounting-On should be received by the RADIUS server.
Logs
Additional context
I am not sure if this happens in all setups or only in my setup.
@f00b4r0 commented on GitHub (Sep 2, 2025):
ACK. The init script should wait for wan to be up before uspot is started. Will fix.
@f00b4r0 commented on GitHub (Sep 15, 2025):
OK so I took another look at this and I don't understand what's going on.
uspot already starts at order 80, which is among the very last things to start. dnsmasq starts at 19 and network at 20, so I'm not sure how uspot could be started before DNS is ready. I never saw such a problem on the hundreds of instances currently deployed either, hence my confusion.
Can you shed more light on your setup?
@nemesifier commented on GitHub (Sep 15, 2025):
The config is the same of the one I shared for #45. Let me know if I can provide more info.
@f00b4r0 commented on GitHub (Sep 15, 2025):
I see you have 2 WAN interfaces, is it possible that you have a particular setup that delays the availability of name resolution?
Can you provide full log context around the init lines (so I can see the sequence of other system events)?
@nemesifier commented on GitHub (Sep 18, 2025):
You mean to send you the whole
logreadoutput since boot?@f00b4r0 commented on GitHub (Sep 18, 2025):
Yes, then I can see the sequencing of startup events. Thanks