-
Notifications
You must be signed in to change notification settings - Fork 859
Description
SkyPilot dry-run failed (ok if SkyPilot not installed): CloudError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /skypilot-org/skypilot-catalog/master/catalogs/v8/common/accelerators.csv (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))")
I am writing a script called automation.py to automate the process of searching for GPUs on various cloud GPU providers.
My code needs to access the GPU catalogs in GitHub. However, I keep running into the above SSL Error.
I have tried the following:
a) Assinging the path to our company certificates to an environment variable -> environ['REQUESTS_CA_BUNDLE'] = "/etc/ssl/certs/ca-certificates.crt"
b) ssl_context = ssl.create_default_context()
ssl_context.load_verify_locations(cafile='/etc/ssl/certs/ca-certificates.crt') -> creating an ssl_context object and setting the path to our company certifcates
c) export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt -> exporting environment variables with paths to our company certificates
I expected the connection to go through from the dev server to reach the Github Catalog and various cloud GPU providers such as RunPod, Vast.ai, etc. -> however, I keep running into the above error.
Please advise on how to resolve.