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

do-backup action not working #23

Closed
zxhdaze opened this issue Apr 25, 2024 · 5 comments
Closed

do-backup action not working #23

zxhdaze opened this issue Apr 25, 2024 · 5 comments

Comments

@zxhdaze
Copy link
Contributor

zxhdaze commented Apr 25, 2024

Tried to install juju-backup-all charm on bionic from stable channel version 27 and 28. Installation failed with:

unit-juju-backup-all-0: 23:21:12 WARNING unit.juju-backup-all/0.install from cryptography.hazmat.primitives.asymmetric import (
unit-juju-backup-all-0: 23:21:12 WARNING unit.juju-backup-all/0.install File "/var/lib/juju/agents/unit-juju-backup-all-0/charm/venv/cryptography/hazmat/primitives/asymmetric/utils.py", line 6, in
unit-juju-backup-all-0: 23:21:12 WARNING unit.juju-backup-all/0.install from cryptography.hazmat.bindings._rust import asn1
unit-juju-backup-all-0: 23:21:12 WARNING unit.juju-backup-all/0.install ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /var/lib/juju/agents/unit-juju-backup-all-0/charm/venv/cryptography/hazmat/bindings/_rust.abi3.so)
unit-juju-backup-all-0: 23:21:13 ERROR juju.worker.uniter.operation hook "install" (via hook dispatching script: dispatch) failed: exit status 1

Then, tried to install from edge channel (version 33). Installation succeeded but when running 'do-backup' action, it's stuck ( I have waited more than 1 hour). The juju deployment is small, it just has a single machine and single application. Nothing output in juju log. No backup files generated in /opt/backups/


Imported from Launchpad using lp2gh.

@zxhdaze
Copy link
Contributor Author

zxhdaze commented Apr 25, 2024

(by lihuiguo)
install hook worked on focal but do-backup action also stuck

@zxhdaze
Copy link
Contributor Author

zxhdaze commented Apr 25, 2024

(by sudeephb)
This comes from juju-backup-all as trying to backup using the snap also gets stuck.

@zxhdaze
Copy link
Contributor Author

zxhdaze commented Apr 25, 2024

@zxhdaze
Copy link
Contributor Author

zxhdaze commented Apr 25, 2024

(by jneo8)
Not very sure the reason. But the juju version in /var/lib/juju/agents/unit-juju-backup-all-2/charm/venv is newest version instead of 2.9.9.

And the stuck reason is because of the python-libjuju 0 is being deprecated. It's used in juju-backup-all snap when connect to controller 1 . Also the behavior is different in newest version.


@zxhdaze
Copy link
Contributor Author

zxhdaze commented Apr 25, 2024

(by jneo8)
Update:

The reason it stuck is not just because of the rpe schema version. Also jasyncio.run function provided by python-libjuju.

Details here: juju/python-libjuju#763

@zxhdaze zxhdaze closed this as completed Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant