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

bauerj ARM binary for 1.4.0: broken borg key export --qr-html #8353

Open
jjakob opened this issue Sep 4, 2024 · 6 comments
Open

bauerj ARM binary for 1.4.0: broken borg key export --qr-html #8353

jjakob opened this issue Sep 4, 2024 · 6 comments

Comments

@jjakob
Copy link

jjakob commented Sep 4, 2024

Have you checked borgbackup docs, FAQ, and open GitHub issues?

yes

Is this a BUG / ISSUE report or a QUESTION?

bug

System information. For client/server mode post info for both machines.

Your borg version (borg -V).

borg 1.4.0

Operating system (distribution) and version.

Platform: Linux pureos 6.6.0-1-librem5 #1 SMP PREEMPT Fri Jun 7 03:48:21 EDT 2024 aarch64
Linux: Unknown Linux
Borg: 1.4.0 Python: CPython 3.12.4 msgpack: 1.0.8 fuse: None [pyfuse3,llfuse]

pre-built binary for arm64 downloaded from https://borg.bauerj.eu/bin/borg-1.4.0-arm64

Hardware / network configuration, and filesystems used.

n/a

How much data is handled by borg?

n/a

Full borg commandline that lead to the problem (leave away excludes and passwords)

borg key export --qr-html [email protected]:~/borg borg_key_export.html

Describe the problem you're observing.

Local Exception
Traceback (most recent call last):
  File "borg/archiver.py", line 5391, in main
  File "borg/archiver.py", line 5309, in run
  File "borg/archiver.py", line 191, in wrapper
  File "borg/archiver.py", line 398, in do_key_export
  File "borg/crypto/keymanager.py", line 101, in export_qr
  File "pkgutil.py", line 453, in get_data
  File "PyInstaller/loader/pyimod02_importers.py", line 228, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIWu6lTQ/borg/paperkey.html'

Platform: Linux pureos 6.6.0-1-librem5 #1 SMP PREEMPT Fri Jun  7 03:48:21 EDT 2024 aarch64
Linux: Unknown Linux
Borg: 1.4.0  Python: CPython 3.12.4 msgpack: 1.0.8 fuse: None [pyfuse3,llfuse]
PID: 3541  CWD: /root
sys.argv: ['borg', 'key', 'export', '--qr-html', '[email protected]:~/borg', 'borg_key_export.html']
SSH_ORIGINAL_COMMAND: None

Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.

created a new repo with borg init, then tried exporting the key, both regular and --paper export worked, but --qr-html doesn't.

Include any warning/errors/backtraces from the system logs

nothing logged to syslog

@ThomasWaldmann
Copy link
Member

Oh, looks like the html template that should be included with borg is missing from the pyinstaller-made fat borg binary.

As a workaround you can use another export format for now, they should work, likely only the --qr-html format is broken.

@ThomasWaldmann ThomasWaldmann added this to the 1.4.1 milestone Sep 4, 2024
@jjakob
Copy link
Author

jjakob commented Sep 4, 2024

I already exported the key and don't need the html version, so that's good. I'm wondering if installing from a source checkout with pip (non-editable) have the same error?

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Sep 4, 2024

1.4.0 pypi.org package

And also: 1.4.0 .tar.gz download on github releases.

I installed these via pip into a venv and tested borg key export --qr-html key.html - it worked.

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Sep 4, 2024

1.4.0 macos fat binary from borgbackup gh releases

I downloaded that and tested borg key export --qr-html key.html - it worked.

@ThomasWaldmann
Copy link
Member

As I do not build the ARM binaries, it looks like you have to talk to bauerj about the binary he built.

The build process we use for our binaries can be seen in the Vagrantfile.

@ThomasWaldmann ThomasWaldmann removed this from the 1.4.1 milestone Sep 4, 2024
@ThomasWaldmann ThomasWaldmann changed the title FileNotFoundError when exporting key with --qr-html bauerj ARM binary for 1.4.0: broken borg key export --qr-html Sep 4, 2024
@ThomasWaldmann
Copy link
Member

I'll leave this open for a while, but will tag this as wontfix because that binary is not built by me.

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

2 participants