[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
potestus
Getting the hang of things
Posts: 65
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager

Post by potestus » Tue Sep 29, 2020 5:42 am

Sickchill still playing up
[~] # sherpa reinstall sc sherpa 200929 • a mini-package-manager for QNAP NAS done: 'Entware' package list is current
done: no IPKGs are required
proc: re-installing 'SickChill' - this may take a while ...
done: re-installed 'SickChill'
fail: 'SickChill' service failed to start. Check (/var/log/SickChill.log) for more information

Log doesnt show anything

2020-09-28 21:31:17 INFO :: MAIN :: Starting SickChill [master] using '/share/MD0_DATA/.qpkg/SickChill/config/config.ini'
2020-09-28 21:31:24 INFO :: WEBSERVER :: Starting SickChill on http://0.0.0.0:7073/
2020-09-28 21:31:25 INFO :: CHECKVERSION :: Checking for updates using GIT
2020-09-28 21:34:10 INFO :: MAIN :: Signal 15 caught, saving and exiting...
2020-09-28 21:34:12 INFO :: EVENT-QUEUE :: Aborting all threads
2020-09-28 21:34:12 INFO :: EVENT-QUEUE :: Waiting for the DAILYSEARCHER thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the BACKLOG thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the SHOWUPDATER thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the CHECKVERSION thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the SHOWQUEUE thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the SEARCHQUEUE thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the POSTPROCESSOR thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the POSTPROCESSOR thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the TRAKTCHECKER thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the FINDPROPERS thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the FINDSUBTITLES thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the NOTIFICATIONS thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Waiting for the EVENT-QUEUE thread to exit
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Saving all shows to the database
2020-09-28 21:34:13 INFO :: EVENT-QUEUE :: Saving config file to disk
2020-09-28 21:34:18 INFO :: EVENT-QUEUE :: Shutting down Tornado
2020-09-28 21:40:47 INFO :: MAIN :: Starting SickChill [master] using '/share/MD0_DATA/.qpkg/SickChill/config/config.ini'
2020-09-28 21:40:49 INFO :: WEBSERVER :: Starting SickChill on http://0.0.0.0:7073/
2020-09-28 21:40:49 INFO :: CHECKVERSION :: Checking for updates using GIT
2020-09-28 21:50:47 INFO :: DAILYSEARCHER :: Searching for new released episodes ...
2020-09-28 21:51:29 INFO :: DAILYSEARCHER :: No new released episodes found ...
2020-09-28 21:51:34 INFO :: SEARCHQUEUE-DAILY-SEARCH :: Beginning daily search for new episodes

rs1001
Starting out
Posts: 33
Joined: Thu Jun 18, 2015 11:44 am

Re: [QPKG] sherpa mini-package-manager

Post by rs1001 » Wed Sep 30, 2020 1:24 am

Tested out the latest .qpkg version. Very neat and tidy.

Only room for improvement I see is that once the apps are installed (Omedusa/Lazy tested as examples).
If you click open the "open" on the qpkg, it's rerouting it to the standard QNAP page rather than the port it's installed at.

Can dig around and find the ports in the config areas, but a direct link on each would be nice.
QNAP TS-653 Pro -- with 16Gb RAM
6 * Western Digital WD60EFRX WD Reds (RAID5) as a Single 27.1TB Volume
Firmware: QTS 4.4.3.1354

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 » Wed Sep 30, 2020 3:32 am

rs1001 wrote:
Wed Sep 30, 2020 1:24 am
Only room for improvement I see is that once the apps are installed (Omedusa/Lazy tested as examples).
If you click open the "open" on the qpkg, it's rerouting it to the standard QNAP page rather than the port it's installed at.
:'

Each package updates the App Center icon with its port numbers when it finishes the 'start' operation. At least, it should. That's the purpose of the ReWriteUIPorts() function.

But, the App Center must be refreshed to pickup these changes.

What is the exact URL you're seeing when clicking 'open' on LazyLibrarian? Maybe I can find the reason it's not working on your NAS.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

rs1001
Starting out
Posts: 33
Joined: Thu Jun 18, 2015 11:44 am

Re: [QPKG] sherpa mini-package-manager

Post by rs1001 » Wed Sep 30, 2020 3:49 pm

Scratch that. Today they now work. Weird, yet wonderful! :D
So yea, in summary... You the man!
QNAP TS-653 Pro -- with 16Gb RAM
6 * Western Digital WD60EFRX WD Reds (RAID5) as a Single 27.1TB Volume
Firmware: QTS 4.4.3.1354

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

Re: [QPKG] sherpa mini-package-manager

Post by RobboNL » Wed Sep 30, 2020 9:44 pm

After upgrading my QNAP 453A to the latest firmware version 4.3.3.1439, I am unable to start my SABnzbd install (v2.3.9) . Possibly it upgraded to v3.0 because of the reboot. All I could find out by the command line that is was missing Python3. Even though I installed that via the QPKG and also as per advised on the SABNZbd website. Still I kept getting error because of Python3 not being installed.

Because that failed I backed up my SABnzbd.ini file and decided to do a complete new install using Sherpa. Which worked perfectly earlier for SickCill.

Now I find myself in the situation that installing SABnzbd also does not work via Sherpa. Apparantly the .PID file cannot be created. What could be the cause of this ?

dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (LL) = log file: '/share/CACHEDEV1_DATA/.qpkg/sherpa/logs/SABnzbd_200922.qpkg.install.log'
dbug: (LL) = command: 'sh /share/CACHEDEV1_DATA/.qpkg/sherpa/cache/qpkgs/SABnzbd_200922.qpkg'
dbug: (LL) ! result: [10] ***** stdout/stderr begins below *****
dbug: (LL) Install QNAP package on TS-NAS...
dbug: (LL) 13+1 records in
dbug: (LL) 13+1 records out
dbug: (LL) 40315 bytes (39.4KB) copied, 0.000141 seconds, 272.7MB/s
dbug: (LL) ./
dbug: (LL) ./built_info
dbug: (LL) ./qinstall.sh
dbug: (LL) ./package_routines
dbug: (LL) ./qpkg.cfg
dbug: (LL) 0+1 records in
dbug: (LL) 0+1 records out
dbug: (LL) 19835 bytes (19.4KB) copied, 0.000086 seconds, 220.0MB/s
dbug: (LL) 19+1 records in
dbug: (LL) 19+1 records out
dbug: (LL) 19835 bytes (19.4KB) copied, 0.000749 seconds, 25.3MB/s
dbug: (LL) Firmware check is fine.
dbug: (LL) Link service start/stop script: sabnzbd3.sh
dbug: (LL) Set QPKG information in /etc/config/qpkg.conf
dbug: (LL) no configuration file found: using default
dbug: (LL) daemon: NOT active
dbug: (LL) file (/opt/bin/git): exists
dbug: (LL) clone 'SABnzbd' from remote repository: OK
dbug: (LL) current git branch: master
dbug: (LL) file (/opt/bin/python3): exists
dbug: (LL) updating 'SABnzbd' language translations: OK
dbug: (LL) load UI ports from application: OK
dbug: (LL) start daemon: OK
dbug: (LL) wait for (/var/run/SABnzbd.pid) to appear: (no-more than 5 seconds): 1, 2, 3, 4, 5, failed!
dbug: (LL) (/var/run/SABnzbd.pid) not found! (exceeded timeout: 5 seconds)
dbug: (LL) = ***** stdout/stderr is complete *****
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (<<) QPKG.Install() [0]: 00h:00m:39s
dbug: (<<) Packages.Install.**() [0]: 00h:00m:39s
dbug: (vv) $_object_session_linespace_flag_ [true]
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (**) SCRIPT: finished: Wed Sep 30 15:37:18 CEST 2020
dbug: (**) SCRIPT: elapsed time: 00h:00m:47s
dbug: (II) ============================================================================================

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 » Thu Oct 01, 2020 5:29 am

RobboNL wrote:
Wed Sep 30, 2020 9:44 pm
After upgrading my QNAP 453A to the latest firmware version 4.3.3.1439, I am unable to start my SABnzbd install (v2.3.9) . Possibly it upgraded to v3.0 because of the reboot. All I could find out by the command line that is was missing Python3. Even though I installed that via the QPKG and also as per advised on the SABNZbd website. Still I kept getting error because of Python3 not being installed.
As you've only posted an extract of your sherpa debug log, I'll need to make a few guesses as to your configuration. :S

Please start by reinstalling Entware to clear the older IPKGs:

Code: Select all

sherpa reinstall ew

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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

Re: [QPKG] sherpa mini-package-manager

Post by RobboNL » Thu Oct 01, 2020 2:37 pm

Getting an installed failed for Entware : fail: Installation failed (Entware_1.02std.qpkg) [127]

Code: Select all

dbug: (**)  HARDWARE:                     model: TS-453A
dbug: (**)  HARDWARE:                       RAM: 8,074,620 kB
dbug: (**)  FIRMWARE:          firmware version: 4.4.3
dbug: (**)  FIRMWARE:            firmware build: 20200925
dbug: (**)  FIRMWARE:                    kernel: 4.14.24-qnap x86_64
dbug: (**) USERSPACE:                 OS uptime: 18:56
dbug: (**) USERSPACE:               system load: 1 min=1.45, 5 min=1.45, 15 min=1.45
dbug: (**) USERSPACE:                     $USER: admin
dbug: (**) USERSPACE:                     $EUID: 0
dbug: (**) USERSPACE:                      BASH: GNU bash, version 3.2.57(1)-release (x86_64-QNAP-linux-gnu)
dbug: (**) USERSPACE:            default volume: /share/CACHEDEV1_DATA
dbug: (**) USERSPACE:                      /opt: /share/CACHEDEV1_DATA/.qpkg/Entware
dbug: (**) USERSPACE:                     $PATH: /opt/bin:/opt/sbin:/share/CACHEDEV1_DATA/.qpkg/contain
dbug: (**) USERSPACE:    default 'python2' path: /opt/bin/python2
dbug: (**) USERSPACE: default 'python2' version: Python 2.7.17
dbug: (**) USERSPACE:    default 'python3' path: /opt/bin/python3
dbug: (**) USERSPACE: default 'python3' version: Python 3.8.1
dbug: (**) USERSPACE:     default 'python' path: /opt/bin/python
dbug: (**) USERSPACE:  default 'python' version: Python 2.7.17
dbug: (**) USERSPACE:   unparsed user arguments: reinstall ew
dbug: (**)    SCRIPT:                 logs path: /share/CACHEDEV1_DATA/.qpkg/sherpa/logs
dbug: (**)    SCRIPT:                 work path: /share/CACHEDEV1_DATA/.qpkg/sherpa/cache
dbug: (**)    SCRIPT:     object reference hash: c9c6248c4bc69f2d86af2dbac21d8183
dbug: (**)      QPKG:         Entware installer: std
dbug: (**)      QPKG:                      arch: x64
dbug: (**)      QPKG:     upgradable package(s):
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (>>) Packages.Assignment.Check()
dbug: (**)    SCRIPT:                    backup:
dbug: (**)    SCRIPT:                 uninstall:
dbug: (**)    SCRIPT:            forced-upgrade:
dbug: (**)    SCRIPT:                   upgrade:
dbug: (**)    SCRIPT:                   install:
dbug: (**)    SCRIPT:                 reinstall: Entware
dbug: (**)    SCRIPT:                   restore:
dbug: (**)    SCRIPT:                   restart:
dbug: (<<) Packages.Assignment.Check() [0]: 329 ms
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (>>) QPKGs.Download.Build()
dbug: (>>) GetTheseQPKGDeps()
dbug: (II) requested QPKGs: Entware
dbug: (==) finding QPKG dependencies ...
dbug: (==) iteration 1 ...
dbug: (--) complete
dbug: (II) found all QPKG dependencies in 1 iteration
dbug: (II) QPKGs requested + dependencies: Entware
dbug: (<<) GetTheseQPKGDeps() [0]: 237 ms
dbug: (==) excluding QPKGs already installed ...
dbug: (--) complete
dbug: (**)    SCRIPT:  initial package download: Entware
dbug: (<<) QPKGs.Download.Build() [0]: 471 ms
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (<<) Session.Validate() [0]: 2,229 ms
dbug: (>>) Packages.Download()
dbug: (>>) QPKG.Download()
proc: downloading (Entware_1.02std.qpkg) ...
dbug: (vv) $_object_session_linespace_flag_ [false]
done: downloaded (Entware_1.02std.qpkg)
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (LL) = log file: '/share/CACHEDEV1_DATA/.qpkg/sherpa/logs/Entware_1.02std.qpkg.download.log'
dbug: (LL) = command: '/sbin/curl  --output /share/CACHEDEV1_DATA/.qpkg/sherpa/cache/qpkgs/Entware_1.02std.qpkg https://raw.githubusercontent.com/OneCDOnly/sherpa/master/QPKGs/Entware/Entware_1.02std.qpkg'
dbug: (LL) = result: [0] ***** stdout/stderr begins below *****
dbug: (LL) % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dbug: (LL) Dload  Upload   Total   Spent    Left  Speed
dbug: (LL) 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 27382  100 27382    0     0  93606      0 --:--:-- --:--:-- --:--:-- 94420
dbug: (LL) = ***** stdout/stderr is complete *****
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (<<) QPKG.Download() [0]: 809 ms
dbug: (<<) Packages.Download() [0]: 884 ms
dbug: (>>) Packages.Backup()
dbug: (<<) Packages.Backup() [0]: 35 ms
dbug: (>>) Packages.Uninstall()
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)
quiz: Press 'Y' to remove all current 'Entware' IPKGs (and their configurations), or any other key to abort:
dbug: (vv) $response [y]
proc: saving package and Python module lists ...
dbug: (--) saved current 'Entware' IPKG list to (/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/opkg.prev.installed.list)
done: package and Python module lists saved
dbug: (>>) QPKG.Uninstall()
proc: uninstalling 'Entware' ...
done: uninstalled 'Entware'
dbug: (--) removed icon information from App Center
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (LL) = log file: '/share/CACHEDEV1_DATA/.qpkg/sherpa/logs/Entware.uninstall.log'
dbug: (LL) = command: 'sh /share/CACHEDEV1_DATA/.qpkg/Entware/.uninstall.sh '
dbug: (LL) = result: [0] ***** stdout/stderr begins below *****
dbug: (LL) Disable Entware/opkg
dbug: (LL) = ***** stdout/stderr is complete *****
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (<<) QPKG.Uninstall() [0]: 10,246 ms
dbug: (<<) Packages.Uninstall() [0]: 00h:00m:48s
dbug: (>>) Packages.Install.Independents()
dbug: (>>) QPKG.Install()
proc: installing 'Entware' - this may take a while ...
fail: Installation failed (Entware_1.02std.qpkg) [127].
dbug: (vv) $_object_session_skippackageprocessing_flag_ [true]
dbug: (vv) $_script_error_flag [true]
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (LL) = log file: '/share/CACHEDEV1_DATA/.qpkg/sherpa/logs/Entware_1.02std.qpkg.install.log'
dbug: (LL) = command: 'sh /share/CACHEDEV1_DATA/.qpkg/sherpa/cache/qpkgs/Entware_1.02std.qpkg'
dbug: (LL) ! result: [127] ***** stdout/stderr begins below *****
dbug: (LL) /share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 4176: /opt/bin/sh: No such file or directory
dbug: (LL) = ***** stdout/stderr is complete *****
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (<<) QPKG.Install() [0]: 198 ms
dbug: (vv) $_object_session_ipkgs_install_flag_ [true]
dbug: (<<) Packages.Install.Independents() [0]: 263 ms
dbug: (vv) $_object_session_linespace_flag_ [true]
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (**)    SCRIPT:                  finished: Thu Oct  1 08:31:55 CEST 2020
dbug: (**)    SCRIPT:              elapsed time: 00h:00m:55s
dbug: (II) ============================================================================================
Last edited by OneCD on Thu Oct 01, 2020 2:40 pm, edited 1 time in total.
Reason: added code tags

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 » Thu Oct 01, 2020 2:43 pm

