SSL certificate verify failed: unable to get local issuer certificate
See original GitHub issueI have below given dvc
version installed on my ubuntu-18.04-LTS
system and trying to download the data
files from github using dvc, but it fails with below error.
$ dvc --version
2.13.0
$ dvc get https://github.com/iterative/dataset-registry get-started/data.xml -o data/data.xml -v
2022-07-22 12:55:22,260 DEBUG: Creating external repo https://github.com/iterative/dataset-registry@None
2022-07-22 12:55:22,260 DEBUG: erepo: git clone 'https://github.com/iterative/dataset-registry' to a temporary dir
2022-07-22 12:55:23,683 DEBUG: Removing '/dvc/dvc_test/data/.UEeAzwmJCY3q85YQuCeahx'
2022-07-22 12:55:23,684 ERROR: failed to get 'get-started/data.xml' from 'https://github.com/iterative/dataset-registry' - Failed to clone repo 'https://github.com/iterative/dataset-registry' to '/tmp/tmpvmrmu9qsdvc-clone'
------------------------------------------------------------
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 703, in urlopen
File "urllib3/connectionpool.py", line 386, in _make_request
File "urllib3/connectionpool.py", line 1042, in _validate_conn
File "urllib3/connection.py", line 414, in connect
File "urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
File "urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
File "ssl.py", line 500, in wrap_socket
File "ssl.py", line 1040, in _create
File "ssl.py", line 1309, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dvc/scm.py", line 145, in clone
File "scmrepo/git/__init__.py", line 143, in clone
File "scmrepo/git/backend/dulwich/__init__.py", line 199, in clone
scmrepo.exceptions.CloneError: Failed to clone repo 'https://github.com/iterative/dataset-registry' to '/tmp/tmpvmrmu9qsdvc-clone'
Already our corporate proxy certificate has been installed and traffic to github.com
allowed I’m able to clone above repository. But with dvc
the above errors are occurring, Even the below couldn’t solve the issue.
$ python -c "import ssl; print(ssl.get_default_verify_paths())"
DefaultVerifyPaths(cafile=None, capath='/usr/lib/ssl/certs', openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/usr/lib/ssl/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='/usr/lib/ssl/certs')
export SSL_CERT_DIR=/etc/ssl/certs/
export REQUESTS_CA_BUNDLE=/usr/local/lib/python2.7/dist-packages/certifi/cacert.pem
pip install --upgrade certifi
export PYTHONHTTPSVERIFY=0
sudo apt install ca-certificates
sudo update-ca-certificates --fresh
$ dvc config --local ssl_verify = false
ERROR: argument name: name argument should look like remote.name.option or section.option
Further what should i update to resolve this issue?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
certificate verify failed: unable to get local issuer certificate
But, I believe, this avoids checking SSL certificate. So I checked on the internet and found one solution: Run /Applications/Python\ 3.7/Install ...
Read more >Fix Unable to get Local Issuer Certificate Error - AboutSSL
The main reason for this error to occur is when you are using client SSL and you try to make a request of...
Read more >SSL cerfrificaion problem: 'unable to get local issuer certificate'
The unable to get local issuer certificate error is caused by the misconfiguration of the SSL certificate on your local machine. When pushing,...
Read more >[Solved] SSL Certificate Problem: Unable To Get Local Issuer ...
When you are using client SSL certificates and try to make a request to a secured HTTPS source, you need to share an...
Read more >SSL certificate problem: Unable to get local issuer certificate
The following is seen on the command line when pushing or pulling: SSL Certificate problem: unable to get local issuer. This error occurs...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dtrifiro i have installed using
pip
Cannot reproduce both installing from pip and from deb package on a fresh Ubuntu 18.04 install.
I’m assuming there’s something on your local setup that breaks python. For example, in your previous attempts, you used python2 instead of python3, as well as setting some env variables which are not relevant.
Closing for now. Feel free to reopen if you think this is relevant to dvc and not to your setup.