WIP 64bit - scraper, repo, addons - CCurlFile::FillBuffer - Failed: SSL connect error(35)
#1
I did already create a Ticket at Trac: https://trac.kodi.tv/ticket/17650 because I was not sure which system do you like more.

Hello Kodi Team,

I do get a known SSL error on a new Windows 10 Installation. But I did not find a solution for this problem. Is it maybe related to the build? I am not sure. You will find requests which did work as well. The problem is related to some Servers. For example if I repeat addon installation I will connect to working Servers.
For me it looks like a cipher problem, but I can't check it because I don't know how to reproduce it outside of Kodi
Curl over Powershell just works fine with the reported URLs.
But it looks like that you ship your own libcurl.dll

Something about my system:
Windows 10 v1709 x64
Kodi 18.0-ALPHA1 GIT:20171112-5670086 x64

Here start and end of my test:
https://pastebin.com/ddVfBS21

And here a grep of curl lines:
https://pastebin.com/CytbWC7R

Kind Regards
Falco
Reply
#2
Here are an excerpt of the SSL Connections to get an better overview of servers which are compatible with kodi curl calls and servers which are not compatible with kodi curl calls.
The Error log is written before the debug url line.

https://pastebin.com/raw/JUpP35eg

Do you need more data?
Reply
#3
I did extract all the requested Servers from the log and did create a ssl report for each of them to make it possible to compare ssl error servers with working servers to find the curl incompatibility.

Here are some SSL information about the working and not working servers:

https://www.ssllabs.com/ssltest/analyze....acc.umu.se
https://www.ssllabs.com/ssltest/analyze....-aachen.de
https://www.ssllabs.com/ssltest/analyze....1.nluug.nl
https://www.ssllabs.com/ssltest/analyze....2.nluug.nl
https://www.ssllabs.com/ssltest/analyze....github.com
https://www.ssllabs.com/ssltest/analyze....triple.com
https://www.ssllabs.com/ssltest/analyze....aseweb.net
https://www.ssllabs.com/ssltest/analyze....aseweb.net
https://www.ssllabs.com/ssltest/analyze....nceton.edu
https://www.ssllabs.com/ssltest/analyze....cologne.de
https://www.ssllabs.com/ssltest/analyze....aseweb.net
https://www.ssllabs.com/ssltest/analyze....or.umd.edu
https://www.ssllabs.com/ssltest/analyze....aseweb.net
https://www.ssllabs.com/ssltest/analyze.....zetup.net
https://www.ssllabs.com/ssltest/analyze....dotsrc.org
https://www.ssllabs.com/ssltest/analyze....rors.up.pt
https://www.ssllabs.com/ssltest/analyze....ontent.com

All non working servers does work fine with Powershell CURL, but fail with kodi curl calls. Because other people don't report this problem I would guess I have multiple curl libs on my system and don't know which one is used by kodi.
Reply
#4
These ones don't work with kodi curl, they just work over powershell curl
https://www.ssllabs.com/ssltest/analyze....acc.umu.se
https://www.ssllabs.com/ssltest/analyze....cologne.de
https://www.ssllabs.com/ssltest/analyze....dotsrc.org
https://www.ssllabs.com/ssltest/analyze....github.com
https://www.ssllabs.com/ssltest/analyze....ontent.com

And these ones do Work
https://www.ssllabs.com/ssltest/analyze....-aachen.de
https://www.ssllabs.com/ssltest/analyze....1.nluug.nl
https://www.ssllabs.com/ssltest/analyze....2.nluug.nl
https://www.ssllabs.com/ssltest/analyze....triple.com
https://www.ssllabs.com/ssltest/analyze....aseweb.net
https://www.ssllabs.com/ssltest/analyze....aseweb.net
https://www.ssllabs.com/ssltest/analyze....nceton.edu
https://www.ssllabs.com/ssltest/analyze....aseweb.net
https://www.ssllabs.com/ssltest/analyze....or.umd.edu
https://www.ssllabs.com/ssltest/analyze....aseweb.net
https://www.ssllabs.com/ssltest/analyze.....zetup.net
https://www.ssllabs.com/ssltest/analyze....rors.up.pt
Reply
#5
This Issue is only related to the 64Bit Version. 32Bit does work fine.
I did analyse the DLLs with the following result:
Kodi x64 does use 32bit curllib and 32bit openssl libs. 
The installer did include a Microsoft c++ library package for 64bit.
I did manually add a library installation of the 32bit package. But this does not help. Then I try to replace the 32bit curllib and the 2 openssl dlls to check a more recent version. But this was not possible because Kodi can’t load the replaced 32bit dlls.

Latest bug confirmed kodi version: KodiSetup-20171119-67fd70f-master-x64.exe
Reply
#6
I'm having the same problems. many addons and scrappers aren't working anymore and the log contains the exact same SSL errors.
KodiSetup-20171119-67fd70f-master-x64
Reply
#7
I think I have found a fix.
I've replaced the libcurl.dll v7.52.1.0 in the C:\Program Files\Kodi folder with v7.56.1.0 from the link below

https://curl.haxx.se/download.html
Win64 - Generic, Win64 ia64 CAB
Reply
#8
@oomek,

Can you confirm that has definitely fixed your issue.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#9
Yes. all my TV Shows have just finished scrapping and all my video addons are working. Seems like a packaging error after all.
Reply
#10
(2017-11-21, 16:02)Falco_ Wrote: Kodi x64 does use 32bit curllib and 32bit openssl libs. 

It's just not possible at all. a x64 app is unable to load 32-bit dlls and vise versa. Seems issue is related to how libcurl compiled for x64 (I mean issue somewhere inside of used patches)
Reply
#11
Can you try with this dll https://drive.google.com/open?id=1ZxnAUu...PRjtcMJf84
Reply
#12
(2017-11-22, 08:12)afedchin Wrote:
(2017-11-21, 16:02)Falco_ Wrote: Kodi x64 does use 32bit curllib and 32bit openssl libs. 

It's just not possible at all. a x64 app is unable to load 32-bit dlls and vise versa. Seems issue is related to how libcurl compiled for x64 (I mean issue somewhere inside of used patches)    
 Are you sure?
Kodi x64 does at least use openssl 32bit, or the x64 dlls got renamed to 32

https://pastebin.com/raw/JMf7TfDx

And what did you upload to your google drive? I did request a download permission.

Edit:
Your Upload is the same Version but a different Build (build 1 day later) I will check it tomorrow.
Reply
#13
(2017-11-22, 08:46)afedchin Wrote: Can you try with this dll https://drive.google.com/open?id=1ZxnAUu...PRjtcMJf84
No, this does not Work.

https://pastebin.com/raw/0Bx0FJvH

By the way, you did upload the same libcurl.dll like KodiSetup-20171122-28a83487af-master-x64
Reply
#14
(2017-11-22, 03:16)oomek Wrote: I think I have found a fix.
I've replaced the libcurl.dll v7.52.1.0 in the C:\Program Files\Kodi folder with v7.56.1.0 from the link below

https://curl.haxx.se/download.html
Win64 - Generic, Win64 ia64 CAB
 
(2017-11-22, 03:17)Karellen Wrote: @oomek,

Can you confirm that has definitely fixed your issue.
 I can confirm that
https://skanthak.homepage.t-online.de/do...7.56.1.cab (Mirror from curl.haxx.se)
Win64 - Generic, Win64 ia64 CAB
LIBCURL.DLL extracted from curl-7.56.1.cab/AMD64/LIBCURL.DLL does work well. You could commit it if 2 confimations are enoght and if the version is approveable.

Edit:
@Rechi already did it:
https://github.com/xbmc/xbmc/commit/451c...959736475c
Reply
#15
(2017-11-24, 00:19)Falco_ Wrote: @Rechi already did it:
https://github.com/xbmc/xbmc/commit/451c...959736475c

This isn't a windows change only.
Reply

Logout Mark Read Team Forum Stats Members Help
64bit - scraper, repo, addons - CCurlFile::FillBuffer - Failed: SSL connect error(35)0