1.2.0: Propagation delay not working correctly

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.
Post Reply
Starshadow
Newbie
Newbie
Posts: 14
Joined: August 14th, 2013, 12:23 pm

1.2.0: Propagation delay not working correctly

Post by Starshadow »

When I have a propagation delay time set, downloads that needed it have a tendency to never actually start downloading when the delay time runs out. The 'PROPAGATING' notice disappears but the downloads just hang out in the queue not doing anything. Sometimes they do start on their own, but I haven't figured out a rhyme or reason for why. In making the attached screenshot, I had 5 NZBs waiting for propagation with a delay of 45 minutes set. 1 download started on its own when the delay was up while the other 4 didn't do anything. I can start the hung downloads by manually pausing and resuming each one, and I've also seen them start after adding another NZB that did not require a propagation delay.

FYI, I've had this problem since the propagation delay feature was introduced, it's not new in 1.2.0.

Image
Last edited by Starshadow on January 29th, 2017, 5:27 pm, edited 1 time in total.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 1.2.0: Propagation delay not working correctly

Post by safihre »

Interesting, we've never seen this before.
Do jou have "Check before download" turned on?
How many servers do you have?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Starshadow
Newbie
Newbie
Posts: 14
Joined: August 14th, 2013, 12:23 pm

Re: 1.2.0: Propagation delay not working correctly

Post by Starshadow »

I do not have "Check before download" turned on. I have 5 servers configured, 2 with priority 0, 2 with priority 1, and 1 with priority 2.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 1.2.0: Propagation delay not working correctly

Post by safihre »

Could you try if it works if you disable Check before download?
We have been having issues with it that we just can't reliably reproduce in order to fix it.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 1.2.0: Propagation delay not working correctly

Post by safihre »

Oops I see now that you do *not* have 'Check before download' enabled..

What OS are you on? We could give some code modifications that might help.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Starshadow
Newbie
Newbie
Posts: 14
Joined: August 14th, 2013, 12:23 pm

Re: 1.2.0: Propagation delay not working correctly

Post by Starshadow »

I'm on Linux (Gentoo, kernel 4.4.39, python 2.7.12). I'd be happy to try out some code changes. In the meantime, since I'm the only one with the issue, I'll try setting up a fresh default configuration and see if anything changes.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 1.2.0: Propagation delay not working correctly

Post by safihre »

It's probably something to do with the number of servers and some timeouts. We have heard more problems of stalling (non starting) downloads, but just can't reproduce it..
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Starshadow
Newbie
Newbie
Posts: 14
Joined: August 14th, 2013, 12:23 pm

Re: 1.2.0: Propagation delay not working correctly

Post by Starshadow »

Resetting my configuration and deleting my admin dir seems to have fixed it. I started from scratch and entered my own settings one by one. It's now identical to before but delayed downloads are no longer hanging. There were some interesting differences between my old and new ini, mostly retired options from previous versions of sabnzbd. I tried readding a few that seemed like they had a chance at being related (e.g. random_server_ip = 1) but I can't reproduce the hanging. My admin dir had been in use for least 4 years, so my bet is that something in there was the culprit. I'll keep an eye open for the next few days and see if I notice it again.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 1.2.0: Propagation delay not working correctly

Post by safihre »

Let us know indeed :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Starshadow
Newbie
Newbie
Posts: 14
Joined: August 14th, 2013, 12:23 pm

Re: 1.2.0: Propagation delay not working correctly

Post by Starshadow »

I'm sad to report that I'm seeing downloads hang again. But I'm getting better at making it happen on cue. My python is rusty, but I dug around in the code and debug log and have some lead on what might be happening. Try this:

1. Have an empty queue.
2. Add some number of NZBs that will need propagation delay based on the current delay setting, and add one NZB that will reach the delay time and finish downloading before any others do.
3. Restart SABnzbd, and then don't touch it.
4. The first NZB will start and finish correctly.
5. After the first NZB is finished, all servers will have been appended to <NzbQueue>.__try_list for some reason.
6. As other NZBs reach the delay time, they will not start downloading, as all servers are currently in the try list and will not pass the has_articles_for check.
7. When some other event causes the try list to be reset, the hung downloads will start downloading as normal.

This happens even with only 1 server enabled.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 1.2.0: Propagation delay not working correctly

Post by safihre »

Thanks so much for helping us! That's some great debugging there.

We removed the TryList at the NZBQueue-level, could you see if this fixes it?
https://github.com/sabnzbd/sabnzbd/arch ... rylist.zip
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Starshadow
Newbie
Newbie
Posts: 14
Joined: August 14th, 2013, 12:23 pm

Re: 1.2.0: Propagation delay not working correctly

Post by Starshadow »

Thanks for the fix! It looks like it solved the issue. I'll keep running this version for a while and see if I notice any problems. Thanks again.
Post Reply