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

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
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] sherpa.sh

Post by OneCD »

frustin wrote: Wed Sep 16, 2020 2:23 pm Looks like the script has the path incorrectly set:

Code: Select all

dbug: (LL) /share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg.install.log
dbug: (LL) ----------------------------------------------------------------------------
dbug: (LL) sh: /share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg: No such file or directory
Missing ../CACHEDEV1_DATA/..
Good-guess, but not quite. Sherpa uses the base QTS share references, not the NAS-specific share references.

The no-such file or directory is because the SickChill package wasn't downloaded (and you've found another runtime exception I'll need to address :lol: ). You may have attempted your download just after I had posted the commit. It can take as long as 5 minutes between posting a commit on the public GitHub site, and that change being propagated across to the raw GitHub site that sherpa downloads from. :geek:

Try your debug again, but remember - you now need to add 'upgrade' before the package name.

Code: Select all

./sherpa.sh --upgrade sick --debug

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
frustin
Know my way around
Posts: 109
Joined: Mon Oct 05, 2009 1:46 am

Re: [SCRIPT] sherpa.sh

Post by frustin »

OneCD wrote: Wed Sep 16, 2020 2:42 pm
frustin wrote: Wed Sep 16, 2020 2:23 pm Looks like the script has the path incorrectly set:

Code: Select all

dbug: (LL) /share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg.install.log
dbug: (LL) ----------------------------------------------------------------------------
dbug: (LL) sh: /share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg: No such file or directory
Missing ../CACHEDEV1_DATA/..
Good-guess, but not quite. Sherpa uses the base QTS share references, not the NAS-specific share references.

The no-such file or directory is because the SickChill package wasn't downloaded (and you've found another runtime exception I'll need to address :lol: ). You may have attempted your download just after I had posted the commit. It can take as long as 5 minutes between posting a commit on the public GitHub site, and that change being propagated across to the raw GitHub site that sherpa downloads from. :geek:

Try your debug again, but remember - you now need to add 'upgrade' before the package name.

Code: Select all

./sherpa.sh --upgrade sick --debug

Code: Select all

[/share/CACHEDEV1_DATA/Public] # ./sherpa.sh --upgrade sick --debug
dbug: (vv) $_show_debugging_flag [true]
note: An upgraded package is available for SickChill
dbug: (vv) $_log_to_file_flag [true]
dbug: (II) ============================================================================
dbug: (**)    SCRIPT:             started: Wed Sep 16 07:48:01 BST 2020
dbug: (**)    SCRIPT:             version: manager: 200916, loader 200905
dbug: (**)    SCRIPT:                 PID: 13325
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: (**)  HARDWARE:               model: TS-670 Pro
dbug: (**)  HARDWARE:                 RAM: 16292372 kB
dbug: (**)  FIRMWARE:    firmware version: 4.3.6
dbug: (**)  FIRMWARE:      firmware build: 20200825
dbug: (**)  FIRMWARE:              kernel: 4.2.8 x86_64
dbug: (**) USERSPACE:           OS uptime: 6 days
dbug: (**) USERSPACE:         system load: 1 min=1.06, 5 min=1.11, 15 min=1.13
dbug: (**) USERSPACE:               $USER: admin
dbug: (**) USERSPACE:               $EUID: 0
dbug: (**) USERSPACE:      default volume: /share/CACHEDEV1_DATA
dbug: (**) USERSPACE:               $PATH: /opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr
dbug: (**) USERSPACE:                /opt: /share/CACHEDEV1_DATA/.qpkg/Entware
dbug: (**) USERSPACE:       Python 3 path: /opt/bin/python3
dbug: (**) USERSPACE:    Python 3 version: Python 3.7.4
dbug: (**) USERSPACE:     /share/Download: CACHEDEV1_DATA/Download
dbug: (**)    SCRIPT:  unparsed arguments: --upgrade sick --debug
dbug: (**)      QPKG:   Entware installer: std
dbug: (II) requested QPKGs: SickChill
dbug: (==) finding QPKG dependencies ...
dbug: (--) complete
dbug: (II) found all QPKG dependencies in 2 iterations
dbug: (II) QPKGs requested + dependencies: Entware SickChill
dbug: (==) excluding QPKGs already installed ...
dbug: (--) complete
dbug: (II) QPKGs required: SickChill
dbug: (II) ----------------------------------------------------------------------------
dbug: (**)    SCRIPT:             install:
dbug: (**)    SCRIPT:           uninstall:
dbug: (**)    SCRIPT:           reinstall:
dbug: (**)    SCRIPT:             restart:
dbug: (**)    SCRIPT:             upgrade: SickChill
dbug: (**)    SCRIPT:              backup:
dbug: (**)    SCRIPT:             restore:
dbug: (**)    SCRIPT:              status:
dbug: (II) ----------------------------------------------------------------------------
dbug: (**)    SCRIPT:            download: SickChill
dbug: (**)      QPKG:       download path: /share/Public/sherpa.tmp/qpkg.downloads
dbug: (**)      IPKG:       download path: /share/Public/sherpa.tmp/ipkg.downloads
dbug: (**)      QPKG:                arch: x64
dbug: (II) ----------------------------------------------------------------------------
dbug: (>>) QPKGs.Download()
proc: downloading QPKG (SickChill_200916.qpkg) ...
tee: /dev/fd/5: No such file or directory
dbug: (vv) $_script_abort_flag [true]
dbug: (vv) $_script_error_flag [true]
fail: Download failed (/share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg) [1]
dbug: (LL) ----------------------------------------------------------------------------
dbug: (LL) /share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg.download.log
dbug: (LL) ----------------------------------------------------------------------------
dbug: (LL) = command: '/sbin/curl  --output /share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg https://raw.githubusercontent.com/OneCDOnly/sherpa/master/QPKGs/SickChill/build/SickChill_200916.qpkg'
dbug: (LL) ! result: [1] / / / / / stdout begins below \ \ \ \ \
dbug: (LL) % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dbug: (LL) Dload  Upload   Total   Spent    Left  Speed
100 61830  100 61830    0     0   217k      0 --:--:-- --:--:-- --:--:--  217k
dbug: (LL) = \ \ \ \ \ stdout is complete / / / / /
dbug: (LL) ----------------------------------------------------------------------------
dbug: (<<) QPKGs.Download() [0]
dbug: (II) ----------------------------------------------------------------------------
dbug: (**)    SCRIPT:            finished: Wed Sep 16 07:48:01 BST 2020
dbug: (**)    SCRIPT:        elapsed time: 00h:00m:00s
dbug: (II) ============================================================================
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] sherpa.sh

