Open bbecker-inlogik opened 4 months ago
Can you test this only on a fresh 1.14 install please? And even better, a 1.15 beta if possible. If there is an issue, I will not be debugging or fixing it back to 1.12 and for all we know it is already resolved.
We will not be removing the dhcpleases file from the setting, it is relied upon elsewhere. After power cut this file should be empty as /tmp is not persistent.
I have never encountered such a bug. A lot more detail and troubleshooting is required before any action is taken.
I suspect if you have “Enforce DHCP Assignments” active that this is your real issue.
I do have "Enforce DHCP Assignments" active. It might be a while before I can run a test as router is in daily use.
Hardware: GL.iNet GL-AR150 Gargoyle: 1.12.0 (recently upgraded to 1.14) Any power cut results in DHCP no longer working after restart. I suspect stale/corrupt DHCP leases. Depending on the device router connectivity is lost, windows clients handling it very poorly and always losing connection. Gargolyle router persists DHCP leases in the file /tmp/dhcp.leases
Steps to fix DHCP after power cut: Configure the connecting computer to use a static IP address. Login to Gargoyle router Connection > DHCP Untick "LAN DHCP Server Enabled", Save Tick "LAN DHCP Server Enabled", Save Reconfigure the connecting computer to use DHCP.
My permanent solution to prevent stale/corrupt DHCP leases following a power cut is to edit the options in /etc/config/dhcp : $ ssh root@192.168.1.1
vim /etc/config/dhcp
find line as belowoption leasefile '/tmp/dhcp.leases'
change tooption leasefile ''
Note: I am not sure if editing /etc/config/dhcp as a solution has any negative side-effects, but I haven't encountered any on 1.12 or 1.14 Please consider fixing this as the steps to fix DHCP after power cut are frustrating and error prone and therefore power cuts can cause long downtime. Also not everyone will know how to fix this after a power cut and even fewer will know how to permanently fix the issue via ssh.