Branch/Commit: Master / Last
OS: Windows 10
Browser: vivaldi
What you did: update sickchill to last buid
What happened: after update i never can access sickchill again
What you expected: access to web interface
i try to uninstall / install again without success.
sickchill service status is "paused"
There were several updates today, if you reinstall now it should be ok
i tried just before opening issue.
i just retry after your answer and there is no change.
web interface unavailable and service is paused
thanks for your time
I think it might be the same thing I just saw after updating to latest git commits. Fails to start.
File "D:\<snip>\SickRage\sickchill\providers\torrent\TorrentProvider.py", line 25, in <module>
from feedparser import FeedParserDict
ImportError: cannot import name FeedParserDict
wtf zzz
remove "D:\<snip>\SickRage\lib\feedparser" __directory__ not the feedparser.py
That fixed my copy, might do the same for you @fonzy69.
Thanks @miigotu
remove "D:\<snip>\SickRage\lib\feedparser" __directory__ not the feedparser.py
remove "D:\<snip>\SickRage\lib\cloudscraper\exceptions" __directory__ not the exceptions.py
remove `"D:\<snip>\SickRage\lib\lxml"
Also on linux, remove lib/cloudscraper/exceptions, lib/feedparser, and lib/lxml directories, keep lib/cloudscraper/exceptions.py and lib/feedparser.py
i dont have any of those 2 directory in my windows installation
i just have a "c:\SickChill\SickChill\lib\feedparser-5.2.1.dist-info " folder and no exceptions folder in c:\SickChill\SickChill\lib\cloudscraper\
no c:\SickChill\SickChill\lib\lxml neither
I removed those folders, but sickrage wont start (linux):
Apr 19 07:54:56 python2.7[3630]: File "/opt/sickchill/lib/js2py/base.py", line 5, in <module>
Apr 19 07:54:56 python2.7[3630]: from .translators.friendly_nodes import REGEXP_CONVERTER
Apr 19 07:54:56 python2.7[3630]: File "/opt/sickchill/lib/js2py/translators/__init__.py", line 28, in <module>
Apr 19 07:54:56 python2.7[3630]: from .translator import translate_js, trasnlate, syntax_tree_translate, DEFAULT_HEADER
Apr 19 07:54:56 python2.7[3630]: File "/opt/sickchill/lib/js2py/translators/translator.py", line 2, in <module>
Apr 19 07:54:56 python2.7[3630]: import pyjsparser.parser
Apr 19 07:54:56 python2.7[3630]: ImportError: No module named parser
Apr 19 07:54:56 systemd[1]: sickchill.service: Control process exited, code=exited status=1
Apr 19 07:54:56 systemd[1]: sickchill.service: Failed with result 'exit-code'.
@spigotx do you have lib/pyjsparser/parser.py?
@spigotx do you have lib/pyjsparser/parser.py?
Yes I do
open an admin cmd prompt:
cd C:/SickChill/SickChill
net stop sickchill
del /S *.pyc
C:/SickChill/Git/bin/git pull
C:/SickChill/Git/bin/git clean -dnf
net start sickchill
Show me the output
open an admin cmd prompt:
cd C:/SickChill/SickChill net stop sickchill del /S *.pyc net start sickchill
I'm on ubuntu linux, but same error after removing all "pyc" files
> C:\SickChill\SickChill>net stop sickchill
Le service SickChill a été arrêté.
C:\SickChill\SickChill>del /S *.pyc
Fichier supprimé -...
C:\SickChill\SickChill>net start sickchill
Le service SickChill démarre.
Le service SickChill a démarré.
C:\SickChill\SickChill>cd ..
C:\SickChill>cd Git
C:\SickChill\Git>cd bin
C:\SickChill\Git\bin>git clean -dnf
fatal: Not a git repository (or any of the parent directories): .git
after that service il again paused
@fonzy69 you didn't follow the commands correctly, the git clean and git pull have to be done from inside C:/SickChill/SickChill.
@fonzy69 try this: (you might neet to edit the path to pythonw)
net stop sickchill
C:\SickChill\Python\pythonw C:\SickChill\SickChill\SickBeard.py
open an admin cmd prompt:
cd C:/SickChill/SickChill net stop sickchill del /S *.pyc C:/SickChill/Git/bin/git pull C:/SickChill/Git/bin/git clean -dnf net start sickchillShow me the output
git clean -dnf
Would remove "gui\\slick\\cache/"
Would remove sickchill/media/
Sorry , here it is again
`C:\SickChill\Git\bin>net` stop sickchill
.
Le service SickChill a été arrêté.
C:\SickChill\Git\bin>cd ..
C:\SickChill\Git>cd ..
C:\SickChill>cd SickChill
C:\SickChill\SickChill>del /S *.pyc
Fichier supprimé - ...
Fichier supprimé - C:\SickChill\SickChill\sickchill\show\indexers\__init__.pyc
C:\SickChill\SickChill>c:\SickChill\Git\bin\git pull
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 5 (delta 3), reused 3 (delta 3), pack-reused 2
Unpacking objects: 100% (5/5), done.
From https://github.com/SickChill/SickChill
f9f74d973..9c4c5c5af master -> origin/master
f9f74d973..9c4c5c5af develop -> origin/develop
* [new tag] v2020.04.19-2 -> v2020.04.19-2
Updating f9f74d973..9c4c5c5af
Fast-forward
sickbeard/properFinder.py | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
C:\SickChill\SickChill>c:\SickChill\Git\bin\git clean -dnf
C:\SickChill\SickChill>net start sickchill
Le service SickChill démarre.
Le service SickChill a démarré.
service paused after that
did you try turning it off and then back on again? <3
yes of course.
i tried too :
net stop sickchill
C:\SickChill\Python\pythonw C:\SickChill\SickChill\SickBeard.py
no return on console and service does not start. tried to start manually and it go to paused
open an admin cmd prompt:
cd C:/SickChill/SickChill net stop sickchill del /S *.pyc C:/SickChill/Git/bin/git pull C:/SickChill/Git/bin/git clean -dnf net start sickchillShow me the output
I did it once again:
git clean -dnf
Would remove "gui\\slick\\cache/"
Would remove lib/adba/
Would remove lib/backports/ssl_match_hostname/
Would remove lib/cryptography/
Would remove lib/growl/
Would remove lib/httplib2/
Would remove lib/imdb/parser/mobile/
Would remove lib/libgrowl/
Would remove lib/libtrakt/
Would remove lib/lockfile/
Would remove lib/lxml/
Would remove lib/pgi/
Would remove lib/pkg_resources/
Would remove lib/pyasn1/
Would remove lib/pymediainfo/
Would remove lib/pynma/
Would remove lib/rarfile/
Would remove lib/rtorrent/
Would remove lib/rtorrent9/
Would remove lib/send2trash/
Would remove lib/synchronousdeluge/
Would remove lib/tmdb_api/
Would remove lib/trakt/
Would remove lib/tvdb_api/
Would remove lib/twilio/
Would remove lib/urllib3/packages/rfc3986/
Would remove sickbeard/indexers/
Would remove sickchill/media/
And now there's another error:
Apr 19 08:17:15 python2.7[6099]: File "/opt/sickchill/lib/enzyme/mkv.py", line 3, in <module>
Apr 19 08:17:15 python2.7[6099]: from .parsers import ebml
Apr 19 08:17:15 python2.7[6099]: File "/opt/sickchill/lib/enzyme/parsers/ebml/__init__.py", line 2, in <module>
Apr 19 08:17:15 python2.7[6099]: from .core import *
Apr 19 08:17:15 python2.7[6099]: File "/opt/sickchill/lib/enzyme/parsers/ebml/core.py", line 4, in <module>
Apr 19 08:17:15 python2.7[6099]: from pkg_resources import resource_stream # @UnresolvedImport
Apr 19 08:17:15 python2.7[6099]: ImportError: No module named pkg_resources
I mean the whole PC, high impedance air fault
@spigotx that git clean should fix your problem if you do it without the n flag, but copy your media folder out first
PC restarted, no change
@fonzy69 you missed this comment: https://github.com/SickChill/SickChill/issues/6217#issuecomment-616049636
no, i don't miss it,
yes of course.
i tried too :net stop sickchill
C:\SickChill\Python\pythonw C:\SickChill\SickChill\SickBeard.pyno return on console and service does not start. tried to start manually and it go to paused
You have to wait for the console to show something
Microsoft Windows [version 10.0.18362.778]
(c) 2019 Microsoft Corporation. Tous droits réservés.
C:\WINDOWS\system32>net stop sickchill
.
Le service SickChill a été arrêté.
C:\WINDOWS\system32>C:\SickChill\Python\pythonw C:\SickChill\SickChill\SickBeard.py
C:\WINDOWS\system32>
i think that after the prompt come back it will not show other things, isn't it?
I think I am having the same issue. I had to revert back to v2020.04.01-2. I deleted everything from C:\SickChill\SickChill except for the C:\SickChill\SickChill\gui\slick\cache folder. Then downloaded and unziped v2020.04.01-2 into the C:\SickChill\SickChill folder. I can then restart the service and everything is back to how it was yesterday.
It thinks i'm on the newest build though. I think due to it failing to start after updating.
Edit: i'm using windows 10
@spigotx that git clean should fix your problem if you do it without the n flag, but copy your media folder out first
I'm sorry, but It didn't help
$ find . -type f -name '*.pyc' -delete
$ git clean -df
Removing lib/adba/
Removing lib/backports/ssl_match_hostname/
Removing lib/cryptography/
Removing lib/growl/
Removing lib/httplib2/
Removing lib/imdb/parser/mobile/
Removing lib/libgrowl/
Removing lib/libtrakt/
Removing lib/lockfile/
Removing lib/lxml/
Removing lib/pgi/
Removing lib/pkg_resources/
Removing lib/pyasn1/
Removing lib/pymediainfo/
Removing lib/pynma/
Removing lib/rarfile/
Removing lib/rtorrent/
Removing lib/rtorrent9/
Removing lib/send2trash/
Removing lib/synchronousdeluge/
Removing lib/tmdb_api/
Removing lib/trakt/
Removing lib/tvdb_api/
Removing lib/twilio/
Removing lib/urllib3/packages/rfc3986/
Removing sickbeard/indexers/
Removing sickchill/media/
Apr 19 08:37:01 python2.7[7723]: File "/opt/sickchill/lib/enzyme/mkv.py", line 3, in <module>
Apr 19 08:37:01 python2.7[7723]: from .parsers import ebml
Apr 19 08:37:01 python2.7[7723]: File "/opt/sickchill/lib/enzyme/parsers/ebml/__init__.py", line 2, in <module>
Apr 19 08:37:01 python2.7[7723]: from .core import *
Apr 19 08:37:01 python2.7[7723]: File "/opt/sickchill/lib/enzyme/parsers/ebml/core.py", line 4, in <module>
Apr 19 08:37:01 python2.7[7723]: from pkg_resources import resource_stream # @UnresolvedImport
Apr 19 08:37:01 python2.7[7723]: ImportError: No module named pkg_resources
Apr 19 08:37:01 systemd[1]: sickchill.service: Control process exited, code=exited status=1
Apr 19 08:37:01 systemd[1]: sickchill.service: Failed with result 'exit-code'.
Apr 19 08:37:01 systemd[1]: Failed to start SickChill Daemon.
@Teamshake : but yesterday build have the "etree" error..
I reverted back to the build v2020.04.01-2 from 17 days ago. i meant it was working like it was yesterday before i tried to update.
Edit: I know this doesn't help with troubleshooting what the issue is, but i just wanted it to work again. I will be happy to try and update again once a new version is released as i can revert back pretty easily if needed.
Thanks @miigotu for the fix on wrong ELF class, https://github.com/SickChill/SickChill/issues/6212. sudo pip install lxml fixed that issue. I'm on Raspberry Pi 4. I made a backup in SickChill after doing that.
Unfortunately I updated again tonight (4 new changes) and that broke it. For this issue (I had same issue reported by @sheastrickland) I tried suggestions in https://github.com/SickChill/SickChill/issues/6217#issuecomment-616043427 but it didn't work.
To fix, I just started over with new bits. Ran rm -rf SickChill then from my home dir git clone https://github.com/SickChill/SickChill.git. Then I restored the backup I took earlier today & restarted sickchill. Finally I am running a rescan on all my shows so that the images update (right after restore they are just blank "sickchill" posters). That just finished and now all the shows have posters again.
Not sure if I needed to do the "nuclear option" but it just felt better to start from a clean git pull. I don't think a full mass update is needed for my shows, but if I see new shows don't download/aren't found then I will do that. Thank you.
@spigotx pkg_resources is in libs again, along with a slew of other libs. I swear I'll never get this clean enough to get to py3 smh
tried updating to newest build. upon sickchill restart the service paused again.
@spigotx pkg_resources is in libs again, along with a slew of other libs. I swear I'll never get this clean enough to get to py3 smh
It's working again. Big thank you. You are a lifesaver.
@dijansen
Stop the package, ssh into th box:
find /volume1/@appstore/sickbeard-custom/var/SickBeard -name *.pyc -delete
Start the package
Can you windows people try the updated version? Maybe need to reinstall if you dont know how to git pull and clean ^^
I see this in the log after i tried to update. could be the issue:
2020-04-19 02:35:01 INFO WEBSERVER-HOME :: Config backup in progress...
2020-04-19 02:35:08 INFO WEBSERVER-HOME :: Config backup successful, updating...
2020-04-19 02:35:08 INFO WEBSERVER-HOME :: Creating update folder C:\SickChill\SickChill\sr-update before extracting
2020-04-19 02:35:08 INFO WEBSERVER-HOME :: Downloading update from http://github.com/SickChill/SickChill/tarball/master
2020-04-19 02:35:25 INFO WEBSERVER-HOME :: Extracting file C:\SickChill\SickChill\sr-update\sr-update.tar
2020-04-19 02:35:32 INFO WEBSERVER-HOME :: Deleting file C:\SickChill\SickChill\sr-update\sr-update.tar
2020-04-19 02:35:32 INFO WEBSERVER-HOME :: Moving files from C:\SickChill\SickChill\sr-update\SickChill-SickChill-b0e27d4 to C:\SickChill\SickChill
2020-04-19 02:35:39 INFO EVENT-QUEUE :: Aborting all threads
2020-04-19 02:35:39 INFO EVENT-QUEUE :: Waiting for the DAILYSEARCHER thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the BACKLOG thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the SHOWUPDATER thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the CHECKVERSION thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the SHOWQUEUE thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the SEARCHQUEUE-DAILY-SEARCH thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the POSTPROCESSOR thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the POSTPROCESSOR-AUTO thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the TRAKTCHECKER thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the FINDPROPERS thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the FINDSUBTITLES thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Waiting for the EVENT-QUEUE thread to exit
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Saving all shows to the database
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Saving config file to disk
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Shutting down Tornado
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Restarting SickChill with ['C:\SickChill\Python\python.exe', u'C:\SickChill\SickChill\SickBeard.py', '--nolaunch', '--port=8081', '--datadir=C:\SickChill\Data']
2020-04-19 02:35:40 INFO EVENT-QUEUE :: Restarting SickChill with ['C:\SickChill\Python\python.exe', u'C:\SickChill\SickChill\SickBeard.py', '--nolaunch', '--port=8081', '--datadir=C:\SickChill\Data']
when i hit enter on this it deletes whats in the log but there are 2 forward slashes on those directories
Those forward slashes are just a log formatting error @Teamshake it can be ignored
Try starting the service after that if the page isnt loading
Can you windows people try the updated version? Maybe need to reinstall if you dont know how to git pull and clean ^^
Just updated via GUI, broke SickChill sigh. Tried the above - removing and downloading new build via git through cmd(admin) and still broken :(
Windows Server 2016
thanks miigotu. all working now! I did the same thing as I did above to revert only using the newest build. for some reason, it said I was one commit behind though. I allowed it to "update" and it still restarted without issue.
I been at this about 20 hours straight, going to bed now. Post here if you find any other solutions or you can send a PR. See you all tomorrow.
all seems to work for me too
big thanks
sweet dreams :)
I'm still getting this
â—Ź sickchill.service - SickChill Daemon
Loaded: loaded (/etc/systemd/system/sickchill.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-04-19 09:12:18 IST; 9s ago
Process: 4736 ExecStart=/opt/sickchill/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickchill (code=exited, status=1/FAILURE)
Apr 19 09:12:18 Pi-Nas SickBeard.py[4736]: File "/opt/sickchill/sickbeard/providers/__init__.py", line 29, in
Apr 19 09:12:18 Pi-Nas SickBeard.py[4736]: from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasb
Apr 19 09:12:18 Pi-Nas SickBeard.py[4736]: File "/opt/sickchill/sickbeard/providers/abnormal.py", line 34, in
Apr 19 09:12:18 Pi-Nas SickBeard.py[4736]: from sickchill.providers.torrent.TorrentProvider import TorrentProvider
Apr 19 09:12:18 Pi-Nas SickBeard.py[4736]: File "/opt/sickchill/sickchill/providers/torrent/TorrentProvider.py", line 25, in
Apr 19 09:12:18 Pi-Nas SickBeard.py[4736]: from feedparser import FeedParserDict
Apr 19 09:12:18 Pi-Nas SickBeard.py[4736]: ImportError: cannot import name FeedParserDict
Apr 19 09:12:18 Pi-Nas systemd[1]: sickchill.service: Control process exited, code=exited, status=1/FAILURE
I been at this about 20 hours straight, going to bed now. Post here if you find any other solutions or you can send a PR. See you all tomorrow.
Thanks for all the effort on this ! Get some rest
@djtazie, this worked for me https://github.com/SickChill/SickChill/issues/6221#issuecomment-616072914
I have no luck getting up and running. What can I do on Docker through Synology NAS?
To others who may run into this, here's what worked for me as a fix on ubuntu:
Backup your files first just in case...
feedparser directory from /opt/sickchill/libexceptions directory from /opt/sickchill/lib/cloudscraperlxml directory from /opt/sickchill/lib*.pyc files from /opt/sickchill using the command:find . -type f -name "*.pyc" -deletesudo git pull from inside /opt/sickshillI can't get it to work working here on a Synology NAS anymore just refused to start and shows the error
Failed to run the package service
Any quick fix or do I need to uninstall and re-install it?
many of us do not have access to the terminal on NAS, or even know the commands through the backend, why in the world would you commit something that is wildly broken??
@miigotu I can confirm the following worked for me, Windows Server 2019.
Thanks for all your efforts.
many of us do not have access to the terminal on NAS, or even know the commands through the backend, why in the world would you commit something that is wildly broken??
Honestly, I think your attitude is kind of crap given this is free software. That being said, I suspect @nickoo0 is on track with thinking you'll need to uninstall and reinstall if you can't run shell commands on it to do the git clean.
open an admin cmd prompt:
cd C:/SickChill/SickChill net stop sickchill del /S *.pyc C:/SickChill/Git/bin/git pull C:/SickChill/Git/bin/git clean -dnf net start sickchill
Fix my issue on Windows Server 2012 R2
@dijansen
Stop the package, ssh into th box:find /volume1/@appstore/sickbeard-custom/var/SickBeard -name *.pyc -deleteStart the package
To do it as root on a synology NAS first ssh to the NAS and login as admin.
Run:
sudo -i
and enter password
Then run:
find /volume1/@appstore/sickbeard-custom/var/SickBeard -name *.pyc -delete
Then you can start the Sickbeard-Custom package in the Package Center.
When you log into Sickchill it will have an update.
That worked for me.
To others who may run into this, here's what worked for me as a fix on ubuntu:
Backup your files first just in case...
- delete the
feedparserdirectory from/opt/sickchill/lib- delete the
exceptionsdirectory from/opt/sickchill/lib/cloudscraper- delete the
lxmldirectory from/opt/sickchill/lib- delete all
*.pycfiles from/opt/sickchillusing the command:
find . -type f -name "*.pyc" -delete- run
sudo git pullfrom inside/opt/sickshill
Confirming the following worked for me on Synology. Didn't do Step 4 and changed the paths to suit Synology.
To do it as root on a synology NAS first ssh to the NAS and login as admin.
Run:
sudo -i
and enter password
Then run:
find /volume1/@appstore/sickbeard-custom/var/SickBeard -name *.pyc -deleteThen you can start the Sickbeard-Custom package in the Package Center.
When you log into Sickchill it will have an update.That worked for me.
@indigocc this worked perfectly. The only difference is there is no update once I went back in but it is running now. Thanks
To others who may run into this, here's what worked for me as a fix on ubuntu:
Backup your files first just in case...
delete the feedparser directory from /opt/sickchill/lib delete the exceptions directory from /opt/sickchill/lib/cloudscraper delete the lxml directory from /opt/sickchill/lib delete all *.pyc files from /opt/sickchill using the command: find . -type f -name "*.pyc" -delete run sudo git pull from inside /opt/sickshillConfirming this works in debian too
This worked for me under Ubuntu:
# Stop the service if it's running
sudo systemctl stop sickrage.service
# Change to the installation directory
cd /opt/sickrage
# Remove all .pyc compiled files
sudo find . -name '*.pyc' -exec rm {} \;
# Update git as the sickrage user
sudo -u sickrage git pull
# Show which files will be cleaned:
sudo -u sickrage git clean -dnf
# If looks acceptable run without "n" switch
sudo -u sickrage git clean -df
# Resatart:
sudo systemctl restart sickrage.service
Same thing happening on readynas as well from yesterday, as soon as I update it refuses connection. I have reinstalled and restored from old backup and it says I am 9 commits behind but as soon as I click on update it goes kaput. So not updating again until we can find a fix
see #6224
Don't have access to /volume1/docker/sickbeard/var in NAS synology Docker version. How can we resolve issue when dealing with Docker version of sickbeard and where to find .pyc files there?
With docker it's better to update the image than the files inside.
If you must, you can docker exec -it sickchill-container-name bash and do the commands from inside the container that way.
I'm inside docker, what commands are appropriate here as i'm confused by previous posts with windows etc
open an admin cmd prompt:
cd C:/SickChill/SickChill net stop sickchill del /S *.pyc C:/SickChill/Git/bin/git pull C:/SickChill/Git/bin/git clean -dnf net start sickchill
Confirming this worked for me on Server 2016. Thank you very much for all you do, @miigotu!
@miigotu what do we do once inside docker. /var/ does not have any .pyc files to delete
after following the fix I still cant start
(i followed this fix: delete the feedparser directory from /opt/sickchill/lib
delete the exceptions directory from /opt/sickchill/lib/cloudscraper
delete the lxml directory from /opt/sickchill/lib
delete all .pyc files from /opt/sickchill using the command:
find . -type f -name ".pyc" -delete
)
Apr 19 14:40:35 AustinReadyNAS python[4994]: DEPRECATION: The OpenSSL being used by this python install (OpenSSL 1.0.1t 3 May 2016) does not meet the minimum supported version (>= OpenSSL 1.1.1) in order to support TLS 1.3 required by Cloudflare, You may encounter an unexpected reCaptcha or cloudflare 1020 blocks.
Apr 19 14:40:35 AustinReadyNAS python[4994]: Traceback (most recent call last):
Apr 19 14:40:35 AustinReadyNAS python[4994]: File "/apps/sickchill/SickBeard.py", line 67, in <module>
Apr 19 14:40:35 AustinReadyNAS python[4994]: import sickbeard
Apr 19 14:40:35 AustinReadyNAS python[4994]: File "/apps/sickchill/sickbeard/__init__.py", line 49, in <module>
Apr 19 14:40:35 AustinReadyNAS python[4994]: from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_processing_queue, properFinder, providers,
Apr 19 14:40:35 AustinReadyNAS python[4994]: File "/apps/sickchill/sickbeard/providers/__init__.py", line 29, in <module>
Apr 19 14:40:35 AustinReadyNAS python[4994]: from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasbien, danishbits, demonoid, elitetorrent, filelist,
Apr 19 14:40:35 AustinReadyNAS python[4994]: File "/apps/sickchill/sickbeard/providers/thepiratebay.py", line 28, in <module>
Apr 19 14:40:35 AustinReadyNAS python[4994]: import js2py
Apr 19 14:40:35 AustinReadyNAS python[4994]: File "/apps/sickchill/lib/js2py/__init__.py", line 72, in <module>
Apr 19 14:40:35 AustinReadyNAS python[4994]: from .base import PyJsException
Apr 19 14:40:35 AustinReadyNAS python[4994]: File "/apps/sickchill/lib/js2py/base.py", line 5, in <module>
Apr 19 14:40:35 AustinReadyNAS python[4994]: from .translators.friendly_nodes import REGEXP_CONVERTER
Apr 19 14:40:35 AustinReadyNAS python[4994]: File "/apps/sickchill/lib/js2py/translators/__init__.py", line 28, in <module>
Apr 19 14:40:35 AustinReadyNAS python[4994]: from .translator import translate_js, trasnlate, syntax_tree_translate, DEFAULT_HEADER
Apr 19 14:40:35 AustinReadyNAS python[4994]: File "/apps/sickchill/lib/js2py/translators/translator.py", line 2, in <module>
Apr 19 14:40:35 AustinReadyNAS python[4994]: import pyjsparser.parser
Apr 19 14:40:35 AustinReadyNAS python[4994]: ImportError: No module named parser
Apr 19 14:40:36 AustinReadyNAS systemd[1]: fvapp-sickchill.service: Main process exited, code=exited, status=1/FAILURE
Apr 19 14:40:36 AustinReadyNAS systemd[1]: fvapp-sickchill.service: Unit entered failed state.
Apr 19 14:40:36 AustinReadyNAS systemd[1]: fvapp-sickchill.service: Failed with result 'exit-code'.
Apr 19 14:40:36 AustinReadyNAS systemd[1]: fvapp-sickchill.service: Service hold-off time over, scheduling restart.
Apr 19 14:40:36 AustinReadyNAS systemd[1]: Stopped Service for sickchill app.
Apr 19 14:40:36 AustinReadyNAS systemd[1]: Started Service for sickchill app.
@theskillwithin your find command is wrong.
In your case:
find /apps/sickchill/lib -name *.pyc -delete
âžś sickchill find /apps/sickchill/lib -name *.pyc -delete
zsh: no matches found: *.pyc
âžś sickchill pwd
/apps/sickchill
âžś sickchill
@theskillwithin what is the output of
ls /apps/sickchill/lib/pyjsparser*
???
âžś lib ls -l /apps/sickchill/lib/pyjsparser*
/apps/sickchill/lib/pyjsparser:
total 136
-rw-rw-r-- 1 admin admin 203 Apr 19 01:41 __init__.py
-rw-rw-r-- 1 admin admin 109058 Apr 19 01:41 parser.py
-rw-rw-r-- 1 admin admin 11877 Apr 19 01:41 pyjsparserdata.py
-rw-rw-r-- 1 admin admin 10405 Apr 19 01:41 std_nodes.py
/apps/sickchill/lib/pyjsparser-2.7.1.dist-info:
total 24
-rw-rw-r-- 1 admin admin 4 Apr 19 01:41 INSTALLER
-rw-rw-r-- 1 admin admin 1072 Apr 19 01:41 LICENSE
-rw-rw-r-- 1 admin admin 262 Apr 19 01:41 METADATA
-rw-rw-r-- 1 admin admin 923 Apr 19 01:41 RECORD
-rw-rw-r-- 1 admin admin 11 Apr 19 01:41 top_level.txt
-rw-rw-r-- 1 admin admin 92 Apr 19 01:41 WHEEL
âžś lib
@theskillwithin
It's clearly there.
check what a git clean would removed with:
cd /apps/sickchill/
git clean -dnf
Make sure there is nothing important that will be deleted in the output of that command. (the __n__ flag there makes it a dry run)
After you make sure nothing important is there:
git clean -df
i have readyNAS version that doesn't have git =\
So uninstall the package, manually empty the folder, reinstall the package
that worked
âžś Documents sudo dpkg -r sickchill
(Reading database ... 57909 files and directories currently installed.)
Removing sickchill (2018.11.07-ml0) ...
Removed /etc/systemd/system/multi-user.target.wants/fvapp-sickchill.service.
âžś Documents sudo dpkg -i sickchill_2018.11.07-ml0_all.deb
Selecting previously unselected package sickchill.
(Reading database ... 52322 files and directories currently installed.)
Preparing to unpack sickchill_2018.11.07-ml0_all.deb ...
Unpacking sickchill (2018.11.07-ml0) ...
Setting up sickchill (2018.11.07-ml0) ...
wow... 1 new commit. i hit update and i get ImportError: cannot import name FeedParserDict. i guess can't update
@theskillwithin from there follow the instructions from https://github.com/SickChill/SickChill/issues/6230
For me it doesn't quite work.
After cleaning the residual files, I still get this error:
Traceback (most recent call last):
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/SickBeard.py", line 67, in <module>
import sickbeard
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/__init__.py", line 49, in <module>
from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_processing_queue, properFinder, providers,
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/providers/__init__.py", line 29, in <module>
from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasbien, danishbits, demonoid, elitetorrent, filelist,
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/providers/thepiratebay.py", line 28, in <module>
import js2py
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/js2py/__init__.py", line 72, in <module>
from .base import PyJsException
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/js2py/base.py", line 5, in <module>
from .translators.friendly_nodes import REGEXP_CONVERTER
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/js2py/translators/__init__.py", line 28, in <module>
from .translator import translate_js, trasnlate, syntax_tree_translate, DEFAULT_HEADER
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/js2py/translators/translator.py", line 2, in <module>
import pyjsparser.parser
ImportError: No module named parser
/usr/local/etc/rc.d/sickrage: WARNING: failed to start sickrage
@Raboo
cd /usr/pbi/sickrage-amd64/share/sickrage/SickRage
git clean -dfq lib
Pinned post updated with easier/safer instructions.
@miigotu I have a pretty old FreeNAS plugin install. It uses zip or tarballs to upgrade. So my SickRage folder is not a git repo.
My specific errors:
$ python SickBeard.py
Traceback (most recent call last):
File "SickBeard.py", line 67, in
import sickbeard
File "/home/user42/SickRage/sickbeard/__init__.py", line 49, in
from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_ processing_queue, properFinder, providers,
File "/home/user42/SickRage/sickbeard/providers/__init__.py", line 29, in
from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasbien, danishbits, demonoid, elitetorrent, filelist,
File "/home/user42/SickRage/sickbeard/providers/thepiratebay.py", line 28, in
import js2py
File "/home/user42/SickRage/lib/js2py/__init__.py", line 73, in
from .evaljs import *
File "/home/user42/SickRage/lib/js2py/evaljs.py", line 155
exec (DEFAULT_HEADER, self._context)
SyntaxError: unqualified exec is not allowed in function '__init__' it contains a nested function with free variables
Steps tried so far:
find . -type f -name ".pyc" -delete
find lib/ -name .pyc -delete
rm -r lib/lxml lib/feedparser lib/cloudscraper/exceptions
git clean -df
git clean -dfq lib
ls -al lib/pyjsparser
lib/pyjsparser:
total 272
drwxrwxr-x 2 user42 user42 4096 Apr 19 14:34 .
drwxrwxr-x 177 user42 user42 12288 Apr 19 14:34 ..
-rw-rw-r-- 1 user42 user42 203 Apr 19 12:11 __init__.py
-rw-rw-r-- 1 user42 user42 444 Apr 19 14:34 __init__.pyc
-rw-rw-r-- 1 user42 user42 109058 Apr 19 12:11 parser.py
-rw-rw-r-- 1 user42 user42 78021 Apr 19 14:34 parser.pyc
-rw-rw-r-- 1 user42 user42 11877 Apr 19 12:11 pyjsparserdata.py
-rw-rw-r-- 1 user42 user42 15727 Apr 19 14:34 pyjsparserdata.pyc
-rw-rw-r-- 1 user42 user42 10405 Apr 19 12:11 std_nodes.py
-rw-rw-r-- 1 user42 user42 16866 Apr 19 14:34 std_nodes.pyc
lib/pyjsparser-2.7.1.dist-info:
total 40
drwxrwxr-x 2 user42 user42 4096 Apr 19 12:11 .
drwxrwxr-x 177 user42 user42 12288 Apr 19 14:34 ..
-rw-rw-r-- 1 user42 user42 4 Apr 19 12:11 INSTALLER
-rw-rw-r-- 1 user42 user42 1072 Apr 19 12:11 LICENSE
-rw-rw-r-- 1 user42 user42 262 Apr 19 12:11 METADATA
-rw-rw-r-- 1 user42 user42 923 Apr 19 12:11 RECORD
-rw-rw-r-- 1 user42 user42 11 Apr 19 12:11 top_level.txt
-rw-rw-r-- 1 user42 user42 92 Apr 19 12:11 WHEEL
I tried the updated process on #6230 but am seeing the same error listed above.
Additional context: This is a Git based install on a Linux machine.
@miigotu Did the steps mentioned in #6230 on netgear Readynas and it failed to comeup. here is the log:
root@VJHOME:~# cd /apps/sickchill/
root@VJHOME:/apps/sickchill# ls
adba docker-compose.yaml nose.cfg sickbeard
app-config Dockerfile package.json SickBeard.py
bower.json fvapp-sickchill.service readme.md sickchill
certgen.py Gruntfile.js requirements synchronousdeluge
config.xml gui requirements.txt tests
contrib lib runscripts tox.ini
COPYING.txt locale setup.cfg trakt
crowdin.yaml logo.png setup.py yarn.lock
root@VJHOME:/apps/sickchill# systemctl stop fvapp-sickchill
root@VJHOME:/apps/sickchill# find . -name *.pyc -delete
root@VJHOME:/apps/sickchill# find lib -empty -type d -delete
root@VJHOME:/apps/sickchill# git pull
fatal: Not a git repository (or any parent up to mount point /apps)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
root@VJHOME:/apps/sickchill# git clean -dfq lib
fatal: Not a git repository (or any parent up to mount point /apps)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
root@VJHOME:/apps/sickchill# systemctl start fvapp-sickchill
Also there is no update in sickchill.log located at /apps/sickchill/app-config/Logs
2020-04-20 06:06:53 INFO ThreadPoolExecutor-0_3 :: Config backup in progress...
2020-04-20 06:07:01 INFO ThreadPoolExecutor-0_3 :: Config backup successful, updating...
2020-04-20 06:07:03 INFO ThreadPoolExecutor-0_3 :: Creating update folder /apps/sickchill/sr-update before extracting
2020-04-20 06:07:03 INFO ThreadPoolExecutor-0_3 :: Downloading update from http://github.com/SickChill/SickChill/tarball/master
2020-04-20 06:13:13 INFO ThreadPoolExecutor-0_3 :: Extracting file /apps/sickchill/sr-update/sr-update.tar
2020-04-20 06:13:24 INFO ThreadPoolExecutor-0_3 :: Deleting file /apps/sickchill/sr-update/sr-update.tar
2020-04-20 06:13:26 INFO ThreadPoolExecutor-0_3 :: Moving files from /apps/sickchill/sr-update/SickChill-SickChill-ddeceaa to /apps/sickchill
2020-04-20 06:13:40 INFO EVENT-QUEUE :: Aborting all threads
2020-04-20 06:13:40 INFO EVENT-QUEUE :: Waiting for the DAILYSEARCHER thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the BACKLOG thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the SHOWUPDATER thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the CHECKVERSION thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the SHOWQUEUE-REFRESH thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the SEARCHQUEUE-DAILY-SEARCH thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the POSTPROCESSOR thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the POSTPROCESSOR-AUTO thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the TRAKTCHECKER thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the FINDPROPERS thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the FINDSUBTITLES thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Waiting for the EVENT-QUEUE thread to exit
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Saving all shows to the database
2020-04-20 06:13:41 INFO EVENT-QUEUE :: Saving config file to disk
2020-04-20 06:13:42 INFO EVENT-QUEUE :: Shutting down Tornado
2020-04-20 06:13:42 INFO EVENT-QUEUE :: Restarting SickChill with ['/usr/bin/python', u'/apps/sickchill/SickBeard.py', '--nolaunch', '--datadir=/apps/sickchill/app-config', '--config=/apps/sickchill/app-config/config.ini', '--port=6766']
@bigwavedave42 your issue is only tangentially related, but not the same as these other problems. Please open a separate issue.
that worked
âžś Documents sudo dpkg -r sickchill (Reading database ... 57909 files and directories currently installed.) Removing sickchill (2018.11.07-ml0) ... Removed /etc/systemd/system/multi-user.target.wants/fvapp-sickchill.service. âžś Documents sudo dpkg -i sickchill_2018.11.07-ml0_all.deb Selecting previously unselected package sickchill. (Reading database ... 52322 files and directories currently installed.) Preparing to unpack sickchill_2018.11.07-ml0_all.deb ... Unpacking sickchill (2018.11.07-ml0) ... Setting up sickchill (2018.11.07-ml0) ...
i am in same boat as you
@bigwavedave42 your issue is only tangentially related, but not the same as these other problems. Please open a separate issue.
Understood! I've opened #6236
@vicks619 a readynas process is on #6230 now
@miigotu getting following:
root@VJHOME:~# rm -rf /apps/sickchill/.*
rm: refusing to remove '.' or '..' directory: skipping '/apps/sickchill/.'
rm: refusing to remove '.' or '..' directory: skipping '/apps/sickchill/..'
@vicks619 those specific warnings are ok. Stop if you see any other ones.
@miigotu is below normal? still not starting
root@VJHOME:~# mv /apps/sickchill/app-config ~/
root@VJHOME:~# rm -rf /apps/sickchill/.*
rm: refusing to remove '.' or '..' directory: skipping '/apps/sickchill/.'
rm: refusing to remove '.' or '..' directory: skipping '/apps/sickchill/..'
root@VJHOME:~# cd /apps/sickchill/
root@VJHOME:/apps/sickchill# cp -R ~/app-config ~/app-config-backup
root@VJHOME:/apps/sickchill# mv ~/app-config .
root@VJHOME:/apps/sickchill# mv ~/SickChill-master/* .
mv: inter-device move failed: '/root/SickChill-master/contrib' to './contrib'; u nable to remove target: Directory not empty
mv: inter-device move failed: '/root/SickChill-master/gui' to './gui'; unable to remove target: Directory not empty
mv: inter-device move failed: '/root/SickChill-master/lib' to './lib'; unable to remove target: Directory not empty
mv: inter-device move failed: '/root/SickChill-master/locale' to './locale'; una ble to remove target: Directory not empty
mv: inter-device move failed: '/root/SickChill-master/runscripts' to './runscrip ts'; unable to remove target: Directory not empty
mv: inter-device move failed: '/root/SickChill-master/sickbeard' to './sickbeard '; unable to remove target: Directory not empty
mv: inter-device move failed: '/root/SickChill-master/sickchill' to './sickchill '; unable to remove target: Directory not empty
mv: inter-device move failed: '/root/SickChill-master/tests' to './tests'; unabl e to remove target: Directory not empty
root@VJHOME:/apps/sickchill# systemctl start fvapp-sickchill
I seem to have this issue as well:
C:\sickrage>python SickBeard.py
DEPRECATION: The OpenSSL being used by this python install (OpenSSL 1.0.2t 10 Sep 2019) does not meet the minimum supported version (>= OpenSSL 1.1.1) in order to support TLS 1.3 required by Cloudflare, You may encounter an unexpected reCaptcha or cloudflare 1020 blocks.
Traceback (most recent call last):
File "SickBeard.py", line 67, in <module>
import sickbeard
File "C:\sickrage\sickbeard\__init__.py", line 49, in <module>
from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_processing_queue, properFinder, providers,
File "C:\sickrage\sickbeard\providers\__init__.py", line 29, in <module>
from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasbien, danishbits, demonoid, elitetorrent, filelist,
File "C:\sickrage\sickbeard\providers\thepiratebay.py", line 38, in <module>
import js2py
File "C:\sickrage\lib\js2py\__init__.py", line 72, in <module>
from .base import PyJsException
File "C:\sickrage\lib\js2py\base.py", line 5, in <module>
from .translators.friendly_nodes import REGEXP_CONVERTER
File "C:\sickrage\lib\js2py\translators\__init__.py", line 28, in <module>
from .translator import translate_js, trasnlate, syntax_tree_translate, DEFAULT_HEADER
File "C:\sickrage\lib\js2py\translators\translator.py", line 2, in <module>
import pyjsparser.parser
ImportError: No module named parser
@vicks619 seems /apps/sickchill/ is not empty, we will have to go back a bit:
cd ~
rm -rf SickChill-master
unzip master.zip
cp -R ~/app-config-backup ~/app-config
find /apps/sickchill/ -mindepth 1 -delete
cd /apps/sickchill/
mv ~/app-config /apps/sickchill/
mv ~/SickChill-master/* .
systemctl start fvapp-sickchill
@scythe000 #6230
@miigotu, in the Windows fix tasks listed in #6230, to run interactively, this line:
for /f "usebackq delims=" %%d in ("dir /ad/b/s lib | sort /R") do rd "%%d"
needs to looks like this:
for /f "usebackq delims=" %d in ("dir /ad/b/s lib | sort /R") do rd "%d"
At least, that's how I made it work.
Cheers,
dvt
@dieselVtwin thanks, updated it
@vicks619 seems /apps/sickchill/ is not empty, we will have to go back a bit:
cd ~ rm -rf SickChill-master unzip master.zip cp -R ~/app-config-backup ~/app-config find /apps/sickchill/ -mindepth 1 -delete cd /apps/sickchill/ mv ~/app-config /apps/sickchill/ mv ~/SickChill-master/* . systemctl start fvapp-sickchill
This fixes the issue but i lost the ability to control the app from my readynas console. Thanks for the help
@vicks619 i think there are control files for it, but I'm not sure.
@vicks619 i think there are control files for it, but I'm not sure.
we emptied the folder of sickchill and moved files from master location, so the files which are required for the readynas got deleted. I will do some research on it and try to make it work.. Thanks a ton for your help. your tireless work is what keeps the sickchill going :)
@vicks619 post the Deb file you used and I'll extract it.
@vicks619 post the Deb file you used and I'll extract it.
Here it is :
https://github.com/sickchill/readynas-sickchill/releases/tag/2018.11.07-ml0
remove
"D:\<snip>\SickRage\lib\feedparser"directory _not the feedparser.py_
remove"D:\<snip>\SickRage\lib\cloudscraper\exceptions"directory _not the exceptions.py_
remove `"D:<snip>\SickRage\lib\lxml"Also on linux, remove lib/cloudscraper/exceptions, lib/feedparser, and lib/lxml directories, keep lib/cloudscraper/exceptions.py and lib/feedparser.py
These above steps fixed mine from not starting. I'm on Ubuntu 18.04.4. Thanks @miigotu!
@vicks619 i think there are control files for it, but I'm not sure.
I fixed the issue with extensive help from @miigotu (including getting back ability to control the app from ReadyNAS console) by running the following:
systemctl stop fvapp-sickchill`
cd ~
wget https://github.com/SickChill/SickChill/archive/master.zip
unzip master.zip
mv /apps/sickchill/app-config ~/
mv /apps/sickchill/config.xml ~/
mv /apps/sickchill/fvapp-sickchill.service ~/
mv /apps/sickchill/logo.png ~/
find /apps/sickchill/ -mindepth 1 -delete
cd /apps/sickchill/
cp -R ~/app-config ~/app-config-backup
mv ~/app-config /apps/sickchill/
mv ~/SickChill-master/* .
mv ~/config.xml /apps/sickchill/
mv ~/fvapp-sickchill.service /apps/sickchill/
mv ~/logo.png /apps/sickchill/
systemctl start fvapp-sickchill
Anybody running sickchill on ReadyNAS can use above steps to resolve the issue.
@miigotu Thanks a lot for your help bro. Please add it to the #6230 if you think it is comprehensive
@dijansen
Stop the package, ssh into th box:find /volume1/@appstore/sickbeard-custom/var/SickBeard -name *.pyc -deleteStart the package
It did work on my Synology NAS (DS916+).
Thanks!!
Just a quick comment: off course, the command sudo -i must be executed before. Otherwise we don't have the privileges to delete those files.
You may add it in the ticket #6230
@vicks619 I run a ReadyNas server and would ask you to guide me on how to access and run these commands. What program do you use?
@kooolkat357 ssh
@vicks619 I run a ReadyNas server and would ask you to guide me on how to access and run these commands. What program do you use?
enable ssh service from your admin console(it's disabled by default) and then use putty to login to the ip address, use username "root" and not "admin"
@miigotu just tried updating now as I got notification of 1 commit behind and got the error below, though the connection is not broken like before so that is a good thing, but not able to update it
2020-04-20 14:37:01 WEBSERVER-HOME :: [e86e1e0] Failed doing webui callback: Traceback (most recent call last):
File "/apps/sickchill/sickchill/views/index.py", line 216, in async_call
result = function(*kwargs)
File "/apps/sickchill/sickchill/views/home.py", line 678, in update
if checkversion.updater.need_update() and checkversion.updater.update():
File "/apps/sickchill/sickbeard/versionChecker.py", line 876, in update
self.clean_libs()
File "/apps/sickchill/sickbeard/versionChecker.py", line 883, in clean_libs
lib_path = ek(os.path.join(sickbeard.PROG_DIR, 'lib'))
File "/apps/sickchill/sickchill/helper/encoding.py", line 46, in ek
result = function([ss(x) if isinstance(x, six.string_types) else x for x in args], **kwargs)
TypeError: 'unicode' object is not callable
@vicks619 I run a ReadyNas server and would ask you to guide me on how to access and run these commands. What program do you use?
enable ssh service from your admin console(it's disabled by default) and then use putty to login to the ip address, use username "root" and not "admin"
I've enabled ssh, dl putty and logged in as root and copied the commands then nothing happens. Is there something I should do before copying the script to putty? Sorry for noob questions.
For Synology users who are using my SickChill package I have made a package you can manually install to fix the not starting of the package.
It can be found here:
https://github.com/BenjV/SYNO-packages/raw/master/SickChill%20noarch%20V1.2.spk
It will upgrade the existing installation of SickChill with a "git clone" and leave the config and database intact.
@miigotu
Maybe you can add this to your post #6230
I'm running sickrage in docker (https://hub.docker.com/r/linuxserver/sickrage), and the suggested commands dont work for me. Would appreciate guidance on what should work.
cd path/to/sickchill (< able to navigate here via cd app/sickrage)
systemctl stop sickrage (< systemctl not found - googled & found PS, then kill xx - does this work?)
find . -name *.pyc -delete (< no response hence assume worked)
find lib -empty -type d -delete (< find: unrecognized: -empty)
git pull
git clean -dfq lib
systemctl start sickrage (Restarted container)
Thanks
I'm running sickrage in docker (https://hub.docker.com/r/linuxserver/sickrage), and the suggested commands dont work for me. Would appreciate guidance on what should work.
cd path/to/sickchill (< able to navigate here via cd app/sickrage)
systemctl stop sickrage (< systemctl not found - googled & found PS, then kill xx - does this work?)
find . -name *.pyc -delete (< no response hence assume worked)
find lib -empty -type d -delete (< find: unrecognized: -empty)
git pull
git clean -dfq lib
systemctl start sickrage (Restarted container)Thanks
You should probably use the sickchill docker (https://hub.docker.com/r/linuxserver/sickchill) rather than the sickrage one - I don't know if that's been updated to point to the sickchill repo? It's certainly not been updated as recently as the sickchill one.
Anyway, when I couldn't get it to start due to these issues, I just deleted the container and recreated it.
@vicks619 I run a ReadyNas server and would ask you to guide me on how to access and run these commands. What program do you use?
enable ssh service from your admin console(it's disabled by default) and then use putty to login to the ip address, use username "root" and not "admin"
I've enabled ssh, dl putty and logged in as root and copied the commands then nothing happens. Is there something I should do before copying the script to putty? Sorry for noob questions.
Copy each line, paste in putty, hit enter, repeat till last line, then check whether you can access sickchill via browser or not
@vicks619 Fixed that new error just now, it's the new code to prevent this garbage from happening again and I missed a replace =P
You should probably use the sickchill docker (https://hub.docker.com/r/linuxserver/sickchill) rather than the sickrage one - I don't know if that's been updated to point to the sickchill repo? It's certainly not been updated as recently as the sickchill one.
Anyway, when I couldn't get it to start due to these issues, I just deleted the container and recreated it.
@knelmes Assume the sickchill docker will use the same config so I can keep my existing configuration?
I was able to re-instate my existing sickrage docker by restoring a previous image I took, which works, but if I then update it to the latest commit, it stops working again - hence why I was after advice on the commands I need to fix it in docker.
@vicks619 Fixed that new error just now, it's the new code to prevent this garbage from happening again and I missed a replace =P
nope still same issue, shows 2 comiits but fails to update:
x
2020-04-20 16:10:36 WEBSERVER-HOME :: [ab77447] Failed doing webui callback: Traceback (most recent call last):
File "/apps/sickchill/sickchill/views/index.py", line 216, in async_call
result = function(*kwargs)
File "/apps/sickchill/sickchill/views/home.py", line 678, in update
if checkversion.updater.need_update() and checkversion.updater.update():
File "/apps/sickchill/sickbeard/versionChecker.py", line 876, in update
self.clean_libs()
File "/apps/sickchill/sickbeard/versionChecker.py", line 883, in clean_libs
lib_path = ek(os.path.join, sickbeard.PROG_DIR, 'lib')
File "/apps/sickchill/sickchill/helper/encoding.py", line 46, in ek
result = function([ss(x) if isinstance(x, six.string_types) else x for x in args], **kwargs)
TypeError: 'unicode' object is not callable
@vicks619 You can make this change manually to get it to update again
https://github.com/SickChill/SickChill/commit/ab7744725af02742d6daf53218d451733daba83a
@Johnyb62 the newest code is in the newest sickchill container provided by either linuxserver or sickchill, They wont need to update
https://hub.docker.com/r/linuxserver/sickchill/tags
https://hub.docker.com/r/sickchill/sickchill/tags
I just ran the ReadyNas script and managed to get to the web, and controls SC from the NAS UI.
Getting errors when try to update
2020-04-20 12:49:21 WEBSERVER-HOME :: [9aa8ab5] Config backup failed, aborting update 2020-04-20 12:29:57 SEARCHQUEUE-MANUAL- :: [9aa8ab5] Fatal error executing query with db.action in database /apps/sickchill/app-config/cache.db: UNIQUE constraint failed: scene_exceptions_refresh.list 2020-04-20 12:15:24 SEARCHQUEUE-DAILY-SEARCH :: [9aa8ab5] Fatal error executing query with db.action in database /apps/sickchill/app-config/cache.db: UNIQUE constraint failed: scene_exceptions_refresh.list 2020-04-20 12:05:17 MAIN :: [9aa8ab5] Fatal error executing query with db.action in database /apps/sickchill/app-config/cache.db: UNIQUE constraint failed: scene_exceptions_refresh.list
2020-04-20 12:49:21 WEBSERVER-HOME :: Zip creation error: [Errno 13] Permission denied: u'/apps/sickchill/gui/slick/cache/images/301824.poster.jpg'
2020-04-20 12:29:51 SEARCHQUEUE-MANUAL- :: Database error executing query with db.action in database /apps/sickchill/app-config/cache.db: unable to open database file
2020-04-20 12:15:19 SEARCHQUEUE-DAILY-SEARCH :: Database error executing query with db.action in database /apps/sickchill/app-config/cache.db: unable to open database file
2020-04-20 12:05:12 MAIN :: Database error executing query with db.action in database /apps/sickchill/app-config/cache.db: unable to open database file
@vicks619 actually, it should have updated and just not automatically restarted
@kooolkat357 looks like you used sudo...
@vicks619 You can make this change manually to get it to update again
ab77447
this is alread there in the file as it is copied from the new update but still the error. see the attached file, i have not made any changes
versionChecker.py.txt
@vicks619 just stop the service and start it again
I use
@kooolkat357 looks like you used sudo...
I used Terminal on Mac
@vicks619 just stop the service and start it again
yep you are right, it gave error and not restarted but the files were replaced, manual restart did the trick :)
I use
@kooolkat357 looks like you used sudo...
I used Terminal on Mac
what was the username you used?
I use
@kooolkat357 looks like you used sudo...
I used Terminal on Mac
what was the username you used?
I used root
@kooolkat357 have you restored from a backup after able to get to SC screen?
@kooolkat357 have you restored from a backup after able to get to SC screen?
No i hav not restored from a backup after able to get SC screen. I did however upload the config.xml and logo.png files as they sowed 0 B after scrip running. Also now there are no posters
@kooolkat357 have you restored from a backup after able to get to SC screen?
No i hav not restored from a backup after able to get SC screen. I did however upload the config.xml and logo.png files as they sowed 0 B after scrip running. Also now there are no posters
ok, posters can be downloaded again by re-scanning the shows, you can use mass update option for that. Regarding the errors, I am not sure what they are but this is how I have done it:
1) copy a good backup at a safe place outside the sickchill folder
2) remove sickchill using nas home page
3) install again from nas home page
4) restore from the saved backup and restart
5) it will show message at the top that update is available and you are n number of commits behind. update by clicking on that. you will loose connection with sickchill at this step
6) run the steps mentioned to resolve the connection error through ssh and everything should be fine.(make sure your root directory is empty before doing this step)
7) use mass update to re-scan shows and the posters will be restored
Is there a page for Arch linux for SickChill? I did the recent update, It crashed won't boot back up?
remove
"D:\<snip>\SickRage\lib\feedparser"directory _not the feedparser.py_
remove"D:\<snip>\SickRage\lib\cloudscraper\exceptions"directory _not the exceptions.py_
remove `"D:<snip>\SickRage\lib\lxml"Also on linux, remove lib/cloudscraper/exceptions, lib/feedparser, and lib/lxml directories, keep lib/cloudscraper/exceptions.py and lib/feedparser.py
This solution worked for me on FreeNAS
@kooolkat357 have you restored from a backup after able to get to SC screen?
No i hav not restored from a backup after able to get SC screen. I did however upload the config.xml and logo.png files as they sowed 0 B after scrip running. Also now there are no posters
ok, posters can be downloaded again by re-scanning the shows, you can use mass update option for that. Regarding the errors, I am not sure what they are but this is how I have done it:
- copy a good backup at a safe place outside the sickchill folder
- remove sickchill using nas home page
- install again from nas home page
- restore from the saved backup and restart
- it will show message at the top that update is available and you are n number of commits behind. update by clicking on that. you will loose connection with sickchill at this step
- run the steps mentioned to resolve the connection error through ssh and everything should be fine.(make sure your root directory is empty before doing this step)
- use mass update to re-scan shows and the posters will be restored
Thank you sooo much for your help and instructions to get my SC up and running again :)
Yah, this is not on a FreeNAS , it's on arch linux.
Yah, this is not on a FreeNAS , it's on arch linux.
may be this will help #6230
This doesnt Help, did the following:
read #6230
find \SickRage\lib -name "*.pyc" -delete
find \SickRage\lib -type d -empty -delete
at
8:43:23 › find \SickRage\lib -name *.pyc -delete
find: paths must precede expression: configobj.pyc'
find: possible unquoted pattern after predicate-name'?
remove
"D:\<snip>\SickRage\lib\feedparser"directory _not the feedparser.py_
remove"D:\<snip>\SickRage\lib\cloudscraper\exceptions"directory _not the exceptions.py_
remove `"D:\SickRage\lib\lxml"
Also on linux, remove lib/cloudscraper/exceptions, lib/feedparser, and lib/lxml directories, keep lib/cloudscraper/exceptions.py and lib/feedparser.pyThis solution worked for me on FreeNAS
Mhm I did the above and am now hitting the following error message on my iocage jail(this is a converted warden jail but was working fine until yesterday):
root@sickrage_1:/ # service sickrage start
Starting sickrage.
DEPRECATION: The OpenSSL being used by this python install (OpenSSL 1.0.2d 9 Jul 2015) does not meet the minimum supported version (>= OpenSSL 1.1.1) in order to support TLS 1.3 required by Cloudflare, You may encounter an unexpected reCaptcha or cloudflare 1020 blocks.
Traceback (most recent call last):
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/SickBeard.py", line 67, in
import sickbeard
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/__init__.py", line 49, in
from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_processing_queue, properFinder, providers,
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/providers/__init__.py", line 29, in
from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasbien, danishbits, demonoid, elitetorrent, filelist,
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/providers/thepiratebay.py", line 28, in
import js2py
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/js2py/__init__.py", line 72, in
from .base import PyJsException
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/js2py/base.py", line 5, in
from .translators.friendly_nodes import REGEXP_CONVERTER
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/js2py/translators/__init__.py", line 28, in
from .translator import translate_js, trasnlate, syntax_tree_translate, DEFAULT_HEADER
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/js2py/translators/translator.py", line 2, in
import pyjsparser.parser
ImportError: No module named parser
/usr/local/etc/rc.d/sickrage: WARNING: failed to start sickrage
I suppose I should just go for a clean jail and put back my backed up config.
read #6230
find \SickRage\lib -name "*.pyc" -delete find \SickRage\lib -type d -empty -delete
@s-c-o-o-t d this again
@Bmiest #6230
Maybe if I summorize what worked for me it can help someone.
I'm on Ubuntu. I had to:
remove lib/cloudscraper/exceptions, lib/feedparser, and lib/lxml directories, keep lib/cloudscraper/exceptions.py and lib/feedparser.py
and then, open command line inside the .sickrage folder and run:
find \lib -name "*.pyc" -delete
find \lib -type d -empty -delete
It's all working now.
@bicodegas the full process is in #6230 ...
Ooops, and the link was right there above my comment. Sorry.
dont work for me :< i dont have a .sickrage folder , i have [/opt/sickchill/app] & [/opt/sickchill/data]
then maybe:
cd /opt/sickchill
find . -name "*.pyc" -delete
find lib -empty -type d -delete
hi,
sorry, maybe i am a bad at reading, but i don't know what to do in freenas.
Please point me to solution.
Maybe if I summorize what worked for me it can help someone.
I'm on Ubuntu. I had to:
remove lib/cloudscraper/exceptions, lib/feedparser, and lib/lxml directories, keep lib/cloudscraper/exceptions.py and lib/feedparser.pyand then, open command line inside the .sickrage folder and run:
find \lib -name "*.pyc" -delete
find \lib -type d -empty -deleteIt's all working now.
Worked for me. Thanks!
The listed resolution for the feedparser resolved my issue and sickchill can start and it seems to be working fine for searching torrents. Problem is, I'm integrated with rTorrent and now that connection is failing. I made no changes to that, just removed the listed directories and files, and did a git pull.
The torrent host/port setting has been scgi:///home/wokka/.config/rtorrent/socket on mine for many months with no problems. I see nothing in the logs when I do a test, and when it auto downloads something, I see the normal messages about finding the torrent and starts the download, but nothing about an issue connecting to rTorrent..
From the error logs, I see stuff from yesterday, but not from today : https://gist.github.com/wokka1/b76dea7217574fb106afe07a91cc62b5
If I need to open a new issue around this, let me know please, or if you want further info in here.
Thanks!
find ./ -type f -name "*.pyc" -exec rm -f {} \;
git checkout develop
git pull
Also make sure git status doesn't show any modified or missing files.
i have this running in docker on synology
1.) I backed up my settings
2.) deleted the entire container
3.) reinstalled/launched with the older image i had already downloaded a few months back.
everything starts up fine and i am 350 commit behind. i made no configuration changes, pure defaults, no mapped directories, but everything seems to be working correct;y.
4.) i do an update
5.) all it does it restart over and over again
edit: updated for clarity
edit 2:
i tried finding the directory
/volume1/@appstore/sickbeard-custom
to see if the command as outlined in issue 6230:
sudo -i find /volume1/@appstore/sickbeard-custom/var/SickBeard -name *.pyc -delete
could be performed and that directory does not exist which makes sense since my installation is within docker and not on the native host machine
find ./ -type f -name "*.pyc" -exec rm -f {} \; git checkout develop git pullAlso make sure
git statusdoesn't show any modified or missing files.
Didn't find any new files : https://gist.github.com/wokka1/bd1b8689109bdec0bc871f1c8ac61933
Thanks for the quick response and help
@wokka1 If you are still having issues, you didnt do the git clean. #6230 is where the instructions are, and you need to git clean -dfq lib from inside the SC dir
after updating was unable to start the sickchill, i followed the instructions in #6230 but still would start so i backed up my folder and install it new and it still will not start. this is the error i get when checking the status of the service. I have currently reverted back to 77822cb and it is working again but anything after that commit breaks sickchill for me.
â—Ź sickchill.service - SickChill Daemon
Loaded: loaded (/etc/systemd/system/sickchill.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-04-22 11:14:49 EDT; 2min 11s ago
Process: 1283 ExecStart=/usr/bin/python2.7 /opt/sickchill/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickchill (code=exited, status=1/FAILURE)
Apr 22 11:14:49 Media-DL python2.7[1283]: File "/usr/local/lib/python2.7/dist-packages/regex/regex.py", line 571, in _compile
Apr 22 11:14:49 Media-DL python2.7[1283]: raise ValueError('unused keyword argument %r' % any_one)
Apr 22 11:14:49 Media-DL python2.7[1283]: ValueError: unused keyword argument 'private_parent'
Apr 22 11:14:49 Media-DL python2.7[1283]: --------------------------------------------------------------------
Apr 22 11:14:49 Media-DL python2.7[1283]: Please report at https://github.com/guessit-io/guessit/issues.
Apr 22 11:14:49 Media-DL python2.7[1283]: ====================================================================
Apr 22 11:14:49 Media-DL systemd[1]: sickchill.service: Control process exited, code=exited status=1
Apr 22 11:14:49 Media-DL systemd[1]: Failed to start SickChill Daemon.
Apr 22 11:14:49 Media-DL systemd[1]: sickchill.service: Unit entered failed state.
Apr 22 11:14:49 Media-DL systemd[1]: sickchill.service: Failed with result 'exit-code'.
@wokka1 If you are still having issues, you didnt do the git clean. #6230 is where the instructions are, and you need to
git clean -dfq libfrom inside the SC dir
I was following instructions that @MastaG posted earlier, sickchill runs, just doesn't allow me to connect to rTorrent.
But, I followed your mention about doing a clean and then a git pull to develop with no change in status:
https://gist.github.com/wokka1/5ed8165c970677de1f8f765332c81577
When I test a connection to rtorrent, it's still failing and I get nothing in the logs, info or error.
Thanks for your help
Also running ubuntu and followed OvoNemaSmisla post above.
On starting and the commit count before upgrade was 61, here is the result.
sudo service sickrage start
Starting SickRage
DEPRECATION: The OpenSSL being used by this python install (OpenSSL 1.0.1 14 Mar 2012) does not meet the minimum supported version (>= OpenSSL 1.1.1) in order to support TLS 1.3 required by Cloudflare, You may encounter an unexpected reCaptcha or cloudflare 1020 blocks.
ERROR:root:Could not find any typelib for Notify
Traceback (most recent call last):
File "SickBeard.py", line 67, in
import sickbeard
File "/opt/tretflix/appdata/sickrage/sickbeard/__init__.py", line 49, in
from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_processing_queue, properFinder, providers,
File "/opt/tretflix/appdata/sickrage/sickbeard/providers/__init__.py", line 29, in
from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasbien, danishbits, demonoid, elitetorrent, filelist,
File "/opt/tretflix/appdata/sickrage/sickbeard/providers/thepiratebay.py", line 38, in
import js2py
File "/opt/tretflix/appdata/sickrage/lib/js2py/__init__.py", line 72, in
from .base import PyJsException
File "/opt/tretflix/appdata/sickrage/lib/js2py/base.py", line 5, in
from .translators.friendly_nodes import REGEXP_CONVERTER
File "/opt/tretflix/appdata/sickrage/lib/js2py/translators/__init__.py", line 28, in
from .translator import translate_js, trasnlate, syntax_tree_translate, DEFAULT_HEADER
File "/opt/tretflix/appdata/sickrage/lib/js2py/translators/translator.py", line 2, in
import pyjsparser.parser
ImportError: No module named parser
No joy.
I was able to fix mine on synology docker by deleting the container and deleting the images downloaded.
I redownload the "master" version, not the "latest" and everything seems fine and all.is working
Hi all,
I'm running SickChill on my Raspberry Pi.
After the latest update SickChill wasn't accessable anymore.
I deleted everything. And pulled the master version again.
SickChill did start at this time. This morning there were updates available (visible in UI, green message). After updating SickChill was down again.
I tried following solution.
Linux with Git
cd path/to/sickchill
systemctl stop sickchill
find . -name "*.pyc" -delete
find lib -empty -type d -delete
git pull
git clean -dfq lib
systemctl start sickchill
But I get an error when trying to start sickchill
Job for sickchill.service failed because the control process exited with error code.
See "systemctl status sickchill.service" and "journalctl -xe" for details.
`systemctl status sickchill.service
sickchill.service - SickChill Daemon
Loaded: loaded (/etc/systemd/system/sickchill.service; enabled; vendor preset
Active: failed (Result: exit-code) since Thu 2020-04-23 10:42:18 CEST; 54s ag
Process: 29895 ExecStart=/usr/bin/python2.7 /opt/sickchill/SickBeard.py -q --d
apr 23 10:42:18 raspberrypi systemd[1]: Starting SickChill Daemon...
apr 23 10:42:18 raspberrypi systemd[29895]: sickchill.service: Failed to determi
apr 23 10:42:18 raspberrypi systemd[29895]: sickchill.service: Failed at step US
apr 23 10:42:18 raspberrypi systemd[1]: sickchill.service: Control process exite
apr 23 10:42:18 raspberrypi systemd[1]: sickchill.service: Failed with result 'e
apr 23 10:42:18 raspberrypi systemd[1]: Failed to start SickChill Daemon.`
Please help.
What can I do?
Thanks
@c1149 that isnt the full output...
@PipingR #6230
@marcb1387 guessit has been disabled
followed the steps but now im getting this, please help
``
Amods-Mac-mini:SickRage amodpandya$ python SickBeard.py -d &
[1] 87010
Amods-Mac-mini:SickRage amodpandya$ Traceback (most recent call last):
File "SickBeard.py", line 67, in
import sickbeard
File "/Applications/SickRage/sickbeard/__init__.py", line 49, in
from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_processing_queue, properFinder, providers,
File "/Applications/SickRage/sickbeard/providers/__init__.py", line 29, in
from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasbien, danishbits, demonoid, elitetorrent, filelist,
File "/Applications/SickRage/sickbeard/providers/thepiratebay.py", line 38, in
import js2py
File "/Applications/SickRage/lib/js2py/__init__.py", line 72, in
from .base import PyJsException
File "/Applications/SickRage/lib/js2py/base.py", line 5, in
from .translators.friendly_nodes import REGEXP_CONVERTER
File "/Applications/SickRage/lib/js2py/translators/__init__.py", line 28, in
from .translator import translate_js, trasnlate, syntax_tree_translate, DEFAULT_HEADER
File "/Applications/SickRage/lib/js2py/translators/translator.py", line 2, in
import pyjsparser.parser
ImportError: No module named parser
[1]+ Exit 1 python SickBeard.py -d
```
You did not follow the steps in #6230 @boxeeboiler
You did not follow the steps in #6230 @boxeeboiler
thanks - im back up and running but i do see this banner in app - is this a concern?
"You're using the develop branch. Please use 'master' unless specifically asked
Why are you on the develop branch?
It wont hurt anything, and you can get it to go away by enabling debug or developer=1 in the config.ini
I'm on develop because for a long time master wasn't working.
Why are you on the develop branch?
i am sorry - im not that technical. must have been a command i ran on terminal and did not notice what it did
Master and develop have been identical for ages, unless I am working on something at the time I push to develop dozens of times in a day with code that might be broken. I dont merge to master unless the ci build succeeds and I test it myself. You should all be git checkout master unless you really know what you are doing.
Hi, I've followed the steps in #6230.
But I still get an error when starting :
ERROR:root:Could not find any typelib for Notify
Traceback (most recent call last):
File "SickBeard.py", line 70, in <module>
from sickchill.views.server_settings import SRWebServer
File "/home/pi/ProgFiles/sickrage/sickchill/views/__init__.py", line 22, in <module>
from .api import ApiCall, ApiHandler, function_mapper, KeyHandler
File "/home/pi/ProgFiles/sickrage/sickchill/views/api/__init__.py", line 22, in <module>
from .authentication import KeyHandler
File "/home/pi/ProgFiles/sickrage/sickchill/views/api/authentication.py", line 25, in <module>
from tornado.web import RequestHandler
File "/home/pi/ProgFiles/sickrage/lib/tornado/web.py", line 87, in <module>
from tornado import iostream
File "/home/pi/ProgFiles/sickrage/lib/tornado/iostream.py", line 40, in <module>
from tornado.netutil import ssl_wrap_socket, ssl_match_hostname, SSLCertificateError, _client_ssl_defaults, _server_ssl_defaults
File "/home/pi/ProgFiles/sickrage/lib/tornado/netutil.py", line 56, in <module>
import backports.ssl_match_hostname
ImportError: No module named ssl_match_hostname
Sorry if the problem is solved somewhere, couldn't find any mention of this unfortunately.
P.
@paterijk what is your python version?
Python 2.7.3 (it worked until a week ago, last update created the error)
The update is necessary. Python 2.7.3 does not have support for modules that are required to pass cloudflare and other issues. 2.7.9+ is required for SC, has been for years.
Thanks @miigotu ;-) I'll do what is necessary.
Lxml no longer required, so hopefully that fixes a ton of errors. IMDb is working again.
any modifications necessary to this post:
https://github.com/SickChill/SickChill/issues/6230
for sickchill in a freenas jail?
thanks!
I don't know anything about freenas, but if it is installed using git inside the jail it's no different than Linux once inside the jail.
Would it be possible to get some help with regards to SickChill on QNAP? I'm using QNAP_Stephanes package and can't get Sickchill to start despite following instructions in post 6230.
Below is what happens on startup
[/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill] # python SickBeard.py
Traceback (most recent call last):
File "SickBeard.py", line 67, in <module>
import sickbeard
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/__init__.py", line 41, in <module>
import sickchill
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickchill/__init__.py", line 5, in <module>
from .show.indexers import indexer, ShowIndexer
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickchill/show/indexers/__init__.py", line 22, in <module>
from .handler import ShowIndexer
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickchill/show/indexers/handler.py", line 30, in <module>
from sickbeard import logger
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/logger.py", line 48, in <module>
from sickchill.helper.common import dateTimeFormat
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickchill/helper/__init__.py", line 7, in <module>
from .media_info import video_screen_size
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickchill/helper/media_info.py", line 27, in <module>
from enzyme import MKV
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/lib/enzyme/__init__.py", line 10, in <module>
from .mkv import *
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/lib/enzyme/mkv.py", line 3, in <module>
from .parsers import ebml
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/lib/enzyme/parsers/ebml/__init__.py", line 2, in <module>
from .core import *
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/lib/enzyme/parsers/ebml/core.py", line 4, in <module>
from pkg_resources import resource_stream # @UnresolvedImport
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/lib/pkg_resources/__init__.py", line 35, in <module>
import plistlib
ImportError: No module named plistlib
[/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill] #
Would it be possible to get some help with regards to SickChill on QNAP? I'm using QNAP_Stephanes package and can't get Sickchill to start despite following instructions in post 6230.
+1 Not finding any instructions for us running SickChill on the QNAP.
I've been using QSickChill on my QNAP, guessing it's fairly similar.
My path to that is /share/CACHEDEV1_DATA/.qpkg/QSickChill and I was also confused initially as there's a lib directory in there that contains none of the directories that are mentioned above.
However there is a SickChill directory, and within that is another lib directory, and then you can remove the three directories as per above.
Returning to the QSickChill directory I then did ./QSickChill.sh start and now all is working fine!
Many many thanks miigotu!!
I've been using QSickChill on my QNAP, guessing it's fairly similar.
My path to that is /share/CACHEDEV1_DATA/.qpkg/QSickChill and I was also confused initially as there's a lib directory in there that contains none of the directories that are mentioned above.
However there is a SickChill directory, and within that is another lib directory, and then you can remove the three directories as per above.
Returning to the QSickChill directory I then did ./QSickChill.sh start and now all is working fine!
Many many thanks miigotu!!
Thanks for this. However I'm still having issues:
/share/CACHEDEV1_DATA/.qpkg/QSickChill$ ./QSickChill.sh start
file exists
DEPRECATION: The OpenSSL being used by this python install (OpenSSL 1.0.2p 14 Aug 2018) does not meet the minimum supported version (>= OpenSSL 1.1.1) in order to support TLS 1.3 required by Cloudflare, You may encounter an unexpected reCaptcha or cloudflare 1020 blocks.
Traceback (most recent call last):
File "SickBeard.py", line 67, in <module>
import sickbeard
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/__init__.py", line 49, in <module>
from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_processing_queue, properFinder, providers,
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/post_processing_queue.py", line 33, in <module>
from .processTV import log_helper, process_dir
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/processTV.py", line 38, in <module>
from . import common, db, failedProcessor, helpers, logger, postProcessor
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/failedProcessor.py", line 27, in <module>
from . import logger, search_queue, show_name_helpers
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/search_queue.py", line 30, in <module>
from . import common, failed_history, generic_queue, history, logger, search, ui
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/search.py", line 35, in <module>
from sickchill.providers.GenericProvider import GenericProvider
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickchill/providers/GenericProvider.py", line 42, in <module>
from sickbeard.tvcache import TVCache
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/tvcache.py", line 38, in <module>
from .rssfeeds import getFeed
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/rssfeeds.py", line 5, in <module>
from feedparser.api import parse
ImportError: No module named feedparser.api
"/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/rssfeeds.py", line 5, in <module> from feedparser.api import parse ImportError: No module named feedparser.api
I've checked my version of this file... get rid of the '.api' bit there, leave it as plain feedparser
"/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/rssfeeds.py", line 5, in <module> from feedparser.api import parse ImportError: No module named feedparser.apiI've checked my version of this file... get rid of the '.api' bit there, leave it as plain feedparser
I removed it from line 5 and get this now:
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/rssfeeds.py", line 5, in <module>
from feedparser import parse
ImportError: No module named feedparser
Hm probably at the limits of my knowledge here then. How did that .api get there, was that something you'd changed?
If you go to /share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/lib then do you confirm in there that:
Then go into /share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/lib/cloudscraper and confirm:
If all this is true then not sure what the solution is I'm afraid, I defer to others round here with far greater knowledge than my own.
@stuartperry
No idea how the 'api' got there, nothing I did for sure.
I did delete the 3 directories as miigotu stated above.
I do NOT see feedparser.py anywhere though. Was it inside of the feedparser directory?
exceptions.py DOES exist inside the cloudscraper directory.
OK so what you need to do is pull the feedparser.py file from here https://github.com/SickChill/SickChill/tree/master/lib
and make sure it's inside /share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/lib/
Probably it got accidentally deleted when you were deleting directories.
I think your installation will then match mine.
@stuartperry
Making progress, I think..lol
Got this now though:
File "SickBeard.py", line 67, in <module>
import sickbeard
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/__init__.py", line 49, in <module>
from . import (auto_postprocessor, clients, dailysearcher, db, helpers, image_cache, logger, metadata, naming, post_processing_queue, properFinder, providers,
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/providers/__init__.py", line 29, in <module>
from sickbeard.providers import (abnormal, alpharatio, archetorrent, binsearch, bitcannon, bjshare, btn, cpasbien, danishbits, demonoid, elitetorrent, filelist,
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickbeard/providers/abnormal.py", line 34, in <module>
from sickchill.providers.torrent.TorrentProvider import TorrentProvider
File "/share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickchill/providers/torrent/TorrentProvider.py", line 25, in <module>
from feedparser.util import FeedParserDict
ImportError: No module named util
EDIT: I assume I need to remove the '.util' like I did with the 'api'in the previous step. Currently doing that and making more progress. Will update when complete. Thanks!
In share/CACHEDEV1_DATA/.qpkg/QSickChill/SickChill/sickchill/providers/torrent/TorrentProvider.py near the top you have a line 'from feedparser.util import FeedParserDict' (this was one of the incorrect fixes suggested in a separate thread on this issue).  Get rid of the .util part (similar to what you did with the .api part earlier)
@stuartperry
Just from that file? Not all the other ones listed in the error?
If you look at the error message from bottom to top it's kinda sequential.
You have a problem with TorrentProvider.py (which needs removing the .util thing).
And then the line above, in a script called abnormal.py, is saying 'I can't load TorrentProvider' (understandable, as it has an error)
And then the line above that one is unable to load 'abnormal' (as it can't load due to the TorrentProvider dependency)
@stuartperry
Awesome, Thanks so much for the help!
I'm just waiting on this backup
13:24:21 INFO::CHECKVERSION :: Config backup in progress...
Been going on for (edited:) 30+ mins now. Is that normal?
Terrible. Do not modify the code. If you have a feedparser error you have residual files and folder that are confusing python.
The feedparser error is fixed by deleting the lib/feedparser __folder__
Terrible. Do not modify the code. If you have a feedparser error you have residual files and folder that are confusing python.
The feedparser error is fixed by deleting the lib/feedparser folder
That was the 1st thing done...
Then the code was not restarted or they were looking in the wrong place, or were not updated to begin with. Really easy just copy the data out and reinstall the qpkg.
Is qnap Stephanie still making packages?
Then the code was not restarted or they were looking in the wrong place, or were not updated to begin with. Really easy just copy the data out and reinstall the qpkg.
Is qnap Stephanie still making packages?
Hasn't been updated since 2018-10-15 as far as I can tell. Not sure what to do from here :-/
Any recommendations on how I can get back up and running @miigotu ?
I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later.
I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later.
Awesome, thanks!
~I followed the pinned instructions to clean up after the update, but am still seeing the following in my logs, it seems to be not logging as an Error or any level. Issue is with sending torrents to rTorrent.~
Nevermind! Turns out changing to rTorrent v9+ in the Search Settings was the fix (from https://github.com/SickChill/SickChill/issues/6313#issuecomment-618783678), oddly enough I couldn't get a successful test until I saved the changes and then attempted to test against the scgi socket.
Keeping my log output below in case it helps anyone else googling for the answer.
AA TypeError: __init__() takes at most 3 arguments (6 given)
AA self.auth = RTorrent(self.host, self.username, self.password, True, tp_kwargs=tp_kwargs)
AA File "/home/********/SickChill/sickbeard/clients/rtorrent.py", line 58, in _get_auth
AA if not (self.auth or self._get_auth()):
AA File "/home/********/SickChill/sickbeard/clients/generic.py", line 254, in sendTORRENT
AA dlResult = client.sendTORRENT(result)
AA File "/home/********/SickChill/sickbeard/search.py", line 143, in snatchEpisode
AA self.success = search.snatchEpisode(searchResult[0])
AA File "/home/********/SickChill/sickbeard/search_queue.py", line 186, in run
2020-04-28 03:41:30 INFO SEARCHQUEUE-MANUAL- :: Downloading Some.Show.S03E06.REPACK.1080p.WEB.H264-BTX from BTN
Keep up the great work @miigotu ! 🙇‍♂️
I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later.
Any update on this yet? @miigotu :pray:
Anything for us QNAP users yet?
Hello
Anything for us QNAP users yet?
Or Synology? I have an ESX cluster running a synology VM. I can clone the VM and give you access if you want to play with it and try to fix it. At this point I am rolling back to a snapshot from before the upgrade. I am 116 updates behind FYI. I am reluctant to update it when it is working because it is so AWESOME!!!! and I am dependent on it.
Thank you very much for your work. I will be looking around for a donate link :D.
Thanks!
Hello
Anything for us QNAP users yet?
Or Synology? I have an ESX cluster running a synology VM. I can clone the VM and give you access if you want to play with it and try to fix it. At this point I am rolling back to a snapshot from before the upgrade. I am 116 updates behind FYI. I am reluctant to update it when it is working because it is so AWESOME!!!! and I am dependent on it.
Thank you very much for your work. I will be looking around for a donate link :D.
Thanks!
I sent you 20 monies for the awesome work... :D and if you wanted to fix my instance .. that would be cool too. I can give you remote access and an ssh shell into my synology VM .. and you can break it as much as you want. I will clone it and snap it before hand :D.
Lata Playa,
For Synology you can download my package and install it manually.
It will do an update from your existing package to the latest SickChill code without the issue.
https://github.com/BenjV/SYNO-packages/raw/master/SickChill%20noarch%20V1.3.spk
ReadyNAS package updated: https://github.com/SickChill/readynas-sickchill/releases/tag/0b79cc3
For Synology you can download my package and install it manually.
It will do an update from your existing package to the latest SickChill code without the issue.https://github.com/BenjV/SYNO-packages/raw/master/SickChill%20noarch%20V1.2.spk
Awesome!!! Thanks I will give it a shot.
It says to uninstall the old version after installing this one. Should the old one be stopped before the new install? Does it need to pull anything from the old one in an interesting way?
Like steps. Stop old sickchill/sickrage.
Install new version manually.
Wait until starts running or some arbitrary amount of time.
Reboot/restart sickchill?
Thanks,
So yeah it looks like the install dir on my old one is /volume1/@appstore/sickbeard-custom/var/config.ini
Yours is /volume1/@appstore/sickchill/var/config.ini .. should i just copy the contents to that directory or just rename it? I dont know what that would do with the database and other things if the paths arent relative.
Let me know please.
If I knew how to use git and check things out and put them back .. I could probably do it myself . but I dont want to experiment on this thing. Is there a different option where I could specify a different config directory?
Or maybe to a check that looks for other install directories?
My backup file is around 830MB by the way.
Holy spam batman. You backup from inside the gui, purge the old package, install the new package, and restore the backup in the gui
I am not sure I can follow you.
If the old sickbeard-custom is still working, just update from within SicKChill.
Or if you want my SickChill package do as @miigotu says and make a backup from within the old SickChill, remove the old package, install my SickChill package, start it and restore that backup.
I am not sure if both packages use the same port, but if they do you cannot have them both installed at the same time, because DSM won't allow two packages on the same port.
If on the other hand you have an installation of sickbeard-custom ( or SickChill) that will not start again, then you have to do the action which I told before (backup and restore the files config.ini, sickbeard.db and cache.db by hand).
Hope this explanation helps.
By the way, if you are running Xpenology on a ESX cluster it is never a good idea to use any of the raid configurations of DSM.
And the frase "_I think the DSM Synology OS stripes system components across all of the drives_" suggests you choose to use raid.
Although SHR is the default raid used by Synology during creation of a storage pool it is still a choice you made yourself.
Raid should be on the lowest level of your layered configuration as close as possible to the hardware layer in this case on the Esx level, and not on the DSM layer.
Otherwise you cannot make disk changes on the Esx level anymore as you have seen.
Holy shit that's a ton of space. Here my broke ass been living with 2 2TB drives in a mirror raid because hard drives are expensive lol. I have to delete media all the time to keep up.
Btw, if you have the option to run it as a docker container, I would recommend that over anything, because it works on all architecture and OS as long as you can run docker on it.
OK, I was having this issue after I recently updated, but was able to get it working once I did the instructions at https://github.com/SickChill/SickChill/issues/6230 .
But now, all the TV show posters and banners are "gone", as if there are no posters. It's just a sea of blue Sickchill posters and banners. Forcing a Full update on any show does nothing. Data\cache\images folder is still there with what looks to be all of the images
hope you got some of the $20 I sent thru paypal for all the reading your doing :D.
This whole post seems to wonder off in something that should be on a Synology forum instead of this SickChill issue tracker.
But I will give it a go, although I cannot find a questing you posting.
First of all, DSM will always create a system partition on all the disk in a mirror with each other, this partition is hidden from the gui and can only be observed via a commandline.
When you create a volume and you don't want raid (as in your case) then you have to create a basic volume ( be careful the default is SHR which is also raid).
When you install a package you can choose to which volume you install it, but the package center will keep an administration of that on the system partition.
So moving an installed package to another volume is not possible, because the package center cannot find it anymore after that move.
For my SickChill package to be able to run you need python 2.7 and git both from the SynoCommunity.
And yes it is possible to create an installation script that will install those packages when the are not yet present., but I did not bother to put in the effort to do that for such a trivial issue.
And by the way I am just an SickChill user and not one of the developers.
Clicking update does just work, as long as you are after the library changes. If you read this thread it is due to a shortcoming in git, because git only tracks files, not folders.
I have added code that makes sure this isnt an issue in the future. back up the data, uninstall the package, clear the SC source dir on the syno, install benjv package, restore the backup, and you are done. Updates will work fine.
Any sort of update at all for QNAP users? Not sure if I should just install on windows or wait for a fix for QNAP.
Does https://github.com/SickChill/qnap-sickchill not work?
I got mine working fine on my QNAP. Just followed the instructions and deleted the right files and it started working
I got mine working fine on my QNAP. Just followed the instructions and deleted the right files and it started working.
Unfortunately that didn't work on the QSickChill build.
Does https://github.com/SickChill/qnap-sickchill not work?
Has that changed since you last said "I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later." ?
I got mine working fine on my QNAP. Just followed the instructions and deleted the right files and it started working.
Unfortunately that didn't work on the QSickChill build.
Does https://github.com/SickChill/qnap-sickchill not work?
Has that changed since you last said "I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later." ?
I’m using the QSickchill build so not exactly sure what I’ve done but I got it working on the Stephane’s package.
remove
"D:\<snip>\SickRage\lib\feedparser"directory _not the feedparser.py_
remove"D:\<snip>\SickRage\lib\cloudscraper\exceptions"directory _not the exceptions.py_
remove `"D:<snip>\SickRage\lib\lxml"Also on linux, remove lib/cloudscraper/exceptions, lib/feedparser, and lib/lxml directories, keep lib/cloudscraper/exceptions.py and lib/feedparser.py
This worked for me running it on osmc, thanks!!
I got mine working fine on my QNAP. Just followed the instructions and deleted the right files and it started working.
Unfortunately that didn't work on the QSickChill build.
Does https://github.com/SickChill/qnap-sickchill not work?
Has that changed since you last said "I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later." ?
I’m using the QSickchill build so not exactly sure what I’ve done but I got it working on the Stephane’s package.
Hmm.. Yeah, IDK. I deleted all the files and folders specified above to no avail. :(
I got mine working fine on my QNAP. Just followed the instructions and deleted the right files and it started working.
Unfortunately that didn't work on the QSickChill build.
Does https://github.com/SickChill/qnap-sickchill not work?
Has that changed since you last said "I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later." ?
That package always pulls the latest SC when it is installed. If it doesn't, I'll work on it later. It's just a hassle setting up build environments for all of these platforms since nobody helps maintain anything anymore.
This whole post seems to wonder off in something that should be on a Synology forum instead of this SickChill issue tracker.
But I will give it a go, although I cannot find a questing you posting.
First of all, DSM will always create a system partition on all the disk in a mirror with each other, this partition is hidden from the gui and can only be observed via a commandline.
When you create a volume and you don't want raid (as in your case) then you have to create a basic volume ( be careful the default is SHR which is also raid).
When you install a package you can choose to which volume you install it, but the package center will keep an administration of that on the system partition.
So moving an installed package to another volume is not possible, because the package center cannot find it anymore after that move.
For my SickChill package to be able to run you need python 2.7 and git both from the SynoCommunity.
And yes it is possible to create an installation script that will install those packages when the are not yet present., but I did not bother to put in the effort to do that for such a trivial issue.
And by the way I am just an SickChill user and not one of the developers.The synology stuff just kind morphed into the thread. I can delete it all if you like. Send me your paypal link and ill send you $20 as well.
Its working well and the logs are so clean. I created a new VM with ext4 and basic disks. Cant wait to kill and wipe the old vm after this runs for awhile.
I did get a message about ssl and python and cloudflare possibly giving it the finger .. so have to figure out how to update that.
Thanks again!!!!!
Its all installed on a new vm. It is moving stuff quite nicely.
Bandwidth picture inside of the VM/DSM. 1 Nic for public network and another for storage network. Fun Fun!!

I got mine working fine on my QNAP. Just followed the instructions and deleted the right files and it started working.
Unfortunately that didn't work on the QSickChill build.
Does https://github.com/SickChill/qnap-sickchill not work?
Has that changed since you last said "I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later." ?
That package always pulls the latest SC when it is installed. If it doesn't, I'll work on it later. It's just a hassle setting up build environments for all of these platforms since nobody helps maintain anything anymore.
Ok, My SC isn't running at all. So is there a way of me manually backing up before I uninstall the old and install the new?
I got mine working fine on my QNAP. Just followed the instructions and deleted the right files and it started working.
Unfortunately that didn't work on the QSickChill build.
Does https://github.com/SickChill/qnap-sickchill not work?
Has that changed since you last said "I'm gonna look for the source Stephanie used, otherwise I'll build qnap-sickchill again later." ?
That package always pulls the latest SC when it is installed. If it doesn't, I'll work on it later. It's just a hassle setting up build environments for all of these platforms since nobody helps maintain anything anymore.
Ok, My SC isn't running at all. So is there a way of me manually backing up before I uninstall the old and install the new?
Seems like it would be these files. Verify because I am pulling it from memory.
cache/
cache.db
config.ini
failed.db
sickbeard.db
Thank you. I'll wait on the final verdict from @miigotu just to be positive. :)
As is told already many times in this thread.
If SickChill does not start at all and you don't have a recent backup made by SickChill
Save the following files and restore them to the new installed SickChill
Needed:
SickBeard.db
cache.db
config.ini
Optional to save time afterward the subfolder "cache" with all its files and subfolders.
I have created a new SickChill package for Synology with a fix for issue #5821
It can be downloaded here:
https://github.com/BenjV/SYNO-packages/raw/master/SickChill%20noarch%20V1.3.spk
It is save to install it when SickChill is already installed, because it wil just upgrade the Synology package and do a git pull for the latest SickChill code from github.
The database and config.ini and all the cache items will not be affected.
@miigotu
Maybe you can change the link in #6230 to https://github.com/BenjV/SYNO-packages
Then people can look themselves for the latest package instead downloading an old version.
@BenjV Is there a reason the source isnt on that repo? If you want we could make a repo under SickChill org for it and you can manage it to keep it all in one place, just need the source.
It is not necessary for the SickChill source to be on that repro.
The .spk file is a .tar file used by Synology, within that .tar are all the scripts and configuration needed to install an app on the Synology platform and during that installation it does a _git fetch_ to the SickChill github.
So a Synology user can simply download that .spk file and do a manual install of it.
The package center of Synology will know if it is a new install or an upgrade and in the latter case it will not touch the database, config and cache.
Synology users can only use a .spk file for installation, otherwise they need to know how to create a .spk from the source and lots of Synology users are not tech savvy enough to be able to do that.
@BenjV but without a source, if you go away nobody else can update the package, and nobody knows whats going on in it without a source. By that logic qnap/readynas/etc sources shouldnt be available because all users need is the package. But the developers need the source.
@miigotu
The source is the .spk file, it is a .tar file.
Download it, rename it to .tar and you can unpack it.
Make changes, pack into a .tar and give it the extension .spk
Feel free to host a copy of it on your github if you feel better that way.
The package is just a set of install- and startup scripts, configuration files and images needed for Synology, there is no SickChill code in there.
On that same github you can find the DSM developers guide which explains how to create a Synology package.
I made a new package for synology based on sickbeard-community, with a few customizations:
https://github.com/SickChill/synology-sickchill
(sickchill scripts source is https://github.com/SickChill/synology-sickchill/tree/sickchill/spk/sickchill)
A release for people to try:
https://github.com/SickChill/synology-sickchill/releases
And a how to build:
https://github.com/SickChill/synology-sickchill/wiki
@miigotu
I installed your package but it simply won't run.
I took a quick peek and saw already multiply flaws.
For example in the privilege file you forgot the start, stop and status command to give root privs.
In the service-setup you use a variable called 'INSTALL_DIR' that does not exisist
(should be SYNOPKG_PKGDEST)
You also forgot to add the fix for the git certificate in the service-setup script in the preinstall fase
service_preinst ()
{
${GIT} config --system http.sslCAInfo /etc/ssl/certs/ca-certificates.crt > /dev/null 2>&1
}
Also it would be wise to add a line to the start-stop-status script to force the port to the default port from the INFO file.
SickChill allows you to change the port from within SickChill but on Synology this will create problems.
So add the following line before SickChill is started in the start-stop-status script, so it will always revert back to the default port.
sed -i "/web_port/s/= .*/= ${SYNOPKG_PKGPORT}/" ${SYNOPKG_PKGDEST}/var/config.ini
By the way I don't think it is wise to create your own package variation when you are not able to test it.
@BenjV the INSTALL_DIR variable is in a comment...
It is not wise to provide packages without sources.
It is not wise to give root to a web facing software, it is not necessary
It is not wise to change systemwide git config without checking that the file you are pointing to exists.
@miigotu
Ok my fault I did overlooked the comment in my quick review.
A Synology package is the source as I explained.
The Synology structure is based on the fact that the scripts in the package have can have root privs and they are not web facing they are only used by the package center from DSM itself.
They need root privs to be able to start apps with a "run as" so those apps don't need root privs themselves.
Also the status check is done with a kill 0 pid (from the pidfile) to check if the application is running, so that script also needs root privs.
Those scripts can only be reached by someone with root privs, so no security issue at all.
If you don't do the git config change you cannot install any package with git.
But if you react this way I will keep quite and you are on your own to try to create a Synology package that will work instead of what you have now.
You react more or less in the same manor echel0n does in reacting to constructive criticism.
I did not create the scripts. They are the scripts provided by spksrc, that all the other packages use. Permissions are different on dsm 6.
Also, the privilege file is in the package, it is generated by the build system.
Can someone with a Synology test this package? https://github.com/SickChill/synology-sickchill/releases/download/20200523-0/sickchill_noarch-all_20200523-0.spk
How come now that everytime sickchill is updated it won't restart?
It does for me, maybe you don't have it running as a daemon or autostarting service?
it's been doing this since the last two or three updates. I do have it configured with systemd. I'll try to provide some logs next time. thank you for your reply @miigotu
`htpc@htpc-media-server:~$ sudo systemctl status sickchill
â—Ź sickchill.service - SickChill Daemon
Loaded: loaded (/etc/systemd/system/sickchill.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-05-29 11:59:37 EDT; 13h ago
Process: 1186 ExecStart=/usr/bin/python2.7 /opt/sickchill/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickchill (code=exited, status=0/SUCCESS)
Tasks: 17 (limit: 4659)
CGroup: /system.slice/sickchill.service
└─1613 /usr/bin/python2.7 /opt/sickchill/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickchill
May 29 11:59:02 htpc-media-server systemd[1]: Starting SickChill Daemon...
May 29 11:59:37 htpc-media-server systemd[1]: Started SickChill Daemon.
`
Are you sure it isn't restarting and the page is t reloading or is the service not starting back up? Does your service file set a pid file to use?
no PID it's a pretty basic install.
`# PIDFile=/var/run/sickchill/sickchill.pid
GuessMainPID=no`
I don't remember having checked the service status but I'm almost positive sc wasn't running I had no downloads going for most of a day. I usually reboot the vm to get it running again.
And you have this?
Restart=always
Oups no :P I'm adding it now that might have been why it wasn't restarting after all.
`[Unit]
Description=SickChill Daemon
Wants=network-online.target
After=network-online.target
[Service]
Restart=always
User=*
Group=*
Type=forking
GuessMainPID=no
ExecStart=/usr/bin/python2.7 /opt/sickchill/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickchill
[Install]
WantedBy=multi-user.target
`
remove
"D:\<snip>\SickRage\lib\feedparser"directory _not the feedparser.py_
remove"D:\<snip>\SickRage\lib\cloudscraper\exceptions"directory _not the exceptions.py_
remove `"D:<snip>\SickRage\lib\lxml"
Thanks! This solved the problem with SickChill not starting from DSM anymore.
Most helpful comment
To others who may run into this, here's what worked for me as a fix on ubuntu:
Backup your files first just in case...
feedparserdirectory from/opt/sickchill/libexceptionsdirectory from/opt/sickchill/lib/cloudscraperlxmldirectory from/opt/sickchill/lib*.pycfiles from/opt/sickchillusing the command:find . -type f -name "*.pyc" -deletesudo git pullfrom inside/opt/sickshill