/usr/data/quotas/Magnus wrote:Do you know where the usage is stored, so I can look into this?
(Random?) Wipe of Quota Settings
Moderator: Moderators
Re: (Random?) Wipe of Quota Settings
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
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E
Re: (Random?) Wipe of Quota Settings
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: 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
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: 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
Re: (Random?) Wipe of Quota Settings
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.
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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: (Random?) Wipe of Quota Settings
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.
Re: (Random?) Wipe of Quota Settings
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
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
Re: (Random?) Wipe of Quota Settings
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.

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.