Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dvc 2.9.x installed from deb package throws pygit OpenSSL errors #7207

Closed
pmrowla opened this issue Dec 28, 2021 · 5 comments · Fixed by iterative/dvc-s3-repo#32
Closed

dvc 2.9.x installed from deb package throws pygit OpenSSL errors #7207

pmrowla opened this issue Dec 28, 2021 · 5 comments · Fixed by iterative/dvc-s3-repo#32
Assignees
Labels
bug Did we break something? research

Comments

@pmrowla
Copy link
Contributor

pmrowla commented Dec 28, 2021

Reported from multiple users in discord:
https://discord.com/channels/485586884165107732/485596304961962003/925036036411785238 (ubuntu 18.04, DVC 2.9.2)
https://discord.com/channels/485586884165107732/563406153334128681/925334641894912000 (ubuntu 20.04, DVC 2.9.3)

...
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod03_importers.py", line 476, in exec_module
  File "pygit2/__init__.py", line 230, in <module>
  File "pygit2/settings.py", line 55, in __init__
  File "pygit2/settings.py", line 61, in _initialize_tls_certificate_locations
  File "pygit2/settings.py", line 191, in set_ssl_cert_locations
_pygit2.GitError: OpenSSL error: failed to load certificates: error:00000000:lib(0):func(0):reason(0)

DVC installed via pip works as expected.

@pmrowla pmrowla added bug Did we break something? build research labels Dec 28, 2021
@pmrowla pmrowla changed the title dvc 2.9.x installed from deb package throws OpenSSL errors dvc 2.9.x installed from deb package throws pygit OpenSSL errors Dec 28, 2021
@efiop
Copy link
Contributor

efiop commented Jan 6, 2022

@pmrowla pmrowla added this to DVC Jan 11, 2022
@pmrowla pmrowla moved this to Backlog in DVC Jan 11, 2022
@pmrowla pmrowla moved this from Backlog to Todo in DVC Jan 11, 2022
@efiop
Copy link
Contributor

efiop commented Jan 11, 2022

Note that actual building with signing is happening in https://github.com/iterative/dvc-s3-repo

@dtrifiro dtrifiro moved this from Todo to In Progress in DVC Jan 12, 2022
@DavidGOrtega
Copy link

Note that actual building with signing is happening in https://github.com/iterative/dvc-s3-repo

Sorry @efiop what do you mean? Would be that OK?

@dtrifiro
Copy link
Contributor

@DavidGOrtega the github workflow in dvc-s3-repo is actually responsible for building/signing the deb/rpm packages and uploading them to s3

@dtrifiro
Copy link
Contributor

dtrifiro commented Jan 13, 2022

Will be fixed with next release (see https://github.com/iterative/dvc-s3-repo/pulls/7207 )

A workaround for existing installations is to copy (or symlink) an existing ca cert bundle to /etc/pki/tls/ for example:

sudo mkdir -p /etc/pki/tls 
sudo ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/cert.pem

@dtrifiro dtrifiro moved this from In Progress to Review In Progress in DVC Jan 13, 2022
Repository owner moved this from Review In Progress to Done in DVC Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Did we break something? research
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants