HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
19.57k stars 2.42k forks source link

SSLCertVerificationError #3200

Closed ioanachi closed 2 years ago

ioanachi commented 2 years ago

Hello,

I have a problem when trying to start label-studio.I installed it through pip and when I try to start it I get an error. I have OpenSSL installed for windows and certificates. Everything else works but label studio. What should I do?

Current platform is win32, apply sqlite fix Can't load sqlite3.dll from current directory => Database and media directory: C:\Users\ia\AppData\Local\label-studio\label-studio => Static URL is set to: /static/ => Database and media directory: C:\Users\ia\AppData\Local\label-studio\label-studio => Static URL is set to: /static/ Starting new HTTPS connection (1): pypi.org:443 https://pypi.org:443 "GET /pypi/label-studio/json HTTP/1.1" 200 52124 Performing system checks...

[2022-11-03 18:31:54,342] [django::register_actions_from_dir::97] [INFO] No module named 'data_manager.actions._pycache' [2022-11-03 18:31:54,342] [django::register_actions_from_dir::97] [INFO] No module named 'data_manager.actions._pycache' System check identified no issues (1 silenced). November 03, 2022 - 18:31:55 Django version 3.2.14, using settings 'label_studio.core.settings.label_studio' Starting development server at http://0.0.0.0:8080/ Quit the server with CTRL-BREAK. [2022-11-03 18:32:01,660] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0 [2022-11-03 18:32:01,660] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0 [2022-11-03 18:32:02,240] [django.server::log_message::161] [INFO] "GET /user/login/ HTTP/1.1" 200 2006 [2022-11-03 18:32:02,240] [django.server::log_message::161] [INFO] "GET /user/login/ HTTP/1.1" 200 2006 [2022-11-03 18:32:02,534] [django.server::log_message::161] [INFO] "GET /static/css/login.b79a5e51b1bf.css HTTP/1.1" 200 2319 [2022-11-03 18:32:02,534] [django.server::log_message::161] [INFO] "GET /static/css/login.b79a5e51b1bf.css HTTP/1.1" 200 2319 [2022-11-03 18:32:02,535] [django.server::log_message::161] [INFO] "GET /static/css/main.de66392810e2.css HTTP/1.1" 200 15353 [2022-11-03 18:32:02,535] [django.server::log_message::161] [INFO] "GET /static/css/main.de66392810e2.css HTTP/1.1" 200 15353 [2022-11-03 18:32:02,536] [django.server::log_message::161] [INFO] "GET /react-app/main.css?v=b0df5d HTTP/1.1" 200 69094 [2022-11-03 18:32:02,536] [django.server::log_message::161] [INFO] "GET /react-app/main.css?v=b0df5d HTTP/1.1" 200 69094 [2022-11-03 18:32:03,166] [django.server::log_message::161] [INFO] "GET /static/images/opossum_hanging.2fa77848bd0c.svg HTTP/1.1" 200 131567 [2022-11-03 18:32:03,166] [django.server::log_message::161] [INFO] "GET /static/images/opossum_hanging.2fa77848bd0c.svg HTTP/1.1" 200 131567 [2022-11-03 18:33:01,730] [urllib3.connectionpool::urlopen::812] [WARNING] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /api/5820521/envelope/ [2022-11-03 18:33:01,775] [urllib3.connectionpool::urlopen::812] [WARNING] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /api/5820521/envelope/ [2022-11-03 18:33:01,821] [urllib3.connectionpool::urlopen::812] [WARNING] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /api/5820521/envelope/ [2022-11-04 09:33:51,945] [urllib3.connectionpool::urlopen::812] [WARNING] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /api/5820521/envelope/ Sentry is attempting to send 1 pending error messages Waiting up to 2 seconds Press Ctrl-Break to quit [2022-11-04 09:33:52,004] [urllib3.connectionpool::urlopen::812] [WARNING] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /api/5820521/envelope/ [2022-11-04 09:33:52,102] [urllib3.connectionpool::urlopen::812] [WARNING] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /api/5820521/envelope/ Error in atexit._run_exitfuncs:

Thank you!

boom109 commented 2 years ago

@ioanachi

has this issue been resolved? we have the same issue (SSLCertVerificationError /api/5820521/envelope/) and we are looking for a solution. if you know a solution, please share~

ioanachi commented 2 years ago

Hi @boom109,

I only managed to install OpenSSL through chocolatey: choco install openssl https://stackoverflow.com/questions/50625283/how-to-install-openssl-in-windows-10 Not sure why it didn't work by installing OpenSSL any other way.

Axeltherabbit commented 8 months ago

Tried the chocolatey solution but it did not work for me

Axeltherabbit commented 8 months ago

ah, I was missing psycopg2, solved by installing it: pip install psycopg2