Post by OneCD »

frustin wrote: Wed Sep 16, 2020 2:49 pm

Code: Select all

proc: downloading QPKG (SickChill_200916.qpkg) ...
tee: /dev/fd/5: No such file or directory
dbug: (vv) $_script_abort_flag [true]
Ah, here we go. Looks like QNAP have been altering QTS again. :(

I'll need to investigate this. I'll post back when I've got a solution.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
frustin
Know my way around
Posts: 109
Joined: Mon Oct 05, 2009 1:46 am

Re: [SCRIPT] sherpa.sh

Post by frustin »

OneCD wrote: Wed Sep 16, 2020 2:53 pm
frustin wrote: Wed Sep 16, 2020 2:49 pm

Code: Select all

proc: downloading QPKG (SickChill_200916.qpkg) ...
tee: /dev/fd/5: No such file or directory
dbug: (vv) $_script_abort_flag [true]
Ah, here we go. Looks like QNAP have been altering QTS again. :(

I'll need to investigate this. I'll post back when I've got a solution.
wait wait :) looks better now...

Code: Select all

[/share/CACHEDEV1_DATA/Public] # ./sherpa.sh --upgrade sick --debug
dbug: (vv) $_show_debugging_flag [true]
note: An upgraded package is available for SickChill
dbug: (vv) $_log_to_file_flag [true]
dbug: (II) ============================================================================
dbug: (**)    SCRIPT:             started: Wed Sep 16 07:53:23 BST 2020
dbug: (**)    SCRIPT:             version: manager: 200916, loader 200905
dbug: (**)    SCRIPT:                 PID: 17477
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: (**)  HARDWARE:               model: TS-670 Pro
dbug: (**)  HARDWARE:                 RAM: 16292372 kB
dbug: (**)  FIRMWARE:    firmware version: 4.3.6
dbug: (**)  FIRMWARE:      firmware build: 20200825
dbug: (**)  FIRMWARE:              kernel: 4.2.8 x86_64
dbug: (**) USERSPACE:           OS uptime: 6 days
dbug: (**) USERSPACE:         system load: 1 min=1.19, 5 min=1.15, 15 min=1.14
dbug: (**) USERSPACE:               $USER: admin
dbug: (**) USERSPACE:               $EUID: 0
dbug: (**) USERSPACE:      default volume: /share/CACHEDEV1_DATA
dbug: (**) USERSPACE:               $PATH: /opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr
dbug: (**) USERSPACE:                /opt: /share/CACHEDEV1_DATA/.qpkg/Entware
dbug: (**) USERSPACE:       Python 3 path: /opt/bin/python3
dbug: (**) USERSPACE:    Python 3 version: Python 3.7.4
dbug: (**) USERSPACE:     /share/Download: CACHEDEV1_DATA/Download
dbug: (**)    SCRIPT:  unparsed arguments: --upgrade sick --debug
dbug: (**)      QPKG:   Entware installer: std
dbug: (II) requested QPKGs: SickChill
dbug: (==) finding QPKG dependencies ...
dbug: (--) complete
dbug: (II) found all QPKG dependencies in 2 iterations
dbug: (II) QPKGs requested + dependencies: Entware SickChill
dbug: (==) excluding QPKGs already installed ...
dbug: (--) complete
dbug: (II) QPKGs required: SickChill
dbug: (II) ----------------------------------------------------------------------------
dbug: (**)    SCRIPT:             install:
dbug: (**)    SCRIPT:           uninstall:
dbug: (**)    SCRIPT:           reinstall:
dbug: (**)    SCRIPT:             restart:
dbug: (**)    SCRIPT:             upgrade: SickChill
dbug: (**)    SCRIPT:              backup:
dbug: (**)    SCRIPT:             restore:
dbug: (**)    SCRIPT:              status:
dbug: (II) ----------------------------------------------------------------------------
dbug: (**)    SCRIPT:            download: SickChill
dbug: (**)      QPKG:       download path: /share/Public/sherpa.tmp/qpkg.downloads
dbug: (**)      IPKG:       download path: /share/Public/sherpa.tmp/ipkg.downloads
dbug: (**)      QPKG:                arch: x64
dbug: (II) ----------------------------------------------------------------------------
dbug: (>>) QPKGs.Download()
dbug: (II) existing QPKG checksum correct (SickChill_200916.qpkg)
dbug: (<<) QPKGs.Download() [0]
dbug: (>>) QPKGs.Independents.Install()
dbug: (II) patch: do the "opt shuffle" - already done
dbug: (II) 'Entware' package list was updated less than 60 minutes ago
done: 'Entware' package list is current
dbug: (>>) InstallIPKGBatch()
proc: determining IPKGs required ...
dbug: (II) IPKGs requested: ca-certificates coreutils-nice ffprobe findutils gcc git git-http ionice less nano p7zip python3-asn1crypto python3-chardet python3-cryptography python3-dev python3-pip python3-pyopenssl python3-setuptools sed unrar
dbug: (==) finding IPKG dependencies ...
dbug: (--) complete
dbug: (II) found all IPKG dependencies in 13 iterations
dbug: (II) IPKGs requested + dependencies: alsa-lib ar binutils ca-bundle ca-certificates ca-certs coreutils coreutils-nice ffprobe file findutils gcc git git-http ionice lame-lib less libatomic libbfd libbz2 libc libctf libcurl libdb47 libexpat libffi libffmpeg-full libgcc libgdbm libgmp libgnutls libiconv-full libintl-full liblzma libmagic libncurses libncursesw libnettle libopcodes libopenssl libopus libpcre libpthread librt libsqlite3 libssp libstdcpp libtirpc libuuid libx264 libxml2 nano objdump p7zip python-pip-conf python3 python3-asn1crypto python3-asyncio python3-base python3-cffi python3-cgi python3-cgitb python3-chardet python3-codecs python3-cryptography python3-ctypes python3-dbm python3-decimal python3-dev python3-distutils python3-email python3-gdbm python3-lib2to3 python3-light python3-logging python3-lzma python3-multiprocessing python3-ncurses python3-openssl python3-pip python3-pkg-resources python3-ply python3-pycparser python3-pydoc python3-pyopenssl python3-setuptools python3-six python3-sqlite3 python3-unittest python3-urllib python3-xml sed terminfo unrar zlib
dbug: (**)     STAGE:        elapsed time: 00h:00m:00s
dbug: (II) ----------------------------------------------------------------------------
dbug: (==) excluding IPKGs already installed ...
dbug: (--) complete
dbug: (II) IPKGs to download:
done: no IPKGs are required
dbug: (<<) InstallIPKGBatch() [0]
dbug: (>>) InstallPy3Modules()
proc: downloading & installing 'Python 3' modules - this may take a while ...
done: downloaded & installed 'Python 3' modules                                 
dbug: (<<) InstallPy3Modules() [0]
dbug: (<<) QPKGs.Independents.Install() [0]
proc: re-installing QPKG (SickChill_200916.qpkg) - this may take a while ...
done: re-installed QPKG (SickChill_200916.qpkg)                                 
dbug: (II) 'SickChill' service started OK
dbug: (II) ----------------------------------------------------------------------------
dbug: (**)    SCRIPT:            finished: Wed Sep 16 07:54:43 BST 2020
dbug: (**)    SCRIPT:        elapsed time: 00h:01m:20s
dbug: (II) ============================================================================
EDIT: works now, no messages in the web UI
EDIT2: and thanks very much
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] sherpa.sh

