Sickchill: Install Error: SickChill had a failure Exception: RuntimeError Message: Last 10 lines: fetch:

Created on 9 Sep 2020  路  30Comments  路  Source: SickChill/SickChill

Before submitting your issue:

Enable debug logging in SickChill settings, reproduce the error (be sure to disable after the bug is fixed)

Branch/Commit:
OS: TrueNas 12 BETA 2.1
Browser: Chrome
What you did: installed sickchill using community plugins
What happened: install fails
What you expected: install to work
Logs:

"Install
Error: SickChill had a failure Exception: RuntimeError Message: Last 10 lines: fetch: https://github.com/SickChill/SickChill/archive/master.tar.gz: size of remote file is not known master.tar.gz 32 MB 1862 kBps 18s cp: /usr/local/sickchill/runscripts/init.freebsd: No such file or directory chmod: /usr/local/etc/rc.d/sickchill: No such file or directory Partial plugin destroyed"

Rolled back to a non beta freenas 11.3 however the issue persists. All my other plugins are working. Before the re-install an in plugin update was available and updating caused the browser to become inaccessible. Cleared out the plugin and storage and was attempting to re-install the plugin from new and run into this error.

Bug / Issue

All 30 comments

Issue-Label Bot is automatically applying the label Bug / Issue to this issue, with a confidence of 0.91. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Hi, thanks for the report. Please use search to make sure your issue has not been reported yet, and someone will try to help you as soon as possible.

Thanks, I don't exactly know what you mean by "make a new iocage." I've followed the steps to make sure my truenas build is using the latest iocage repositories, it shows two 11.3 release and 12.1 release and all my plugins use the 12.2 except sickchill that despite upgrades before this would only use the 11.3 release.

There is a new iocage, I need to make an adjustment to it but I'll post back here for the one you can use

@Jared575 As soon as https://github.com/ix-plugin-hub/iocage-plugin-sickchill/pull/1 is merged everything should be copacetic, with the 12.1 release

Thanks! I have no idea what that JSON stuff was and what to do with it... Way above my pay grade of understanding. I'll let you do your update and let me know what to do when that's updated :) cheers

I'm not sure how you update your plugin index, but the plugin for sickchill is live for freenas/trueos
Go with the 12.1-RELEASE version

Funny I was just coming to see if anything was sent as this message popped up. I'm not sure how FreeNAS/TrueNAS community pulls work I just install plugins from the gui. I've tried in the past to install jails myself but they never work and never been able to figure out why haha. Thanks for the updates!

I know by default the plugins update quarterly and I know how to, after they're installed, edit the configuration to update to latest instead of quarterly but unsure how or if it's possible to update plugins to latest that aren't already installed... Is that possible?

I want to think that if you just uninstall the SickChill plugin from the gui and reinstall it that it will use the newer version

Yeah I think the way FreeNAS and iocage plugin repositories are set up that there is a quarterly delay between the plugins being updated to the latest versions. Once a plugin is installed you can set it to do latest updates instead of quarterly or like SickChill updates can be made from inside the installed plugin... I'm not sure how or if it's possible to tell the plugin to pull the latest version to install... Guess I gotta figure out how to manually create and install a jail/plugin! Thanks for the updates

Install
Error: Jail: SickChill has a missing configuration, please check that the dataset is mounted.

@fireph do you know how to use the json to create jails?

For me the issue with the plugin is that

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

is not updated since I am running FreeNAS 11.3-U4.1 Stable

See: https://www.ixsystems.com/documentation/freenas/11.3-U4/plugins.html#test-a-plugin

Plugin pull requests are merged into the master branch of the iocage-plugin-index repository. These plugins are not available in the web interface until they are tested and added to a RELEASE branch of the repository. It is possible to test an in-development plugin by using this iocage command: iocage fetch -P --name PLUGIN IPADDRESS_PROPS --branch 'master'

As an exta question, is there a reason that the plugin doesn't install Sickchill using pip? Now that the updater has been removed in Sickchill, there is no way to update in the plugin other than manually downloading the github master.zip and extracting it.

@fireph the updater has not been removed. Pip installs are better, but do not update themselves from inside SC, git and source installs still do.

Also, I would have targetted the 11.3 release but it does not have the required python packages available.

@miigotu Ah I see the problem now. I have sickchill setup without pip in my FreeNAS jail, but I am using a config.ini/sickchill.db backup which at one point was running inside a pip sickchill install. It seems that it is permanently stuck thinking it is a pip install rather than a git/source install. Any way to force sickchill to recheck what kind of install it currently is (or maybe the install type check has a bug or something)?

Stop the service and change git_branch to master in the ini

@miigotu It seems to revert back to "branch = pip" when the service is started. :(

So I figured out how to pull an install into a plugin from the master branch:

" iocage fetch -P sickchill -g https://github.com/ix-plugin-hub/iocage-plugin-index --branch 'master' "

and everything goes smoothly but it keeps aborting at the end saying this:

/usr/local/bin/python3: can't open file '/usr/local/sickchill/SickChill.py': [Errno 2] No such file or directory
Starting sickchill.
/usr/local/etc/rc.d/sickchill: WARNING: failed to start sickchill
Last 10 lines:
Cloning into '/usr/local/app/sickchill'...
mkdir: /usr/local/etc/rc.d: File exists
/usr/local/bin/python3: can't open file '/usr/local/sickchill/SickChill.py': [Errno 2] No such file or directory
/usr/local/etc/rc.d/sickchill: WARNING: failed to start sickchill
SickChill had a failure
Exception: SystemExit Message: 1
Partial plugin destroyed

ya https://github.com/SickChill/SickChill/blob/master/contrib/runscripts/init.freebsd needs to be updated to point at the right install location.

this line:
: ${sickchill_dir:="/usr/local/sickchill"}

needs to be changed to this:
: ${sickchill_dir:="/usr/local/app/sickchill"}

SO IT'S NOT ME. Just when I thought I was finally wrapping my head around the shell that issue popped up and I was like WHAT DID I BREAK. Okay so just gotta wait for that or is there a way to change it for the install "manually?"

Done in the master branch, try again (can't do my normal release process my laptop is doing an upgrade to focal rn)

@fireph for the branch, you should pip uninstall sickchill if you aren't using the pip version.

Hmmmm, I did pip uninstall... I might have to recreate the jail entirely too make sure there are no sickchill pip remnants that are messing things up.

THANK YOU, IT WORKS!!!!

oof, even after recreating the jail and doing everything the same as the plugin, it still reverts the branch back to pip every time the service is started.

how does the branch detection work currently? maybe I can fix how the detection code works so that this doesn't happen for others.

And sets the install type here: https://github.com/SickChill/SickChill/blob/b9b47db27c9967dcc5f38155f71c61c02814ca08/sickchill/update_manager/runner.py#L212

Go to the help&info page and make sure you are editing the correct config.ini, and make sure sickchill is completely stopped before editing the config.ini

@miigotu Ah I figured it out.
sysconfig.get_paths().values() returns [ ... , "/usr/local" ] which means that the install location of the jail /usr/local/app/sickchill will result in it thinking that it is installed using pip.

maybe there is a better way to get the location of pip plugins in python and check if it is installed in that directory?

There likely is, but idk how right this second.

Was this page helpful?
0 / 5 - 0 ratings