[QPKG] sherpa mini-package-manager

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
User avatar
OneCD
Ask me anything
Posts: 7924
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Mon Sep 21, 2020 6:24 am

OneCD wrote:
Mon Sep 21, 2020 5:36 am
Found it. It's because I haven't yet re-introduced the Par2 exceptions required for installation on the old ARMv5 NAS models. Working on this now...
a_bruin wrote:
Mon Sep 21, 2020 5:33 am
Can you also check why I got an error in SABnzbd that the PAR2-programme was missing? Or has that already been corrected?
SABnzbd 3.0.0 and-later now require a working Par2 before it will start. So, if we get Par2 working on your NAS, that should take care of the SABnzbd startup issue too. ;)
OK, should be fixed now. :geek:

Shortest way to get you running again is probably:

Code: Select all

sherpa upgrade --force sab

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
OneCD
Ask me anything
Posts: 7924
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Mon Sep 21, 2020 9:45 am

OneCD wrote:
Mon Sep 21, 2020 5:02 am
Shadytree wrote:
Mon Sep 21, 2020 4:30 am
I've installed the Sherpa qpkg, and read the first post, but still unsure how I install/upgrade the version of Sickchill?
...
  • But you now need to specify an "action" before presenting a package name to sherpa.
@Shady, you gave me a great idea. I've added '--install' as the default action, which makes sherpa work like it used-to. ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
Shadytree
Know my way around
Posts: 184
Joined: Thu Feb 12, 2009 4:58 am
Location: United Kingdom

Re: [QPKG] sherpa mini-package-manager

Post by Shadytree » Mon Sep 21, 2020 11:51 am

@OneCD,
@Shady you gave me a great idea. I've added '--install' as the default action, which makes sherpa work like it used-to. ;)
Well I try to help :)

Do I need to run upgrade on all my apps now like Sab etc?
If so what are the shortcuts for all the apps in the qpkg ? like sc , sab etc?[/quote]

Found the info in

Code: Select all

sherpa --abs
What is SickGear by the way and should I be using that instead of SickChill?

Thanks for your patience and help as ever!
Last edited by Shadytree on Mon Sep 21, 2020 12:27 pm, edited 1 time in total.
QNAP TS-569L | Raid 5 | 5 x 3TB WD Red Drives | QTS 4.3.4.1368 |Python 2.7.12 | Python3 3.5.2.0 |SABnzbdplus v3.0.2 | Sherpa qpkg 200917 |SickChill Master v2020.09.20-7 | Plex Media Server 4.34.4 | LazyLibrarian 181112 | VyprVPN 1.2.0 | git 2.1.0 | Entware-std1.00 | Malware Remover 3.3.1 | IFTTT Agent 1.1.14 | Dropbox 1.0.10

[Old Box] - QNAP TS-509 Pro | Raid 5 - 5 x 1TB WD Green Drives
FW 3.7.3 Build 20120801 -Redundancy backup

User avatar
OneCD
Ask me anything
Posts: 7924
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Mon Sep 21, 2020 12:26 pm

Shadytree wrote:
Mon Sep 21, 2020 11:51 am
Do I need to run upgrade on all my apps now like Sab etc?
Only if they're listed as upgradable. They'll be highlighted in yellow if-so.

The easy way is to do them all-at-once:

Code: Select all

sherpa upgrade-all
Shadytree wrote:
Mon Sep 21, 2020 11:51 am
What is SickGear by the way?
It's another SickBeard fork. They all have similar features, but SickGear has a much larger development team. ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
Shadytree
Know my way around
Posts: 184
Joined: Thu Feb 12, 2009 4:58 am
Location: United Kingdom

Re: [QPKG] sherpa mini-package-manager

Post by Shadytree » Mon Sep 21, 2020 1:18 pm

OneCD wrote:
Mon Sep 21, 2020 12:26 pm

It's another SickBeard fork. They all have similar features, but SickGear has a much larger development team. ;)
In your opinion stick with SickChill?

Also are there any good apps available for magazine subscriptions. Kind of like Mylar I guess?
QNAP TS-569L | Raid 5 | 5 x 3TB WD Red Drives | QTS 4.3.4.1368 |Python 2.7.12 | Python3 3.5.2.0 |SABnzbdplus v3.0.2 | Sherpa qpkg 200917 |SickChill Master v2020.09.20-7 | Plex Media Server 4.34.4 | LazyLibrarian 181112 | VyprVPN 1.2.0 | git 2.1.0 | Entware-std1.00 | Malware Remover 3.3.1 | IFTTT Agent 1.1.14 | Dropbox 1.0.10

[Old Box] - QNAP TS-509 Pro | Raid 5 - 5 x 1TB WD Green Drives
FW 3.7.3 Build 20120801 -Redundancy backup

User avatar
OneCD
Ask me anything
Posts: 7924
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Mon Sep 21, 2020 1:42 pm

Shadytree wrote:
Mon Sep 21, 2020 1:18 pm
In your opinion stick with SickChill?
Personally, I'm still using SickChill as it does what I need, doesn't crash all the time and the devs are responsive when I report issues.

