[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
vuursteen
New here
Posts: 3
Joined: Mon Dec 15, 2014 3:08 am

Re: [QPKG] sherpa mini-package-manager

Post by vuursteen » Fri Oct 02, 2020 3:41 am

Thanks, very helpful indeed -

8900 is the default non-SSL port. 9195 is the default SSL port. ^^

User avatar
distracto
Getting the hang of things
Posts: 82
Joined: Thu Dec 31, 2009 3:22 pm
Location: North Vancouver, BC

Re: [QPKG] sherpa mini-package-manager

Post by distracto » Fri Oct 02, 2020 7:07 am

I am not sure if this is the right place to ask this, but I am wondering if the symlink feature actually works in QNAP couchpotato? I have no way to prove that it isn't working, but my download folder and "movies" folder are the same size and the qnap storage just fills up so fast.

Thanks!
TS-410 - FW 4.3.3
TS-421 - FW 4.3.3

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

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Fri Oct 02, 2020 7:21 am

distracto wrote:
Fri Oct 02, 2020 7:07 am
I am not sure if this is the right place to ask this ...
It's not, but the CouchPotato forum has closed, so I'll see what I can do to help. ;)
distracto wrote:
Fri Oct 02, 2020 7:07 am
... but I am wondering if the symlink feature actually works in QNAP couchpotato? I have no way to prove that it isn't working, but my download folder and "movies" folder are the same size and the qnap storage just fills up so fast.
What is the "symlink feature" you're using? Can you post your CP config or a screenshot?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
distracto
Getting the hang of things
Posts: 82
Joined: Thu Dec 31, 2009 3:22 pm
Location: North Vancouver, BC

Re: [QPKG] sherpa mini-package-manager

Post by distracto » Fri Oct 02, 2020 7:36 am

Screenshot_20201001-163444_Chrome.jpg
Thanks for the quick reply.
You do not have the required permissions to view the files attached to this post.
TS-410 - FW 4.3.3
TS-421 - FW 4.3.3

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

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Fri Oct 02, 2020 8:23 am

distracto wrote:
Fri Oct 02, 2020 7:36 am
Thanks for the quick reply.
I never used that feature, so I had to look it up. :D

If the size of your "movies" and "download" shares are increasing at the same time, then it sounds like CP is creating links (presumably symlinks) from one to the other.

You'd need to SSH into your NAS and check the directory entries in both shares for a particular file to confirm this. If one of the files appears as a symlink, then you know it's using symlinks. If both filenames in both shares point to the same inode, then it's using hardlinks.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
distracto
Getting the hang of things
Posts: 82
Joined: Thu Dec 31, 2009 3:22 pm
Location: North Vancouver, BC

Re: [QPKG] sherpa mini-package-manager

Post by distracto » Fri Oct 02, 2020 8:27 am

Ok thanks so much. I appreciate it. Frustrating as the whole idea is to keep seeding and also have a copy in a different directory without true duplicates.
TS-410 - FW 4.3.3
TS-421 - FW 4.3.3

RobboNL
New here
Posts: 5
Joined: Sat Apr 09, 2011 4:09 pm

Re: [QPKG] sherpa mini-package-manager

Post by RobboNL » Fri Oct 02, 2020 1:57 pm

OneCD wrote:
Fri Oct 02, 2020 2:51 am
Sorry Robbo - I thought that would install Entware too. :oops:

Use this instead:

Code: Select all

sherpa install ew restart sab
It works !

Much appreciated OneCD !
You just saved me from many hours/days of trying to figure this out on my own.

Thanks again, Rob

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

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Fri Oct 02, 2020 2:00 pm

Great! :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

jmechan
New here
Posts: 3
Joined: Wed Jul 08, 2015 12:43 pm

Re: [QPKG] sherpa mini-package-manager

Post by jmechan » Sat Oct 03, 2020 1:26 am

Hey folks. I'm having a stupid, trying to install SAB 3 following a firmware upgrade. I haven't used Sherpa before, but installed it using the qpkg on git. However, whenever I try to do...pretty much anything, such as reinstall ew, or install sab, I get errors:

/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 4154: (1601659485%N - 1601659485%N)/1000000: division by 0 (error token is "- 1601659485%N)/1000000")

Usually multiple lines, but nothing successfully executes:

