-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having a hash symbol in sickchill password is causing post processing to fail. #1765
Comments
yeah a Also, I recommend setting up the sickchill api and using that, not the user/pass. This works better for auto-fork as well. |
Thanks. I was advised to leave the API blank as there is a recent issue causing a crash during post processing - is this now resolved? |
ok, who advised? I was not aware of this issue (certainly I have not experienced it). |
Sorry - I hope I'm not getting anyone in trouble here - OneCD said it was a very recent issue so leave it blank temporarily. https://forum.qnap.com/viewtopic.php?f=320&t=132373&start=1815 |
nah... not getting anyone in trouble at all... it's good when we can all share our findings/isues and try to get everything playing nice. looks like OneCD was suggesting that the api interface causes a crash in SABnzbd postprocessing. @OneCDOnly |
Thanks so much for being really prompt and responsive. Appreciate your help. Good luck with the API issue (if it is actually your issue to begin with!) |
@clinton-hall sorry, I don't know a lot about this. It only happens when running the new SickChill (rewritten for Python 3), so it may be a SickChill error. @miigotu is hard-at-work re-tooling SickChill to work correctly in Python 3. The error appears in the SABnzbd -> nzbToMedia logs as a crash. @niwa2 posted about this problem and their solution here. Frankly, I didn't know where this issue should be reported. 🤔 Here's an example:
|
Just had a thought: can nzbToMedia still detect SickChill after all the recent changes? Most of these are now in the develop branch. |
Ah, I hadn't realised this was referencing the Py3 SickChill branch. I believe this has been raised already #1759 It does appear that (at that time) SickChill was not able to parse json data due to byte vs string issues (and I think everyone who has ported something from py2 to py3 has encountered this). So currently nzbToMedia cannot detect SickChill (py3) using autofork. I'll see if I have time this weekend (heck, we may be back in lockdown) to try and set up SickChill Py3 and do some testing. |
It would be great to have autofork working but if not, is it possible to prevent this problem by setting a manual fork?
Yes, that should work fine. But, I get the same effect on my Debian 10.5 server running SickChill (develop). So, it's not really a QNAP issue. 😉 |
Sorry, Realised it wasn't a QNAp issue, but I have the following options
So I figured QNAP would be the easiest way to go. |
BTW: what is the firmware version on your QNAP? |
@clinton-hall If someone can get me a traceback I can fix whatever it is. |
so it looks like the incoming api call I pasted the url into the browser to test and get the same error logged in the browser
|
I can cast that to the right type, but I'm confused why it works with a blank fork set? |
When you specify a fork in nzbToMedia, we just pass in all of the parameters that are defined for that fork. So we skip this step (autofork) where we actually hit the postprocess help page to get a list of possible parameters. Then, when we actually call the postprocess command we pass all the params as a dictionary through the requests session... so it is possible that params are being correctly detected when passed as a dict, but when passed directly through the url these are causing issues. Potentially, at this end, I could pass However I would have expected to be able to hit the help page via url locally anyway, so possibly worth investigating that. |
Yeah when I responded earlier I thought that was the postprocess command (which works). I will check the help command shortly. |
… nzbToMedia to fail. Fixes clinton-hall/nzbToMedia#1765 (comment) Signed-off-by: miigotu <miigotu@gmail.com>
tornado web server for some reason explicity makes all arguments into bytes for some reason smh. |
… nzbToMedia to fail. Fixes clinton-hall/nzbToMedia#1765 (comment) Signed-off-by: miigotu <miigotu@gmail.com>
Also, yes a dict as params will work. I could expose it for post if you want also, but for now it's only GET |
I just added the params as dict to nightly.... Can't say for sure if that really did much... but between that, and having updated SickChill to latest, the auto-fork worked.
@captainhowie |
For what it is worth... I have switched my Asustor NAS over to running SickChill develop and everything appears to be working (in terms of hand-shaking between Apps). @miigotu I have submitted this SickChill App to Asustor App Center. It currently does a git clone and if 'SickChill.py' doesn't exist it checks out the develop branch before launching. Behind the scenes it use venv to install all requirements into a separate environment to prevent contamination with other Apps. |
I'm just looking at doing the same thing with the sherpa apps. 🤓 |
It is available on pypi now, and python3 comes with pip. I'm working on a pip updater in the app. Pip will be a better way than git because of git not tracking folders and people will get compiled requirements specifically for their device. I currently patch sys.path if it is not installed in site-packages or user-site, but we really want to avoid the bundled libs if possible. |
Wow, I just tried the |
I'll have a play and see if I can package it to install via pip (as I already do for the requirements). With the App I created, the one thing that didn't appear to work was the updater from within SickChill. But the App was always set up to update on each restart anyway... This new App is much cleaner than the previous versions. And by going to pip I think this will really be quite clean... @OneCDOnly - I'll try and send through the code I am using to set these up (so far I have used this methodology for SABnzbd and SickChill)... given that the Apps I maintain for Asustor used the same methodology as the Apps I maintained for QNAP, it may be interesting to compare. FWIW, the pip method in Python3 (in my opinion) is so much nicer than having to try and export lib paths for Optware/Entware or having to cross compile for every architecture and bundle!!! |
Definitely! The way of the future! 😄 I think this is how I'll rejig the QPKGs moving-forward. Just need to ensure Python3 is there (via Entware because QNAP's version is awful), then install everything via |
You don't need to worry about requirements, they come with pip install sickchill (I still recommend a venv or Virtualenv though). Idk if asustor or qnap has a $HOME set, but default config/db path is also now $HOME/sickchill |
In QNAP, everything runs as 'admin' (root user). Unfortunately, the home for admin is /root which is a tmpfs (non-persistent) and is quite small. Even have to be careful with That's OK, the reason QPKGs exist is to construct an environment around the needs of the app. More work for me to do. 😆 |
so 2 things my App does...
|
Yes, by default the code above will execute as What I haven't shown there, as more specific to the start-stop daemon in Asustor, is I set all to run as admin user (not root)
Note, the original package path is also |
Can we please make the app folder and data folder "sickchill", I have renamed every reference to sickrage/tvrage and even SickBeard is being refactored into the sickchill package. This also avoids future conflicts, because my db is going to be changing a lot soon. |
Totally recommend everyone installing a new package. Maybe give an update to the old package that does it for them or directs them to do it. Literally every git user is going to have to do something manual to be able to use the python3 branch (by design) |
Sorry for the late reply to all of this. Thanks for resolving the issue although I have no idea which branch to install (or how to change branches). Any hints welcome. |
@captainhowie your question was answered in the second post. Put quotes around it. |
Thanks @miigotu Perhaps I should have been clearer - the discussion has proceeded much further beyond the initial query onto the error in relation to the API link and @clinton-hall suggested I change nzbmedia to a different branch. Thanks |
@miigotu to save you trawling through the history |
@clinton-hall I see sickchill is missing from your wiki xD |
@miigotu I will ensure SickChill has a dedicated section on here. |
@clinton-hall SickChill is gonna need its own section on the wiki soon lol |
I have added SickChill to the home page, and linked that directly to the nzbToMedia config details on your wiki. I also sorted all (known) supported TV management systems in Alphabetical order (to try and avoid any issues there)... I don't expect this page to be a "sales" point. I have tried to keep neutral in most of this, and simply link to the projects that are supported. On that. I do suspect that SickChill and a few other projects will soon become quite far removed from Thinking about it, I could use the current auto-fork detection to write all config over to a specific SickChill (or other) section etc... But the problem I still face is with the config imported from NZBget. I could just introduce the new config details, and continue to run on the previous config until such time and new values were sent through from NZBget.... It's just going to take some time and testing (multiple branches, some of which I don't have set up!). |
@miigotu Yes... this would justify having your own section.... I recall when the conversation existed about adding TV series to CouchPotato.... Alas, I will be sad to stop using my CouchPotato, as I did contribute a lot of time to supporting that project.... but I will be keen to test SickChill on my movie collection 👍 |
Thanks @miigotu I get this error when trying to run the checkout nightly? [/share/.qpkg/nzbToMedia/nzbToMedia] # git checkout nightly |
@OneCDOnly |
@captainhowie I imagine first you need to |
@clinton-hall
... then the package would need to be cleaned:
|
Hi There
I have recently upgraded to Python3 and am using sabnzbd and sickchill on a QNAP NAS. I was having some trouble setting up the post processing and have discovered that the issue is with the fact that my password has a # at the end of it and this often is removed from the autoProcessMedia.cfg file after saving and running it.
Is there a restriction on the use of the # symbol in passwords for the purposes of the .cfg script and if not, is there some sort of parenthesis required to indicate that it is part of the password and not a comment.
Thanks
Andrew
The text was updated successfully, but these errors were encountered: