Quota Management

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
jalim117
Newbie
Newbie
Posts: 8
Joined: April 19th, 2012, 7:37 pm

Quota Management

Post by jalim117 »

Hi,

I know this is a new beta feature and so I expect there are still kinks to be worked out. My counter does not seem to pause download at limit and instead continues though assigned limit. I have it set to limit daily traffic to 20gb but under the "Quota left" I get 300.0 G ⁄ 20.0 G which would suggest that SAB thinks it has got over 300gb of quota for the day... Screenshots:

Image

Image

Great feature if it works, allows me to remain within my draconian ISP's download quotas on a daily basis rather than having to limit myself over the last few days of my quota month.
jalim117
Newbie
Newbie
Posts: 8
Joined: April 19th, 2012, 7:37 pm

Re: Quota Management

Post by jalim117 »

Further to my last, I have been changing quotas around to see if that changes anything, I always seem to get my set quota + 280 GB (see screens)

Image

Image
jalim117
Newbie
Newbie
Posts: 8
Joined: April 19th, 2012, 7:37 pm

Re: Quota Management

Post by jalim117 »

Image - Even with MB limits 280GB gets added...
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Quota Management

Post by sander »

I can not reproduce this. Even not with the space in "20 G", nor the "0:01" (which should be "1", AFAIK).

Does it happen immediately after you will the values in SAB, or only after some time? What happens when you fill out "20G" (no space), "1" as the reset day, and weekly quota?

What does your sabnzbd.log say when you search for "quota"?

Code: Select all

2012-04-20 07:15:41,017::DEBUG::[bpsmeter:150] Read quota q=21474836480.0 l=11209149258.0 reset=1334959260.0
2012-04-20 07:15:41,021::DEBUG::[bpsmeter:312] Will reset quota at (2012, 4, 21, 0, 1, 0, 0, 0, 1)
2012-04-20 07:15:41,021::INFO::[scheduler:163] Setting schedule for quota check daily at 0:1
jalim117
Newbie
Newbie
Posts: 8
Joined: April 19th, 2012, 7:37 pm

Re: Quota Management

Post by jalim117 »

I have had a look at debug log after making changes to a number of the parameters in this setting however still not getting the right numbers... Interestingly I am now getting 8.4G added to what ever quota I choose, doesn't seem to make any difference whether I choose daily, weekly or monthly schedules... And the 00:01 as far as I knew it told the schedule what time of day to reset. Also my log seems to be missing anything to do with "Read Quota" have pasted the only log entries which are showing up. I'm going to let it run out the 8.4 gb and see if it stops there.

Code: Select all

2012-04-20 19:17:11,559::DEBUG::[bpsmeter:312] Will reset quota at (2012, 4, 21, 1, 0, 0, 0, 0, 0)

2012-04-20 19:17:11,559::INFO::[scheduler:163] Setting schedule for quota check daily at 1:0
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Quota Management

Post by sander »

Long shot: 8.4 GB is 2 * 4.2GB is 2 * 2^32 (so twice the max integer with 32 bits)

Hmm. On what platform are you running SABnzbd?

EDIT:
And what happens when you use 3GB as quotum?
jalim117
Newbie
Newbie
Posts: 8
Joined: April 19th, 2012, 7:37 pm

Re: Quota Management

Post by jalim117 »

Running on windows
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Quota Management

Post by sander »

jalim117 wrote:Running on windows
Could you set 3GB as limit?
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Quota Management

Post by sander »

Let's get to the roots: what do the "quota" lines in your sabnzbd.ini say?

Below are mine

Code: Select all

sander@R540:~$ grep -i quota .sabnzbd/sabnzbd.ini
quota_period = d
quota_day = 00:25
quota_size = 10G
quota_resume = 1
sander@R540:~$
FWIW: I tried all kinds of nonsense text in Size and Day, and/but SAB has no problems with that. So that is not the cause.
jalim117
Newbie
Newbie
Posts: 8
Joined: April 19th, 2012, 7:37 pm

Re: Quota Management

Post by jalim117 »

Hmmm still playing up, tried 3GB and same thing, seems to be 8.4gb + quota set - amount downloaded since quota set. I'm stumped but if you can't replicate it, probably just an isolated case.
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Quota Management

Post by sander »

jalim117 wrote:Hmmm still playing up, tried 3GB and same thing, seems to be 8.4gb + quota set - amount downloaded since quota set. I'm stumped but if you can't replicate it, probably just an isolated case.
... and what do the quota lines in sabnzbd.ini say? See my previous post.
jalim117
Newbie
Newbie
Posts: 8
Joined: April 19th, 2012, 7:37 pm

Re: Quota Management

Post by jalim117 »

Problem fixed... Sort of. Not sure what the issue was, I just deleted the history1.db file in the admin dir and restarted, this seems to have done the trick. Will let it run and see if it's fixed everything. I presume there was an entry in the history1.db file which recorded the amount of data I had downloaded.

In response to your question my settings were identical as yours.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Quota Management

Post by shypike »

When you first run 0.7.0, the initial total downloaded amount will be extracted from the database.
It shouldn't really be the basis for the quota of the current period.
I'll look into this.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Quota Management

Post by shypike »

Found the problem.
When you first upgrade to 0.7.0, the total download counter is initialized using the content of the history.
In doing that, the initial available quota left isn't set to the quota but to the above total amount...
Will be fixed in Beta4, but it won't bother you again because you're now past the first day.
nemecky
Newbie
Newbie
Posts: 3
Joined: January 15th, 2013, 5:16 pm

Re: Quota Management

Post by nemecky »

I'm getting "Quota spent, pausing downloading" messages, but not sure why. I use Giganews with a 10GB/month account and I have only downloaded 5.5GB so far.

I can not find any setting like in the OP's screenshot with a "Quota" section that has an editable field. How can I adjust this?

Thanks!
Post Reply