Re: [SCRIPT] sherpa.sh
Posted: Mon Jun 29, 2020 3:54 am
Code: Select all
[ dbug ] (**) SCRIPT: started: Thu Jul 2 12:25:12 BST 2020
[ dbug ] (**) SCRIPT: version: 200629
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (II) Markers: (**) detected, (II) information, (WW) warning, (LL) log file,
[ dbug ] (II) (EE) error, (==) processing, (--) done, (>>) f entry, (<<) f exit,
[ dbug ] (II) (vv) variable name & value, ($1) positional argument value.
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) NAS : model: TS-212P
[ dbug ] (**) NAS : RAM: 515428 kB
[ dbug ] (**) NAS : RAM: less-than or equal-to 1048576 kB
[ note ] QTS with 1GB RAM or less can lead to unstable SABnzbd uptimes. :(
[ dbug ] (**) NAS : firmware version: 4.3.3
[ dbug ] (**) NAS : firmware build: 20200611
[ dbug ] (**) NAS : kernel: 3.4.6 armv5tel
[ dbug ] (**) NAS : OS uptime: 20 min
[ dbug ] (**) NAS : system load: 1 min=0.74, 5 min=0.99, 15 min=1.01
[ dbug ] (**) NAS : USER: admin
[ dbug ] (**) NAS : EUID: 0
[ dbug ] (**) NAS : default volume: /share/HDA_DATA
[ dbug ] (**) NAS : $PATH: /opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr
[ dbug ] (**) NAS : /opt: /share/HDA_DATA/.qpkg/Entware
[ dbug ] (**) NAS : /share/Download: HDA_DATA/Download
[ dbug ] (**) SCRIPT: unparsed arguments: OWatcher3
[ dbug ] (**) SCRIPT: app(s) to install: OWatcher3
[ dbug ] (**) SCRIPT: app(s) to uninstall
[ dbug ] (**) SCRIPT: app(s) to reinstall
[ dbug ] (**) SCRIPT: app(s) to update
[ dbug ] (**) SCRIPT: app(s) to backup
[ dbug ] (**) SCRIPT: app(s) to restore
[ dbug ] (**) SCRIPT: working path: /share/Public/sherpa.tmp
[ dbug ] (**) QPKG : download path: /share/Public/sherpa.tmp/qpkg-downloads
[ dbug ] (**) IPKG : download path: /share/Public/sherpa.tmp/ipkg-downloads
[ dbug ] (**) QPKG : arch: none
[ dbug ] (**) QPKG : Entware installer: std
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (>>) DownloadQPKGs()
[ dbug ] (>>) DownloadQPKG()
[ proc ] downloading file (OWatcher3_200607.qpkg) ...
[ done ] downloaded file (OWatcher3_200607.qpkg)
[ dbug ] (<<) DownloadQPKG() [0]
[ dbug ] (<<) DownloadQPKGs() [0]
[ dbug ] (>>) RemoveUnwantedQPKGs()
[ dbug ] (**) QPKG : 'Optware': not installed [250]
[ dbug ] (**) QPKG : 'Entware-3x': not installed [250]
[ dbug ] (**) QPKG : 'Entware-ng': not installed [250]
[ dbug ] (<<) RemoveUnwantedQPKGs() [0]
[ dbug ] (>>) InstallBase()
[ dbug ] (--) adjusted $PATH
[ dbug ] (vv) $PATH [/opt/bin:/opt/sbin:/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin]
[ dbug ] (>>) PatchBaseInit()
[ dbug ] (II) patch: do the "opt shuffle" - already done
[ dbug ] (<<) PatchBaseInit() [0]
[ dbug ] (<<) InstallBase() [0]
[ dbug ] (>>) InstallBaseAddons()
[ dbug ] (>>) InstallIPKGs()
[ dbug ] (>>) UpdateEntware()
[ proc ] updating 'Entware' package list ...
[ done ] updated 'Entware' package list
[ dbug ] (<<) UpdateEntware() [0]
[ dbug ] (>>) InstallIPKGBatch()
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) STAGE : start stage timer
[ proc ] calculating number and total size of IPKGs required ...
[ dbug ] (II) IPKGs requested: ca-certificates git git-http jq less nano nzbget par2cmdline python3 python3-pip
[ dbug ] (==) finding IPKG dependencies ...
[ dbug ] (--) complete
[ dbug ] (II) found all IPKG dependencies in 13 iterations
[ dbug ] (II) IPKGs requested + dependencies: ca-bundle ca-certificates ca-certs file git git-http jq less libbz2 libc libcurl libdb47 libexpat libffi libgcc libgdbm liblzma libmagic libncurses libncursesw libopenssl libpthread librt libsqlite3 libssp libstdcpp libtirpc libuuid libxml2 nano nzbget oniguruma par2cmdline python-pip-conf python3 python3-asyncio python3-base python3-cgi python3-cgitb python3-codecs python3-ctypes python3-dbm python3-decimal python3-distutils python3-email python3-gdbm python3-light python3-logging python3-lzma python3-multiprocessing python3-ncurses python3-openssl python3-pip python3-pkg-resources python3-pydoc python3-setuptools python3-sqlite3 python3-unittest python3-urllib python3-xml terminfo zlib
[ dbug ] (==) excluding IPKGs already installed ...
[ dbug ] (--) complete
[ dbug ] (II) IPKGs to download: python3 python3-pip python3-pkg-resources python3-setuptools
[ dbug ] (==) calculating size of IPKGs to download ...
[ dbug ] (--) complete
[ dbug ] (vv) $IPKG_download_size [1723904]
[ dbug ] (**) STAGE : elapsed time: 00h:00m:11s
[ dbug ] (II) ------------------------------------------------------------------------
[ done ] 4 IPKGs (2MB) to be downloaded
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) STAGE : start stage timer
[ proc ] downloading & installing 4 IPKGs ...
[ done ] downloaded & installed 4 IPKGs
[ dbug ] (**) STAGE : elapsed time: 00h:00m:08s
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (<<) InstallIPKGBatch() [0]
[ dbug ] (<<) InstallIPKGs() [0]
[ dbug ] (>>) DowngradePy3()
[ proc ] 'Watcher3' selected so downgrading Python 3 IPKGs ...
[ done ] 'Watcher3' selected so downgraded Python 3 IPKGs
[ dbug ] (<<) DowngradePy3() [0]
[ dbug ] (>>) InstallPy3Modules()
[ dbug ] (<<) InstallBaseAddons() [0]
[ dbug ] (>>) InstallTargetQPKG()
[ proc ] installing file (OWatcher3_200607.qpkg) - this can take a while ...
[ done ] installed file (OWatcher3_200607.qpkg)
[ dbug ] (<<) InstallTargetQPKG() [0]
[ dbug ] (>>) Cleanup()
[ dbug ] (<<) Cleanup() [0]
[ dbug ] (>>) ShowResult()
[ done ] 'OWatcher3' has been successfully reinstalled!
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) SCRIPT: finished: Thu Jul 2 12:26:28 BST 2020
[ dbug ] (**) SCRIPT: elapsed time: 00h:01m:16s
[ dbug ] (II) ========================================================================
[ dbug ] (<<) ShowResult() [0]
The website (bin.entware.net) sherpa pulls the old packages from to perform the Python downgrade has been a bit up-and-down lately.penguindan wrote: ↑Thu Jul 02, 2020 9:30 pm I'm seeing the same issue niwa2 reported on the 26th Feb when starting Watcher "TypeError: unrepr does not recognize 'Constant'". This was traced to a Python 3.8.x install instead of 3.7.4.
Oops! That's something I'll need to fix. Thanks for reporting this.penguindan wrote: ↑Thu Jul 02, 2020 9:30 pm While the script reports it has successfully downgraded, /opt/bin/python3 -V gives me ver 3.8.3.
The archives have been restored.OneCD wrote: ↑Fri Jul 03, 2020 5:13 amThe website (bin.entware.net) sherpa pulls the old packages from to perform the Python downgrade has been a bit up-and-down lately.penguindan wrote: ↑Thu Jul 02, 2020 9:30 pm I'm seeing the same issue niwa2 reported on the 26th Feb when starting Watcher "TypeError: unrepr does not recognize 'Constant'". This was traced to a Python 3.8.x install instead of 3.7.4.
It's up again now, but the package archives haven't been restored yet. Suggest waiting a couple of days for the admins to do this, then try your downgrade again.
This same issue was reported a while back when running SABnzbd on a Synology - the fix was to clear the permissions from this field. Can you please try this?
Thanks mate. Will put that question up over on the Sabznd forum.OneCD wrote: ↑Mon Jul 13, 2020 1:07 pmThis same issue was reported a while back when running SABnzbd on a Synology - the fix was to clear the permissions from this field. Can you please try this?
If it persists, you could try asking on the SABnzbd forum.
Did you SSH into your NAS first?
Yes,I can connect to my Nas via terminalOneCD wrote:Hi and welcome to the forum.Did you SSH into your NAS first?
Can you please post a screenshot or session transcript from your terminal program? It should show your prompt, the commands you typed and the response.
That's odd. 'Public' is one of the default QTS shares.
Code: Select all
head -n6 /etc/config/uLinux.conf