I tend to stick with the same software until those conditions change. ;)

But, I think SickGear has a few more features. You can install both SickChill and SickGear and try them out. Put a couple of TV shows into one of them, and a few more into the other, and see how they compare. I haven't done this.
Shadytree wrote:
Mon Sep 21, 2020 1:18 pm
Also are there any good apps available for magazine subscriptions. Kind of like Mylar I guess?
Don't know, I don't read them. But it looks like LazyLibrarian supports magazines: https://lazylibrarian.gitlab.io/magazines/

BTW: @Shady, I just noticed you're still using SABnzbd 2.3.9. This version has a known security issue and should not be used anymore.

See this post for upgrade details: viewtopic.php?p=763808#p763808

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
Shadytree
Know my way around
Posts: 184
Joined: Thu Feb 12, 2009 4:58 am
Location: United Kingdom

Re: [QPKG] sherpa mini-package-manager

Post by Shadytree » Mon Sep 21, 2020 1:51 pm

OneCD wrote:
Mon Sep 21, 2020 1:42 pm

Don't know, I don't read them. But it looks like LazyLibrarian supports magazines: https://lazylibrarian.gitlab.io/magazines/
Yes, have used LL, but its not that easy to configure for best results.
OneCD wrote:
Mon Sep 21, 2020 1:42 pm
BTW: @Shady, I just noticed you're still using SABnzbd 2.3.9. This version has a known security issue and should not be used anymore.

See this post for upgrade details: viewtopic.php?p=763808#p763808
aahhh yes, I have upgraded, just need to update my signature DOH!

thanks again!
QNAP TS-569L | Raid 5 | 5 x 3TB WD Red Drives | QTS 4.3.4.1368 |Python 2.7.12 | Python3 3.5.2.0 |SABnzbdplus v3.0.2 | Sherpa qpkg 200917 |SickChill Master v2020.09.20-7 | Plex Media Server 4.34.4 | LazyLibrarian 181112 | VyprVPN 1.2.0 | git 2.1.0 | Entware-std1.00 | Malware Remover 3.3.1 | IFTTT Agent 1.1.14 | Dropbox 1.0.10

[Old Box] - QNAP TS-509 Pro | Raid 5 - 5 x 1TB WD Green Drives
FW 3.7.3 Build 20120801 -Redundancy backup

a_bruin
New here
Posts: 3
Joined: Wed Aug 08, 2012 11:33 pm

Re: [QPKG] sherpa mini-package-manager

Post by a_bruin » Mon Sep 21, 2020 6:17 pm

OneCD wrote:
Mon Sep 21, 2020 6:24 am
OneCD wrote:
Mon Sep 21, 2020 5:36 am
Found it. It's because I haven't yet re-introduced the Par2 exceptions required for installation on the old ARMv5 NAS models. Working on this now...
a_bruin wrote:
Mon Sep 21, 2020 5:33 am
Can you also check why I got an error in SABnzbd that the PAR2-programme was missing? Or has that already been corrected?
SABnzbd 3.0.0 and-later now require a working Par2 before it will start. So, if we get Par2 working on your NAS, that should take care of the SABnzbd startup issue too. ;)
OK, should be fixed now. :geek:

Shortest way to get you running again is probably:

Code: Select all

sherpa upgrade --force sab
Thanks! No more errors in Sherpa and no more errors in SABnzbd.
I’ll check this afternoon if everything still works after a restart of my NAS.

Edit: Yes, everything still works after a restart! Thanks again for your help, OneCD!

potestus
Getting the hang of things
Posts: 62
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager

Post by potestus » Tue Sep 22, 2020 1:42 am

I've caught up with the updates and stet up the sherpa app. Running nzb and sickchill

Finding the sickchill to nzb a bit strange..

I've edited the cfg file with ali key etc. But all of this below is strange.. i can do manual potprocessing ok in sickchill but it won't work auto.. also whats this python 2.7nstuff about,.?

/share/MD0_DATA/.qpkg/nzbToMedia/nzbToMedia/eol.py:147: LifetimeWarning: Python 2.7 is no longer supported.
warnings.warn(msg, LifetimeWarning)
[18:27:54] [INFO]::MAIN: Loading config from [/share/MD0_DATA/.qpkg/nzbToMedia/nzbToMedia/autoProcessMedia.cfg]
[18:27:54] [INFO]::MAIN: Python v2.7 reached end of life 264 days ago.
[18:27:54] [WARNING]::MAIN: Please upgrade to a more recent Python version.
[18:27:54] [INFO]::MAIN: Checking database structure...
[18:27:55] [INFO]::MAIN: Checking if git needs an update
[18:27:58] [INFO]::MAIN: No update needed
[18:27:58] [INFO]::MAIN: nzbToMedia Version:b3dc118b52cab0fa658d9bf046b2ff012553aa55 Branch:master (Linux 3.4.6)
[18:28:03] [INFO]::MAIN: #########################################################
[18:28:03] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[18:28:03] [INFO]::MAIN: #########################################################
[18:28:03] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2.
[18:28:05] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[18:28:05] [ERROR]::MAIN: Remote Path is enabled for SickBeard:tv but no Network mount points are defined. Please check your autoProcessMedia.cfg, exiting!
[18:28:05] [ERROR]::MAIN: A problem was reported in the /share/Qdownload/nzbToMedia/nzbToMedia.py script.
Changing to directory: /share/MD0_DATA/.qpkg/nzbToMedia/nzbToMedia

