CRC Errors

Report & discuss bugs found in 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: CRC Errors

Post by shypike »

sl1000 wrote:is that the equivalent to kill -9?
Somebody or something disabling the QPKG and SAB taking more then 5 seconds to gracefully shutdown.
"kill -9" is instant termination.
Signal 15 is more like Control-C from a terminal.
The signal gets sent to SABnzbd, which handles it.
However SABnzbd exit can take a lot of time because it starts dumping all
cached articles to disk. With a large cache this may take more than 5 seconds.
I must look into that and see whether the exit can be staged such that the chance
of queue corruption is minimized. Of course the cached articles have less priority than an healthy queue.
sl1000
Newbie
Newbie
Posts: 29
Joined: August 7th, 2010, 4:16 am

Re: CRC Errors

Post by sl1000 »

What would be the proper way to stop the service? I can change my scripts :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: CRC Errors

Post by shypike »

After sending the signal, you would need to keep checking
until the process is no longer active.
So that would mean examining the "ps" output.
Does the OS have a /proc folder where each process has an entry?
Also, SABnzbd has the --pid <path> commandline option.
When used, it will write a "pid" file to the specified location and remove it just before it exits.
sl1000
Newbie
Newbie
Posts: 29
Joined: August 7th, 2010, 4:16 am

Re: CRC Errors

Post by sl1000 »

Yes, it has a /proc folder. It's like a normal linx distro, But qnap heavely changed busybox, and crippled most normal functions in ps, top, etc.
Checking for the pid existance would be nice, i'll look into that :)
sl1000
Newbie
Newbie
Posts: 29
Joined: August 7th, 2010, 4:16 am

Re: CRC Errors

Post by sl1000 »

shypike, can i also force sab to use a certain filename for the pid file? or is sabnzbd-<portnr>.pid the only fixed option?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: CRC Errors

Post by shypike »

The name is fixed, but predictable.
Also because it supports multiple instances (with different ports).
So if you force the port number, you know the name.
Otherwise it's just a question of using a wild-card.
Post Reply