note: Reinstalling 'Entware' will remove all IPKGs and Python modules, and only those required to support your sherpa apps will be reinstalled.
note: Your installed IPKG list will be saved to (/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/opkg.prev.installed.list)
note: Your installed Python module list will be saved to (/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/pip3.prev.installed.list)
warn: Also, the 'SABnzbdplus' and 'Headphones' packages CANNOT BE REINSTALLED as Python 2.7.16 is no-longer available.
quiz: Press 'Y' to remove all current 'Entware' IPKGs (and their configurations), or any other key to abort: Y
done: package and Python module lists saved
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 4154: (1601659490%N - 1601659490%N)/1000000: division by 0 (error token is "- 1601659490%N)/1000000")
fail: Installation failed (Entware_1.02std.qpkg) [127]

I'm probably doing something stupid...any ideas what?

Thanks,

Jon

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

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Sat Oct 03, 2020 3:25 am

Hi Jon and welcome to the forum. :)
jmechan wrote:
Sat Oct 03, 2020 1:26 am
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 4154: (1601659485%N - 1601659485%N)/1000000: division by 0 (error token is "- 1601659485%N)/1000000")
Hmm, it looks like your 'date' binary is not behaving as expected. :'

Please SSH into your NAS as the 'admin' user, run the following commands, and post the results back here:

Code: Select all

date

Code: Select all

type -a date

Code: Select all

date --version

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

jmechan
New here
Posts: 3
Joined: Wed Jul 08, 2015 12:43 pm

Re: [QPKG] sherpa mini-package-manager

Post by jmechan » Sat Oct 03, 2020 4:53 am

Thanks for the quick response!
Here's what came back:

Code: Select all

[~] # [~] # date
Fri Oct  2 22:51:08 CEST 2020
[~] # type -a date
date is /opt/bin/date
date is /bin/date
[~] # date --version
date: unrecognized option '--version'
BusyBox v1.29.2 () multi-call binary.

Usage: date [OPTIONS] [+FMT] [TIME]

Display time (using +FMT), or set time

        [-s,--set] TIME Set time to TIME
        -u,--utc        Work in UTC (don't convert to local time)
        -R,--rfc-2822   Output RFC-2822 compliant date string
        -I[SPEC]        Output ISO-8601 compliant date string
                        SPEC='date' (default) for date only,
                        'hours', 'minutes', or 'seconds' for date and
                        time to the indicated precision
        -r,--reference FILE     Display last modification time of FILE
        -d,--date TIME  Display TIME, not 'now'
        -D FMT          Use FMT for -d TIME conversion
        -k              Set Kernel timezone from localtime and exit

Recognized TIME formats:
        hh:mm[:ss]
        [YYYY.]MM.DD-hh:mm[:ss]
        YYYY-MM-DD hh:mm[:ss]
        [[[[[YY]YY]MM]DD]hh]mm[.ss]
Thanks again for the help.

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

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Sat Oct 03, 2020 5:10 am

jmechan wrote:
Sat Oct 03, 2020 4:53 am
Thanks for the quick response!
No worries. :geek:

OK, I've made a change that I hope will fix this. Can you try running sherpa again?

Code: Select all

sherpa install ew

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

jmechan
New here
Posts: 3
Joined: Wed Jul 08, 2015 12:43 pm

Re: [QPKG] sherpa mini-package-manager

Post by jmechan » Sat Oct 03, 2020 5:14 am

Magic! Entware is installing now, without any errors so far. Thanks so much for the rapid response!

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

Re: [QPKG] sherpa mini-package-manager

Post by OneCD » Sat Oct 03, 2020 5:16 am

jmechan wrote:
Sat Oct 03, 2020 5:14 am
Magic! Entware is installing now, without any errors so far. Thanks so much for the rapid response!
Thank you for reporting this problem. :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

sprogger
Starting out
Posts: 25
Joined: Mon Aug 05, 2013 7:33 pm

Re: [QPKG] sherpa mini-package-manager

Post by sprogger » Wed Oct 07, 2020 10:43 am

Hi team
Two issues ... I tried upgrading Medusa using its internal upgrade now option (I am 28 commits behind) .. unfortunately the backup and restore function did not fully restore my config .. (lost my providers) .. reported in the Medusa forum to no avail ...
In my search for an answer I found this sherpa package ...
Decided to try using this to update both my SABnzbd install and Medusa hoping it would a better job at not killing my current config.

Question 1 .. Is Sherpa likely to better retain my Medusa configuration during an upgrade?

Question 2 .. When I tried using sherpa to upgrade SABnzbd .. (sherpa upgrade SABnzbd command) after installing various packages it tells me SABnzbd is not installed (even though it is currently running) ... only thing I can think of is that over time I have moved from SABNzbdPlus to SABnbzd ,, any ideas?

Cheers
Sprogger

Post Reply

Return to “Community Apps”