User avatar
OneCD
Ask me anything
Posts: 7924
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Tue Sep 22, 2020 6:19 am

a_bruin wrote:
Mon Sep 21, 2020 6:17 pm
Edit: Yes, everything still works after a restart! Thanks again for your help, OneCD!
Awesome! :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
OneCD
Ask me anything
Posts: 7924
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Tue Sep 22, 2020 6:22 am

potestus wrote:
Tue Sep 22, 2020 1:42 am
I've edited the cfg file with ali key etc. But all of this below is strange.. i can do manual potprocessing ok in sickchill but it won't work auto.. also whats this python 2.7nstuff about,.?
This happens if nzbToMedia is launched in a Python 2.7.x environment. It sounds like your default 'python' is still pointing to a Python 2.7.x. :'

Let's have a look at your environment. Can you please run each of these and post the results back here?

Code: Select all

echo $PATH

Code: Select all

type -a python

Code: Select all

ll /opt/bin/python*

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

potestus
Getting the hang of things
Posts: 62
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager

Post by potestus » Tue Sep 22, 2020 8:31 am

[/] # echo $PATH                                                                

/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/Apps/bin:/Apps/sbin

[/] # type -a python

python is /opt/bin/python

python is /usr/bin/python

python is /usr/local/bin/python

[/] # ll /opt/bin/python*                                                       

-rwxr-xr-x    1 admin    administ      5.4k Mar 21  2019 /opt/bin/python*

-rwxr-xr-x    1 admin    administ      5.4k Mar 21  2019 /opt/bin/python2*

-rwxr-xr-x    1 admin    administ      1.6k Mar 21  2019 /opt/bin/python2-config*

-rwxr-xr-x    1 admin    administ      5.4k Mar 21  2019 /opt/bin/python2.7*

-rwxr-xr-x    1 admin    administ      1.6k Mar 21  2019 /opt/bin/python2.7-config*

lrwxrwxrwx    1 admin    administ         9 Aug 25 15:51 /opt/bin/python3 -> python3.7*

lrwxrwxrwx    1 admin    administ        16 Aug 25 15:51 /opt/bin/python3-config -> python3.7-config*

-rwxr-xr-x    1 admin    administ      5.4k Oct  3  2019 /opt/bin/python3.7*

-rwxr-xr-x    1 admin    administ      3.1k Oct  3  2019 /opt/bin/python3.7-config

User avatar
OneCD
Ask me anything
Posts: 7924
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Tue Sep 22, 2020 8:42 am

potestus wrote:
Tue Sep 22, 2020 8:31 am
-rwxr-xr-x    1 admin    administ      5.4k Mar 21  2019 /opt/bin/python*

-rwxr-xr-x    1 admin    administ      5.4k Mar 21  2019 /opt/bin/python2*
Yup, looks like your Entware still has the old Python 2.7.16 packages installed. I think you may also have one of QNAP’s Python packages installed too?

Easiest fix is to reinstall Entware:

Code: Select all

sherpa reinstall ew
... then wait for the next post-processing event. ;)

I’ll also add a new check to sherpa that looks for the old Python 2 packages to prevent others getting this same problem.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
GTunney
Been there, done that
Posts: 651
Joined: Tue Oct 14, 2014 4:16 pm

Re: [QPKG] sherpa mini-package-manager

Post by GTunney » Tue Sep 22, 2020 3:21 pm

One of the things I have noticed is that everytime there is an upgrade or an install for NZBtoMedia nzbtowatcher.py doesn't have executable permissions.

Not sure if it picks this up from when downloaded or something my NAS keeps setting. All the other nzbtoxxxx.py have executable.
Model: TS-653B 8GB
Disks: 3 x 4TB Western Digital WD40EFRX - RAID 5
Total Storage: 7.2TB
Applications: Plex MS | QCouchPotato | QSabnzbd+ | QSickrage | QHeadphones | HTPC Manager | Kodi v18.4 MySQL
Other Devices: Netgear D7000 AC1900 VDSL Router | FTTC - 80/20 | Netgear GS108 Gigabit Switch

User avatar
OneCD
Ask me anything
Posts: 7924
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Tue Sep 22, 2020 3:44 pm

GTunney wrote:
Tue Sep 22, 2020 3:21 pm
One of the things I have noticed is that everytime there is an upgrade or an install for NZBtoMedia nzbtowatcher.py doesn't have executable permissions.

Not sure if it picks this up from when downloaded or something my NAS keeps setting. All the other nzbtoxxxx.py have executable.
It's because the execute-bit for that file hasn't been set by Clinton in his source repo.

You'll need to create a new issue on the nzbToMedia repo and ask him to change this. ;)

If you have no luck with him, let me know and I'll include a hack in the nzbToMedia QPKG to do this automatically.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

Post Reply

Return to “Community Apps”