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

Latest image fails to run borg due to missing libcrypto.so.1.1 #184

Closed
hugalafutro opened this issue Dec 1, 2022 · 2 comments
Closed

Latest image fails to run borg due to missing libcrypto.so.1.1 #184

hugalafutro opened this issue Dec 1, 2022 · 2 comments

Comments

@hugalafutro
Copy link

Hi,
the latest image from 13h ago fails to run with following error:

borgmatic_vm-docker  | borgmatic 1.7.5
borgmatic_vm-docker  |
borgmatic_vm-docker  | apprise 1.2.0
borgmatic_vm-docker  | crond: crond (busybox 1.35.0) started, log level 8
borgmatic_vm-docker  | crond: USER root pid  14 cmd PATH=$PATH:/usr/local/bin /usr/local/bin/borgmatic --stats -v 0 2>&1
borgmatic_vm-docker  | Traceback (most recent call last):
borgmatic_vm-docker  |   File "/usr/local/lib/python3.10/site-packages/borg/archiver.py", line 38, in <module>
borgmatic_vm-docker  |     from . import helpers
borgmatic_vm-docker  |   File "/usr/local/lib/python3.10/site-packages/borg/helpers/__init__.py", line 9, in <module>
borgmatic_vm-docker  |     from .checks import *  # NOQA
borgmatic_vm-docker  |   File "/usr/local/lib/python3.10/site-packages/borg/helpers/checks.py", line 4, in <module>
borgmatic_vm-docker  |     from .errors import Error
borgmatic_vm-docker  |   File "/usr/local/lib/python3.10/site-packages/borg/helpers/errors.py", line 3, in <module>
borgmatic_vm-docker  |     import borg.crypto.low_level
borgmatic_vm-docker  | ImportError: Error loading shared library libcrypto.so.1.1: No such file or directory (needed by /usr/local/lib/python3.10/site-packages/borg/crypto/low_level.cpython-310-x86_64-linux-gnu.so)
borgmatic_vm-docker  | /etc/borgmatic.d/config.yaml: Error getting local Borg version
borgmatic_vm-docker  | Command '('borg', '--version')' returned non-zero exit status 2.
borgmatic_vm-docker  | /etc/borgmatic.d/config.yaml: Error running configuration file
borgmatic_vm-docker  |
borgmatic_vm-docker  | summary:
borgmatic_vm-docker  | /etc/borgmatic.d/config.yaml: Error running configuration file
borgmatic_vm-docker  | /etc/borgmatic.d/config.yaml: Error getting local Borg version
borgmatic_vm-docker  | Command '('borg', '--version')' returned non-zero exit status 2.
borgmatic_vm-docker  |

tested on ubuntu vm, rpi3 and rpi4 with same result.

DBendit added a commit to DBendit/docker-borgmatic that referenced this issue Dec 1, 2022
Alpine 3.16's included OpenSSL package was 1.1.1. Alpine 3.17 updated it to 3.0.7, which is incompatible with borgbackup. This updates the Dockerfile to pull in the correct library version to avoid this incompatibility.

This resolves borgmatic-collective#180 and borgmatic-collective#184.
@hugalafutro
Copy link
Author

as a workaround you can run apk add libcrypto1.1 inside the container to fix

@grantbevis
Copy link
Collaborator

The patch provided by @DBendit has just been merged. a new :latest image will be available shortly. Thanks @DBendit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants