Page 1 of 2

not remembering previous day's usage

Posted: Mon Jul 05, 2010 12:38 am
by 5loth
Hi,

firstly thanks for making gargoyle, however after installing yesterday I have 1 major issue.

Running Linksys WRT54GL, with 1.2.4 firmware.

Yesterday it was recording web usage fine (my primary reason for using gargoyle), however now when I look at daily usage yesterdays usage is back to 0, and it is recording todays usage (see screenshot below). Is this a known issue? I could shift to the latest experimental version if that will fix the issue.

Image

Re: not remembering previous day's usage

Posted: Wed Jul 07, 2010 5:25 am
by 5loth
ok following up,

the rest of the days have been showing usage fine, however when I try view the months usage, It is not calculating correctly, as per screenshot below. What would be awesome would be being able to input a specific date range :)

hopefully I can get a response to this, even if its trying the latest version, or again is this a known issue or something new?

Image

Re: not remembering previous day's usage

Posted: Wed Jul 07, 2010 10:32 am
by Eric
Thanks for reporting this.

One other person reported something similar about a month ago, but I could never replicate the problem (so I couldn't track down/fix it). I'll revisit the problem and see if I can figure out what is going on. this definitely looks like a bug.

I have noticed the first time point getting zeroed out like you describe once or twice, but I haven't encountered a situation where the numbers don't add up. I've been meaning to check on the zeros, but I haven't figured out exactly what causes it (again I can't reliably replicate it -- I've just noticed it when checking on something else, and if I re-intall/reflash in testing that issue, the zeros are gone and I can't replicate them again).

Re: not remembering previous day's usage

Posted: Fri Aug 06, 2010 4:12 am
by elyask87
I'm also experiencing the same bug on my WRT54GL running Gargoyle 1.3.3.

I installed Gargoyle on Aug 4, until yesterday it was properly recording all data. Today I checked the usage and the month value has gone down, upon checking the daily usage Aug 4 values have reset to 0.

I had this same issue with the stable version of Gargoyle (1.2.4). No idea how to replicate it.

Re: not remembering previous day's usage

Posted: Sat Aug 07, 2010 2:33 am
by DoesItMatter
While it does seem a bit early to see a pattern, I notice that
both of these people with the issues are running WRT54GL's

Eric, you think they are having memory problems?

Possibly running out of RAM and that's causing issues?

Anyone having this issue with routers that have 32MB of RAM?

I do know Backfire took a little more RAM than prior Gargoyle's.

Re: not remembering previous day's usage

Posted: Thu Aug 26, 2010 12:28 am
by thecrazy
I also have this problem.
I have a WRT54G v2.0 with 32mb RAM

Im also having a problem with quotas... dont think the problem is related but just in case... http://www.gargoyle-router.com/phpbb/vi ... ?f=6&t=796

Re: not remembering previous day's usage

Posted: Thu Aug 26, 2010 10:45 am
by Eric
Don't worry, I haven't forgotten about this bug -- it's just proven a real pain to debug.

DoesitMatter: No, I'm 99% sure this is not a memory issue. There's a bug in there, somewhere. The problem is finding it.

What's happening is the last time point is getting zeroed under some very specific set of circumstances, that I have yet to identify. I think that a reboot is necessary to trigger it, but it doesn't always happen after a reboot.

The reason the numbers aren't adding up is that when you compare shorter time scales and the longer time scales after the last time point got zeroed, different amounts of time are lost and they don't add up. As far as I can tell it's just the last time point that changes -- everything else remains accurate.

What I really need in order to fix this, is a procedure for reproducing it 100% of the time from a clean install. I've seen it pop up myself once or twice, but I haven't been able to figure out what it was that caused it to happen, or to get it to happen again reliably.

I'll have another crack at fixing the problem this weekend, but it's a nasty little bug.

Re: not remembering previous day's usage

Posted: Thu Aug 26, 2010 1:45 pm
by thecrazy
Is there anything I can do to help?
Some files/logs you may want from our routers?

or

Would it help you to access my router via telnet/ssh?

Re: not remembering previous day's usage

Posted: Thu Aug 26, 2010 11:09 pm
by thecrazy
FYI I'm no longer having this issue with my WRT since downgrading from 1.3.3 to 1.2.4

Had other issues as well and they all cleared up with this downgrade.

Re: not remembering previous day's usage

Posted: Tue Aug 31, 2010 12:39 am
by thecrazy
A little update;

Today I started having miscalculation of the bandwith usage on the bandwidth_distribution.sh page. The quota still seem to track the usage properly and still no memory errors.

all that on version 1.2.4