DHCP renew drops connection - OPNsense Version 24.1_1
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- [x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Describe the bug
https://github.com/opnsense/core/issues/6869 The issues are the same as in issue 6869. Suddenly whenever the WAN IP is supposed to renew the connection drops because the default gateway disappears. It was advised to open a new bug for version 24.1_1
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Expected lease to renew and not drop packages.
Describe alternatives you considered
A clear and concise description of any alternative solutions or workaround you considered.
Screenshots
If applicable, add screenshots to help explain your problem.
Relevant log files Here are the logs from when the renewal starts to when it finishes. The new and old addresses are the same but it still drops the route for a second.
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : wireguard_sync(,wan))
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : webgui_configure_do(,wan))
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : vxlan_configure_do())
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : unbound_configure_do(,wan))
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : openssh_configure_do(,wan))
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : opendns_configure_do())
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : ntpd_configure_do())
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : dnsmasq_configure_do())
2024-01-31T16:25:36-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (,wan)
2024-01-31T16:25:35-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : wireguard_configure_do(,wan))
2024-01-31T16:25:35-06:00 Notice opnsense /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.
2024-01-31T16:25:35-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : openvpn_configure_do(,wan))
2024-01-31T16:25:35-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : ipsec_configure_do(,wan))
2024-01-31T16:25:35-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure vpn (,wan)
2024-01-31T16:25:34-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure monitor (execute task : dpinger_configure_do(,WAN_DHCP))
2024-01-31T16:25:34-06:00 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure monitor (,WAN_DHCP)
2024-01-31T16:25:34-06:00 Notice opnsense /usr/local/etc/rc.newwanip: ROUTING: setting inet default route to x.x.x.x
2024-01-31T16:25:34-06:00 Notice opnsense /usr/local/etc/rc.newwanip: ROUTING: configuring inet default gateway on wan
2024-01-31T16:25:34-06:00 Notice opnsense /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'
2024-01-31T16:25:34-06:00 Notice opnsense /usr/local/etc/rc.newwanip: IP renewal starting (new: x.x.x.x old: x.x.x.x, interface: wan, device: igc1, force: yes)
Additional context
Add any other context about the problem here.
Environment
Software version used and hardware type if relevant, e.g.: OPNsense 24.1_1-amd64 FreeBSD 13.2-RELEASE-p9 OpenSSL 3.0.12 Intel(R) Celeron(R) J4125 CPU @ 2.00GHz (4 cores, 4 threads) Intel Corporation Ethernet Controller I225-V (rev 03)
@suupham2506 did you found the solution of it? I'm facing the same.
not yet @Steve-Rynjah , I am waiting for @hyochan Hy
Uploading Simulator Screen Recording - iPhone 14 Pro - 2022-12-04 at 20.21.08.mp4…
@suupham2506 How did you pass the path? I couldn't reproduce this 🤔
I'm also experiencing this. Note that it is happening in Android only:
Repro steps using example:
- Record with file path A
- Play back path A (partial)
- Record with file path B
- Play back path B
Expect to hear file path B; instead file path A picks up where it left off. Path B starts to play only after A has completed playing.
It's as if there's some caching in the Android player. I've even tried deleting file A but it still plays in step 4.
UPDATE:
I've been able to hack a fix by adding seekToPlayer(0) before recording the second file. I think this is because at https://github.com/hyochan/react-native-audio-recorder-player/blob/main/android/src/main/java/com/dooboolab.audiorecorderplayer/RNAudioRecorderPlayerModule.kt#L192 the player assumes I'm resuming unless the duration is at 0.
I'm not sure if this is a bug or intentional? Is there some other way to reset the player so that the old cache is destroyed?
const onStopPlay = useCallback(async () => { if (audioRecorderPlayer?._isPlaying) { audioRecorderPlayer.stopPlayer(); audioRecorderPlayer.removePlayBackListener(); setIsPlaying(false); setPlayTime(0); setProgress(0); } }, [audioRecorderPlayer]);
useEffect(() => { return () => { if (isPlaying) { console.log('onStop'); onStopPlay(); } }; }, [isPlaying, onStopPlay]);
When I move the screen while playing, This is how I handled it. Hope this helps.