Page 1 of 1

How to restart Sabnzbd....Qnap TS 212

Posted: November 9th, 2024, 4:36 am
by kaaarl
......after reboot of my Qnap TS 212.

My Linux knowledge is only rudimentary.
Is there an easy way to start the Sbnzbd installed with Sherpa after a reset of the Qnap?

Thanks for help.

Regards Michael

Re: How to restart Sabnzbd....

Posted: November 9th, 2024, 4:44 am
by OneCD
Hi Michael, and welcome to the forum. :)

SABnzbd will be automatically started after a reboot, unless you manually stopped it before the reboot via the QTS App Center (stopping a QPKG in the App Center also disables it, preventing startup on next reboot).

Re: How to restart Sabnzbd....

Posted: November 9th, 2024, 4:51 am
by kaaarl
Thank you for your reply, but I can no longer access the page in the browser after starting it.
http://192.168.0.8:8900/sabnzbd/
Error message: The website is not accessible

Re: How to restart Sabnzbd....

Posted: November 9th, 2024, 5:00 am
by OneCD
That old NAS and its low RAM will take a while to start your QPKGs. How long have you waited after the reboot began? Have you confirmed the out-of-memory killer hasn’t been active?

Re: How to restart Sabnzbd....

Posted: November 9th, 2024, 5:24 am
by kaaarl
I waited hours last time. Since I didn't know what else to do, I reinstalled Sabnzbd with Sherpa and I had immediate access.

Now I've had another power failure and once again have no access.
I don't know of an "out of memory killer".

Re: How to restart Sabnzbd....

Posted: November 9th, 2024, 5:29 am
by kaaarl
It really won't start. I have now added an NZB to the folder to be monitored and nothing happens.

Re: How to restart Sabnzbd....Qnap TS 212

Posted: November 9th, 2024, 2:19 pm
by OneCD
Can you please examine the service log for the SABnzbd QPKG?

You can view this with:

Code: Select all

/etc/init.d/sabnzbd.sh log
This log should show what happens when QTS attempts to start SABnzbd.

Re: How to restart Sabnzbd....Qnap TS 212

Posted: November 10th, 2024, 3:42 am
by kaaarl
As I said, my Linux knowledge is only rudimentary. Is that what you mean?

[/etc/init.d] # vim sabnzbd3.sh

#
# Copyright (C) 2020-2023 OneCD [[email protected]]
#
# so, blame OneCD if it all goes horribly wrong. ;)
#
# This is a type 1 service-script: https://github.com/OneCDOnly/sherpa/wik ... ript-Types
#
# For more info: https://forum.qnap.com/viewtopic.php?f=320&t=132373
####################################################################################

readonly USER_ARGS_RAW=$*

Init()
{

IsQNAP || return

# service-script environment
sabnzbd3.sh

Re: How to restart Sabnzbd....Qnap TS 212

Posted: November 10th, 2024, 3:54 am
by OneCD
No, but a good first effort. ;)

You must enter exactly what is shown in my previous post in the code block. Don’t change anything.

Re: How to restart Sabnzbd....Qnap TS 212

Posted: November 10th, 2024, 4:05 am
by OneCD
Hey I just noticed, you appear to have the older SABnzbd QPKG installed too. You should really only have a single SABnzbd QPKG installed.

Please uninstall all SABnzbd QPKGs that appear in your App Center, then use sherpa to install the correct one.

Re: How to restart Sabnzbd....Qnap TS 212

Posted: November 10th, 2024, 4:07 am
by kaaarl
[~] # cd ..
[/] # ls
0 etc/ opt@ share/
DEBUG home@ php.ini@ sys/
IPSEC@ lib/ play/ tmp/
bin/ linuxrc@ proc/ usr@
cam_qpkg_cmd@ lost+found/ root/ var/
cam_ucache_gen@ mkmsdf@ rpc/
dev/ mnt/ sbin/
[/] # select all
> /etc/init.d/sabnzbd.sh log
-sh: syntax error near unexpected token `/etc/init.d/sabnzbd.sh'
[/] #


Where is my mistake?

Re: How to restart Sabnzbd....Qnap TS 212

Posted: November 10th, 2024, 4:11 am
by kaaarl
Oh saw the new post too late. I'll install a new version then

Re: How to restart Sabnzbd....Qnap TS 212

Posted: November 10th, 2024, 4:12 am
by OneCD
No, don’t type the “select all” bit…

I’m not sure sherpa is the right solution for you. You really must have some familiarity with the shell to use the sherpa package manager. If you’re new to this, the learning curve is quite-steep. It’s not something you can pickup in 5 minutes.

Re: How to restart Sabnzbd....Qnap TS 212

Posted: November 10th, 2024, 4:26 am
by kaaarl
Well, I got it installed the first 2 times, then I'll get it done now. :-) New installation is running. Thanks for your help though.