Post by OneCD »

frustin wrote: Wed Sep 16, 2020 2:55 pm EDIT: works now, no messages in the web UI
EDIT2: and thanks very much
Oh good. :D

I'll keep an eye-out for other reports of that same missing file descriptor error.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
OddbOd
New here
Posts: 8
Joined: Wed Dec 11, 2013 6:22 am

Re: [SCRIPT] sherpa.sh

Post by OddbOd »

Yikes, that didn't go as well as I'd hoped.

First attempt...

Code: Select all

admin@Ossus Public]# ./sherpa.sh --upgrade sick --debug
dbug: (vv) $_show_debugging_flag [true] 
note: An upgraded package is available for SickChill 
dbug: (vv) $_log_to_file_flag [true] 
dbug: (II) ============================================================================ 
dbug: (**)    SCRIPT:             started: Wed Sep 16 21:57:23 EST 2020 
dbug: (**)    SCRIPT:             version: manager: 200916, loader 200905 
dbug: (**)    SCRIPT:                 PID: 30425 
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: (**)  HARDWARE:               model: TS-869L 
dbug: (**)  HARDWARE:                 RAM: 3072244 kB 
dbug: (**)  FIRMWARE:    firmware version: 4.3.4 
dbug: (**)  FIRMWARE:      firmware build: 20200821 
dbug: (**)  FIRMWARE:              kernel: 3.4.6 x86_64 
dbug: (**) USERSPACE:           OS uptime: 5 days 
dbug: (**) USERSPACE:         system load: 1 min=0.11, 5 min=0.14, 15 min=0.19 
dbug: (**) USERSPACE:               $USER: admin 
dbug: (**) USERSPACE:               $EUID: 0 
dbug: (**) USERSPACE:      default volume: /share/CACHEDEV2_DATA 
dbug: (**) USERSPACE:               $PATH: /opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr 
dbug: (**) USERSPACE:                /opt: /share/CACHEDEV2_DATA/.qpkg/Entware 
dbug: (**) USERSPACE:       Python 3 path: /opt/bin/python3 
dbug: (**) USERSPACE:    Python 3 version: Python 3.8.3 
dbug: (**) USERSPACE:     /share/Download: CACHEDEV2_DATA/Download 
dbug: (**)    SCRIPT:  unparsed arguments: --upgrade sick --debug 
dbug: (**)      QPKG:   Entware installer: std 
dbug: (II) requested QPKGs: SickChill 
dbug: (==) finding QPKG dependencies ... 
dbug: (--) complete 
dbug: (II) found all QPKG dependencies in 2 iterations 
dbug: (II) QPKGs requested + dependencies: Entware SickChill 
dbug: (==) excluding QPKGs already installed ... 
dbug: (--) complete 
dbug: (II) QPKGs required: SickChill 
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (**)    SCRIPT:             install:   
dbug: (**)    SCRIPT:           uninstall:   
dbug: (**)    SCRIPT:           reinstall:   
dbug: (**)    SCRIPT:             restart:   
dbug: (**)    SCRIPT:             upgrade: SickChill  
dbug: (**)    SCRIPT:              backup:   
dbug: (**)    SCRIPT:             restore:   
dbug: (**)    SCRIPT:              status:   
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (**)    SCRIPT:            download: SickChill  
dbug: (**)      QPKG:       download path: /share/Public/sherpa.tmp/qpkg.downloads 
dbug: (**)      IPKG:       download path: /share/Public/sherpa.tmp/ipkg.downloads 
dbug: (**)      QPKG:                arch: x64 
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (>>) QPKGs.Download() 
proc: downloading QPKG (SickChill_200916.qpkg) ... 
tee: /dev/fd/5: No such file or directory
dbug: (vv) $_script_abort_flag [true] 
dbug: (vv) $_script_error_flag [true] 
fail: Download failed (/share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg) [1] 
dbug: (LL) ---------------------------------------------------------------------------- 
dbug: (LL) /share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg.download.log 
dbug: (LL) ---------------------------------------------------------------------------- 
dbug: (LL) = command: '/sbin/curl  --output /share/Public/sherpa.tmp/qpkg.downloads/SickChill_200916.qpkg https://raw.githubusercontent.com/OneCDOnly/sherpa/master/QPKGs/SickChill/build/SickChill_200916.qpkg' 
dbug: (LL) ! result: [1] / / / / / stdout begins below \ \ \ \ \ 
dbug: (LL) % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current 
dbug: (LL) Dload  Upload   Total   Spent    Left  Speed 
100 61830  100 61830    0     0   121k      0 --:--:-- --:--:-- --:--:--  128k 
dbug: (LL) = \ \ \ \ \ stdout is complete / / / / / 
dbug: (LL) ---------------------------------------------------------------------------- 
dbug: (<<) QPKGs.Download() [0] 
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (**)    SCRIPT:            finished: Wed Sep 16 21:57:26 EST 2020 
dbug: (**)    SCRIPT:        elapsed time: 00h:00m:04s 
dbug: (II) ============================================================================ 
Whoops! SickChill was still running and I stupidly assumed that Sherpa would check for that and shut it down before attempting an upgrade.

