[QPKG] sherpa 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: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] Sherpa

Post by OneCD »

dirkonline wrote:Is there a way to update / repair nzbtomedia ?

[17:51:28] [INFO]::MAIN: Loading config from [/share/CACHEDEV1_DATA/Download/nzbToMedia/autoProcessMedia.cfg]
[17:51:28] [INFO]::MAIN: Checking database structure...
[17:51:28] [INFO]::MAIN: Checking if git needs an update
[17:51:28] [ERROR]::MAIN: Unable to determine installed version via git, please check your logs!
[17:51:28] [INFO]::MAIN: No update needed
[17:51:28] [INFO]::MAIN: nzbToMedia Version:11.03 Branch:master (Linux 3.10.20-al-2.5.3_sa)
[17:51:28] [INFO]::MAIN: #########################################################
[17:51:28] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[17:51:28] [INFO]::MAIN: #########################################################
[17:51:28] [INFO]::MAIN: Script triggered from SABnzbd
[17:51:30] [WARNING]::MAIN: Data from SABnzbd queue could not be parsed
[17:51:32] [WARNING]::MAIN: Data from SABnzbd history could not be parsed
[17:51:32] [INFO]::MAIN: Auto-detected SECTION:SickBeard
On mine, this part looks like:
OneCD wrote:[02:05:04] [INFO]::MAIN: Loading config from [/share/MD0_DATA/Download/nzbToMedia/autoProcessMedia.cfg]
[02:05:04] [INFO]::MAIN: Checking database structure...
[02:05:04] [INFO]::MAIN: Checking if git needs an update
[02:05:09] [INFO]::MAIN: No update needed
[02:05:09] [INFO]::MAIN: nzbToMedia Version:80c8ad58523ab99825c02f3855f9bd3dc9945d57 Branch:master (Linux 3.4.6)
[02:05:09] [INFO]::MAIN: #########################################################
[02:05:09] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[02:05:09] [INFO]::MAIN: #########################################################
[02:05:09] [INFO]::MAIN: Script triggered from SABnzbd 0.7.17+
[02:05:11] [WARNING]::MAIN: Data from SABnzbd queue could not be parsed
[02:05:13] [WARNING]::MAIN: Data from SABnzbd history could not be parsed
[02:05:14] [INFO]::MAIN: Auto-detected SECTION:SickBeard
dirkonline wrote:Is there a way to update / repair nzbtomedia ?
Good question. I've not had to do that before. ;)

But, it's automatically pulled from git on SAB init (installed). So, if you like:
  1. Backup your autoProcessMedia.cfg:

    Code: Select all

    cp /share/Download/nzbToMedia/autoProcessMedia.cfg /share/Public/
  2. Remove your current nzbToMedia:

    Code: Select all

    rm -r /share/Download/nzbToMedia
  3. Restart SABnzbd:

    Code: Select all

    /etc/init.d/sabnzbd.sh restart
  4. Then restore your autoProcessMedia.cfg:

    Code: Select all

    cp /share/Public/autoProcessMedia.cfg /share/Download/nzbToMedia/

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

Re: [SCRIPT] Sherpa

Post by dirkonline »

I REALLY have to invite you for dinner of your choice someday OneCD!

Code: Select all

   
0:00
0 KB/s 
Queue 3.69 | 3.01 | 2.80 | V=303M R=53M   118.6 GB Free Space (Temp Folder)   4.2 TB Free Space
 Add NZB
History
Home.And.Away.S30E072.HDTV.x264-FiHTV	SickBeard: Successfully post-processed Home.And.Away.S30E072.HDTV.x264-FiHTV.nzb!	
16/05/2017 18:37	

I.Am.Innocent.NZ.S02E08.HDTV.x264-FiHTV	[18:31:36] [ERROR]::MAIN: A problem was reported in the /share/CACHEDEV1_DATA/Download/nzbToMedia/nzbToSickBeard.py script.	
16/05/2017 18:31	 
Search
  10.0 GB Today 168.4 GB This Month 385.4 GB Total
×
Home.And.Away.S30E072.HDTV.x264-FiHTV
[18:37:15] [INFO]::MAIN: Loading config from [/share/CACHEDEV1_DATA/Download/nzbToMedia/autoProcessMedia.cfg]
[18:37:15] [INFO]::MAIN: Checking database structure...
[18:37:15] [INFO]::MAIN: Checking if git needs an update
[18:37:16] [INFO]::MAIN: No update needed
[18:37:16] [INFO]::MAIN: nzbToMedia Version:80c8ad58523ab99825c02f3855f9bd3dc9945d57 Branch:master (Linux 3.10.20-al-2.5.3_sa)
[18:37:16] [INFO]::MAIN: #########################################################
[18:37:16] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[18:37:16] [INFO]::MAIN: #########################################################
[18:37:16] [INFO]::MAIN: Script triggered from SABnzbd
[18:37:18] [WARNING]::MAIN: Data from SABnzbd queue could not be parsed
[18:37:20] [WARNING]::MAIN: Data from SABnzbd history could not be parsed
[18:37:20] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[18:37:20] [INFO]::MAIN: Calling SickBeard:tv to post-process:Home.And.Away.S30E072.HDTV.x264-FiHTV.nzb
[18:37:21] [INFO]::MAIN: SickBeard:tv fork set to sickrage
[18:37:21] [INFO]::MAIN: FLATTEN: Flattening directory: /share/Download/sabnzbd/complete/Home.And.Away.S30E072.HDTV.x264-FiHTV
/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/x31/bin-utils/ffprobe: error while loading shared libraries: libavdevice.so.54: cannot open shared object file: No such file or directory
/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/x31/bin-utils/ffprobe: error while loading shared libraries: libavdevice.so.54: cannot open shared object file: No such file or directory
[18:37:21] [ERROR]::TRANSCODER: Checking [/share/CACHEDEV1_DATA/Download/nzbToMedia/tests/test.mp4] has failed
[18:37:21] [INFO]::TRANSCODER: DISABLED: ffprobe failed to analyse test file. Stopping corruption check.
[18:37:21] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
[18:37:24] [POSTPROCESS]::SICKBEARD: Processing in folder /share/CACHEDEV1_DATA/Download/sabnzbd/complete/Home.And.Away.S30E072.HDTV.x264-FiHTV
[18:37:24] [POSTPROCESS]::SICKBEARD: Processing /share/CACHEDEV1_DATA/Download/sabnzbd/complete/Home.And.Away.S30E072.HDTV.x264-FiHTV
[18:37:24] [POSTPROCESS]::SICKBEARD: Processing folder /share/CACHEDEV1_DATA/Download/sabnzbd/complete/Home.And.Away.S30E072.HDTV.x264-FiHTV
[18:37:24] [POSTPROCESS]::SICKBEARD: /share/CACHEDEV1_DATA/Download/sabnzbd/complete/Home.And.Away.S30E072.HDTV.x264-FiHTV : No processable items found in folder
[18:37:24] [POSTPROCESS]::SICKBEARD: Successfully processed
[18:37:24] [INFO]::CLEANDIRS: Directory /share/Download/sabnzbd/complete/Home.And.Away.S30E072.HDTV.x264-FiHTV still contains 1 unprocessed file(s), skipping ...
[18:37:24] [INFO]::MAIN: The /share/CACHEDEV1_DATA/Download/nzbToMedia/nzbToSickBeard.py script completed successfully.
SickBeard: Successfully post-processed Home.And.Away.S30E072.HDTV.x264-FiHTV.nzb!
I mean there are still errors.. but maybe they are normal?
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] Sherpa

Post by OneCD »

dirkonline wrote:

Code: Select all

   
/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/x31/bin-utils/ffprobe: error while loading shared libraries: libavdevice.so.54: cannot open shared object file: No such file or directory
/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/x31/bin-utils/ffprobe: error while loading shared libraries: libavdevice.so.54: cannot open shared object file: No such file or directory
[18:37:21] [ERROR]::TRANSCODER: Checking [/share/CACHEDEV1_DATA/Download/nzbToMedia/tests/test.mp4] has failed
[18:37:21] [INFO]::TRANSCODER: DISABLED: ffprobe failed to analyse test file. Stopping corruption check.
I mean there are still errors.. but maybe they are normal?
How does your most-recent SAB startup log look?
OneCD wrote:2017-05-17 02:46:22,197::INFO::[__init__:351] All processes started
2017-05-17 02:46:22,198::INFO::[SABnzbd:286] Web dir is /share/MD0_DATA/.qpkg/SABnzbdplus/sabnzbd/interfaces/Glitter
2017-05-17 02:46:22,199::INFO::[SABnzbd:286] Web dir is /share/MD0_DATA/.qpkg/SABnzbdplus/sabnzbd/interfaces/Config
2017-05-17 02:46:22,677::INFO::[SABnzbd:410] SABYenc module (v3.0.2)... found!
2017-05-17 02:46:22,679::INFO::[SABnzbd:427] Cryptography module (v1.5.1)... found!
2017-05-17 02:46:22,680::INFO::[SABnzbd:432] par2 binary... found (/usr/bin/par2)
2017-05-17 02:46:22,681::INFO::[SABnzbd:437] par2cmdline binary... found (/usr/bin/par2)
2017-05-17 02:46:22,682::INFO::[SABnzbd:440] UNRAR binary... found (/share/MD0_DATA/.qpkg/SABnzbdplus/x64/bin-utils/unrar)
2017-05-17 02:46:22,683::INFO::[SABnzbd:453] unzip binary... found (/share/MD0_DATA/.qpkg/SABnzbdplus/x64/bin-utils/unzip)
2017-05-17 02:46:22,684::INFO::[SABnzbd:458] 7za binary... found (/share/MD0_DATA/.qpkg/SABnzbdplus/x64/bin-utils/7za)
2017-05-17 02:46:22,685::INFO::[SABnzbd:464] nice binary... found (/share/MD0_DATA/.qpkg/SABnzbdplus/x64/bin-utils/nice)
2017-05-17 02:46:22,686::INFO::[SABnzbd:468] ionice binary... found (/share/MD0_DATA/.qpkg/SABnzbdplus/x64/bin-utils/ionice)
2017-05-17 02:46:22,688::INFO::[SABnzbd:1277] SSL version OpenSSL 1.0.2k 26 Jan 2017
2017-05-17 02:46:22,689::INFO::[SABnzbd:1278] SSL supported protocols ['TLS v1.2', 'TLS v1.1', 'TLS v1']
2017-05-17 02:46:22,698::INFO::[SABnzbd:1393] Starting web-interface on 0.0.0.0:8800

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

Re: [SCRIPT] Sherpa

Post by dirkonline »

Well, you won't believe it. Even after your clean install:

Code: Select all

[~] # /etc/init.d/sabnzbd.sh restart
armv7l
armv7l
Shutting down SABnzbdplus at Tue May 16 18:27:40 CEST 2017...
 Waiting for SABnzbdplus to shut down: 1, Done (Tue May 16 18:27:41 CEST 2017)
armv7l
Performing SABnzbdplus prestartup checks at Tue May 16 18:27:41 CEST 2017...
Cloning into '/share/Download/nzbToMedia'...
HEAD is now at 80c8ad5 remove -o from 7zip. Reverses #1149 Fixes #1175
Already up-to-date.
 Checking environment
  Checking if all configured directories exist....... Done
  Creating Symbolic links for required utils. Done
Done
Already up-to-date.
Starting SABnzbdplus/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/Repository/lib/pytho                          n/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_7882f2abxb4bfcf60.                          c:210:43: fatal error: CoreFoundation/CoreFoundation.h: No such file or director                          y
 #include <CoreFoundation/CoreFoundation.h>
                                           ^
compilation terminated.
 Done (Tue May 16 18:28:07 CEST 2017)
Rememeber that? The SAB devs said it was something somewhere else, it was never resolved and they pointed to Clinton and his Wrapper who never responded anywhere.
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] Sherpa

Post by OneCD »

Ah, looks like your Python install is corrupt. :'

Suggest you re-install Python (via Sherpa).
  1. Uninstall Entware-3x via the QTS App Center. This will remove your existing Python install and all modules.
  2. Re-download and run Sherpa as per the first post in this thread.

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

Re: [SCRIPT] Sherpa

Post by dirkonline »

Done:

Code: Select all

[/share/Public] # rm -r /share/Public/sherpa.tmp
[/share/Public] # /usr/bin/wget https://goo.gl/Qot9QK -qO sherpa.tar.gz && tar -zxvf sherpa.tar.gz
sherpa.sh
SABnzbdplus
SickRage
CouchPotato2
[/share/Public] # ./SABnzbdplus
sherpa.sh (2017.05.14b)

[ done ] downloaded QPKG (Entware-3x_0.99std.qpkg)
[ done ] downloaded QPKG (SABnzbdplus_170131.qpkg)
[ done ] installed QPKG (Entware-3x_0.99std.qpkg)
mv: cannot remove `/opt/lib': Is a directory
[ done ] updated 'Entware'
[ done ] downloaded & installed IPKs (various)
[ done ] downloaded & installed IPK (python-dev)
[ done ] installed (pip modules)
[ done ] daemon stopped (sabnzbd.sh)
[ done ] created SABnzbd settings backup
[ done ] uninstalled QPKG 'SABnzbdplus'
[ done ] installed QPKG (SABnzbdplus_170131.qpkg)
[ done ] daemon stopped (sabnzbd.sh)
[ done ] restored SABnzbd settings backup
[ done ] daemon started (sabnzbd.sh)

[ done ] SABnzbdplus has been successfully reinstalled!

[/share/Public] # /etc/init.d/sabnzbd.sh restart
armv7l
armv7l
Shutting down SABnzbdplus at Tue May 16 19:14:18 CEST 2017...
 Waiting for SABnzbdplus to shut down: 1, Done (Tue May 16 19:14:19 CEST 2017)
armv7l
Performing SABnzbdplus prestartup checks at Tue May 16 19:14:19 CEST 2017...
HEAD is now at 80c8ad5 remove -o from 7zip. Reverses #1149 Fixes #1175
Already up-to-date.
 Checking environment
  Checking if all configured directories exist....... Done
  Creating Symbolic links for required utils. Done
Done
Already up-to-date.
Starting SABnzbdplus/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/Repository/lib/python/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_7882f2abxb4bfcf60.c:210:43: fatal error: CoreFoundation/CoreFoundation.h: No such file or directory
 #include <CoreFoundation/CoreFoundation.h>
                                           ^
compilation terminated.
 Done (Tue May 16 19:14:37 CEST 2017)
That is still the same thing we had back then ages ago. Since your script installed everything anew, I wonder if this might not be indeed be something entirely different.

btw, would it make sense to automatically remove the sherpa.tmp directory if found and older via your script?

for reference:

https://forums.sabnzbd.org/viewtopic.ph ... 2&start=15

I never really managed to start sab directly to confirm it is an issue there mind you.
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] Sherpa

Post by OneCD »

dirkonline wrote:

Code: Select all

[ done ] installed QPKG (Entware-3x_0.99std.qpkg)
mv: cannot remove `/opt/lib': Is a directory
Ah, that is new. :'

What is in your /opt directory? Do you have any other apps like Qmono or QSonarr installed?

Can you please check the installl log for Entware-3x? This should be at:

Code: Select all

/share/Public/sherpa.tmp/qpkg-downloads/Entware-3x_0.99std.qpkg.install.log
dirkonline wrote:btw, would it make sense to automatically remove the sherpa.tmp directory if found and older via your script?
Yes, it used to do this when it finished successfully. But I found that continually re-running it (like I have to) meant that it has to download the QPKGs each time. So, I started leaving it behind. But happy to re-think it this week. ;)

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

Re: [SCRIPT] Sherpa

Post by dirkonline »

OneCD wrote:
dirkonline wrote:

Code: Select all

