Sickchill just hangs on run

Ellimist

Dabbler
Joined
Jun 8, 2014
Messages
32
Hi Folks,

Sickchill is just hanging when it runs. Seems there was some sort of change to it again which broke it. The installer has been updated with the new packages but it doesn't work. Has anyone here found a solution?

Theres a thread over on the sickchill github but theres no solution there.


Cheers,
 

simpleton

Cadet
Joined
Mar 8, 2016
Messages
3
I'm also having the same issue reported in that thread. I have an old plugin running for now, but I'm over 200 commits behind on updates.
 

Turboture

Dabbler
Joined
Feb 28, 2013
Messages
13
Does anyone here knows who to contact to get help to fix this issue? I know its an unofficial plugin and not suported by truenas.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Does anyone here knows who to contact to get help to fix this issue? I know its an unofficial plugin and not suported by truenas.
It seems the link in the first post covers that... if you look down a bit you see the two links to the repos for that plugin:

https://github.com/ix-plugin-hub/iocage-plugin-index/blob/master/sickchill.json

https://github.com/ix-plugin-hub/iocage-plugin-sickchill

You can raise issues directly on those github repos or look into why it might be failing based on the code yourself if the maintainers aren't responsive enough.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I can confirm this is still broken.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If anyone wants to do the work to figure it out, you might start by creating a fresh jail, then trying to run the post install script line by line until you find the error:

iocage create -n "sickchill" -r 12.2-RELEASE dhcp="on" vnet="on" allow_raw_sockets="1"

iocage start sickchill

iocage console sickchill

ee /etc/pkg/FreeBSD.conf Change Quarterly to latest

pkg update

pkg install git python3 python38 py38-pip py38-setuptools py38-sqlite3 py38-pillow py38-virtualenv unrar ca_root_nss libmediainfo libxslt libxml2 rust

Code:
#!/bin/sh

echo "Create location for sickchill"
mkdir -p /usr/local/app

echo "Download sickchill repo"
git clone https://github.com/SickChill/SickChill.git /usr/local/app/sickchill

echo "Updating dependencies"
pip install --upgrade pip
pip install --upgrade virtualenv

echo "Create sickchill user"
pw user add sickchill -c "Sickchill" -d /nonexistent -s /usr/bin/nologin -w no
chown -R sickchill:sickchill /usr/local/app/sickchill

mkdir -p /.cargo
chown -R sickchill:sickchill /.cargo

echo "Installing SickChill service"
mkdir -p /usr/local/etc/rc.d
cp /usr/local/app/sickchill/contrib/runscripts/init.freebsd /usr/local/etc/rc.d/sickchill

echo "Executing SickChill service"
chmod u+x /usr/local/etc/rc.d/sickchill
sysrc "sickchill_enable=YES"
service sickchill start



Once you have followed all those steps, you have done what the plugin will do to create a jail, so if it doesn't fail, the plugin shouldn't be broken... if we see where it's failing, maybe something can be done about it.
 
Last edited:

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Message from py38-pip-20.3.4:

--
pip MUST ONLY be used:

* With the --user flag, OR
* To install or manage Python packages in virtual environments

Failure to follow this warning can and will result in an inconsistent
system-wide Python environment (LOCALBASE/lib/pythonX.Y/site-packages) and
cause errors.


Code:
root@sickchillZZ:~ # mkdir -p /usr/local/app
root@sickchillZZ:~ # git clone https://github.com/SickChill/SickChill.git /usr/local/app/sickchill
Cloning into '/usr/local/app/sickchill'...
remote: Enumerating objects: 122386, done.
remote: Counting objects: 100% (3994/3994), done.
remote: Compressing objects: 100% (2292/2292), done.
remote: Total 122386 (delta 1795), reused 3590 (delta 1557), pack-reused 118392
Receiving objects: 100% (122386/122386), 257.58 MiB | 6.77 MiB/s, done.
Resolving deltas: 100% (75323/75323), done.
root@sickchillZZ:~ # pip install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.8/site-packages (20.3.4)
Collecting pip
  Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
     |████████████████████████████████| 1.7 MB 5.5 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.3.4
    Uninstalling pip-20.3.4:
      Successfully uninstalled pip-20.3.4
Successfully installed pip-21.3.1
root@sickchillZZ:~ # pip install --upgrade virtualenv
Requirement already satisfied: virtualenv in /usr/local/lib/python3.8/site-packages (16.7.5)
Collecting virtualenv
  Downloading virtualenv-20.9.0-py2.py3-none-any.whl (5.6 MB)
     |████████████████████████████████| 5.6 MB 4.9 MB/s
Collecting platformdirs<3,>=2
  Downloading platformdirs-2.4.0-py3-none-any.whl (14 kB)
Collecting six<2,>=1.9.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting filelock<4,>=3.2
  Downloading filelock-3.3.1-py3-none-any.whl (9.7 kB)
Collecting distlib<1,>=0.3.1
  Downloading distlib-0.3.3-py2.py3-none-any.whl (496 kB)
     |████████████████████████████████| 496 kB 14.9 MB/s
Collecting backports.entry-points-selectable>=1.0.4
  Downloading backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl (6.2 kB)
Installing collected packages: six, platformdirs, filelock, distlib, backports.entry-points-selectable, virtualenv
  Attempting uninstall: virtualenv
    Found existing installation: virtualenv 16.7.5
    Uninstalling virtualenv-16.7.5:
      Successfully uninstalled virtualenv-16.7.5
Successfully installed backports.entry-points-selectable-1.1.0 distlib-0.3.3 filelock-3.3.1 platformdirs-2.4.0 six-1.16.0 virtualenv-20.9.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@sickchillZZ:~ # pw user add sickchill -c "Sickchill" -d /nonexistent -s /usr/bin/nologin -w no
root@sickchillZZ:~ # chown -R sickchill:sickchill /usr/local/app/sickchill
root@sickchillZZ:~ # mkdir -p /.cargo
root@sickchillZZ:~ # chown -R sickchill:sickchill /.cargo
root@sickchillZZ:~ # mkdir -p /usr/local/etc/rc.d
root@sickchillZZ:~ # cp /usr/local/app/sickchill/contrib/runscripts/init.freebsd /usr/local/etc/rc.d/sickchill
root@sickchillZZ:~ # chmod u+x /usr/local/etc/rc.d/sickchill
root@sickchillZZ:~ # sysrc "sickchill_enable=YES"
sickchill_enable:  -> YES
root@sickchillZZ:~ # service sickchill start
Starting sickchill.
root@sickchillZZ:~ # Writing PID: 29036 to /var/run/sickchill/sickchill.pid


root@sickchillZZ:~ # service sickchill start
Removing stale pidfile.
Starting sickchill.
root@sickchillZZ:~ # Writing PID: 29065 to /var/run/sickchill/sickchill.pid


root@sickchillZZ:~ # service sickchill start
Removing stale pidfile.
Starting sickchill.
root@sickchillZZ:~ # Writing PID: 29079 to /var/run/sickchill/sickchill.pid


root@sickchillZZ:~ # service sickchill stop
sickchill not running? (check /var/run/sickchill/sickchill.pid).
root@sickchillZZ:~ #




You will note there's no major errors (to my knowledge?) despite the fact my final command to stop it, clearly indicates, it's not running in the first place sadly.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
So the first thing to do would be to look at /var/run/sickchill/sickchill.pid

Is the file there with the service started or not?

what are the permissions? ls -l /var/run/sickchill
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
So the first thing to do would be to look at /var/run/sickchill/sickchill.pid

Is the file there with the service started or not?

what are the permissions? ls -l /var/run/sickchill


root@sickchillZZ:~ # ls -l /var/run/sickchill
total 1
-rw-rw-rw- 1 sickchill sickchill 6 Oct 29 19:00 sickchill.pid


Contents of file
"11380"
(Which is simply the PID it was assigned)
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Oh and the file IS there despite starting it, it failing (crashing?) and then stopping.

It doesn't delete the file on exit.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, so that rules out another item... including wrong permissions for that file.

Let's have a look at the rc.d file:
ee /usr/local/etc/rc.d/sickchill

We should be able to build a manual command from that to run it interactively and see the error that's causing it to terminate

I also wonder how similar it is to the one in the source:
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
OK, so that rules out another item... including wrong permissions for that file.

Let's have a look at the rc.d file:
ee /usr/local/etc/rc.d/sickchill

We should be able to build a manual command from that to run it interactively and see the error that's causing it to terminate

I also wonder how similar it is to the one in the source:
Thanks for this. I'll check this out in a few hours.

Just for reference though and potentially useful information.


I spun a 12.2 jail without updates, didn't fix it.

Spun a 12.1 without updates, also didn't fix it.

I then adapted the guides and tried medusa, a very similar piece of code. No dice.
Then I tried a different medusa guide, no dice.

I wonder if perhaps one of things the scripts install has been updated and broken, pip, rust all this stuff, perhaps that's the issue.


I'd love to see a community plugin for medusa (pymedusa) over sick chill.

Will try when I get home
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Ok I've taken a peek at the file and I can confirm it's identical to the one you linked besides some #, # ,# notes at the top.

Now I've tried running some of the commands inside the file at the command line and they didn't work. (My technical skills on display here) - where's these .sh files I can set a +x and run them.

So how would I go about dissecting this file and identifying the flawed part of the run process?
Thanks for the help.

For what it's worth, I believe this to be not just an issue for me.


EDIT:

Ok thanks for your help, someone else online is also looking at this same issue and they've generated me a single run string, which has identified what I believe to be the cause of the issue, in theory?

Here's my single run command

su -m sickchill -c '/usr/local/bin/python3 /usr/local/app/sickchill/SickChill.py --datadir /usr/local/app/sickchill --pidfile /var/run/sickchill/sickchill.pid'


I believe the last of the following 3 errors to probably be the cause of the issue.

#1
ERROR: Invalid requirement: 'Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.'

#2
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

#3
ModuleNotFoundError: No module named 'github'



In attempting to fix this, I've done this.

ModuleNotFoundError: No module named 'github'
root@sickchill3:~ # pip install github
ERROR: Could not find a version that satisfies the requirement github (from versions: none)
ERROR: No matching distribution found for github




I can't be sure what this means, I'm not sharp enough - I guess it's a python module or some such? and it's no longer available.?
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
https://stackoverflow.com/questions/68463959/modulenotfounderror-no-module-named-github-on-raspberry-pi said:
It appears the module that provides an import named github is in fact PyGithub.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I tried that too with no luck sadly.
I've nearly figured out, how to make a Medusa plugin, I just need someone to run with it.
 

dreamerns

Dabbler
Joined
May 1, 2015
Messages
48
Updated my version of sickchill today and everything was broken. Tried to manually fix it ended up with all the above issues. Tried fresh install of the plugin, the same. Finally found this thread that confirms I'm not loosing my mind :smile:
 
Top