A follow-up of sorts to my 2023 thread Older jobs with missing parts will not fail, which 4.2.3 fixed. On 5.1.3 (Windows 11) I'm seeing the same symptom again: jobs on older, incomplete posts sit at 99% for hours and never fail. I've tracked it down to three things and reproduced each one by running 5.1.3, and again 5.2.0 Beta 2, from source against scripted NNTP servers. Full logs and the scripts are in the attached zip.
Test setup
- SABnzbd 5.1.3 from git (tag 5.1.3, a647f73), Python 3.13, sabctools 9.6.3, Linux, debug logging with --log-all. The same scenarios on 5.2.0 Beta 2 (tag 5.2.0Beta2, 22537ef, sabctools 9.7.1) give the same results (for example segment 2 requested 123 times, the failed connects never benched, the Blocknews refusal never dropped), and the code involved is unchanged in develop (cd09879).
- Settings: Maximum retries 2, Disable server penalties on, Only get articles for top of queue off, Abort jobs that cannot be completed on, server timeout 20.
- Servers: p0 (priority 0) lacks segment 2, m1 (priority 1, 4 connections) misbehaves, b2 (priority 2) has segment 2. One file in 3 segments, each run 180 seconds.
- Baseline, with m1 answering 430: the job completes in a few seconds with segment 2 from b2.
m1 answers BODY for segment 2 with 503 (any code outside 220/222/223/411/423/430/451/500 behaves the same). m1 was asked for it 124 times in 180 seconds with Maximum retries at 2 (128 times with m1 Optional). b2 was never asked and the job stayed at 66%.
Code: Select all
2026-10-30 16:05:06,183::DEBUG::[newswrapper:435] Thread [email protected]: b'BODY <[email protected]>\r\n'
2026-10-30 16:05:06,185::DEBUG::[downloader:951] Thread [email protected]: Server error or unknown status code: 503
2026-10-30 16:05:06,710::DEBUG::[newswrapper:435] Thread [email protected]: b'BODY <[email protected]>\r\n'
2026-10-30 16:05:06,712::DEBUG::[downloader:951] Thread [email protected]: Server error or unknown status code: 503
[... 243 more lines like these ...]
2026-10-30 16:07:58,204::DEBUG::[downloader:951] Thread [email protected]: Server error or unknown status code: 5032. Optional servers are not benched for failed connects or "too many connections"
- m1's TCP connects time out (like Windows error 10060): 19 "Failed to connect: timed out" in 180 seconds with m1 Optional, never benched, b2 never asked.
- m1's TLS handshake never completes: 18 "Failed to connect: ... The handshake operation timed out", same result.
- m1 refuses logins with "502 Too many connections: exceeded maximum number of connections per user": 26 refusals with m1 Optional, never benched.
- For contrast, m1 accepts the connection but never answers: benched after 2 "Timed out", b2 supplies segment 2 and the job completes in 24 seconds.
Code: Select all
2026-10-30 16:12:34,462::WARNING::[newswrapper:705] Failed to connect: timed out [email protected]:12091 (m1.sabtest)
[... 17 more ...]
2026-10-30 16:15:14,747::WARNING::[newswrapper:705] Failed to connect: timed out [email protected]:12091 (m1.sabtest)3. A "quota exceeded" login refusal is treated as too many connections
My Blocknews block lapsed when I changed plans with my main provider, but I'd left the server enabled at priority 40. It answers AUTHINFO PASS with:
Code: Select all
502 news.blocknews.net: Access denied to your node or block quota exceeded (please check your user portal) - [email protected]Code: Select all
2026-10-30 16:08:27,136::WARNING::[downloader:907] Server bn.sabtest reported: 502 news.blocknews.net: Access denied to your node or block quota exceeded (please check your user portal) - [email protected]
2026-10-30 16:09:27,195::DEBUG::[downloader:210] Resetting article queue for <Server: id=bn, host=bn.sabtest:12112> (deque([<Article: [email protected], bytes=67746, art_id=None>]))
2026-10-30 16:10:27,418::DEBUG::[downloader:210] Resetting article queue for <Server: id=bn, host=bn.sabtest:12112> (deque([<Article: [email protected], bytes=67746, art_id=None>]))
2026-10-30 16:11:26,286::DEBUG::[downloader:210] Resetting article queue for <Server: id=bn, host=bn.sabtest:12112> (deque([<Article: [email protected], bytes=67746, art_id=None>]))Suggestions
- Keep the per-server try count across retries, as 4.2.3 did.
- Count failed connects (and repeated too-many refusals) towards bad_cons, or release a server's queued articles after repeated connect failures.
- Check clues_login() and clues_pay() before clues_too_many(), or leave "quota" refusals out of the too-many branch.
You can access the zip here: https://drive.google.com/file/d/11bLC_D ... sp=sharing
Note: Claude AI helped me diagnose and do some testing.
Thanks for all the work on SABnzbd.
