[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
Shayer
New here
Posts: 2
Joined: Tue Mar 01, 2011 11:59 pm

Re: [SCRIPT] sherpa.sh

Post by Shayer » Mon Jun 29, 2020 3:54 am

OneCD wrote:
Mon Jun 29, 2020 3:40 am
Hi and welcome to the forum. :)
Shayer wrote:
Sun Jun 28, 2020 11:05 pm
i have a message "[ fail ] No valid QPKGs or actions were specified"
Oops, my bad. This is now fixed.

Please download sherpa v200629 or later and try again.
thank you, it is installed now!

penguindan
First post
Posts: 1
Joined: Tue Sep 15, 2015 6:33 pm

Re: [SCRIPT] sherpa.sh

Post by penguindan » Thu Jul 02, 2020 9:30 pm

Hi OneCD,

First off thanks for your hard work and commitment to support of this script.

After a firmware upgrade to try to resolve an unrelated issue with my backup software, my couchpotato installation finally gave up the ghost so I figured I make the switch to Watcher using your script. It's also a last throw of the dice to get a working configuration to last me a while before a NAS replacement.

I'm seeing the same issue niwa2 reported on the 26th Feb when starting Watcher "TypeError: unrepr does not recognize 'Constant'". This was traced to a Python 3.8.x install instead of 3.7.4.

While the script reports it has successfully downgraded, /opt/bin/python3 -V gives me ver 3.8.3.

Followed niwa2's logic but could find any archived packages (for my architecture or the ones they were pointing to) - wonder if this might be the root of the issue.

H/W: TP-212P
F/W: 4.3.3
Entware: Entware-std 1.00

debug log:

Code: Select all

