Skip to content
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

urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate chain too long #31

Open
acomick opened this issue May 13, 2020 · 0 comments

Comments

@acomick
Copy link

acomick commented May 13, 2020

Hello,

First of all, great tool, thank you! The extractor seems to be working great: Unfortunately, however, I haven't had any luck getting the cleanup script to work in Sonarr. I get the following error in the logs after running the cleanup, any ideas?

05/12/2020 19:25:11 - INFO - [downloadname*] Starting lcextractor_cleanup in mode: sonarr

05/12/2020 19:25:12 - ERROR - [[downloadname*] Error in web request for download: db86e2b2a86496811b16fffe87e3c1af721**** downloadname*

05/12/2020 19:25:12 - ERROR - [[downloadname*] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate chain too long (_ssl.c:1108)>

OS Name: Microsoft Windows Server 2016 Standard
OS Version: 10.0.14393 N/A Build 14393
Deluge Version: deluge-1.3.15-py2.7
Sonarr Version: 2.0.0.5344
Python Version: 3.8.3rc1
Deluge Web: SSL, Port 443, certificate signed by internal CA (root, then client cert)

Sonarr has the path configured to point to the python.exe binary, and the argument points to the script. Deluge downloads the files, moves them all the a NAS. The LCExtractor plugin then extracts the file. Sonarr successfully copies the extraced file to my media directory folder, and then calls the script. The script then spits out the SSL error. I have tried both a https URL with not port designation in the configuration, as well as with a :443, both do not seem to work. The deluge web certificate algo is Sha256RSA.

# arguments set by user deluge_url = 'https://deluge.*****.net/json' deluge_password = '******' move_extraced_to = None # set this if you want to move files instead of delete (set to None for delete)

LCExtractor setting in Deluge:
Extract to: blank
[x]Enable Support for Sonarr and radarr
[x]Extract In Place
[] Create torrent name subfolder

*EDIT
Note that this error only occurs sometimes. Sometimes, it seems to delete the file jsut fine, from the same location. its very strange, Im not sure why sometimes it throws this error, and sometimes it doesn't.

05/13/2020 13:41:28 - INFO - [****] Starting lcextractor_cleanup in mode: sonarr

05/13/2020 13:41:31 - INFO - [] Deleted: \nas..net\nas\Downloads\sonarr**.mkv

05/13/2020 14:24:58 - INFO - [****] Starting lcextractor_cleanup in mode: sonarr

05/13/2020 14:24:59 - ERROR - [****] Error in web request for download: 15ab070c7b93872480604285887ab891b4baa4b9 ****

05/13/2020 14:24:59 - ERROR - [****] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate chain too long (_ssl.c:1108)>

05/13/2020 14:36:59 - INFO - [****] Starting lcextractor_cleanup in mode: sonarr

05/13/2020 14:37:02 - INFO - [] Deleted: \nas..net\nas\Downloads\sonarr**.mkv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant