Page 1 of 2

start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 5:25 pm
by MartyIU13
Hi All. Hoping someone can help or point me in the right direction. I use SABnzbd on a QNAP NAS and out of the blue today after restarting my NAS SAB on it won't open. The log on my QNAP for it says the below. Not sure what start daemon failed means and what could have caused that. I didn't change any settings at all. Any help on fixing this would be greatly appreciated!

daemon: NOT active
file (/opt/bin/git): exists
update 'SABnzbd' from remote repository: OK
current git branch: master
file (/opt/bin/python3): exists
load UI ports from application: OK
start daemon: failed!
= ExecuteAndLog()
output: "Traceback (most recent call last):
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/SABnzbd.py", line 56, in <module>
import sabnzbd
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/__init__.py", line 91, in <module>
import sabnzbd.rss as rss
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/rss.py", line 35, in <module>
import sabnzbd.emailer as emailer
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/emailer.py", line 36, in <module>
from sabnzbd.notifier import check_cat
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/notifier.py", line 36, in <module>
from sabnzbd.newsunpack import create_env
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/newsunpack.py", line 60, in <module>
from sabnzbd.nzbstuff import NzbObject, NzbFile
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/nzbstuff.py", line 89, in <module>
from sabnzbd.deobfuscate_filenames import is_probably_obfuscated
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/deobfuscate_filenames.py", line 38, in <module>
import sabnzbd.utils.file_extension as file_extension
File "/share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd/sabnzbd/utils/file_extension.py", line 8, in <module>
import puremagic
ModuleNotFoundError: No module named 'puremagic'"
result: [1]

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 5:32 pm
by OneCD
Hey Marty. :)

Please login to your NAS via SSH as the 'admin' user and use sherpa to start SABnzbd. This will automatically install the new Python modules required by the latest SABnzbd:

Code: Select all

sherpa start sab
You'll only need to do this once.

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 6:40 pm
by MartyIU13
Thank you for the reply. I did that and got the below error in Putty

fail: Download & install 'Python3' base modules failed ! result_code: [1]
fail: Download & install 'Python3' specific modules failed ! result_code: [1]
fail: Installed 2 PIP groups failed
fail: 'SABnzbd' service operation failed. Check (/var/log/SABnzbd.log) for more information

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 6:46 pm
by MartyIU13
I also tried sherpa upgrade SABnzbd and it said no new package is available and did uninstall and install, which gave the same error

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 7:04 pm
by OneCD
Can you please upload your sherpa log via the 'paste' command?

Code: Select all

sherpa paste log
... then post the generated URL back here? :)

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 7:21 pm
by OneCD
MartyIU13 wrote: September 30th, 2021, 6:46 pm ... and did uninstall and install, which gave the same error
Uh-oh, I just noticed this. I hope you backed-up your settings first. ???

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 7:29 pm
by MartyIU13
I didn't, but it's not a big deal. I have uninstalled and reinstalled in the past and it's not hard to set it back up. I am anal and have screenshots of all of it so no issue with starting over.

Sherpa paste log is at https://termbin.com/tsk5

I realized I was running sherpa v210328 and saw on github there was version 210418b. Installed that version of sherpa. I ran sherpa paste log after uninstalling SAB via new version of sherpa, restarting NAS, then installing SAB through new version of sherpa, which gave the below error:

sherpa 210926 • a mini-package-manager for QNAP NAS

fail: Download & install 'Python3' base modules failed ! result_code: [1]
fail: Download & install 'Python3' specific modules failed ! result_code: [1]
fail: Reinstallation of 'Python3 sabyenc3' module failed ! result_code: [1]
fail: Installed 3 PIP groups failed
fail: 'SABnzbd' service operation failed. Check (/var/log/SABnzbd.log) for more information
done: installed 1 dependent QPKG

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 7:38 pm
by OneCD
MartyIU13 wrote: September 30th, 2021, 7:29 pm ... so no issue with starting over.
No worries. Image
MartyIU13 wrote: September 30th, 2021, 7:29 pm Sherpa paste log is at https://termbin.com/tsk5
Thank you. I think your Python modules are messed-up. Can you please run these commands and post the results back here? This can help me track-down this rather elusive issue:

Code: Select all

pip3 list

Code: Select all

opkg list-installed
To "repair" the corrupt Python modules, please reinstall Entware:

Code: Select all

sherpa reinstall ew
MartyIU13 wrote: September 30th, 2021, 7:29 pm I realized I was running sherpa v210328 and saw on github there was version 210418b. Installed that version of sherpa.
That's OK, it's only the sherpa QPKG. Your sherpa management script always updates itself if it's been longer than 24 hours since it was last updated. ;)

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 7:50 pm
by MartyIU13
Reinstalled Entware and after that stopped and started SAB via sherpa and that did the trick! Thanks so much for the help. Not sure what happened as I didn't touch Entware. I included what you asked for below anyways just for the heck of it.

pip3 list:
Traceback (most recent call last):
File "/opt/bin/pip3", line 5, in <module>
from pip._internal.cli.main import main
File "/opt/lib/python3.9/site-packages/pip/_internal/cli/main.py", line 8, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/opt/lib/python3.9/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/opt/lib/python3.9/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/opt/lib/python3.9/site-packages/pip/_internal/cli/cmdoptions.py", line 22, in <module>
from pip._internal.cli.progress_bars import BAR_TYPES
File "/opt/lib/python3.9/site-packages/pip/_internal/cli/progress_bars.py", line 9, in <module>
from pip._internal.utils.logging import get_indentation
File "/opt/lib/python3.9/site-packages/pip/_internal/utils/logging.py", line 14, in <module>
from pip._internal.utils.misc import ensure_dir
File "/opt/lib/python3.9/site-packages/pip/_internal/utils/misc.py", line 29, in <module>
from pip._internal.locations import get_major_minor_version, site_packages, user_site
File "/opt/lib/python3.9/site-packages/pip/_internal/locations/__init__.py", line 9, in <module>
File "/opt/lib/python3.9/site-packages/pip/_internal/locations/_sysconfig.py", line 8, in <module>
ImportError: cannot import name 'InvalidSchemeCombination' from 'pip._internal.exceptions' (/opt/lib/python3.9/site-packages/pip/_internal/exceptions.py)


opkg installed
alsa-lib - 1.2.5.1-1
ar - 2.35.2-1
binutils - 2.35.2-1
ca-bundle - 20210119-1
ca-certificates - 20210119-1
coreutils - 8.32-6
coreutils-nice - 8.32-6
entware-opt - 227000-3
entware-release - 1.0-2
entware-upgrade - 1.0-1
ffprobe - 4.3.2-1
file - 5.40-4
findutils - 4.8.0-1
gcc - 7.4.0-6a
git - 2.33.0-1
git-http - 2.33.0-1
grep - 3.6-1a
ionice - 2.37-1
lame-lib - 3.100-1
less - 590-1
libatomic - 8.4.0-11
libbfd - 2.35.2-1
libbz2 - 1.0.8-1a
libc - 2.27-11
libctf - 2.35.2-1
libcurl - 7.78.0-1
libdb47 - 4.7.25.4.NC-7
libexpat - 2.4.1-1
libffi - 3.4.2-1
libffmpeg-full - 4.3.2-1
libgcc - 8.4.0-11
libgdbm - 1.19-3
libgmp - 6.2.1-1a
libgnutls - 3.7.2-1
libintl-full - 0.21-2
liblzma - 5.2.5-3
libmagic - 5.40-4
libncurses - 6.2-2a
libncursesw - 6.2-2a
libnettle - 3.7.3-1
libopcodes - 2.35.2-1
libopenssl - 1.1.1k-1
libopus - 1.3.1-3
libpcre - 8.45-1
libpthread - 2.27-11
libpython3 - 3.9.6-2
libreadline - 8.1-1
librt - 2.27-11
libsqlite3 - 3330000-2
libssp - 8.4.0-11
libstdcpp - 8.4.0-11
libtirpc - 1.3.2-1
libuuid - 2.37-1
libx264 - 2020-10-26-1
locales - 2.27-9
nano - 5.8-1
objdump - 2.35.2-1
opkg - 2021-06-13-1bf042dd-1
p7zip - 16.02-3
python-pip-conf - 0.1-1
python3 - 3.9.6-2
python3-asyncio - 3.9.6-2
python3-base - 3.9.6-2
python3-certifi - 2020.6.20-1
python3-cffi - 1.14.6-1
python3-cgi - 3.9.6-2
python3-cgitb - 3.9.6-2
python3-codecs - 3.9.6-2
python3-cryptography - 3.4.7-1
python3-ctypes - 3.9.6-2
python3-dbm - 3.9.6-2
python3-decimal - 3.9.6-2
python3-dev - 3.9.6-2
python3-distutils - 3.9.6-2
python3-email - 3.9.6-2
python3-gdbm - 3.9.5-2
python3-lib2to3 - 3.9.6-2
python3-light - 3.9.6-2
python3-logging - 3.9.6-2
python3-lzma - 3.9.6-2
python3-multiprocessing - 3.9.6-2
python3-ncurses - 3.9.6-2
python3-openssl - 3.9.6-2
python3-pip - 21.1.3-1
python3-pkg-resources - 56.0.0-2
python3-ply - 3.11-2
python3-pycparser - 2.20-5
python3-pydoc - 3.9.6-2
python3-readline - 3.9.6-2
python3-setuptools - 56.0.0-2
python3-six - 1.16.0-1
python3-sqlite3 - 3.9.6-2
python3-unittest - 3.9.6-2
python3-urllib - 3.9.6-2
python3-xml - 3.9.6-2
sed - 4.8-3
terminfo - 6.2-2a
unrar - 6.0.6-1
zlib - 1.2.11-3
zoneinfo-asia - 2021a-1
zoneinfo-europe - 2021a-1

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 7:52 pm
by MartyIU13
Sorry for the double posting. Don't want to click Delete Post and lose the whole thread.

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 7:58 pm
by OneCD
MartyIU13 wrote: September 30th, 2021, 7:52 pm Sorry for the double posting. Don't want to click Delete Post and lose the whole thread.
No worries, I've removed the duplicate post.

Thanks for posting your package list. I'll compare this against mine and see if I can find any differences. :)

Hmm, sherpa should have restarted your SABnzbd automatically after reinstalling Entware. Did that not happen?

Hint: if you ever want to reinstall a completely fresh copy of SABnzbd and keep your settings, you can use this:

Code: Select all

sherpa backup sab uninstall sab install sab restore sab
Cheers!

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 8:10 pm
by MartyIU13
I didn't check if it restarted automatically but it's all good now. Thanks again for the help!

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 9:01 pm
by MartyIU13
After all that I set up SAB again and it's giving me errors saying:
Essential modules are missing, downloading cannot start
SABYenc module... NOT found! Expecting v4.0.0 - https://sabnzbd.org/sabyenc

Would you be able to help? Should I start a new topic? Figured it might relate to what's been going with this the whole time, but not sure.

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 9:03 pm
by MartyIU13
I added all my servers and have it set to add an nzb. It says "fetching" and doesn't start downloading.

Re: start daemon failed error on QNAP preventing SAB from opening

Posted: September 30th, 2021, 9:05 pm
by OneCD
Can you please paste your latest sherpa log online so I can see what happened during the install?

You’ll need to post the new URL for it back here.