Let's try again...

Code: Select all

[admin@Ossus Public]# /etc/init.d/sickchill.sh status
daemon: NOT active
disabling QPKG icon: OK
[admin@Ossus Public]# ./sherpa.sh --upgrade sick --debug
dbug: (vv) $_show_debugging_flag [true] 
note: An upgraded package is available for SickChill 
dbug: (vv) $_log_to_file_flag [true] 
dbug: (II) ============================================================================ 
dbug: (**)    SCRIPT:             started: Wed Sep 16 22:02:40 EST 2020 
dbug: (**)    SCRIPT:             version: manager: 200916, loader 200905 
dbug: (**)    SCRIPT:                 PID: 3305 
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: (**)  HARDWARE:               model: TS-869L 
dbug: (**)  HARDWARE:                 RAM: 3072244 kB 
dbug: (**)  FIRMWARE:    firmware version: 4.3.4 
dbug: (**)  FIRMWARE:      firmware build: 20200821 
dbug: (**)  FIRMWARE:              kernel: 3.4.6 x86_64 
dbug: (**) USERSPACE:           OS uptime: 5 days 
dbug: (**) USERSPACE:         system load: 1 min=0.09, 5 min=0.18, 15 min=0.20 
dbug: (**) USERSPACE:               $USER: admin 
dbug: (**) USERSPACE:               $EUID: 0 
dbug: (**) USERSPACE:      default volume: /share/CACHEDEV2_DATA 
dbug: (**) USERSPACE:               $PATH: /opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr 
dbug: (**) USERSPACE:                /opt: /share/CACHEDEV2_DATA/.qpkg/Entware 
dbug: (**) USERSPACE:       Python 3 path: /opt/bin/python3 
dbug: (**) USERSPACE:    Python 3 version: Python 3.8.3 
dbug: (**) USERSPACE:     /share/Download: CACHEDEV2_DATA/Download 
dbug: (**)    SCRIPT:  unparsed arguments: --upgrade sick --debug 
dbug: (**)      QPKG:   Entware installer: std 
dbug: (II) requested QPKGs: SickChill 
dbug: (==) finding QPKG dependencies ... 
dbug: (--) complete 
dbug: (II) found all QPKG dependencies in 2 iterations 
dbug: (II) QPKGs requested + dependencies: Entware SickChill 
dbug: (==) excluding QPKGs already installed ... 
dbug: (--) complete 
dbug: (II) QPKGs required: SickChill 
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (**)    SCRIPT:             install:   
dbug: (**)    SCRIPT:           uninstall:   
dbug: (**)    SCRIPT:           reinstall:   
dbug: (**)    SCRIPT:             restart:   
dbug: (**)    SCRIPT:             upgrade: SickChill  
dbug: (**)    SCRIPT:              backup:   
dbug: (**)    SCRIPT:             restore:   
dbug: (**)    SCRIPT:              status:   
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (**)    SCRIPT:            download: SickChill  
dbug: (**)      QPKG:       download path: /share/Public/sherpa.tmp/qpkg.downloads 
dbug: (**)      IPKG:       download path: /share/Public/sherpa.tmp/ipkg.downloads 
dbug: (**)      QPKG:                arch: x64 
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (>>) QPKGs.Download() 
dbug: (II) existing QPKG checksum correct (SickChill_200916.qpkg) 
dbug: (<<) QPKGs.Download() [0] 
dbug: (>>) QPKGs.Independents.Install() 
dbug: (II) patch: do the "opt shuffle" - already done 
proc: updating 'Entware' package list ... 
done: updated 'Entware' package list            
dbug: (>>) InstallIPKGBatch() 
proc: determining IPKGs required ... 
dbug: (II) IPKGs requested: ca-certificates findutils gcc git git-http less nano python3-dev python3-pip python3-setuptools sed 
dbug: (==) finding IPKG dependencies ... 
dbug: (--) complete 
dbug: (II) found all IPKG dependencies in 13 iterations 
dbug: (II) IPKGs requested + dependencies: ar binutils ca-bundle ca-certificates ca-certs file findutils gcc git git-http less libbfd libbz2 libc libctf libcurl libdb47 libexpat libffi libgcc libgdbm libiconv-full libintl-full liblzma libmagic libncurses libncursesw libopcodes libopenssl libpcre libpthread librt libsqlite3 libssp libstdcpp libtirpc libuuid libxml2 nano objdump python-pip-conf python3 python3-asyncio python3-base python3-cgi python3-cgitb python3-codecs python3-ctypes python3-dbm python3-decimal python3-dev python3-distutils python3-email python3-gdbm python3-lib2to3 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 sed terminfo zlib 
dbug: (**)     STAGE:        elapsed time: 00h:00m:03s 
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (==) excluding IPKGs already installed ... 
dbug: (--) complete 
dbug: (II) IPKGs to download: libctf 
dbug: (==) determining size of IPKG to download ... 
dbug: (--) complete 
dbug: (vv) $IPKG_download_size [101133] 
done: 1 IPKG (101kB) to be downloaded    
proc: downloading & installing 1 IPKG ... 
done: downloaded & installed 1 IPKG             
dbug: (**)     STAGE:        elapsed time: 00h:00m:04s 
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (<<) InstallIPKGBatch() [0] 
dbug: (>>) InstallPy3Modules() 
proc: downloading & installing 'Python 3' modules - this may take a while ... 
dbug: (vv) $_script_abort_flag [true] 
dbug: (vv) $_script_error_flag [true] 
fail: Download & install 'Python 3' modules failed ! result: [1] 
dbug: (LL) ---------------------------------------------------------------------------- 
dbug: (LL) /share/Public/sherpa.tmp/py3-modules.install.log 
dbug: (LL) ---------------------------------------------------------------------------- 
dbug: (LL) = command: '/opt/bin/pip3 install apscheduler beautifulsoup4 cfscrape cheetah3 "cheroot!=8.4.4" cherrypy configobj "feedparser==5.2.1" portend pygithub python-magic random_user_agent sabyenc3 simplejson slugify --disable-pip-version-check --cache-dir /share/Public/sherpa.tmp/pip.cache && /opt/bin/pip3 install --force-reinstall --ignore-installed --no-binary :all: sabyenc3 --disable-pip-version-check --cache-dir /share/Public/sherpa.tmp/pip.cache' 
dbug: (LL) ! result: [1] / / / / / stdout begins below \ \ \ \ \ 
dbug: (LL) Requirement already satisfied: apscheduler in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (3.6.3) 
dbug: (LL) Requirement already satisfied: beautifulsoup4 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (4.9.1) 
dbug: (LL) Requirement already satisfied: cfscrape in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (2.1.1) 
dbug: (LL) Requirement already satisfied: cheetah3 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (3.2.5) 
dbug: (LL) Requirement already satisfied: cheroot!=8.4.4 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (8.4.5) 
dbug: (LL) Requirement already satisfied: cherrypy in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (18.6.0) 
dbug: (LL) Requirement already satisfied: configobj in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (5.0.6) 
dbug: (LL) Requirement already satisfied: feedparser==5.2.1 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (5.2.1) 
dbug: (LL) Requirement already satisfied: portend in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (2.6) 
dbug: (LL) Requirement already satisfied: pygithub in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (1.53) 
dbug: (LL) Requirement already satisfied: python-magic in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (0.4.18) 
dbug: (LL) Requirement already satisfied: random_user_agent in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (1.0.1) 
dbug: (LL) Requirement already satisfied: sabyenc3 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (4.0.2) 
dbug: (LL) Requirement already satisfied: simplejson in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (3.17.2) 
dbug: (LL) Requirement already satisfied: slugify in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (0.0.1) 
dbug: (LL) Requirement already satisfied: setuptools>=0.7 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from apscheduler) (41.2.0) 
dbug: (LL) Requirement already satisfied: six>=1.4.0 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from apscheduler) (1.15.0) 
dbug: (LL) Requirement already satisfied: pytz in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from apscheduler) (2020.1) 
dbug: (LL) Requirement already satisfied: tzlocal>=1.2 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from apscheduler) (2.1) 
dbug: (LL) Requirement already satisfied: soupsieve>1.2 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from beautifulsoup4) (2.0.1) 
dbug: (LL) Requirement already satisfied: requests>=2.6.1 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from cfscrape) (2.24.0) 
dbug: (LL) Requirement already satisfied: jaraco.functools in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from cheroot!=8.4.4) (3.0.1) 
dbug: (LL) Requirement already satisfied: more-itertools>=2.6 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from cheroot!=8.4.4) (8.5.0) 
dbug: (LL) Requirement already satisfied: zc.lockfile in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from cherrypy) (2.0) 
dbug: (LL) Requirement already satisfied: jaraco.collections in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from cherrypy) (3.0.0) 
dbug: (LL) Requirement already satisfied: tempora>=1.8 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from portend) (4.0.0) 
dbug: (LL) Requirement already satisfied: deprecated in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from pygithub) (1.2.10) 
dbug: (LL) Requirement already satisfied: pyjwt in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from pygithub) (1.7.1) 
dbug: (LL) Requirement already satisfied: idna<3,>=2.5 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from requests>=2.6.1->cfscrape) (2.10) 
dbug: (LL) Requirement already satisfied: chardet<4,>=3.0.2 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from requests>=2.6.1->cfscrape) (3.0.4) 
dbug: (LL) Requirement already satisfied: certifi>=2017.4.17 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from requests>=2.6.1->cfscrape) (2020.6.20) 
dbug: (LL) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from requests>=2.6.1->cfscrape) (1.25.10) 
dbug: (LL) Requirement already satisfied: jaraco.text in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from jaraco.collections->cherrypy) (3.2.0) 
dbug: (LL) Requirement already satisfied: jaraco.classes in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from jaraco.collections->cherrypy) (3.1.0) 
dbug: (LL) Requirement already satisfied: wrapt<2,>=1.10 in /share/CACHEDEV2_DATA/.qpkg/Entware/lib/python3.8/site-packages (from deprecated->pygithub) (1.12.1) 
dbug: (LL) Collecting sabyenc3 
dbug: (LL) Downloading https://files.pythonhosted.org/packages/66/4c/a8bc62273142b31de0e86b6312c81f30531785b5d72e9b6be595c9f632d4/sabyenc3-4.0.2.tar.gz 
dbug: (LL) Installing collected packages: sabyenc3 
dbug: (LL) Running setup.py install for sabyenc3: started 
dbug: (LL) Running setup.py install for sabyenc3: finished with status 'error' 
dbug: (LL) ERROR: Command errored out with exit status 1: 
dbug: (LL) command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/CACHEDEV2_DATA/.qpkg/Entware/tmp/pip-install-86c0b3ni/sabyenc3/setup.py'"'"'; __file__='"'"'/share/CACHEDEV2_DATA/.qpkg/Entware/tmp/pip-install-86c0b3ni/sabyenc3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /share/CACHEDEV2_DATA/.qpkg/Entware/tmp/pip-record-v5tzzlws/install-record.txt --single-version-externally-managed --compile 
dbug: (LL) cwd: /share/CACHEDEV2_DATA/.qpkg/Entware/tmp/pip-install-86c0b3ni/sabyenc3/ 
dbug: (LL) Complete output (14 lines): 
dbug: (LL) running install 
dbug: (LL) running build 
dbug: (LL) running build_ext 
dbug: (LL) building 'sabyenc3' extension 
dbug: (LL) creating build 
dbug: (LL) creating build/temp.linux-x86_64-3.8 
dbug: (LL) creating build/temp.linux-x86_64-3.8/src 
dbug: (LL) gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -DNDEBUG -fno-inline -pthread -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -DNDEBUG -fno-inline -pthread -I/media/ware3/Entware.2020.05/staging_dir/target-x86_64_glibc-2.27/opt/include -I/media/ware3/Entware.2020.05/staging_dir/toolchain-x86_64_gcc-8.4.0_glibc-2.27/include -fPIC -I/opt/include/python3.8 -c src/sabyenc3.c -o build/temp.linux-x86_64-3.8/src/sabyenc3.o 
dbug: (LL) as: error while loading shared libraries: libbfd-2.27.so: cannot open shared object file: No such file or directory 
dbug: (LL) src/sabyenc3.c:742:1: fatal error: error writing to -: Broken pipe 
dbug: (LL) } 
dbug: (LL) ^ 
dbug: (LL) compilation terminated. 
dbug: (LL) error: command 'gcc' failed with exit status 1 
dbug: (LL) ---------------------------------------- 
dbug: (LL) ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/share/CACHEDEV2_DATA/.qpkg/Entware/tmp/pip-install-86c0b3ni/sabyenc3/setup.py'"'"'; __file__='"'"'/share/CACHEDEV2_DATA/.qpkg/Entware/tmp/pip-install-86c0b3ni/sabyenc3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /share/CACHEDEV2_DATA/.qpkg/Entware/tmp/pip-record-v5tzzlws/install-record.txt --single-version-externally-managed --compile Check the logs for full command output. 
dbug: (LL) = \ \ \ \ \ stdout is complete / / / / / 
dbug: (LL) ---------------------------------------------------------------------------- 
dbug: (<<) InstallPy3Modules() [0] 
dbug: (<<) QPKGs.Independents.Install() [0] 
dbug: (II) ---------------------------------------------------------------------------- 
dbug: (**)    SCRIPT:            finished: Wed Sep 16 22:03:16 EST 2020 
dbug: (**)    SCRIPT:        elapsed time: 00h:00m:36s 
dbug: (II) ============================================================================ 
I got up and running again by deleting /share/CACHEDEV2_DATA/.qpkg/SickChill/SickChill and editing SOURCE_GIT_BRANCH in sickchill.sh to point at the master branch instead, works for me but I do not encourage anyone to do the same.

