Constant "Lost connection to SABnzbd" / the config page takes a while to load

Get help with all aspects of 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
ayman
Newbie
Newbie
Posts: 7
Joined: May 13th, 2023, 5:09 am

Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by ayman »

Hi All
I am running unraid : 6.12.0-rc5 , latest sabnzbd from the hotio/sabnzbd.
I have restarted Server, restarted sabnzbd, I have been having this "Lost connection to SABnzbd" since 6.11 so its not new.
Thing is, I can send files to sabnzbd via sonarr and it downloads just fine,the log shows everything is working fine. It shows login successful from xx my ip address. But it always shows "Lost connection to SABnzbd". the config page shows up fine but takes a while to load, the sabnzbd login screen takes a while to load as well and when I log in, it takes a while to load.

Sometimes it randomly loads and when i click on the spanner icon to do testing like speed and stuff, takes ages to load, then it shows normal download speed/disk speed but then it loses connection

I have my sabnzbd accessed via local IP address and via my web address, and tried different internet browsers as well,

Also http://192.168.1.10:8080/config/general/ the config pages (all of them not just general), shows up and loads up, (although takes a fair 2 minutes).

Also note: when i click on the spanner and see the status page, it the

Local IPv4 address Loading...
Public IPv4 address Loading...
IPv6 address Loading...
Nameserver / DNS Lookup Loading...

The loading all changes to refused :(



Any ideas please?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by sander »

That looks bad.

Bad network? ping 192.168.1.10 ... any packet loss?
Docker?
Overloaded machine running SABnzbd? Run SAB with Logging set to +Debug, restart SAB, and find line with "pystone" in it, like


2023-04-08 10:43:33,741::DEBUG::[getperformance:66] Pystone performance = 84646 (in 0.22 seconds)
2023-04-08 10:51:04,110::DEBUG::[getperformance:66] Pystone performance = 84004 (in 0.22 seconds)
2023-04-08 11:40:09,771::DEBUG::[getperformance:66] Pystone performance = 81530 (in 0.23 seconds)
ayman
Newbie
Newbie
Posts: 7
Joined: May 13th, 2023, 5:09 am

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by ayman »

OKeyyy so pinging -t 192.168.1.10 = all less than 1ms, no packet loss,
Docker has been recomposed again, installed, and installed
No other docker is using lots of memory, here is a pic:

Edit, I cant post links, but my CPU is 20% and sabnzbd is empty in downloads and purged dhistory. I have links on imaur

I will try and figure out how to run sabnzb with debug, i just need to google as I am new to unraid :D
ayman
Newbie
Newbie
Posts: 7
Joined: May 13th, 2023, 5:09 am

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by ayman »

Edit: I have found the debug :) I just attached all of it just incase :)

2023-05-14 08:32:15,321::DEBUG::[SABnzbd:1237] Available certificates = {'x509': 140, 'crl': 0, 'x509_ca': 140}
2023-05-14 08:32:15,322::DEBUG::[getipaddress:101] Local IPv4 address = <REMOVED>
2023-05-14 08:32:15,365::DEBUG::[getipaddress:153] Public IPv4 address = <REMOVED> (in 0.04 seconds)
2023-05-14 08:32:15,365::DEBUG::[getipaddress:166] IPv6 address = <REMOVED>
2023-05-14 08:32:15,377::DEBUG::[getipaddress:88] DNS Lookup = True (in 0.01 seconds)
2023-05-14 08:32:15,785::DEBUG::[getperformance:66] Pystone performance = 151938 (in 0.41 seconds)
2023-05-14 08:32:15,785::DEBUG::[getperformance:50] CPU model = Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
2023-05-14 08:32:15,786::INFO::[SABnzbd:1249] Using INI file /config/sabnzbd.ini
10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0] {'mode': 'showlog', 'apikey':<APIKEY>'}
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by sander »

Docker, so the ping is to the host machine not the SABnzbd instance. Maybe get some better analysis and statistics with:

Code: Select all

curl -vvv  http://192.168.1.10:8080/config/general/
Something completely different: check in the sabnzbd.log is not crashing/restarting all the time. That is a possible cause of "Lost connection to SABnzbd", but not of slow loading.
ayman
Newbie
Newbie
Posts: 7
Joined: May 13th, 2023, 5:09 am

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by ayman »

Code: Select all

root@Gantrithor:~# curl -vvv  http://192.168.1.10:8080/config/general/
*   Trying 192.168.1.10:8080...
* Connected to 192.168.1.10 (192.168.1.10) port 8080 (#0)
> GET /config/general/ HTTP/1.1
> Host: 192.168.1.10:8080
> User-Agent: curl/7.88.1
> Accept: */*
> 
< HTTP/1.1 303 See Other
< Content-Type: text/html;charset=utf-8
< Server: CherryPy/18.8.0
< Date: Mon, 15 May 2023 06:17:08 GMT
< X-Frame-Options: SameOrigin
< Location: /login/
< Vary: Accept-Encoding
< Content-Length: 60
< 
* Connection #0 to host 192.168.1.10 left intact
This resource can be found at <a href="/login/">/login/</a>.root@Gantrithor:~# 

Here you go sander :) what do i do next?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by sander »

Oh, you have a login on SABnzbd. Then it won't work.

My idea was: instead of a ping, do that curl so you get insight & statistics.
ayman
Newbie
Newbie
Posts: 7
Joined: May 13th, 2023, 5:09 am

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by ayman »

Heya, I did the curl and that was the output, that I pasted above, what can I do?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by sander »

Good. Now you have a web-ping. If you run that, and it works and it's fast, how can your webbrowser be slow / lost connection?
ayman
Newbie
Newbie
Posts: 7
Joined: May 13th, 2023, 5:09 am

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by ayman »

I honestly have no idea, is it a corrupt Docker? shall i remake it again?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by sander »

I don't think it's a corrupt docker image.

Sabnzbd on Docker & Unraid is somehow not a happy combination: somehow Unraid-users experience/report strange things: wibbly-wobbly performance, or - like you - Lost Connection.
ayman
Newbie
Newbie
Posts: 7
Joined: May 13th, 2023, 5:09 am

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by ayman »

Do you think its authentication issue? shall i delete the config and start again!
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Constant "Lost connection to SABnzbd" / the config page takes a while to load

Post by sander »

No, I don't think so, but you could disable it. And that makes the curl-ping feasible ... useful to monitor it.

I think the root cause with SABnzbd on Unraid-docker is something with lack of resources given by Unraid/docker to SABnzbd. That would explain your "Lost connection to SABnzbd" / the config page takes a while to load, and Unraid-docker-sabnzbd users complaining about wibbly-wobbly download speed.
Post Reply