[QPKG] sherpa mini-package-manager (CLI)

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
L3rd
Know my way around
Posts: 164
Joined: Thu Sep 20, 2007 8:11 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by L3rd » Wed Feb 03, 2021 6:28 am

OneCD wrote:
Wed Feb 03, 2021 6:18 am
No worries. I've just updated the sherpa script to prevent those errors in BASH 5. You'll need to clean your existing installation again so the new management script will be pulled from GitHub:

Code: Select all

sherpa clean
Testing at my end indicates it works fine with BASH 5. Image
Just reinstalled entware bash and everything is working fine.

Thank you for your help.
NAS:
QNAP TVS-682 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .FW: 4.5.2.xxxx
QNAP TS-351 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .FW: 4.5.2.xxxx
QNAP TS-509 Pro . . [Xeon L5408(SLBBT)] . . . . . . . . . . . . . . . FW: 4.2.6 Build 20200821 (2020-09-02) (TS-809 Pro)
QNAP TS-212P . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FW: 4.3.3.1432
QNAP TS-109 Pro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FW: 3.3.3 build 1003 (2014-10-09)
QNAP QG-103N QGenie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FW: 3.2.3 (2018/08/10)

frustin
Getting the hang of things
Posts: 98
Joined: Mon Oct 05, 2009 1:46 am

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by frustin » Tue Feb 09, 2021 12:05 am

Hi, i did a sherpa update all, last week. I rebooted the qnap today (after 53 days of uptime :S ) and OWatcher3 isnt coming up. Command line as follows:

Code: Select all

~] # /etc/init.d/owatcher3.sh restart
= (OWatcher3) is not active
= (OWatcher3) is not active
* updating (OWatcher3): OK
/etc/init.d/owatcher3.sh: line 198: /opt/bin/jq: No such file or directory
! unable to start: UI service port () already in use
not sure what service port to lsof on as it's empty in the debug message.

installed jq:

Code: Select all

[~] # opkg install jq
Installing jq (1.6-1) to root...
Downloading http://bin.entware.net/x64-k3.2/jq_1.6-1_x64-3.2.ipk
Installing oniguruma (6.9.5_rev1-3) to root...
Downloading http://bin.entware.net/x64-k3.2/oniguruma_6.9.5_rev1-3_x64-3.2.ipk
Configuring oniguruma.
Configuring jq.
Tried the restart again:

Code: Select all

[~] # /etc/init.d/owatcher3.sh restart
= (OWatcher3) is not active
= (OWatcher3) is not active
* updating (OWatcher3): OK
* starting (OWatcher3): failed!
= result: 1
= startup messages: 'Userdata directory exists, continuing.
Connected to database sqlite:////share/CACHEDEV1_DATA/.qpkg/OWatcher3/config/watcher.sqlite
Config file found, merging any new options.
Clearing Mako cache.
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/lib/reprconf.py", line 213, in as_dict
    value = unrepr(value)
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/lib/reprconf.py", line 508, in unrepr
    return b.build(obj)
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/lib/reprconf.py", line 354, in build
    raise TypeError('unrepr does not recognize %s' %
TypeError: unrepr does not recognize 'Constant'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/watcher.py", line 140, in <module>
    root = cherrypy.tree.mount(App(), '{}/'.format(core.URL_BASE), 'core/conf_app.ini')
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/_cptree.py", line 226, in mount
    app.merge(config)
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/_cptree.py", line 100, in merge
    _cpconfig.merge(self.config, config)
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/_cpconfig.py", line 139, in merge
    for section, value_map in reprconf.as_dict(other).items():
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/lib/reprconf.py", line 46, in as_dict
    config = Parser().dict_from_file(config)
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/lib/reprconf.py", line 228, in dict_from_file
    return self.as_dict()
  File "/share/CACHEDEV1_DATA/.qpkg/OWatcher3/OWatcher3/lib/cherrypy/lib/reprconf.py", line 219, in as_dict
    raise ValueError(msg, x.__class__.__name__, x.args)
ValueError: ("Config error in section: '/', option: 'tools.auth.on', value: 'True'. Config values must be valid Python.", 'TypeError', ("unrepr does not recognize 'Constant'",))'

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Tue Feb 09, 2021 3:05 am

frustin wrote:
Tue Feb 09, 2021 12:05 am
... and OWatcher3 isnt coming up.
Watcher3 hasn't been supported by sherpa for quite some time. I removed it as an installable package, as the older Python version it requires was causing too many issues with other sherpa apps. :(

Suggest using Stephane's Watcher3 QPKG available in the Qnapclub repo. It has an integrated version of Python that is compatible with Watcher3.

If the Watcher3 devs eventually update their code to work on a more recent version of Python (like 3.9.0), I'll re-add Watcher3 as a supported package.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

frustin
Getting the hang of things
Posts: 98
Joined: Mon Oct 05, 2009 1:46 am

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by frustin » Tue Feb 09, 2021 4:42 am

Thanks! What’s the alternative to watcher? I’m happy to try whatever

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Tue Feb 09, 2021 4:47 am

Presently, there's no movie watcher available via sherpa. :(

SickChill has begun adding basic movie support in addition to regular TV management, but I don't think this feature is ready for production use just yet.

Which (for-now) only leaves Radarr as a viable movie watcher. Due to its size and dependence on MS infrastructure, it's not available via sherpa.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

lukearts
Starting out
Posts: 10
Joined: Sat Oct 09, 2010 9:39 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by lukearts » Wed Feb 10, 2021 8:51 pm

Don't know what NAS you are running frustin, but unfortunately my hardware only supports 4.2.6 and the Qnapclub Watcher 3 package requires 4.3.3 minimum.
Really hoping that Watcher3 devs add Python 3.9.0 support soon.

frustin
Getting the hang of things
Posts: 98
Joined: Mon Oct 05, 2009 1:46 am

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by frustin » Thu Feb 11, 2021 12:49 am

lukearts wrote:
Wed Feb 10, 2021 8:51 pm
Don't know what NAS you are running frustin, but unfortunately my hardware only supports 4.2.6 and the Qnapclub Watcher 3 package requires 4.3.3 minimum.
Really hoping that Watcher3 devs add Python 3.9.0 support soon.
I've added to the bottom of that ticket.

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by GTunney » Sat Feb 27, 2021 5:14 pm

Is anybody having trouble connecting to sab lately over https?

For some reason my sab just gets stuck on loading over https, interface is still accessible over http.
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: 8962
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Sun Feb 28, 2021 3:45 am

GTunney wrote:
Sat Feb 27, 2021 5:14 pm
Is anybody having trouble connecting to sab lately over https?

For some reason my sab just gets stuck on loading over https, interface is still accessible over http.
Have you upgraded SAB to 3.2.0? viewtopic.php?f=133&t=159860

Does the issue still exist after upgrading?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Sun Feb 28, 2021 10:38 am

[SABnzbd] A problem occurred while update 'SABnzbd' from remote repository. Check (/var/log/SABnzbd.log) for more details.
I can see there is an update available. I thought it updated automatically?
Last edited by potestus on Sun Feb 28, 2021 10:48 am, edited 2 times in total.

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Sun Feb 28, 2021 10:40 am

potestus wrote:
Sun Feb 28, 2021 10:38 am
[SABnzbd] A problem occurred while update 'SABnzbd' from remote repository. Check (/var/log/SABnzbd.log) for more details.
And when you checked that log, what did you see? ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Sun Feb 28, 2021 10:49 am

No idea where that log is?

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Sun Feb 28, 2021 10:52 am

potestus wrote:
Sun Feb 28, 2021 10:49 am
No idea where that log is?
It's where it says it is: /var/log/SABnzbd.log

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Sun Feb 28, 2021 11:09 am

I can't see any errors on that log.. /var?

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

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Sun Feb 28, 2021 11:10 am

Can you post the contents back here?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

Post Reply

Return to “Community Apps”