Edit:- Jesus Christ, where are my manners! Thank you OneCD for offering this elegant alternative approach to installing the various media managers.
krangas
Starting out
Posts: 13
Joined: Thu Jun 18, 2015 1:57 am

Re: [SCRIPT] sherpa.sh

Post by krangas »

Hey @OneCD: maybe I've missed out, but any chance you will include CouchPotato in your script anytime soon?
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] sherpa.sh

Post by OneCD »

OddbOd wrote: Wed Sep 16, 2020 8:45 pm Yikes, that didn't go as well as I'd hoped.

First attempt...

Code: Select all

proc: downloading QPKG (SickChill_200916.qpkg) ... 
tee: /dev/fd/5: No such file or directory
dbug: (vv) $_script_abort_flag [true] 
Ah, the second time this error has popped-up recently. I'll do some work on this today. :)
OddbOd wrote: Wed Sep 16, 2020 8:45 pm Whoops! SickChill was still running and I stupidly assumed that Sherpa would check for that and shut it down before attempting an upgrade.
When any QPKG is reinstalled (or upgraded), it's shut-down first, then started afterward. The above error was not caused by a failure to do this. ;)
OddbOd wrote: Wed Sep 16, 2020 8:45 pm Let's try again...

Code: Select all

dbug: (LL) src/sabyenc3.c:742:1: fatal error: error writing to -: Broken pipe 
These compilation errors are something I can't fix. Usually, I'd suggest you reinstall Entware to start with a clean set of Python packages.
OddbOd wrote: Wed Sep 16, 2020 8:45 pm I got up and running again by deleting /share/CACHEDEV2_DATA/.qpkg/SickChill/SickChill and editing SOURCE_GIT_BRANCH in sickchill.sh to point at the master branch instead, works for me but I do not encourage anyone to do the same.
A bit drastic, but OK.

