"Too many connections" from primary when backup in use

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
evalf
Newbie
Newbie
Posts: 7
Joined: July 12th, 2008, 12:56 pm

"Too many connections" from primary when backup in use

Post by evalf »

I am using Frugal usenet as my primary server and a mix of different blocks accounts as backup on SABNzbd 1.1.1. I am using my max number of alloted connections with Frugal usenet, and this works flawlessly for downloads that are within that server's retention.

I have been having an intermittent problem with downloads outside of Frugal's retention: in this case the articles are downloaded from my backup servers (which are set at a lower priority), however every now and then I will get an error "too many connections to server" from Frugal. When this happens Sabnzbd sets the number of connections to Frugal to 0 as evidenced by the connections tab of the status page, which in itself is anoying but not a show stopper, however in addition to this problem the download speed will drop to 0, and it seems that SAB is waiting for the Frugal server to come back up, as the only way to make the download start again is to disable Frugal in the server page. Once this is done the downloads starts again from the backup servers, and things continue without a hitch for some time even if I reenable Frugal straight away in the server page.

Troubleshooting is difficult as the "too many connections" error does not happen every time, usually happens some time after the download has started, and does not always result in the download speed dropping to zero with the backup servers.

Initially I have been using my connections to Frugal split in half between their US and EU server, I have tried to use all the connections to their US server as well as reducing the number of connections by a few but the problem still happens.

Another unrelated problem that has made troubleshooting more difficult is that for some reason the log downloaded from the status page seems to stop after a while. For example I rebooted my home server yesterday around 6:15PM, and when I download the log the entries stop just after 7PM. I have tried restarting SAB but the log does not change after the restart, and only rebooting the computer will make the logging start again.

Is there a fix for these issues?

Thanks for your help!
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: "Too many connections" from primary when backup in use

Post by safihre »

Can you try 1.2.0RC1? We have included a fix for Too many connections.
https://sabnzbd.org/downloads
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
evalf
Newbie
Newbie
Posts: 7
Joined: July 12th, 2008, 12:56 pm

Re: "Too many connections" from primary when backup in use

Post by evalf »

Thanks for the prompt reply! I've just installed 1.2.0RC1, I'll test it for a few days and report if it's fixed the problem.
evalf
Newbie
Newbie
Posts: 7
Joined: July 12th, 2008, 12:56 pm

Re: "Too many connections" from primary when backup in use

Post by evalf »

Unfortunately I'm still getting the error with 1.2.0RC1.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: "Too many connections" from primary when backup in use

Post by safihre »

Hmm odd, I've seen this too sometimes with Frugal. Will try to reproduce.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
Taomyn
Full Member
Full Member
Posts: 127
Joined: August 25th, 2008, 3:29 am

Re: "Too many connections" from primary when backup in use

Post by Taomyn »

I've been seeing this for a very long time and simply ignored it as some kind of strange issue. I have 3 Astraweb servers set up in priority order, ssl-eu.astraweb.com 10-connections, ssl-us.astraweb.com 5-connections and ssl.astraweb.com 5-connections, and even with my allocated 20 connections I still get the message quite often.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: "Too many connections" from primary when backup in use

Post by safihre »

We fixed one of the reasons in sabnzbd 1.2.0, but it's very hard to reproduce the issue reliable to test..
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
evalf
Newbie
Newbie
Posts: 7
Joined: July 12th, 2008, 12:56 pm

Re: "Too many connections" from primary when backup in use

Post by evalf »

Thanks for your help. I just installed 1.2.0 and did some testing, and I'm still getting the error message (I'm not sure if there had been an extra fix since 1.2.0RC1).

One thing I was wondering about, it is unfortunate to get the "too many connections error" but in my experience the most problematic part is the fact that the downloads stop completely after a while, even though the files are available on my backup servers and the error message only concerns the primary server which does not hold the file anyway. As I mentioned in my previous post the only way to restart the downloads is to temporarilly disable the primary server that returned the "too many connections" error. Surprisingly they can be reenabled straight away and in my experience don't seem to give any more errors until the downloads are completed.

Is the fact that the downloads stop completely the desired behaviour? I assume this could be due to a concern that some bandwidth could be consumed from the backup servers when maybe some parts could have been retrieved from the primary? Is there a way in the existing build to toggle to an alternative behaviour where the downloads woud just be completed from the backup servers in case the primary gives errors.

Also I've noticed that sometimes the number of available connections (the second number in the connection count) for my primary comes back to the full count after having dropped to zero when the "too many connections" error happened, and sometimes it just seems to be stuck to zero and never recovers. My impression is that it recovers when the downloads don't hang and just complete from the backup servers, but when it does get stuck then it just stays at zero. I'm not sure what is the design timescale for the connection count to come back up, but sometimes i've seen it being stuck to zero for several hours in the case where I've had to manually intervene and disable/reenable the primary servers to get the downloads going again.

Safihre, would it help if I sent you some logs with the error?
Post Reply