Page 1 of 1

ENGINE socket.error 8 / SABnzbd 4.0.1 [1263068] on a Synology

Posted: May 22nd, 2023, 1:08 am
by iUseNetter
Since the update to the newest available SABnzbd version for a Synology NAS I get this error from time to time:

Code: Select all

WARNING 16 hours ago [21/May/2023:16:01:58] ENGINE socket.error 8
Traceback (most recent call last):
  File "/volume5/@appstore/sabnzbd/env/lib/python3.11/site-packages/cheroot/server.py", line 1287, in communicate
    req.respond()
  File "/volume5/@appstore/sabnzbd/env/lib/python3.11/site-packages/cheroot/server.py", line 1077, in respond
    self.server.gateway(self).respond()
  File "/volume5/@appstore/sabnzbd/env/lib/python3.11/site-packages/cheroot/wsgi.py", line 139, in respond
    self.write(chunk)
  File "/volume5/@appstore/sabnzbd/env/lib/python3.11/site-packages/cheroot/wsgi.py", line 221, in write
    self.req.write(chunk)
  File "/volume5/@appstore/sabnzbd/env/lib/python3.11/site-packages/cheroot/server.py", line 1133, in write
    self.conn.wfile.write(chunk)
  File "/volume5/@appstore/sabnzbd/env/lib/python3.11/site-packages/cheroot/makefile.py", line 68, in write
    res = super().write(val, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/volume5/@appstore/sabnzbd/env/lib/python3.11/site-packages/cheroot/makefile.py", line 24, in write
    self._flush_unlocked()
  File "/volume5/@appstore/sabnzbd/env/lib/python3.11/site-packages/cheroot/makefile.py", line 33, in _flush_unlocked
    n = self.raw.write(bytes(self._write_buf))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/packages/python311/target/lib/python3.11/socket.py", line 724, in write
    return self._sock.send(b)
           ^^^^^^^^^^^^^^^^^^
  File "/var/packages/python311/target/lib/python3.11/ssl.py", line 1210, in send
    return self._sslobj.write(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2393)
What can I do to solve this problem?

I can't tell you when exactly this error occurs. The last 2 times it was at night, long after the last download was finished.

Update:
This ticket seems to describe the problem exactly:
https://github.com/sabnzbd/sabnzbd/issues/2065

Re: ENGINE socket.error 8 / SABnzbd 4.0.1 [1263068] on a Synology

Posted: August 29th, 2023, 12:05 am
by das1996
Any updates on fixes or work arounds?

Re: ENGINE socket.error 8 / SABnzbd 4.0.1 [1263068] on a Synology

Posted: November 5th, 2023, 10:19 pm
by Vervecine
That SSL EOF error appears to indicate an issue with the SSL connection being closed unexpectedly while SABnzbd is trying to write data. A few things you could try:

- Upgrade to the latest version of SABnzbd if you haven't already, as newer releases may have fixed similar SSL bugs.

- Try adjusting the SSL/TLS settings in SABnzbd's configurations to use a different protocol like TLS 1.2 or disable outdated ones like SSLv3.

- If using a reverse proxy, check its SSL settings are up to date and secure as well. Outdated protocols can cause issues.

- Make sure the system date/time is accurate. Certificate issues can cause SSL problems.

- Check for firewall, VPN, antivirus or other software that could be interfering with long running SSL connections.

- Monitor system resources in case something is causing the NAS to terminate connections after periods of inactivity.

- Consider running SABnzbd on a different system than the NAS if not directly related to Synology's software.

While tricky to troubleshoot without repro steps, it seems something is causing the SSL socket to timeout or error after being idle. Focus on the SSL configurations and anything that could disrupt connections. Hope this gives you some ideas on where to troubleshoot further!