1. Problem phenomenon
Error reported by Ubuntu
machine or docker
container
Traceback (most recent call last):
File "main.py", line 200, in <module>
File "attribute_extract/extract_attribute.py", line 37, in __init__
File "attribute_extract/models.py", line 25, in __init__
File "torchvision/models/resnet.py", line 199, in resnet50
File "torch/hub.py", line 433, in load_state_dict_from_url
File "torch/hub.py", line 349, in _download_url_to_file
File "urllib/request.py", line 162, in urlopen
File "urllib/request.py", line 465, in open
File "urllib/request.py", line 483, in _open
File "urllib/request.py", line 443, in _call_chain
File "urllib/request.py", line 1286, in https_open
File "urllib/request.py", line 1245, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)>
2. Solutions
sudo apt-get update
sudo apt-get install ca-certificates
sudo update-ca-certificates --fresh
export SSL_CERT_DIR=/etc/ssl/certs
Read More:
- Repo init Error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- [Solved] Git Clone Error: error setting certificate verify locations
- [Solved] svn Error: E230001: Server SSL certificate verification failed: certificate issued
- Mac IDEA Connect SVN Error: E230001: Server SSL certificate verification failed: certificate issued
- SVN Error:svn: E230001: Server SSL certificate verification failed: certificate issued
- git submodule add Error: SSL certificate problem unable to get local issuer certificate
- [vite] http proxy error: Error: self signed certificate in certificate chain vite
- [Solved] Rancher Add User Error: x509: certificate has expired Internal error occurred: failed calling webhook “rancherauth.cattle.io”:
- How to Solve pod Error: “Authentication token is invalid or unverified. Either verify it with the email that…”
- [Solved] VMware Workstation Unrecoverable error: (vcpu-0) vcpu-0:VERIFY vmcore/vmm/main/cpui
- [Solved] Milvus Error: [ERROR][SERVER][TakeToEUse milvus.has_collection to verify whether the collection exists
- [Solved] Android HTTPS request resource or interface error: server certificate
- [Solved] Error response from daemon: Get “*“: x509: certificate signed by unknown authority
- Docker Pull Error: certificate signed by unknown authority
- [Solved] ngrok 1.7 Build Error: remote error: tls: bad certificate
- [Solved] Synergy Error: ERROR: ssl certificate doesn‘t exist
- How to Solve npm Error: unable to get local issuer certificate
- [Solved] Postman Error: SSL Error: Self signed certificate Disable SSL Verification
- [Solved] Nginx Certificate Fill Path Error: SSL: error:0200107B:system library:fopen:Unknown error:fopen
- Docker Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid