Page 113 of 298
Re: [SCRIPT] sherpa.sh
Posted: Fri Jul 17, 2020 4:17 am
by OneCD
david1976aus wrote: ↑Thu Jul 16, 2020 8:01 pm
= PullGitRepo() output: "
*** Please tell me who you are.
Run
git config --global user.email "
you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'admin@NAS.(none)')"
Oh, that's a new one.
Have you made any changes to the local clone?
Please destroy the current clone, and try cloning it again from remote. These three commands will do this for you. Your current SAB configuration won't be affected:
Code: Select all
/etc/init.d/sabnzbd3.sh stop
rm -r $(getcfg SABnzbd Install_Path -f /etc/config/qpkg.conf)/SABnzbd
/etc/init.d/sabnzbd3.sh start
update: If you download sherpa v200717 or later and reinstall the SABnzbd QPKG, this ability is built-in.
The new service scripts included with each package can now erase the existing local clone, then re-clone from remote source like-so:
Re: [SCRIPT] sherpa.sh
Posted: Sun Jul 19, 2020 7:35 pm
by david1976aus
All worked a treat!
Thanks OneCD!
OneCD wrote: ↑Fri Jul 17, 2020 4:17 am
david1976aus wrote: ↑Thu Jul 16, 2020 8:01 pm
= PullGitRepo() output: "
*** Please tell me who you are.
Run
git config --global user.email "
you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'admin@NAS.(none)')"
Oh, that's a new one.
Have you made any changes to the local clone?
Please destroy the current clone, and try cloning it again from remote. These three commands will do this for you. Your current SAB configuration won't be affected:
Code: Select all
/etc/init.d/sabnzbd3.sh stop
rm -r $(getcfg SABnzbd Install_Path -f /etc/config/qpkg.conf)/SABnzbd
/etc/init.d/sabnzbd3.sh start
update: If you download sherpa v200717 or later and reinstall the SABnzbd QPKG, this ability is built-in.
The new service scripts included with each package can now erase the existing local clone, then re-clone from remote source like-so:
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 10:55 pm
by redmercury2006
Hello everyone,
well, i completely overlooked the fact, that SickChill will be affected by the Entware re-install as well. Now i'm without SickChill, but whit sab3. Too bad.
Is there a way to get back? (well i think not, hence the warning)
Any news on this front? i've read "Sickchill with py3-again" and thought, well this should work. Also, on the first page, there is only the warning below known issues: Python 2.7.16 is no-longer available via Entware/OpenWRT so the SABnzbdplus and Headphones QPKGs can no-longer be installed. I'll need to find another Python2 source with installable modules, but I'm not hopeful.
Didn't think of SickChill..
soooooo. Is there a way to get SickChill working agin?
Thanks in advance!
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:02 pm
by OneCD
redmercury2006 wrote: ↑Wed Jul 29, 2020 10:55 pm
Is there a way to get SickChill working agin?
SickChill was re-added as installable a while back as it now works with Py3. Please download the latest sherpa.sh script, and it should be available.
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:05 pm
by redmercury2006
just found the thread on github and was reading while you were posting. well - i downloaded the sherpa script one hour ago. are you too fast or what the hell did i do wrong?!
i'll go over it. thanks so far, as usual!
*edit: ok - maybe it's because i still have my old SickChill directory inside ....qpkg/ with all my database and stuff. should i delete it? i was kinda hoping not to rescan my media-files..
*edit2: using the new backup routine (love it btw) - and then doing a fresh install / restore. will let you know
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:15 pm
by OneCD
Nope, don’t delete the existing one.
What happens when you try reinstalling SickChill?
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:22 pm
by redmercury2006
OneCD wrote: ↑Wed Jul 29, 2020 11:15 pm
Nope, don’t delete the existing one.
i do have a separate backup of the old SickChill directory..
OneCD wrote: ↑Wed Jul 29, 2020 11:15 pm
What happens when you try reinstalling SickChill?
sadly - nothing. it reinstalls and then the init script stated: "/opt/bin/python3: can't open file 'SickBeard.py': [Errno 2] No such file or directory"
mhhh. strange again..
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:25 pm
by OneCD
Ok, can you try running the init script with the ‘clean’ option? This will delete the existing clone and pull a new one down from GitHub. Your settings will be unaffected.
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:28 pm
by redmercury2006
roger that, will do this now.
for further troubleshooting, this is the debug log of the reinstall:
Code: Select all
[ dbug ] (II) ========================================================================
[ dbug ] (**) SCRIPT: started: Wed Jul 29 17:24:56 CEST 2020
[ dbug ] (**) SCRIPT: version: 200729
[ 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-431P
[ dbug ] (**) NAS : RAM: 1024396 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.4.2
[ dbug ] (**) NAS : firmware build: 20200402
[ dbug ] (**) NAS : kernel: 4.2.8 armv7l
[ dbug ] (**) NAS : OS uptime: 116 days
[ dbug ] (**) NAS : system load: 1 min=1.12, 5 min=0.91, 15 min=0.82
[ dbug ] (**) NAS : USER: admin
[ dbug ] (**) NAS : EUID: 0
[ dbug ] (**) NAS : default volume: /share/CE_CACHEDEV1_DATA
[ dbug ] (**) NAS : $PATH: /opt/bin:/opt/sbin:/opt/bin:/opt/sbin:/bin:
[ dbug ] (**) NAS : /opt: /share/CE_CACHEDEV1_DATA/.qpkg/Entware
[ dbug ] (**) NAS : /share/Download: CE_CACHEDEV1_DATA/Download
[ dbug ] (**) SCRIPT: unparsed arguments: SickChill
[ dbug ] (**) SCRIPT: app(s) to install: SickChill
[ 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: work 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 QPKG (SickChill_200718.qpkg) ...
[ done ] downloaded QPKG (SickChill_200718.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 ] (>>) InstallQPKGIndeps()
[ dbug ] (--) adjusted $PATH
[ dbug ] (vv) $PATH [/opt/bin:/opt/sbin:/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 ] (<<) InstallQPKGIndeps() [0]
[ dbug ] (>>) InstallQPKGIndepsAddons()
[ dbug ] (>>) InstallIPKGs()
[ dbug ] (>>) UpdateEntware()
[ dbug ] (II) 'Entware' package list was updated less than 60 minutes ago
[ done ] 'Entware' package list is up-to-date
[ 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 coreutils-nice ffprobe gcc git git-http ionice jq less nano nzbget p7zip par2cmdline python3 python3-cryptography python3-dev python3-pip python3-pyopenssl 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 gcc git git-http ionice jq less libatomic libbfd libbz2 libc libcurl libdb47 libexpat libffi libffmpeg-full libgcc libgdbm libgmp libgnutls libiconv-full libintl-full liblzma libmagic libncurses libncursesw libnettle libopcodes libopenssl libopus libpthread librt libsqlite3 libssp libstdcpp libtirpc libuuid libx264 libxml2 nano nzbget objdump oniguruma p7zip par2cmdline python-pip-conf python3 python3-asn1crypto python3-asyncio python3-base python3-cffi python3-cgi python3-cgitb 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 shine terminfo unrar zlib
[ dbug ] (**) STAGE : elapsed time: 00h:00m:03s
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (==) excluding IPKGs already installed ...
[ dbug ] (--) complete
[ dbug ] (II) IPKGs to download:
[ done ] no IPKGs are required
[ dbug ] (<<) InstallIPKGBatch() [0]
[ dbug ] (<<) InstallIPKGs() [0]
[ dbug ] (>>) InstallPy3Modules()
[ proc ] downloading & installing Python 3 modules ...
[ done ] downloaded & installed Python 3 modules
[ dbug ] (<<) InstallPy3Modules() [0]
[ dbug ] (<<) InstallQPKGIndepsAddons() [0]
[ dbug ] (>>) InstallTargetQPKG()
[ proc ] installing QPKG (SickChill_200718.qpkg) - this can take a while ...
[ done ] installed QPKG (SickChill_200718.qpkg)
[ dbug ] (<<) InstallTargetQPKG() [0]
[ dbug ] (>>) Cleanup()
[ dbug ] (<<) Cleanup() [0]
[ dbug ] (>>) ShowResult()
[ done ] 'SickChill' has been successfully reinstalled!
[ dbug ] (II) ------------------------------------------------------------------------
[ dbug ] (**) SCRIPT: finished: Wed Jul 29 17:25:26 CEST 2020
[ dbug ] (**) SCRIPT: elapsed time: 00h:00m:30s
[ dbug ] (II) ========================================================================
[ dbug ] (<<) ShowResult() [0]
after $ /etc/init.d/sickchill.sh start
-->
Code: Select all
[/share/Public] # /etc/init.d/sickchill.sh start
= daemon is not active
* updating 'SickChill' from remote repository: OK
* starting daemon: failed!
= ExecuteAndLog()
= output: "Sorry, requires Python at least 2.7 but less than 3"
= result: [1]
[/share/Public] #
let's try the 'clean' option..
*edit* didn't work either.
Code: Select all
[/share/Public] # /etc/init.d/sickchill.sh clean
= daemon is not active
* cleaning local repo: OK
= daemon is not active
* cloning 'SickChill' from remote repository: OK
* starting daemon: failed!
= ExecuteAndLog()
= output: "/opt/bin/python3: can't open file 'SickBeard.py': [Errno 2] No such file or directory"
= result: [2]
[/share/Public] #
*edit2*
well this is odd:
Code: Select all
[/share/CE_CACHEDEV1_DATA/.qpkg/SickChill/SickChill] # ls -l
-rw-r--r-- 1 admin administ 35275 Jul 29 17:29 COPYING.txt
-rw-r--r-- 1 admin administ 872 Jul 29 17:29 Dockerfile
-rw-r--r-- 1 admin administ 20250 Jul 29 17:29 Gruntfile.js
-rw-r--r-- 1 admin administ 85 Jul 29 17:29 MANIFEST.in
-rwxr-xr-x 1 admin administ 17942 Jul 29 17:29 SickChill.py*
-rw-r--r-- 1 admin administ 1063 Jul 29 17:29 bower.json
drwxr-xr-x 4 admin administ 4096 Jul 29 17:29 contrib/
-rw-r--r-- 1 admin administ 222 Jul 29 17:29 crowdin.yaml
-rw-r--r-- 1 admin administ 396 Jul 29 17:29 docker-compose.yaml
drwxr-xr-x 3 admin administ 4096 Jul 29 17:29 gui/
drwxr-xr-x 167 admin administ 12288 Jul 29 17:29 lib3/
drwxr-xr-x 41 admin administ 4096 Jul 29 17:29 locale/
-rw-r--r-- 1 admin administ 168 Jul 29 17:29 nose.cfg
-rw-r--r-- 1 admin administ 2128 Jul 29 17:29 package.json
-rw-r--r-- 1 admin administ 4171 Jul 29 17:29 readme.md
-rw-r--r-- 1 admin administ 559 Jul 29 17:29 requirements.txt
-rw-r--r-- 1 admin administ 2129 Jul 29 17:29 setup.cfg
-rwxr-xr-x 1 admin administ 1360 Jul 29 17:29 setup.py*
drwxr-xr-x 8 admin administ 4096 Jul 29 17:29 sickbeard/
drwxr-xr-x 10 admin administ 4096 Jul 29 17:29 sickchill/
drwxr-xr-x 4 admin administ 4096 Jul 29 17:29 tests/
-rw-r--r-- 1 admin administ 2527 Jul 29 17:29 tox.ini
-rw-r--r-- 1 admin administ 394274 Jul 29 17:29 yarn.lock
[/share/CE_CACHEDEV1_DATA/.qpkg/SickChill/SickChill] #
when did the file change to SickChill.py?!
or was it always SickChill.py? i'm confused..
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:38 pm
by OneCD
redmercury2006 wrote: ↑Wed Jul 29, 2020 11:28 pm
when did the file change to SickChill.py?!
Yup, I've just noticed that too. It's a change that was long overdue.
I'll need to update the SickChill package. It's the middle of the night here, so I'll do this in the morning.
In the meantime, if you edit the SickChill init script (in the SickChill QPKG directory - don't edit the symlinked version in [/etc/init.d/]), you can change the assignment of $TARGET_SCRIPT from SickBeard.py to SickChill.py and try restarting the init.
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:42 pm
by redmercury2006
haha funny thing. no worries, thanks for all your hard work - do not work too long!
*edit
seems you have a little bit of work ahead:
Code: Select all
[/etc/init.d] # ./sickchill.sh start
= daemon is not active
* updating 'SickChill' from remote repository: OK
* starting daemon: failed!
= ExecuteAndLog()
= output: "Traceback (most recent call last):
File "SickChill.py", line 37, in <module>
import sickchill.start
File "/share/CE_CACHEDEV1_DATA/.qpkg/SickChill/SickChill/sickchill/__init__.py", line 5, in <module>
from .show.indexers import indexer, ShowIndexer
File "/share/CE_CACHEDEV1_DATA/.qpkg/SickChill/SickChill/sickchill/show/indexers/__init__.py", line 20, in <module>
from .handler import ShowIndexer
File "/share/CE_CACHEDEV1_DATA/.qpkg/SickChill/SickChill/sickchill/show/indexers/handler.py", line 24, in <module>
from sickbeard import logger
File "/share/CE_CACHEDEV1_DATA/.qpkg/SickChill/SickChill/sickbeard/logger.py", line 33, in <module>
from github import InputFileContent
ModuleNotFoundError: No module named 'github'"
= result: [1]
i'm going into more details.. maybe i come up with a solution, so you can add this to the requirements. but don't get your hopes up, i'm a mere amateur
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:52 pm
by redmercury2006
missing pip3 modules:
Code: Select all
[/share/Public] # pip3 install random_user_agent
[/share/Public] # pip3 install pygithub
working again
well. kudos to miigotu - py3 is running screeeeeeeaaamingly fast
Re: [SCRIPT] sherpa.sh
Posted: Wed Jul 29, 2020 11:54 pm
by OneCD
redmercury2006 wrote: ↑Wed Jul 29, 2020 11:52 pm
missing pip3 modules:
Code: Select all
[/share/Public] # pip3 install random_user_agent
[/share/Public] # pip3 install pygithub
working again
Thank you. I’ll need to add those too.
The devs are currently working hard to make SickChill fully compatible with Py3, so it’s getting a lot of alterations at the moment.
Re: [SCRIPT] sherpa.sh
Posted: Thu Jul 30, 2020 12:18 am
by redmercury2006
ok, i'm still on it - nzbToMedia seems to hit a wall, as well..
Code: Select all
Traceback (most recent call last):
File "./nzbToSickBeard.py", line 270, in <module>
import nzbToMedia
File "/share/CE_CACHEDEV1_DATA/Public/nzbToMedia/nzbToMedia.py", line 730, in <module>
import core
File "/share/CE_CACHEDEV1_DATA/Public/nzbToMedia/core/__init__.py", line 52, in <module>
from core import logger, main_db, version_check, databases, transcoder
File "/share/CE_CACHEDEV1_DATA/Public/nzbToMedia/core/databases.py", line 11, in <module>
from core.utils import backup_versioned_file
File "/share/CE_CACHEDEV1_DATA/Public/nzbToMedia/core/utils/__init__.py", line 13, in <module>
from core.utils.common import clean_dir, flatten, get_dirs, process_dir
File "/share/CE_CACHEDEV1_DATA/Public/nzbToMedia/core/utils/common.py", line 14, in <module>
from core.utils.files import list_media_files, move_file
File "/share/CE_CACHEDEV1_DATA/Public/nzbToMedia/core/utils/files.py", line 14, in <module>
import beets.mediafile
File "/share/CE_CACHEDEV1_DATA/Public/nzbToMedia/libs/common/beets/mediafile.py", line 51, in <module>
import imghdr
ImportError: No module named imghdr
installing didn't work.. so i'm doing some research..
Code: Select all
[/share/Public/nzbToMedia] # pip3 search imghdr
micropython-imghdr (0.0.0) - Dummy imghdr module for MicroPython
pycopy-imghdr (0.0.0) - Dummy imghdr module for Pycopy
[/share/Public/nzbToMedia] # pip3 install micropython-imghdr
Collecting micropython-imghdr
Downloading https://files.pythonhosted.org/packages/f4/ca/535824f3dcc5175084f0c3be67984e4a5681065e222ea79806decbf31892/micropython-imghdr-0.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tokenize.py", line 447, in open
FileNotFoundError: [Errno 2] No such file or directory: '/share/CE_CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-f8x6zrh9/micropython-imghdr/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /share/CE_CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-f8x6zrh9/micropython-imghdr/
You are using pip version 19.0.3, however version 20.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[/share/Public/nzbToMedia] # pip3 install pycopy-imghdr
Collecting pycopy-imghdr
Downloading https://files.pythonhosted.org/packages/8b/a1/f975c6c9e2714c25ff74374827f386f720ee6ff683e1f6be4969c371f021/pycopy-imghdr-0.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tokenize.py", line 447, in open
FileNotFoundError: [Errno 2] No such file or directory: '/share/CE_CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-389bennw/pycopy-imghdr/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /share/CE_CACHEDEV1_DATA/.qpkg/Entware/tmp/pip-install-389bennw/pycopy-imghdr/
You are using pip version 19.0.3, however version 20.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[/share/Public/nzbToMedia] #
ok - pretty sure, those dummy modules arent' necessary, since imghdr is part of standard library. trying to run via "python3 .." - and it works. so i'm stuck again within sab3 not running the post-processing script via python3 - and is instead running via python2.7
i'll look into it..
Re: [SCRIPT] sherpa.sh
Posted: Thu Jul 30, 2020 4:55 am
by OneCD
redmercury2006 wrote: ↑Wed Jul 29, 2020 11:52 pm
missing pip3 modules:
Code: Select all
[/share/Public] # pip3 install random_user_agent
[/share/Public] # pip3 install pygithub
The new SickChill package is now available and
incorporates your findings. Thank you.
To upgrade, please download
sherpa.sh v200730 or later, then reinstall SickChill.
redmercury2006 wrote: ↑Thu Jul 30, 2020 12:18 am
... trying to run via "python3 .." - and it works. so i'm stuck again within sab3 not running the post-processing script via python3 - and is instead running via python2.7
Oops, I forgot about nzbToMedia.
I think the problem is Clinton still uses '#!/usr/bin/env python' as the nzbToMedia.py hashbang. As it's not specific, it calls whichever Python environment is found first in $PATH. This can result in it finding the Python 2.7.5 shipped with QTS. I don't know why it doesn't respect the $PATH that is established before launching SABnzbd. My Python skills are deficient.
Not sure how to fix this without modifying nzbToMedia.py - which is possible, but causes problems later-on when syncing with the repo on GitHub.
I'm open to suggestions.