Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 06:35 PM   #1
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,049
Karma: 13579113
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
SSL errors when downloading metadata

For a while now metedata download is very spotty, an looking at the logs I see loads of there errors:

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

A bit of googling tells me that has something to do with the Python certificate store missing certain certs or certs being invalid, but all of the solutions assume I'm running a full Python, which in the case of Calibre I'm obviously not.

Anyone having an idea about how to to fix this?
mbovenka is offline   Reply With Quote
Old Yesterday, 10:39 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,387
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Assuming you are on windows visit the site in question using the edge browser to get the certificates installed.
kovidgoyal is offline   Reply With Quote
Advert
Old Today, 01:58 AM   #3
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,049
Karma: 13579113
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Thanks, Kovid. I'm on Windows, yes. I should have mentioned that, sorry. I visited my metadata sources (BOL NL, Amazon.com, Fantastic Fiction & Goodreads) with Edge. and restarted calibre afterwards. BOL & Amazon work, but both Goodreads & Fantastic Fiction still give me the following error:

Spoiler:
****************************** Fantastic Fiction (1, 7, 1) ******************************
Found 0 results
Downloading from Fantastic Fiction took 0.33136820793151855
FantasticFiction url: 'https://www.fantasticfiction.com/a/avery-aames/to-brie-or-not-to-brie.htm'
Failed to make details query: 'https://www.fantasticfiction.com/a/avery-aames/to-brie-or-not-to-brie.htm'
Traceback (most recent call last):
File "mechanize\_urllib2_fork.py", line 1236, in do_open
File "http\client.py", line 1286, in request
File "http\client.py", line 1332, in _send_request
File "http\client.py", line 1281, in endheaders
File "http\client.py", line 1041, in _send_output
File "http\client.py", line 979, in send
File "http\client.py", line 1458, in connect
File "ssl.py", line 517, in wrap_socket
File "ssl.py", line 1108, in _create
File "ssl.py", line 1379, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre_plugins.fantastic_fiction.worker", line 42, in get_details
File "mechanize\_mechanize.py", line 241, in open_novisit
File "mechanize\_mechanize.py", line 287, in _mech_open
File "mechanize\_opener.py", line 193, in open
File "mechanize\_urllib2_fork.py", line 425, in _open
File "mechanize\_urllib2_fork.py", line 414, in _call_chain
File "calibre\utils\browser.py", line 29, in https_open
File "mechanize\_urllib2_fork.py", line 1240, in do_open
urllib.error.URLError:

************************************************** ******************************
mbovenka is offline   Reply With Quote
Old Today, 02:29 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,387
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Goodreads is having issues see the goodreads plugin thread about it. No clue about bol.nl. You can bypass the windows certificate store by setting the SSL_CERT_FILE env var to point to the mozilla-ca-certs.pem from the calibre installation folder. This will cause OpenSSL and hence python to use certificates from that file (which is the set of certificates Firefox uses) instead of the OS cerificate store.

Last edited by kovidgoyal; Today at 05:19 AM.
kovidgoyal is offline   Reply With Quote
Old Today, 03:31 AM   #5
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,049
Karma: 13579113
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Curiouser and curiouser... I set the variable (I'm seeing it set in both CMD and the GUI) but I'm still getting the same error for Goodreads and Fantastic Fiction. I'm using Portable, if it matters.
mbovenka is offline   Reply With Quote
Advert
Old Today, 03:45 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,387
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Works for me with

Code:
SSL_CERT_FILE=C:/Program\ Files/Calibre2/app/resources/mozilla-ca-certs.pem calibre-debug -c "from calibre import browser; br = browser(); print(br.open('https://goodreads.com').geturl())"
kovidgoyal is offline   Reply With Quote
Old Today, 03:47 AM   #7
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,186
Karma: 6426810
Join Date: Sep 2020
Device: Calibre E-book viewer
For what it may be worth, I did some searching and found a bunch of recent reports of the same SSL error 1006 over on the web:

https://learn.microsoft.com/en-us/an...1-got-sslerror

https://issuetracker.google.com/issues/369237337

https://issuetracker.google.com/issues/355359279

https://www.reddit.com/r/Calibre/com...n_not_working/

Also, not sure if related:

https://www.ibm.com/support/pages/se...e-2024-37891-0

https://exchange.xforce.ibmcloud.com...ilities/295053
Comfy.n is offline   Reply With Quote
Old Today, 05:00 AM   #8
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,049
Karma: 13579113
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by kovidgoyal View Post
Works for me with

Code:
SSL_CERT_FILE=C:/Program\ Files/Calibre2/app/resources/mozilla-ca-certs.pem calibre-debug -c "from calibre import browser; br = browser(); print(br.open('https://goodreads.com').geturl())"
Ah, ' CERT', not ' CERTIFICATE'. Yep, it works now. Thanks!
mbovenka is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL issues with metadata download Ybother Library Management 6 08-16-2023 01:41 AM
SSL error when downloading cover njpig Recipes 2 10-18-2021 05:09 AM
Erratic errors downloading metadata DNSB Library Management 4 10-01-2020 12:02 AM
Metadata priority when re-downloading metadata truth1ness Library Management 20 04-12-2015 01:02 PM
Errors when getting metadata erfjr Library Management 2 03-07-2013 03:27 AM


All times are GMT -4. The time now is 08:14 AM.


MobileRead.com is a privately owned, operated and funded community.