Page 1 of 1

[Solved]Remaining Disk Space not correct 0.00gb

Posted: August 17th, 2008, 9:43 pm
by p.witty
Hello all!  Sorry about the n00b post.

I just finished installing SABnzbdPlus 0.4.2 on my AppleTV 1.1.  It works like a charm -- EXCEPT that it is not detecting my free disk space properly.  I could have sworn that when I first started the app up and navigated to the GUI via CouchSurfer, it showed the space correctly.  But now I'm accessing the GUI from my laptop, and it shows Download Dir: 0.00 GB, etc:

Download Dir: 0.00 GB - Complete Dir: 0.00 GB - Download speed: 0.00 KB/s - Queued: 365.03/784.70 MB  - PAUSED

If I try to resume the download, of course it pauses after a few seconds, complaining that I'm out of space.  This is, of course, totally incorrect.  df -h shows:

/dev/disk0s4   148G   900M   147G     1%    /mnt

My download directory is /mnt/Scratch/Users/frontrow/downloads.  Clearly this should have a bunch of free space.

???   Any help you folks could provide me with would be GREATLY appreciated.

Re: Remaining Disk Space not correct 0.00gb

Posted: August 18th, 2008, 1:28 pm
by p.witty
Sorry, forgot the necessary info:


Version: 0.4.2 Final
OS: AppleTV 1.1 (OSX 10.4.9 essentially)
Install-type: OSx .app (followed instructions at http://forum.awkwardtv.org/viewtopic.ph ... nzbd#p9453)
Skin (if applicable): Default (I do get warnings that Plush skin is not found)
Firewall Software: None
Are you using IPV6? No
Is the issue reproducible? Very much YES

PLEASE HELP ME!!  :'(

I'll try the IRC channel tonight after work... 

Re: Remaining Disk Space not correct 0.00gb

Posted: August 18th, 2008, 1:56 pm
by switch
I'm not sure what to tell you, it looks like the system is returning an OSError when sabnzbd runs a command that returns details on the file system. Why it would error out? I have no idea.

Did you install python like it says in the guide? By running the .app you don't actually need python installed; however it could help in debugging this issue if you did install python and can run commands from it somehow.

Edit: Just to make sure, the "Minimum free space.." option in Config>Folders is not set to any value, yes?

Re: Remaining Disk Space not correct 0.00gb

Posted: August 18th, 2008, 3:02 pm
by rAf
Hi p.witty,

I don't know how much OSX on AppleTV is close to OSX on "regular" Macs...

I don't have an appleTV but i try to look how it's work to help you.

Maybe you could check sabnzbd.log and post more infos.

Re: Remaining Disk Space not correct 0.00gb

Posted: August 18th, 2008, 11:32 pm
by p.witty
Hey everyone!!  I really appreciate your quick responses!!

@switch: Minimum free space is set to 0 (default).  I tried setting it to -1 (I really thought that would work!!), yet no effect.  :(
I have python installed.  I also have to install cheetah, feedparser, and yenc -- so hopefully I'll get back to you later tonight about what happens with that.

@rAf: Please find the logs attached.

Note that the following error was generated when I tried to create a username and password to login with.

17/Aug/2008:19:20:29 HTTP INFO Traceback (most recent call last):
  File "cherrypy/_cphttptools.pyc", line 126, in _run
  File "cherrypy/filters/__init__.pyc", line 151, in applyFilters
  File "sabnzbd/interface.pyc", line 209, in beforeFinalize
  File "sabnzbd/interface.pyc", line 1220, in index
  File "sabnzbd/interface.pyc", line 2158, in build_header
  File "posixpath.pyc", line 112, in basename
  File "posixpath.pyc", line 77, in split
AttributeError: 'NoneType' object has no attribute 'rfind'

Re: Remaining Disk Space not correct 0.00gb

Posted: August 19th, 2008, 12:49 pm
by p.witty
OK so...  still working on running SABnzbd from python...  running into a tiny snag trying to find gcc for osx.  But I think I know where to look, so as soon as I'm done at the office...

Furthermore, I had a brilliant (if not obvious) idea: why don't I try the version tested in the instructions I followed (even though instructions shouldn't be necessary for the SABnzbd.app anyway)?  I'll try SABnzbd 0.3.4 from www.br41n.com.  I'm not sure what features will be missing, though... I wonder if 0.3.4 has RSS support?  That's my main goal anyway...  to get downloads from RSS working.  ;D

Sad that the latest release seems to fail to run properly though...  I wish a developer could tell me how 0.4.2 Final gets the available disk space -- maybe I could play with it a little just in Terminal to see if I could make it work.  Oh well.

I'll let you all know how this works later today.

@rAf: also, I forgot to mention before -- OSX on AppleTV is exactly like OSX on "regular" macs (I think 10.4.9), EXCEPT it is very stripped down.  Many programs are missing (such as SSH, etc), which I had to copy back over.  Furthermore, many kext's are missing, which also have to be copied over and loaded (luckily there are scripts which do this for you).  I guess kext's are like drivers?  Or something like that... since there were USB, nfs, dosfs, etc kext's.  Perhaps there's a program I'm missing from /usr/bin that grabs the disk space??  In fact... ah geez, I shoulda thought of this earlier.  Notice in my first post, I talk about the output from df?  Well...  first I tried du... which was not found.  I bet THAT's the problem.  I'll copy du over today and see where that gets me.  :)

Thanks for helping me think this through you guys...

Re: Remaining Disk Space not correct 0.00gb

Posted: August 19th, 2008, 4:02 pm
by rAf
Hi p.witty,
I've checked your sabnzbd.log and there is something that i don't understand :

in line 6 :

Code: Select all

2008-08-18 02:26:05,084::INFO::[sabnzbd] Loading data for rss_data.sab from /Users/frontrow/.sabnzbd/cache/rss_data.sab
in line 13 :
2008-08-18 02:26:05,711::INFO::par2 binary... found (/mnt/Scratch/Users/frontrow/Applications/SABnzbd.app/Contents/Resources/osx/par2/par2)

Could you post your sabnzbd.ini (be careful, don't post your usenet server config...) ?

Re: Remaining Disk Space not correct 0.00gb

Posted: August 19th, 2008, 4:23 pm
by switch
Can you post the warning you get when trying to unpause?

If it is "Disk full! Forcing Pause" then the operating system is reporting back that the disk is full when trying to write the file. You need to double check the incomplete folder is saving in the location you expect.

Re: Remaining Disk Space not correct 0.00gb

Posted: August 19th, 2008, 7:54 pm
by p.witty
You guys rule.  After some serious head-scratching...  switch will take home the victory for solving my issue -- though I feel 100% confident that rAf would have pointed out my bone-headed mistake as soon as I uploaded my ini file (which I was about to do).

In my Folders setup, I guess I accidentally had set my complete and incomplete download folders to:
/downloads/complete
/downloads/incomplete

Respectively.  But df -h shows:
Filesystem    Size  Used  Avail Capacity  Mounted on
/dev/disk0s3  900M  893M    0B  100%    /
devfs          96K    96K    0B  100%    /dev
fdesc          1.0K  1.0K    0B  100%    /dev
        512K  512K    0B  100%    /.vol
/dev/disk0s4  148G  1.1G  147G    1%    /mnt

So obviously / has no space left.  I just removed the "/" before my downloads directory and voila!  Success!!  (User dir is /mnt/Scratch/Users/frontrow).

Thanks so much for your help you two -- I really wouldn't have been able to figure this out without your help (as sad as that may be, it is totally and 100% true).

Keep up the great work and rAf -- I have you to thank for this lovely OSX distro.  So THANK YOU!!  ;D