BTW: the service scripts are coded to detect a change in the preferred source branch, and clean the local repo automatically if required. What you did is fine, but you didn't need to manually delete the existing SickChill installation (which would delete your config too).
OddbOd wrote: Wed Sep 16, 2020 8:45 pm Thank you OneCD for offering this elegant alternative approach to installing the various media managers.
No worries mate. Thank you for the feedback. :D

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] sherpa.sh

Post by OneCD »

krangas wrote: Thu Sep 17, 2020 3:17 am Hey @OneCD: maybe I've missed out, but any chance you will include CouchPotato in your script anytime soon?
Sorry, you're too-late. CP was available via sherpa up until earlier this year. I has to remove it as an installable package as CP is a dead project, there's no development occurring, and the devs are not supporting it anymore. :(

Try Watcher3 or Radarr.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
krangas
Starting out
Posts: 13
Joined: Thu Jun 18, 2015 1:57 am

Re: [SCRIPT] sherpa.sh

Post by krangas »

OneCD wrote: Thu Sep 17, 2020 4:01 am
krangas wrote: Thu Sep 17, 2020 3:17 am Hey @OneCD: maybe I've missed out, but any chance you will include CouchPotato in your script anytime soon?
Try Watcher3 or Radarr.
Oh, bummer :cry:
None of them are really up at the same level as CP. Thanks for swift reply
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] sherpa.sh

