'Restarting because of crashed postprocessor'

Support for the Debian/Ubuntu package, created by JCFP.
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
Fire69
Newbie
Newbie
Posts: 16
Joined: July 10th, 2008, 4:00 am

'Restarting because of crashed postprocessor'

Post by Fire69 »

Hi,

I'm using Sabnzbd on Ubuntu 20.04.
Yesterday I noticed I was still on an older version, v3.2.something. I opened up a terminal and did an apt-update/upgrade, no new version available.
Checked my sources, repo was gone, strange.
Added the /nobetas-repo again, apt now updated to the latest v3.4.2, everything seemed OK.

Some hours ago it downloaded an episodes and well, everything isn't OK. After 10min I had +60 mails in my box about a failed download.
It seems it's getting stuck 'Repair: quick checking' (even though I think no repair is needed) and this causes Sabnzbd to crash.
After the crash it starts the repair again and crashes, infinite loop.

I can only stop the loop when I empty my incomplete folder so it doesn't try processing anything anymore.

In sabnzbd.error.log it seems like it's caused by Guessit?

Sab log: https://pastebin.com/V8aqzpGS
Sab error log: https://pastebin.com/2aXgG6dP

[edit]
Did some more looking around.
When I go to Settings - Sorting all I get is:

Code: Select all

500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python3/dist-packages/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 169, in internal_wrap
    return wrap_func(*args, **kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 1892, in index
    prop for prop in guessit_properties().keys() if prop not in EXCLUDED_GUESSIT_PROPERTIES
  File "/usr/lib/python3/dist-packages/guessit/api.py", line 82, in properties
    return default_api.properties(options)
  File "/usr/lib/python3/dist-packages/guessit/api.py", line 234, in properties
    config = self.configure(options, sanitize_options=False)
  File "/usr/lib/python3/dist-packages/guessit/api.py", line 163, in configure
    self.rebulk = rules_builder(advanced_config)
  File "/usr/lib/python3/dist-packages/guessit/rules/__init__.py", line 56, in rebulk_builder
    rebulk.rebulk(episodes(_config('episodes')))
  File "/usr/lib/python3/dist-packages/guessit/rules/properties/episodes.py", line 168, in episodes
    rebulk.chain(
  File "/usr/lib/python3/dist-packages/rebulk/builder.py", line 179, in regex
    return self.pattern(self.build_re(*pattern, **kwargs))
  File "/usr/lib/python3/dist-packages/rebulk/builder.py", line 107, in build_re
    return RePattern(*pattern, **kwargs)
  File "/usr/lib/python3/dist-packages/rebulk/pattern.py", line 441, in __init__
    pattern = call(re.compile, pattern, **self._kwargs)
  File "/usr/lib/python3/dist-packages/rebulk/loose.py", line 60, in call
    return function(*call_args, **call_kwargs)
  File "/home/fire69/.local/lib/python3.8/site-packages/regex/regex.py", line 351, in compile
    return _compile(pattern, flags, ignore_unused, kwargs, _cache_all)
  File "/home/fire69/.local/lib/python3.8/site-packages/regex/regex.py", line 602, in _compile
    raise ValueError('unused keyword argument {!a}'.format(any_one))
ValueError: unused keyword argument 'tags'
Powered by CherryPy 8.9.1
Looks like guessit isn't installed or working?

Tried manually installing it, but it's already there

Code: Select all

python3-guessit is already the newest version (3.1.0-2).
python3-guessit set to manually installed.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 'Restarting because of crashed postprocessor'

Post by safihre »

Try to remove python-regex, it interferes with guessit.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Fire69
Newbie
Newbie
Posts: 16
Joined: July 10th, 2008, 4:00 am

Re: 'Restarting because of crashed postprocessor'

Post by Fire69 »

Thanks for the feedback.

Found this thread in the meantime: viewtopic.php?t=25553
I removed regex which caused my sabnzb not to start anymore.
After manually removing all files/folders, everything seems to be working again.

I'm just wondering now, how do I know if this didn't kill some other software that does need to have regex installed?
Does SickGear/Couchpotato need it?

Is this something that is going to be adapted in sabnzb so it doesn't cause any problems anymore? It worked fine with regex installed before.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 'Restarting because of crashed postprocessor'

Post by safihre »

No, it's some bug in rebulk that was fixed in a new version 2 years ago. We can't do anything about it. Nothing to do with Sab.
But because you have to rely on the apt packages, you are just stuck with these older versions.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: 'Restarting because of crashed postprocessor'

Post by jcfp »

safihre wrote: January 29th, 2022, 12:32 pmTry to remove python-regex, it interferes with guessit.
For the record: it's not the packaged python3-regex that triggers this, but the combination of a much newer version of the regex module installed by pip (into /home/fire69/.local/lib/python3.8/site-packages/) with the python3-rebulk package from 20.04.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 'Restarting because of crashed postprocessor'

Post by safihre »

Ah, good to know!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Fire69
Newbie
Newbie
Posts: 16
Joined: July 10th, 2008, 4:00 am

Re: 'Restarting because of crashed postprocessor'

Post by Fire69 »

jcfp wrote: January 30th, 2022, 1:32 pm
safihre wrote: January 29th, 2022, 12:32 pmTry to remove python-regex, it interferes with guessit.
For the record: it's not the packaged python3-regex that triggers this, but the combination of a much newer version of the regex module installed by pip (into /home/fire69/.local/lib/python3.8/site-packages/) with the python3-rebulk package from 20.04.
So if I understand correctly now that I used pip to remove the regex-module, I should be able to use apt to install python3-regex without it causing anymore problems?
Post Reply