[ done ] installed QPKG (Entware-3x_0.99std.qpkg)
mv: cannot remove `/opt/lib': Is a directory
Ah, that is new. :'

What is in your /opt directory? Do you have any other apps like Qmono or QSonarr installed?

Can you please check the installl log for Entware-3x? This should be at:

Code: Select all

/share/Public/sherpa.tmp/qpkg-downloads/Entware-3x_0.99std.qpkg.install.log
dirkonline wrote:btw, would it make sense to automatically remove the sherpa.tmp directory if found and older via your script?
Yes, it used to do this when it finished successfully. But I found that continually re-running it (like I have to) meant that it has to download the QPKGs each time. So, I started leaving it behind. But happy to re-think it this week. ;)
I do not have Qmono or Qsonarr installed, nor did I ever.

Code: Select all

[~] # cd /opt
[/opt] # ls
Entware-3x.sh* home/          root/          tmp/
bin/           include/       sbin/          usr/
etc/           lib/           share/         var/
here is the log:

Code: Select all

Install QNAP package on TS-NAS...
33+1 records in
33+1 records out
./
./qinstall.sh
./package_routines
./qpkg.cfg
0+1 records in
0+1 records out
3+1 records in
3+1 records out
Sym-link /opt ...
Info: Opkg package manager deployment...
Info: Basic packages installation...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/packages
Entware uses separate locale-archive file independent from main system
Creating locale archive - /opt/usr/lib/locale/locale-archive
Adding en_EN.UTF-8
Adding ru_RU.UTF-8
You can download locale sources from http://pkg.entware.net/sources/i18n_glib225.tar.gz
You can add new locales to Entware using /opt/bin/localedef.new
Warning: '/opt/bin/find' is already exists, skipping.
Warning: '/opt/bin/xargs' is already exists, skipping.
Installing entware-opt (1.0-4) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/entware-opt_1.0-4_armv7-3x.ipk
Installing libc (2.25-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libc_2.25-8_armv7-3x.ipk
Installing libgcc (6.3.0-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libgcc_6.3.0-8_armv7-3x.ipk
Installing libssp (6.3.0-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libssp_6.3.0-8_armv7-3x.ipk
Installing librt (2.25-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/librt_2.25-8_armv7-3x.ipk
Installing libpthread (2.25-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libpthread_2.25-8_armv7-3x.ipk
Installing libstdcpp (6.3.0-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libstdcpp_6.3.0-8_armv7-3x.ipk
Installing busybox (1.25.1-2) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/busybox_1.25.1-2_armv7-3x.ipk
Installing zoneinfo-asia (2017b-1) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/zoneinfo-asia_2017b-1_armv7-3x.ipk
Installing zoneinfo-europe (2017b-1) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/zoneinfo-europe_2017b-1_armv7-3x.ipk
Installing findutils (4.6.0-1) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/findutils_4.6.0-1_armv7-3x.ipk
Installing terminfo (6.0-1c) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/terminfo_6.0-1c_armv7-3x.ipk
Installing locales (2.25-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/locales_2.25-8_armv7-3x.ipk
Configuring libgcc.
Configuring libc.
Configuring libssp.
Configuring libpthread.
Configuring librt.
Configuring terminfo.
Configuring locales.
Configuring zoneinfo-europe.
Configuring busybox.
Configuring zoneinfo-asia.
Configuring libstdcpp.
Configuring findutils.
Configuring entware-opt.
Installing opkg (2011-04-08-9c97d5ec-17a) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/opkg_2011-04-08-9c97d5ec-17a_armv7-3x.ipk
Configuring opkg.
Link service start/stop script: Entware-3x.sh
Set QPKG information in /etc/config/qpkg.conf
Enable Entware-3x/opkg
[App Center] Entware-3x 0.99std installation succeeded.
[App Center] Entware-3x enabled.
result=[10]
oh and:

Code: Select all

[/opt] # cd lib
[/opt/lib] # ls
gcc/                        libmenuw.so.6@
git-core/                   libmenuw.so.6.0*
ld-2.25.so*                 libncurses.so@
ld-linux.so.3@              libncurses.so.6@
libanl-2.25.so*             libncurses.so.6.0@
libanl.so.1@                libncursesw.so@
libbfd-2.27.so*             libncursesw.so.6@
libbfd.so@                  libncursesw.so.6.0*
libbz2.so.1.0@              libnsl-2.25.so*
libbz2.so.1.0.6*            libnsl.so.1@
libc-2.25.so*               libnss_dns-2.25.so*
libc.so.6@                  libnss_dns.so.2@
libcidn-2.25.so*            libnss_files-2.25.so*
libcidn.so.1@               libnss_files.so.2@
libcrypt-2.25.so*           libopcodes-2.27.so*
libcrypt.so.1@              libopcodes.so@
libcrypto.so.1.0.0          libpanel.so@
libcurl.so.4@               libpanel.so.6@
libcurl.so.4.4.0*           libpanel.so.6.0@
libcurses.so@               libpanelw.so@
libdb-4.7.so*               libpanelw.so.6@
libdb-4.so@                 libpanelw.so.6.0*
libdl-2.25.so*              libpcprofile.so*
libdl.so.2@                 libpthread-2.25.so*
libexpat.so.1@              libpthread.so.0@
libexpat.so.1.6.2*          libpython2.7.a
libffi.so.6@                libpython2.7.so@
libffi.so.6.0.4*            libpython2.7.so.1.0*
libform.so@                 libresolv-2.25.so*
libform.so.6@               libresolv.so.2@
libform.so.6.0@             librt-2.25.so*
libformw.so@                librt.so.1@
libformw.so.6@              libsqlite3.so.0@
libformw.so.6.0*            libsqlite3.so.0.8.6*
libgcc_s.so.1               libssl.so.1.0.0
libgdbm.so.4@               libssp.so.0@
libgdbm.so.4.0.0*           libssp.so.0.0.0*
libiconv.so@                libstdc++.so.6@
libiconv.so.2@              libstdc++.so.6.0.22*
libiconv.so.2.4.0           libstdc++.so.6.0.22-gdb.py
libintl.so@                 libutil-2.25.so*
libintl.so.8@               libutil.so.1@
libintl.so.8.1.5            libxml2.so@
libm-2.25.so*               libxml2.so.2@
libm.so.6@                  libxml2.so.2.9.4*
libmagic.so.1               libz.so@
libmagic.so.1.0.0           libz.so.1@
libmemusage.so*             libz.so.1.2.11*
libmenu.so@                 opkg/
libmenu.so.6@               pkgconfig/
libmenu.so.6.0@             python2.7/
libmenuw.so@
[/opt/lib] #
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] Sherpa

Post by OneCD »

Okiedoke, best-guess is that when you uninstalled Entware-3x via the QTS App Center, it didn't uninstall correctly and something was left behind.

Can you try uninstalling it again (via the App Center)? Then check that /opt is not present. If it is, please delete it.

Then run the sherpa installer again. ;)

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

Re: [SCRIPT] Sherpa

Post by dirkonline »

So I can simply remove /opt completely?
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] Sherpa

Post by OneCD »

Yes.

Oh, just had a thought. You should probably stop SAB before you uninstall Entware. This might have been why it didn't uninstall correctly.

Code: Select all

/etc/init.d/sabnzbd.sh stop

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

Re: [SCRIPT] Sherpa

Post by OneCD »

Ah, and stop SickRage too. ;)

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

Re: [SCRIPT] Sherpa

Post by dirkonline »

OneCD wrote:Yes.

Oh, just had a thought. You should probably stop SAB before you uninstall Entware. This might have been why it didn't uninstall correctly.

Code: Select all

/etc/init.d/sabnzbd.sh stop
Done, and done.
Checked before running Sherpa, /opt was gone -> https://ibb.co/coobD5

Code: Select all

[/share/Public] # cd /share/Public
[/share/Public] # ./SABnzbdplus
sherpa.sh (2017.05.14b)

[ done ] installed QPKG (Entware-3x_0.99std.qpkg)
mv: cannot remove `/opt/lib': Is a directory
[ done ] updated 'Entware'
[ proc ] downloading & installing IPKs (various) ...^C
[/share/Public] # ./SABnzbdplus
sherpa.sh (2017.05.14b)