RobboNL wrote:
Thu Oct 01, 2020 2:37 pm

Code: Select all

dbug: (LL) /share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 4176: /opt/bin/sh: No such file or directory
Ah, I think I know what this will be (logic error in some new code). Just checking it out now... BRB.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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 » Thu Oct 01, 2020 2:52 pm

RobboNL wrote:
Thu Oct 01, 2020 2:37 pm
Getting an installed failed for Entware : fail: Installation failed (Entware_1.02std.qpkg) [127]
OK Robbo, should be fixed.

As your Entware is currently uninstalled, you can't technically 'reinstall' it just now. ;)

So, instead, run a 'check':

Code: Select all

sherpa check
... and that should install it again for you.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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

Re: [QPKG] sherpa mini-package-manager

Post by RobboNL » Thu Oct 01, 2020 3:56 pm

It downloaded Par2 and installed SABnzbd, but it ended with a warning
I do see the 'SABnzbd 3' app now in AppCenter, but cannot open it.

Code: Select all

dbug: (II) --------------------------------------------------------------------------------------------
dbug: (**)  HARDWARE:                     model: TS-453A
dbug: (**)  HARDWARE:                       RAM: 8,074,620 kB
dbug: (**)  FIRMWARE:          firmware version: 4.4.3
dbug: (**)  FIRMWARE:            firmware build: 20200925
dbug: (**)  FIRMWARE:                    kernel: 4.14.24-qnap x86_64
dbug: (**) USERSPACE:                 OS uptime: 20:06
dbug: (**) USERSPACE:               system load: 1 min=2.07, 5 min=2.37, 15 min=2.28
dbug: (**) USERSPACE:                     $USER: admin
dbug: (**) USERSPACE:                     $EUID: 0
dbug: (**) USERSPACE:                      BASH: GNU bash, version 3.2.57(1)-release (x86_64-QNAP-linux-gnu)
dbug: (**) USERSPACE:            default volume: /share/CACHEDEV1_DATA
dbug: (WW) USERSPACE:                      /opt: <not present>
dbug: (**) USERSPACE:                     $PATH: /opt/bin:/opt/sbin:/share/CACHEDEV1_DATA/.qpkg/contain
dbug: (**) USERSPACE:    default 'python2' path: /usr/local/bin/python2
dbug: (**) USERSPACE: default 'python2' version: Python 2.7.5
dbug: (WW) USERSPACE:    default 'python3' path: <not present>
dbug: (**) USERSPACE:     default 'python' path: /usr/local/bin/python
dbug: (**) USERSPACE:  default 'python' version: Python 2.7.5
dbug: (**) USERSPACE:   unparsed user arguments: check
dbug: (**)    SCRIPT:                 logs path: /share/CACHEDEV1_DATA/.qpkg/sherpa/logs
dbug: (**)    SCRIPT:                 work path: /share/CACHEDEV1_DATA/.qpkg/sherpa/cache
dbug: (**)    SCRIPT:     object reference hash: c9c6248c4bc69f2d86af2dbac21d8183
dbug: (**)      QPKG:                      arch: x64
dbug: (**)      QPKG:     upgradable package(s):
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (>>) Packages.Assignment.Check()
dbug: (**)    SCRIPT:                    backup:
dbug: (**)    SCRIPT:                 uninstall:
dbug: (**)    SCRIPT:            forced-upgrade:
dbug: (**)    SCRIPT:                   upgrade:
dbug: (**)    SCRIPT:                   install:
dbug: (**)    SCRIPT:                 reinstall:
dbug: (**)    SCRIPT:                   restore:
dbug: (**)    SCRIPT:                   restart:
dbug: (<<) Packages.Assignment.Check() [0]: 146 ms
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (vv) $_object_session_ipkgs_install_flag_ [true]
dbug: (>>) QPKGs.Download.Build()
dbug: (>>) GetTheseQPKGDeps()
dbug: (II) requested QPKGs: Par2 SABnzbd SickChill
dbug: (==) finding QPKG dependencies ...
dbug: (==) iteration 1 ...
dbug: (==) iteration 2 ...
dbug: (--) complete
dbug: (II) found all QPKG dependencies in 2 iterations
dbug: (II) QPKGs requested + dependencies: Entware Par2 SABnzbd SickChill
dbug: (<<) GetTheseQPKGDeps() [0]: 131 ms
dbug: (==) excluding QPKGs already installed ...
dbug: (--) complete
dbug: (**)    SCRIPT:  initial package download: Entware Par2
dbug: (<<) QPKGs.Download.Build() [0]: 312 ms
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (<<) Session.Validate() [0]: 1,096 ms
dbug: (>>) Packages.Download()
dbug: (>>) QPKG.Download()
dbug: (II) local package checksum correct (Entware_1.02std.qpkg) so skipping download
dbug: (<<) QPKG.Download() [0]: 48 ms
dbug: (>>) QPKG.Download()
proc: downloading (Par2_0.8.1.0_x86_64.qpkg) ...
dbug: (vv) $_object_session_linespace_flag_ [false]
done: downloaded (Par2_0.8.1.0_x86_64.qpkg)
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (LL) = log file: '/share/CACHEDEV1_DATA/.qpkg/sherpa/logs/Par2_0.8.1.0_x86_64.qpkg.download.log'
dbug: (LL) = command: '/sbin/curl  --output /share/CACHEDEV1_DATA/.qpkg/sherpa/cache/qpkgs/Par2_0.8.1.0_x86_64.qpkg https://raw.githubusercontent.com/OneCDOnly/sherpa/master/QPKGs/Par2/Par2_0.8.1.0_x86_64.qpkg'
dbug: (LL) = result: [0] ***** stdout/stderr begins below *****
dbug: (LL) % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dbug: (LL) Dload  Upload   Total   Spent    Left  Speed
dbug: (LL) 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 2539k    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2539k  100 2539k    0     0  3206k      0 --:--:-- --:--:-- --:--:-- 3214k
dbug: (LL) = ***** stdout/stderr is complete *****
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (<<) QPKG.Download() [0]: 1,054 ms
dbug: (<<) Packages.Download() [0]: 1,153 ms
dbug: (>>) Packages.Backup()
dbug: (<<) Packages.Backup() [0]: 14 ms
dbug: (>>) Packages.Uninstall()
dbug: (<<) Packages.Uninstall() [0]: 17 ms
dbug: (>>) Packages.Install.Independents()
dbug: (>>) QPKG.Install()
dbug: (**)      QPKG:                    'Par2': already installed
dbug: (<<) QPKG.Install() [0]: 43 ms
dbug: (<<) Packages.Install.Independents() [0]: 115 ms
dbug: (>>) Packages.Install.**()
dbug: (<<) Packages.Install.**() [0]: 20 ms
dbug: (>>) Packages.Restore()
dbug: (<<) Packages.Restore() [0]: 14 ms
dbug: (>>) Packages.Restart()
dbug: (>>) QPKG.Restart()
proc: restarting 'SABnzbd' ...
warn: Could not restart 'SABnzbd' [1]
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (LL) = log file: '/share/CACHEDEV1_DATA/.qpkg/sherpa/logs/SABnzbd.restart.log'
dbug: (LL) = command: '/bin/sh /share/CACHEDEV1_DATA/.qpkg/SABnzbd/sabnzbd3.sh restart'
dbug: (LL) ! result: [1] ***** stdout/stderr begins below *****
dbug: (LL) daemon: NOT active
dbug: (LL) wait for (/opt/bin/git) to appear: (no-more than 300 seconds): 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, failed!
dbug: (LL) (/opt/bin/git) not found! (exceeded timeout: 300 seconds)
dbug: (LL) = ***** stdout/stderr is complete *****
dbug: (LL) --------------------------------------------------------------------------------------------
dbug: (<<) QPKG.Restart() [0]: 00h:05m:01s
dbug: (<<) Packages.Restart() [0]: 00h:05m:01s
done: all application dependencies are installed
dbug: (vv) $_object_session_linespace_flag_ [true]
dbug: (II) --------------------------------------------------------------------------------------------
dbug: (**)    SCRIPT:                  finished: Thu Oct  1 09:46:19 CEST 2020
dbug: (**)    SCRIPT:              elapsed time: 00h:05m:05s
dbug: (II) ============================================================================================

