Unhandled Exception In Script ... TimeoutError: timed out

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
snkeyez95
Newbie
Newbie
Posts: 5
Joined: July 23rd, 2024, 8:56 am

Unhandled Exception In Script ... TimeoutError: timed out

Post by snkeyez95 »

Any idea what's causing this? Fresh Win 11 install and I have even tried reinstalling.

Image
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Unhandled Exception In Script

Post by sander »

No image visible
snkeyez95
Newbie
Newbie
Posts: 5
Joined: July 23rd, 2024, 8:56 am

Re: Unhandled Exception In Script

Post by snkeyez95 »

The site is not allowing me to attach any links as a 'new user'. I can't even paste the text as it is detected as a link.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Unhandled Exception In Script

Post by sander »

Post the URL with dots in it
snkeyez95
Newbie
Newbie
Posts: 5
Joined: July 23rd, 2024, 8:56 am

Re: Unhandled Exception In Script

Post by snkeyez95 »

h.t.t.p.s:././.i.m.g.u.r.c.o.m./.a./.C.S.K.U.Y.E.l.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Unhandled Exception In Script

Post by sander »

So: https://imgur.com/a/CSKUYEl

(Sorry: I should have said "Post the URL with dots replaced with spaces. Anyway, it worked)

ChatGPT converted it to text

Code: Select all

Unhandled exception in script
Failed to execute script 'SABnzbd' due to unhandled exception: timed out
Traceback (most recent call last):
  File "SABnzbd.py", line 1723, in <module>
  File "SABnzbd.py", line 1218, in main
  File "sabnzbd\decorators.py", line 44, in call_func
  File "sabnzbd\__init__.py", line 314, in initialize
  File "sabnzbd\dirscanner.py", line 68, in __init__
  File "asyncio\events.py", line 823, in new_event_loop
  File "asyncio\events.py", line 720, in new_event_loop
  File "asyncio\windows_events.py", line 316, in __init__
  File "asyncio\proactor_events.py", line 640, in __init__
  File "asyncio\proactor_events.py", line 785, in _make_self_pipe
  File "socket.py", line 646, in socketpair
  File "socket.py", line 295, in accept
TimeoutError: timed out
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Unhandled Exception In Script

Post by sander »

I've never seen this.
The SAB specific thing is dirscanner. But then a time-out in socket (which is network, not disk).
Weird.
It's on Windows, so first guess is firewall/viruscanner blocking access, and thus causing a time-out.

What firewall and virusscanner are you using?

And: did you fill out anything for "Watched Folder" (so: http://127.0.0.1:8080/sabnzbd/config/fo ... irscan_dir ). If so: remove that
snkeyez95
Newbie
Newbie
Posts: 5
Joined: July 23rd, 2024, 8:56 am

Re: Unhandled Exception In Script ... TimeoutError: timed out

Post by snkeyez95 »

Windows 11. No 3rd party firewall/virus scanner. The 'Watched Folder' field is blank.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Unhandled Exception In Script ... TimeoutError: timed out

Post by sander »

I would do this:

Stop SABnzbd
uninstall SABnzbd
find and delete %userprofile%\AppData\Local\sabnzbd\sabnzbd.ini and the whole directory %userprofile%\AppData\Local\sabnzbd

Then: install SABnzbd, click allow if Windows asks for it, and run it ... do you get the wizard? If not: you did not delete the SABnzbd.ini etc. Go back to step one.
If you get the wizard: only fill out one new server. Does it work? Can SABnzbd download? No errors?
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Unhandled Exception In Script ... TimeoutError: timed out

Post by safihre »

This is during startup in an internal part of Python.
Could you maybe try the latest Beta release? What version did you use now? I feel I fixed this problem before.

Sanders suggestion is also good to start with clean ini.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
snkeyez95
Newbie
Newbie
Posts: 5
Joined: July 23rd, 2024, 8:56 am

Re: Unhandled Exception In Script ... TimeoutError: timed out

Post by snkeyez95 »

I haven't seen this error since manually adding Sab to Win's firewall exclusion. Thanks everyone for your replies and support. I'll continue to monitor and try other suggestions if I do see this error popping up again.
Post Reply