SABnzbd doesn't show free space correctly

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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.
Post Reply
Martey
Newbie
Newbie
Posts: 6
Joined: April 5th, 2011, 5:17 am

SABnzbd doesn't show free space correctly

Post by Martey »

Hello everyone!
This is the first time for me using the forums. I've almost never had any issues with SABnzbd and I really think it's awesome. I recently changed disks in my QNAP TS-410 from 4x1TB in RAID 5 to 4x2TB RAID 5. The problem is that SABnzbd doesn't show the amount of free space correctly anymore. I have about 2,7TB of free space but SABnzbd only shows about 600-700GB. Every setting is as it was before the raid expansion so there shouldn't be any problem. It also uses the same directories and everything.

What could be the problem?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd doesn't show free space correctly

Post by shypike »

Misalignment between Python and the operating system, is my first guess.
Do your OS tools report the right amount of free space?
Martey
Newbie
Newbie
Posts: 6
Joined: April 5th, 2011, 5:17 am

Re: SABnzbd doesn't show free space correctly

Post by Martey »

I don't know how to confirm that but my OS report the correct amount of free space.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd doesn't show free space correctly

Post by shypike »

Open a shell on your NAS, start the Python interpreter.
Then type in this mini program:

Code: Select all

import os
import statvfs
s = os.statvfs("/PUT/FULL/PATH/HERE")
print s[statvfs.F_BAVAIL] * s[statvfs.F_FRSIZE]
"/PUT/FULL/PATH/HERE" should be replaced by the path of your "incomplete" folder.
The tell me the resulting number.
Martey
Newbie
Newbie
Posts: 6
Joined: April 5th, 2011, 5:17 am

Re: SABnzbd doesn't show free space correctly

Post by Martey »

Ok, the command gave the following digits:
2863740354560
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd doesn't show free space correctly

Post by shypike »

Which is 2667 GB, which looks about right.
Which version of SABnzbd are you using?
Martey
Newbie
Newbie
Posts: 6
Joined: April 5th, 2011, 5:17 am

Re: SABnzbd doesn't show free space correctly

Post by Martey »

Indeed, yes. I'm using version 0.5.6.

Update: I tried updating to the 0.6 RC1, no difference. Then I thought, "maybe it could be the mount protocol?", I'm currently using NFS as fileprotocol to access my media on my NAS (QNAP). It seems that it can't read the whole diskspace since only 0.6TB of 2.6TB shows up. I then switched to the SMB-protocol and it solved the problem.

Only problem for me is that when I use SMB and the connection goes down between the computer and my QNAP it doesn't get reconnected automatically like my NFS-mount does, resulting in problem when new downloads gets sent to SABnzbd. Any help with that? Btw, I'm using Mac.
Last edited by Martey on April 6th, 2011, 2:33 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd doesn't show free space correctly

Post by shypike »

Does SABnzbd run on the NAS or on the Mac?
Martey
Newbie
Newbie
Posts: 6
Joined: April 5th, 2011, 5:17 am

Re: SABnzbd doesn't show free space correctly

Post by Martey »

SABnzbd run on a Mac mini Intel Core 2 Duo.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd doesn't show free space correctly

Post by shypike »

OK, so it's the Mac that has trouble showing free space on the NAS.
Did you run Python on the NAS or on the Mac to get the big number?
If it's OSX that doesn't understand the NAS disk size, there's nothing I can do.
Given that going from NFS to SMB "solved" the problem, I'd say the issue is in OSX.
Strange though, because my experience with OSX support for SMB is mixed.

BTW:
Do you have the "temporary download folder" on the NAS or on the local Mac disk?
I recommend the latter.
Martey
Newbie
Newbie
Posts: 6
Joined: April 5th, 2011, 5:17 am

Re: SABnzbd doesn't show free space correctly

Post by Martey »

Yes, very strange. I ran Python on the NAS, and the temp. folder is on the NAS. Strangely both NFS and SMB report the correct size.
Last edited by Martey on April 6th, 2011, 8:23 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd doesn't show free space correctly

Post by shypike »

You might get a different result if you run the little Python program on OSX.
This piece of code is what SABnzbd uses to get the free disk size.
Post Reply