0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877 MB

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.
Post Reply
User avatar
sander
Release Testers
Release Testers
Posts: 9263
Joined: January 22nd, 2008, 2:22 pm

0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877 MB

Post by sander »

This has happened a few times: SABnzbd 0.4.0 beta 2 filling up the cache directory with 1647 files with a total size of 877MB:

sander@ubuntu804:~/SABnzbd-0.4.0Beta2$ du -BM /home/sander/cache/
877M    /home/sander/cache/
sander@ubuntu804:~/SABnzbd-0.4.0Beta2$ ll /home/sander/cache/ | wc -l
1647
sander@ubuntu804:~/SABnzbd-0.4.0Beta2$

I believe it happens after an ungraceful stop and/or restart.

SABnzbd did not recover from this and my disk got full.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
nzb_leecher
Full Member
Full Member
Posts: 211
Joined: January 22nd, 2008, 1:38 pm

Re: 0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877 MB

Post by nzb_leecher »

what if you set a max to cache? I set mine to 350M, had no problems yet after many restarts
User avatar
sander
Release Testers
Release Testers
Posts: 9263
Joined: January 22nd, 2008, 2:22 pm

Re: 0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877 MB

Post by sander »

The cache (.sabnzbd/cache/) filled up again until my disk was full.

I will try the cache limit.



Traceback (most recent call last):
  File "/usr/lib/python2.5/logging/__init__.py", line 753, in emit
    self.flush()
  File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 28] No space left on device
2008-04-18 23:16:58,147::WARNING::[assembler] missing
Traceback (most recent call last):
  File "/usr/lib/python2.5/logging/__init__.py", line 753, in emit
    self.flush()
  File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 28] No space left on device
2008-04-18 23:16:58,186::WARNING::[assembler] missing
Traceback (most recent call last):
  File "/usr/lib/python2.5/logging/__init__.py", line 753, in emit
    self.flush()
  File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 28] No space left on device
2008-04-18 23:16:58,222::WARNING::[assembler] missing
Traceback (most recent call last):
  File "/usr/lib/python2.5/logging/__init__.py", line 753, in emit
    self.flush()
  File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 28] No space left on device
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9263
Joined: January 22nd, 2008, 2:22 pm

Re: 0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877 MB

Post by sander »

What do I fill out here? 300? 300000? 300MB?

"Article Cache Limit:
Cache articles in memory (reduce disk access)."
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877

Post by shypike »

The cache directory and the memory cache are two completely different things.
The memory cache is for keeping articles in memory instead of writing them to disk.
Setting it high enough so that SABnzbd can hold a complete file, reduces disk access.
I'd say: set it to 70M if you can spare the memory.

Another tip is to enable the disk space check for the download dir.
It's better to pause SABnzbd before the disk fill up.

These tips will not solve your problem with the bad resume after a crash.
When SABnzbd is bluntly terminated, you never know what it will do on restart.
Although I'm surprised and puzzled by what happens on your system.
Maybe some consistency checks can be added to prevent too wild behaviour.
User avatar
sander
Release Testers
Release Testers
Posts: 9263
Joined: January 22nd, 2008, 2:22 pm

Re: 0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877 MB

Post by sander »

The second (third), fresh try of a download failed too; with 300 MB to go, SABnzbd had stopped.

Can I send the NZB to a mail adresses for inspection? What's the address?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877

Post by shypike »

bugs at sabnzbd.org
User avatar
sander
Release Testers
Release Testers
Posts: 9263
Joined: January 22nd, 2008, 2:22 pm

Re: 0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877 MB

Post by sander »

Even with SAB 0.3.4, SAB stops with still 30 MB or so to go. The directory is still in "incomplete". No (!) output on stdout / stderr.

I've sent the NZB to the bugs-address

And I've created a new NZB from another search engine.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9263
Joined: January 22nd, 2008, 2:22 pm

Re: 0.4.0 beta 2 fills up cache-directory (after restart?) with 1647 files / 877 MB

Post by sander »

Some result with a NZB from another search engine: SAB stops with still 60 MB to go.

Strange.

BTW: It doesn't have to be the NZB; it could also be something on my system.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply