(Random?) Wipe of Quota Settings

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: (Random?) Wipe of Quota Settings

Post by nworbnhoj »

Magnus wrote:Do you know where the usage is stored, so I can look into this?
/usr/data/quotas/
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

Magnus
Posts: 8
Joined: Mon May 04, 2015 11:41 am

Re: (Random?) Wipe of Quota Settings

Post by Magnus »

Thank You.

I am not sure whether I understand what eaxtly is stored in the files found in /usr/data/quotas/ as they appear to be updated very infrequently. Can you explain this to me? Where is the data stored at/read from that I see via https://192.168.42.1/quota_usage.sh ?

Also I frequently experience some inconsitency between set quotas and the usage data shown at https://192.168.42.1/quota_usage.sh as you can see from the following screen shots:
quota_issues.PNG
quota_issues.PNG (95.98 KiB) Viewed 5441 times
Can you explain to me why some of the quotas are not showing up in usage an have no file in /usr/data/quotas/ ?

How can I fix this?

Thank You & Regards

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

Re: (Random?) Wipe of Quota Settings

Post by Lantis »

i'm having a browse through the code...
i'd have to guess the data is stored in memory, and when the router is rebooted or changes are made and saved, it backs up the data to /usr/var/quotas and then restores it.

can't confirm that for certain though.


there is a command "backup_quotas". i'm just trying to find the implications of this.
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.

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: (Random?) Wipe of Quota Settings

Post by Eric »

Quotas are backed up to /usr/data/quotas every 4 hours by a cron job. Writing too frequently to flash memory can wear it out, so this balances backing up the data sufficiently frequently with not wearing out the flash memory.

Magnus
Posts: 8
Joined: Mon May 04, 2015 11:41 am

Re: (Random?) Wipe of Quota Settings

Post by Magnus »

Hi Eric,

thank you for your input.

Can you explain how I may fix the differences in quota settings an quota usage as shown in the above screen shot?

From which files (other than etc/config/firewall is the table in https://192.168.42.1/quota_usage.sh gererated? I have at least three quotas that have been set in etc/config/firewall but are not shown in the usage table.

I am able to reproduce them via "re setting" the quota via the gui by clicking edit, "save & close" and "save changes" even withouot changing anything. But every other time settings will bee wiped completly by doing this and I have to start over...

Thank You & Regards
Magnus

Magnus
Posts: 8
Joined: Mon May 04, 2015 11:41 am

Re: (Random?) Wipe of Quota Settings

Post by Magnus »

Has this issue been addressed in FW 1.8.0? I am still struggling with this :(

Thank you for your help.

Update: Just read this thread, which looks a lot like my problem:
QoS configuration disappears after power loss and breaks

I will try to set edit some rules using just one tap later today and report back.

Post Reply