Post by OneCD »

krangas wrote: Thu Sep 17, 2020 4:06 am Oh, bummer :cry:
None of them are really up at the same level as CP. Thanks for swift reply
Oops! I forgot SickChill has recently added movie support. The feature is quite new, so expect bugs. ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD »

* major update! *

sherpa is now a QPKG. See the first post for details. No-more script downloading - hooray! :lol:

Once the QPKG is installed, you can login via SSH and access sherpa from any location (so, your working directory doesn't need to be [/share/Public] anymore). Just type:

Code: Select all

sherpa
... no .sh extension required!

I noticed a little while ago this topic now has over 1 million views, so I figured there's probably enough interest to warrant turning this script into a QPKG. ;)

I've also submitted it to the Qnapclub Store which should make the initial install easier, but may take a few days to be approved.

Cheers!

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

Re: [QPKG] sherpa mini-package-manager

Post by GTunney »

OneCD wrote: Thu Sep 17, 2020 11:13 am * major update! *

sherpa is now a QPKG. See the first post for details. No-more script downloading - hooray! :lol:

Once the QPKG is installed, you can login via SSH and access sherpa from any location (so, your working directory doesn't need to be [/share/Public] anymore). Just type:

Code: Select all

sherpa
... no .sh extension required!

I noticed a little while ago this topic now has over 1 million views, so I figured there's probably enough interest to warrant turning this script into a QPKG. ;)

I've also submitted it to the Qnapclub Store which should make the initial install easier, but may take a few days to be approved.

Cheers!
I'm guessing we can just install the QPKG and sherpa will pick it up where it left off with apps already installed?
Model: TS-453D 8GB
Disks: 3 x 4TB Western Digital WD40EFRX - RAID 5
Total Storage: 7.2TB
Applications: Plex | Sonarr | QSabnzbd+ | Radarr | Home Assistant | MQTT/Z2M
Other Devices: Netgear D7000 AC1900 VDSL Router | FTTP - 1014/104 | Netgear GS108 Gigabit Switch
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager

Post by OneCD »

GTunney wrote: Thu Sep 17, 2020 2:58 pm I'm guessing we can just install the QPKG and sherpa will pick it up where it left off with apps already installed?
Correct. :)

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

Re: [QPKG] sherpa mini-package-manager

Post by GTunney »

OneCD wrote: Thu Sep 17, 2020 3:06 pm
GTunney wrote: Thu Sep 17, 2020 2:58 pm I'm guessing we can just install the QPKG and sherpa will pick it up where it left off with apps already installed?
Correct. :)
Amazing, be even better once it's loaded onto qnap club repo.

You know what we need now though? A nice web GUI to control updates etc ;-) haha
Model: TS-453D 8GB
Disks: 3 x 4TB Western Digital WD40EFRX - RAID 5
Total Storage: 7.2TB
Applications: Plex | Sonarr | QSabnzbd+ | Radarr | Home Assistant | MQTT/Z2M
Other Devices: Netgear D7000 AC1900 VDSL Router | FTTP - 1014/104 | Netgear GS108 Gigabit Switch
Post Reply

Return to “Community Apps”