[ dbug ] (**) SCRIPT:             started: Thu Jul 2 12:25:12 BST 2020
[ dbug ] (**) SCRIPT:             version: 200629
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (II) Markers: (**) detected, (II) information, (WW) warning, (LL) log file,
[ dbug ] (II)  (EE) error, (==) processing, (--) done, (>>) f entry, (<<) f exit,
[ dbug ] (II)  (vv) variable name & value, ($1) positional argument value.
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) NAS   :               model: TS-212P
[ dbug ] (**) NAS   :                 RAM: 515428 kB
[ dbug ] (**) NAS   :                 RAM: less-than or equal-to 1048576 kB
[ note ] QTS with 1GB RAM or less can lead to unstable SABnzbd uptimes. :(
[ dbug ] (**) NAS   :    firmware version: 4.3.3
[ dbug ] (**) NAS   :      firmware build: 20200611
[ dbug ] (**) NAS   :              kernel: 3.4.6 armv5tel
[ dbug ] (**) NAS   :           OS uptime: 20 min
[ dbug ] (**) NAS   :         system load: 1 min=0.74, 5 min=0.99, 15 min=1.01
[ dbug ] (**) NAS   :                USER: admin
[ dbug ] (**) NAS   :                EUID: 0
[ dbug ] (**) NAS   :      default volume: /share/HDA_DATA
[ dbug ] (**) NAS   :               $PATH: /opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr
[ dbug ] (**) NAS   :                /opt: /share/HDA_DATA/.qpkg/Entware
[ dbug ] (**) NAS   :     /share/Download: HDA_DATA/Download
[ dbug ] (**) SCRIPT:  unparsed arguments: OWatcher3
[ dbug ] (**) SCRIPT:   app(s) to install: OWatcher3
[ dbug ] (**) SCRIPT: app(s) to uninstall
[ dbug ] (**) SCRIPT: app(s) to reinstall
[ dbug ] (**) SCRIPT:    app(s) to update
[ dbug ] (**) SCRIPT:    app(s) to backup
[ dbug ] (**) SCRIPT:   app(s) to restore
[ dbug ] (**) SCRIPT:        working path: /share/Public/sherpa.tmp
[ dbug ] (**) QPKG  :       download path: /share/Public/sherpa.tmp/qpkg-downloads
[ dbug ] (**) IPKG  :       download path: /share/Public/sherpa.tmp/ipkg-downloads
[ dbug ] (**) QPKG  :                arch: none
[ dbug ] (**) QPKG  :   Entware installer: std
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (>>) DownloadQPKGs()
[ dbug ] (>>) DownloadQPKG()
[ proc ] downloading file (OWatcher3_200607.qpkg) ...
[ done ] downloaded file (OWatcher3_200607.qpkg)
[ dbug ] (<<) DownloadQPKG() [0]
[ dbug ] (<<) DownloadQPKGs() [0]
[ dbug ] (>>) RemoveUnwantedQPKGs()
[ dbug ] (**) QPKG  :           'Optware': not installed [250]
[ dbug ] (**) QPKG  :        'Entware-3x': not installed [250]
[ dbug ] (**) QPKG  :        'Entware-ng': not installed [250]
[ dbug ] (<<) RemoveUnwantedQPKGs() [0]
[ dbug ] (>>) InstallBase()
[ dbug ] (--) adjusted $PATH
[ dbug ] (vv) $PATH [/opt/bin:/opt/sbin:/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin]
[ dbug ] (>>) PatchBaseInit()
[ dbug ] (II) patch: do the "opt shuffle" - already done
[ dbug ] (<<) PatchBaseInit() [0]
[ dbug ] (<<) InstallBase() [0]
[ dbug ] (>>) InstallBaseAddons()
[ dbug ] (>>) InstallIPKGs()
[ dbug ] (>>) UpdateEntware()
[ proc ] updating 'Entware' package list ...
[ done ] updated 'Entware' package list
[ dbug ] (<<) UpdateEntware() [0]
[ dbug ] (>>) InstallIPKGBatch()
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) STAGE :   start stage timer
[ proc ] calculating number and total size of IPKGs required ...
[ dbug ] (II) IPKGs requested: ca-certificates git git-http jq less nano nzbget par2cmdline python3 python3-pip
[ dbug ] (==) finding IPKG dependencies ...
[ dbug ] (--) complete
[ dbug ] (II) found all IPKG dependencies in 13 iterations
[ dbug ] (II) IPKGs requested + dependencies: ca-bundle ca-certificates ca-certs file git git-http jq less libbz2 libc libcurl libdb47 libexpat libffi libgcc libgdbm liblzma libmagic libncurses libncursesw libopenssl libpthread librt libsqlite3 libssp libstdcpp libtirpc libuuid libxml2 nano nzbget oniguruma par2cmdline python-pip-conf python3 python3-asyncio python3-base python3-cgi python3-cgitb python3-codecs python3-ctypes python3-dbm python3-decimal python3-distutils python3-email python3-gdbm python3-light python3-logging python3-lzma python3-multiprocessing python3-ncurses python3-openssl python3-pip python3-pkg-resources python3-pydoc python3-setuptools python3-sqlite3 python3-unittest python3-urllib python3-xml terminfo zlib
[ dbug ] (==) excluding IPKGs already installed ...
[ dbug ] (--) complete
[ dbug ] (II) IPKGs to download: python3 python3-pip python3-pkg-resources python3-setuptools
[ dbug ] (==) calculating size of IPKGs to download ...
[ dbug ] (--) complete
[ dbug ] (vv) $IPKG_download_size [1723904]
[ dbug ] (**) STAGE :        elapsed time: 00h:00m:11s
[ dbug ] (II) ------------------------------------------------------------------------
[ done ] 4 IPKGs (2MB) to be downloaded
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) STAGE :   start stage timer
[ proc ] downloading & installing 4 IPKGs ...
[ done ] downloaded & installed 4 IPKGs
[ dbug ] (**) STAGE :        elapsed time: 00h:00m:08s
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (<<) InstallIPKGBatch() [0]
[ dbug ] (<<) InstallIPKGs() [0]
[ dbug ] (>>) DowngradePy3()
[ proc ] 'Watcher3' selected so downgrading Python 3 IPKGs ...
[ done ] 'Watcher3' selected so downgraded Python 3 IPKGs
[ dbug ] (<<) DowngradePy3() [0]
[ dbug ] (>>) InstallPy3Modules()
[ dbug ] (<<) InstallBaseAddons() [0]
[ dbug ] (>>) InstallTargetQPKG()
[ proc ] installing file (OWatcher3_200607.qpkg) - this can take a while ...
[ done ] installed file (OWatcher3_200607.qpkg)
[ dbug ] (<<) InstallTargetQPKG() [0]
[ dbug ] (>>) Cleanup()
[ dbug ] (<<) Cleanup() [0]
[ dbug ] (>>) ShowResult()
[ done ] 'OWatcher3' has been successfully reinstalled! 
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) SCRIPT:            finished: Thu Jul  2 12:26:28 BST 2020
[ dbug ] (**) SCRIPT:        elapsed time: 00h:01m:16s
[ dbug ] (II) ========================================================================
[ dbug ] (<<) ShowResult() [0]
Thanks in advance for any help you are able to offer.

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

Re: [SCRIPT] sherpa.sh

Post by OneCD » Fri Jul 03, 2020 5:13 am

Hi and welcome to the forum. :)
penguindan wrote:
Thu Jul 02, 2020 9:30 pm
I'm seeing the same issue niwa2 reported on the 26th Feb when starting Watcher "TypeError: unrepr does not recognize 'Constant'". This was traced to a Python 3.8.x install instead of 3.7.4.
The website (bin.entware.net) sherpa pulls the old packages from to perform the Python downgrade has been a bit up-and-down lately. :(

It's up again now, but the package archives haven't been restored yet. Suggest waiting a couple of days for the admins to do this, then try your downgrade again.
penguindan wrote:
Thu Jul 02, 2020 9:30 pm
While the script reports it has successfully downgraded, /opt/bin/python3 -V gives me ver 3.8.3.
Oops! That's something I'll need to fix. Thanks for reporting this. :geek:

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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

Re: [SCRIPT] sherpa.sh

Post by OneCD » Sat Jul 04, 2020 2:59 am

OneCD wrote:
Fri Jul 03, 2020 5:13 am
penguindan wrote:
Thu Jul 02, 2020 9:30 pm
I'm seeing the same issue niwa2 reported on the 26th Feb when starting Watcher "TypeError: unrepr does not recognize 'Constant'". This was traced to a Python 3.8.x install instead of 3.7.4.
The website (bin.entware.net) sherpa pulls the old packages from to perform the Python downgrade has been a bit up-and-down lately. :(

It's up again now, but the package archives haven't been restored yet. Suggest waiting a couple of days for the admins to do this, then try your downgrade again.
The archives have been restored. :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

wisie
Starting out
Posts: 25
Joined: Sun Feb 01, 2015 11:03 am

Re: [SCRIPT] sherpa.sh

Post by wisie » Mon Jul 13, 2020 7:56 am

Seem to be experiencing permission issues (https://i.imgur.com/5Y4FnJ1.png) all of a sudden and hoping someone may have an idea to fix?

Searching this thread and there was a suggestion to update permissions within Sabnzbd ( SAB settings -> Folders -> User Folders -> 'Permissions for completed downloads' - set this to "777"). This didn't work unfortunately.

While I also checked the permissions of the folder in the Qnap desktop with all permissions (Read, Write, Execute) set for Owner, Group and Others.

Any ideas?

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

Re: [SCRIPT] sherpa.sh

Post by OneCD » Mon Jul 13, 2020 1:07 pm

wisie wrote:
Mon Jul 13, 2020 7:56 am
Searching this thread and there was a suggestion to update permissions within Sabnzbd ( SAB settings -> Folders -> User Folders -> 'Permissions for completed downloads' - set this to "777"). This didn't work unfortunately.
This same issue was reported a while back when running SABnzbd on a Synology - the fix was to clear the permissions from this field. Can you please try this?

If it persists, you could try asking on the SABnzbd forum.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

wisie
Starting out
Posts: 25
Joined: Sun Feb 01, 2015 11:03 am

Re: [SCRIPT] sherpa.sh

Post by wisie » Tue Jul 14, 2020 9:07 am

OneCD wrote:
Mon Jul 13, 2020 1:07 pm
wisie wrote:
Mon Jul 13, 2020 7:56 am
Searching this thread and there was a suggestion to update permissions within Sabnzbd ( SAB settings -> Folders -> User Folders -> 'Permissions for completed downloads' - set this to "777"). This didn't work unfortunately.
This same issue was reported a while back when running SABnzbd on a Synology - the fix was to clear the permissions from this field. Can you please try this?

If it persists, you could try asking on the SABnzbd forum.
Thanks mate. Will put that question up over on the Sabznd forum.

Also thanks for all you do in maintaining Sherpa. It's really appreciated!

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

Re: [SCRIPT] sherpa.sh

Post by OneCD » Tue Jul 14, 2020 9:36 am

No worries! :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

ahrhome
New here
Posts: 3
Joined: Wed Jul 15, 2020 9:18 am

Re: [SCRIPT] sherpa.sh

Post by ahrhome » Wed Jul 15, 2020 9:29 am

Good Evening Guys.
I really need your help to setup SABnzbd on Qnap 231p via terminal on Imac.
I am not linux guy,lol but willing to learn.
When i type in command cd /share/Public
I get cd: /share/Public: No such file or directory
Please help
Thank You in advance

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

Re: [SCRIPT] sherpa.sh

Post by OneCD » Wed Jul 15, 2020 9:48 am

Hi and welcome to the forum.
ahrhome wrote:
Wed Jul 15, 2020 9:29 am
When i type in command cd /share/Public
I get cd: /share/Public: No such file or directory
Did you SSH into your NAS first? ;)

Can you please post a screenshot or session transcript from your terminal program? It should show your prompt, the commands you typed and the response.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

ahrhome
New here
Posts: 3
Joined: Wed Jul 15, 2020 9:18 am

Re: [SCRIPT] sherpa.sh

Post by ahrhome » Wed Jul 15, 2020 10:24 am

OneCD wrote:Hi and welcome to the forum.
ahrhome wrote:
Wed Jul 15, 2020 9:29 am
When i type in command cd /share/Public
I get cd: /share/Public: No such file or directory
Did you SSH into your NAS first? ;)

Can you please post a screenshot or session transcript from your terminal program? It should show your prompt, the commands you typed and the response.
Yes,I can connect to my Nas via terminal
ssh admin@192.168.1.13
Image

Sent from my Mi A2 using Tapatalk


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

Re: [SCRIPT] sherpa.sh

Post by OneCD » Wed Jul 15, 2020 10:41 am

ahrhome wrote:
Wed Jul 15, 2020 10:24 am
ssh admin@192.168.1.13
That's odd. 'Public' is one of the default QTS shares. :'

Can you please run this and post the result back here?

Code: Select all

head -n6 /etc/config/uLinux.conf

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

ahrhome
New here
Posts: 3
Joined: Wed Jul 15, 2020 9:18 am

Re: [SCRIPT] sherpa.sh

Post by ahrhome » Thu Jul 16, 2020 7:34 pm

I was able to install sabnzbd on QNAP, finally,but now downloads stuck at fetch.Where to dig to solve this issue.
Thanks.

Sent from my Mi A2 using Tapatalk


david1976aus
Starting out
Posts: 26
Joined: Mon Mar 26, 2012 10:24 pm

Re: [SCRIPT] sherpa.sh

Post by david1976aus » Thu Jul 16, 2020 8:01 pm

I was wondering if anyone else has seen the following error message come up in the QNAP Logs when the NAS is started and SABNZB (v3) has the service started:

[SABnzbd] An error occurred while updating 'SABnzbd' daemon from remote repository. Check (/var/log/SABnzbd.log) for more details.

The log file has the following details:

------------------- start requested --------------------
= Thu Jul 16 20:11:12 EST 2020
= daemon is not active
* updating application 'SABnzbd': failed!
= result: [128]
= PullGitRepo() output: "
*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'admin@NAS.(none)')"
* updating application 'nzbToMedia': OK
= result: [0]
= PullGitRepo() output: "Already up to date."
* launching: OK
* checking for daemon UI port 8383 response: daemon UI responded after 1 seconds
= 'SABnzbd' daemon UI is now listening on HTTP port: 8383
-------------------- stop requested --------------------
= Thu Jul 16 20:14:29 EST 2020
* checking for daemon UI port 8383 response: daemon UI responded after 0 seconds
= daemon is active
* stopping daemon with SIGTERM: stopped OK in 1 seconds
-------------------- stop requested --------------------
= Thu Jul 16 20:24:31 EST 2020
= daemon is not active
-------------------- start requested --------------------
= Thu Jul 16 20:28:46 EST 2020
= daemon is not active
* updating application 'SABnzbd': failed!
= result: [128]
= PullGitRepo() output: "
*** Please tell me who you are.

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

Re: [SCRIPT] sherpa.sh

Post by OneCD » Fri Jul 17, 2020 4:11 am

ahrhome wrote:
Thu Jul 16, 2020 7:34 pm
I was able to install sabnzbd on QNAP ...
How did you solve this? Your answer might help others (and me) with the same problem. ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

Post Reply

Return to “Community Apps”