Bug: WAN (PPPoE) Uptime incorrectly reset

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Saran
Posts: 5
Joined: Wed Jan 14, 2015 6:41 pm

Bug: WAN (PPPoE) Uptime incorrectly reset

Post by Saran »

I've noticed that with changing some settings (e.g. QoS Download), the "WAN (PPPoE) Uptime" value on the status page gets reset even though the PPPoE connection was not reset.

Uptime appears reset:
Uptime incorrectly reset to 0
Uptime incorrectly reset to 0
2015-01-14_233928.png (19.83 KiB) Viewed 7165 times
But the IP is the same:
Google
Google
2015-01-14_234850.png (8.16 KiB) Viewed 7165 times
as was 16 hours ago when router was restarted:
Time when DynDNS was updated
Time when DynDNS was updated
2015-01-14_233904.png (4.06 KiB) Viewed 7165 times
(mind the PST-CET TZ difference)

What gives? :?


Setup:
FW: gargoyle_1.6.2-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory
HW: TP-Link TL-WR1043N/ND v1

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by ispyisail »

when you make the change it would be good to check the "logread"

Saran
Posts: 5
Joined: Wed Jan 14, 2015 6:41 pm

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by Saran »

ispyisail wrote:when you make the change it would be good to check the "logread"
So, here it is.

1. Status before:
status before
status before
1.png (12.5 KiB) Viewed 7106 times
2. Change QoS upload and Save.

3. Status after:
status after
status after
2.png (13.99 KiB) Viewed 7106 times
And here's the logread output:

Code: Select all

Jan 26 19:08:43 Gargoyle daemon.info dnsmasq-dhcp[6353]: DHCPINFORM(br-lan) <IP> <MAC> 
Jan 26 19:08:43 Gargoyle daemon.info dnsmasq-dhcp[6353]: DHCPACK(br-lan) <IP> <MAC> <HOST>
Jan 26 19:09:18 Gargoyle kern.info kernel: [1077585.310000] IMQ driver unloaded successfully.
Jan 26 19:09:19 Gargoyle kern.info kernel: [1077585.400000]     Hooked IMQ after mangle on INPUT
Jan 26 19:09:19 Gargoyle kern.info kernel: [1077585.410000]     Hooked IMQ after mangle on FORWARD
Jan 26 19:09:19 Gargoyle kern.info kernel: [1077585.410000] IMQ driver loaded successfully. (numdevs = 1, numqueues = 1)
I hope it helps...

Saran
Posts: 5
Joined: Wed Jan 14, 2015 6:41 pm

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by Saran »

Bump.

ViBE
Posts: 194
Joined: Sun Apr 19, 2015 6:58 pm

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by ViBE »

This still happens. Some settings cause hangouts while applying.

d3fz
Posts: 277
Joined: Sun Aug 28, 2016 7:34 pm

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by d3fz »

I'm experiencing the same issue, "WAN (PPPoE) Uptime" resets for no apparent reason, whenever i apply changes in random tasks (QoS Download/Upload, Add new Quota, Enable/Disable Ping Watchdog, etc).

Is this a bug or expected behavior ?

It doesn't hamper any functionality, just annoying when trying to monitor the uptimes.
TP-Link Archer C7 v2 - Gargoyle 1.12.X
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by Lantis »

It's not really a bug.

When you make changes to fundamental parts of the firewall (e.g. qos, quotas, restrictions... anything really) the firewall needs to be restarted for these to take effect.

When the firewall restarts the ppp daemon also restarts, hence the reset time stamp.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Saran
Posts: 5
Joined: Wed Jan 14, 2015 6:41 pm

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by Saran »

Even if ppp deamon is restarted as you say, the connection is not reset, so the time shown is invalid --> bug.

Deamon needs to store the Uptime and restore it after restart is the connection is not changed. Otherwise it's displaying false information --> bug.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by Lantis »

Are you certain that the ppp daemon going down doesn't reset the connection?
I don't know that it does, but it seems logical to me. I don't have a pppoe connection anymore so I can't check the syslogs to confirm.

If you can think of a better way of determining up time of the PPPoE connection let me know and I'll look into it.
The use of the date for the pppd PID file is used widely from my research.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Saran
Posts: 5
Joined: Wed Jan 14, 2015 6:41 pm

Re: Bug: WAN (PPPoE) Uptime incorrectly reset

Post by Saran »

Check the WAN IP address from my before-after screenshots.

Post Reply