[ done ] downloaded & installed IPKs (various)
[ done ] downloaded & installed IPK (python-dev)
[ done ] installed (pip modules)
[ done ] daemon stopped (sabnzbd.sh)
[ done ] created SABnzbd settings backup
[ done ] uninstalled QPKG 'SABnzbdplus'
[ done ] installed QPKG (SABnzbdplus_170131.qpkg)
[ done ] daemon stopped (sabnzbd.sh)
[ done ] restored SABnzbd settings backup
[ done ] daemon started (sabnzbd.sh)

[ done ] SABnzbdplus has been successfully reinstalled!

[/share/Public] # /etc/init.d/sabnzbd.sh stop
armv7l
Shutting down SABnzbdplus at Tue May 16 20:14:44 CEST 2017...
 Waiting for SABnzbdplus to shut down: 1, Done (Tue May 16 20:14:45 CEST 2017)
[/share/Public] # cd
[~] # ls
index_default.html
[~] # cd /opt
-sh: cd: /opt: No such file or directory
[~] # ls
index_default.html
[~] # cd /share/Public
[/share/Public] # ./SABnzbdplus
sherpa.sh (2017.05.14b)

[ done ] installed QPKG (Entware-3x_0.99std.qpkg)
mv: cannot remove `/opt/lib': Is a directory
Entware Install Log:

Code: Select all

Install QNAP package on TS-NAS...
33+1 records in
33+1 records out
./
./qinstall.sh
./package_routines
./qpkg.cfg
0+1 records in
0+1 records out
3+1 records in
3+1 records out
Sym-link /opt ...
Info: Opkg package manager deployment...
Info: Basic packages installation...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/packages
Entware uses separate locale-archive file independent from main system
Creating locale archive - /opt/usr/lib/locale/locale-archive
Adding en_EN.UTF-8
Adding ru_RU.UTF-8
You can download locale sources from http://pkg.entware.net/sources/i18n_glib225.tar.gz
You can add new locales to Entware using /opt/bin/localedef.new
Warning: '/opt/bin/find' is already exists, skipping.
Warning: '/opt/bin/xargs' is already exists, skipping.
Installing entware-opt (1.0-4) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/entware-opt_1.0-4_armv7-3x.ipk
Installing libc (2.25-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libc_2.25-8_armv7-3x.ipk
Installing libgcc (6.3.0-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libgcc_6.3.0-8_armv7-3x.ipk
Installing libssp (6.3.0-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libssp_6.3.0-8_armv7-3x.ipk
Installing librt (2.25-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/librt_2.25-8_armv7-3x.ipk
Installing libpthread (2.25-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libpthread_2.25-8_armv7-3x.ipk
Installing libstdcpp (6.3.0-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/libstdcpp_6.3.0-8_armv7-3x.ipk
Installing busybox (1.25.1-2) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/busybox_1.25.1-2_armv7-3x.ipk
Installing zoneinfo-asia (2017b-1) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/zoneinfo-asia_2017b-1_armv7-3x.ipk
Installing zoneinfo-europe (2017b-1) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/zoneinfo-europe_2017b-1_armv7-3x.ipk
Installing findutils (4.6.0-1) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/findutils_4.6.0-1_armv7-3x.ipk
Installing terminfo (6.0-1c) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/terminfo_6.0-1c_armv7-3x.ipk
Installing locales (2.25-8) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/locales_2.25-8_armv7-3x.ipk
Configuring libgcc.
Configuring libc.
Configuring libssp.
Configuring libpthread.
Configuring librt.
Configuring terminfo.
Configuring locales.
Configuring zoneinfo-europe.
Configuring busybox.
Configuring zoneinfo-asia.
Configuring libstdcpp.
Configuring findutils.
Configuring entware-opt.
Installing opkg (2011-04-08-9c97d5ec-17a) to root...
Downloading http://entware-3x.zyxmon.org/binaries/armv7/opkg_2011-04-08-9c97d5ec-17a_armv7-3x.ipk
Configuring opkg.
Link service start/stop script: Entware-3x.sh
Set QPKG information in /etc/config/qpkg.conf
Enable Entware-3x/opkg
[App Center] Entware-3x 0.99std installation succeeded.
[App Center] Entware-3x enabled.
result=[10]
and I thought of Sickrage too :p

Code: Select all

[/share/Public] # /etc/init.d/sabnzbd.sh stop
armv7l
Shutting down SABnzbdplus at Tue May 16 20:27:20 CEST 2017...
 Waiting for SABnzbdplus to shut down: 1, 2, Done (Tue May 16 20:27:22 CEST 2017                      )
[/share/Public] # /etc/init.d/sickbeard.sh stop
armv7l
Shutting down SickBeard...
 Waiting for SickBeard to shut down: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,                       14, 15, 16, 17, 18, 19, Done
[/share/Public] # cd
[~] # cd /opt
-sh: cd: /opt: No such file or directory
[~] # ls
index_default.html
[~] # cd /opt
-sh: cd: /opt: No such file or directory
[~] # ls
index_default.html
[~] # cd /share/Public
[/share/Public] # ./SABnzbdplus
sherpa.sh (2017.05.14b)

[ done ] installed QPKG (Entware-3x_0.99std.qpkg)
mv: cannot remove `/opt/lib': Is a directory
[ done ] updated 'Entware'
ab by sickrage I stopped that via the app center, that ought to work just as well right? Sickbeard is also still installed but was stopped as you can see
same result
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] Sherpa

Post by OneCD »

BTW: I just went through the same process, but didn't get that error "mv: cannot remove `/opt/lib': Is a directory"

So, now we have to get more specific. ;)

Please remove Entware-3x again, but this time, we'll only install Entware-3x at the command-line. You already have the QPKG so let's install it and try to pinpoint exactly when that error message is shown:

Code: Select all

sh /share/Public/sherpa.tmp/qpkg-downloads/Entware-3x_0.99std.qpkg

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

Re: [SCRIPT] Sherpa

Post by dirkonline »

Okay. Should I still stop both Sickrage and SAB before removing Entware?
Post Reply

Return to “Community Apps”