User avatar
dirkonline
Easy as a breeze
Posts: 250
Joined: Mon Oct 18, 2010 4:08 pm

Re: [QPKG] sherpa mini-package-manager

Post by dirkonline » Thu Oct 01, 2020 7:23 pm

@OneCD the moment I step out for a few weeks due to the new job you go ahead and make it all brand new and shiny. Thank you for all the work! Now I need to look at actually using cron jobs on QNAP to automate upgrades and backups, but you have done all the heavy lifting. Well done, Sir!

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:51 am

RobboNL wrote:
Thu Oct 01, 2020 3:56 pm
It downloaded Par2 and installed SABnzbd, but it ended with a warning
I do see the 'SABnzbd 3' app now in AppCenter, but cannot open it.
Sorry Robbo - I thought that would install Entware too. :oops:

Use this instead:

Code: Select all

sherpa install ew restart sab

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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:55 am

dirkonline wrote:
Thu Oct 01, 2020 7:23 pm
@OneCD the moment I step out for a few weeks due to the new job you go ahead and make it all brand new and shiny. Thank you for all the work!
Cheers Dirk. Good to see you're still with us. :D

BTW: this project got so involved, I ended-up creating a wiki. It's quite new and needs a bit more work - are you still interested in managing the wiki? It's OK to say "no". :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

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:28 am

Not a big issue but when installing SABnzbd I noticed the app is displaying the wrong webport in the qnap app overview. In my case 9195. So when I click opening it is automatically switching to https://192.168.xxx.xxx:9195/sabnzbd3/

# cat /etc/config/qpkg.conf shows the correct port being used Web_Port = 8900.

Any idea where sherpa gets the port settings from? How can I change the port in the app? :'

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 3:35 am

vuursteen wrote:
Fri Oct 02, 2020 3:28 am
Any idea where sherpa gets the port settings from? How can I change the port in the app? :'
sherpa doesn't actually handle the ports. Those are managed by each QPKG's service script.

I wrote the service scripts to begin with some default ports, but then read from the internal application's config file, then update the App Center icon with those port numbers. This allows the user to change the ports within each application, then restart the package via App Center, and have the icon updated. The one thing I can't do though is force App Center to refresh its display to reload the icon information. The user must do this themselves. ;)

With regard to the SAB ports: 8900 is the default non-SSL port. 9195 is the default SSL port. If you're logged into the QTS UI via HTTPS, App Center will try the SSL port number instead.

Hope this helps. :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

Post Reply

Return to “Community Apps”