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

Not able to mount due to FUSE issue #8657

Open
athulpa opened this issue Jan 26, 2025 · 5 comments
Open

Not able to mount due to FUSE issue #8657

athulpa opened this issue Jan 26, 2025 · 5 comments

Comments

@athulpa
Copy link

athulpa commented Jan 26, 2025

This issue is similar to Issue 8388. However, the solution there didn't work for me.

I installed borg 1.4.0 on my raspberry pi 5, by using the standalone binaries from bauerj.eu - ARMv8 version.

I am able to create backups, run the "check", "info", "list" commands, and extract an archive as well.

However, the "borg mount" command is not working due to some issue with FUSE.

COMMAND:
./borg mount <path to borg repo> ~/borgmount # I'm mounting a repo, not an archive

ERROR MSG:
Runtime Error: borg mount not available: no FUSE support, BORG_FUSE_IMPL=pyfuse3,llfuse.

What I tried (these didn't solve the original error):

  1. apt install python3-pyfuse3
  2. apt install fuse3
  3. apt install libfuse3-dev

Some further comments:

  1. I understand that FUSE is a userspace driver that is used to mount virtual filesystems, and the borg documentation gave me a good idea of how this works with borg mount.

  2. I wonder if FUSE is not included in the standalone binary at all?

  3. The installation instructions give the impression that the standalone binaries are the best way to install borg.
    At the least, it doesn't mention anything about the mount feature not working or needing some other dependencies for it to work.
    If this is indeed the problem, there should be a doc update (in the installation page) warning new users that standalone binaries don't support FUSE/"borg mount".
    Meanwhile, how can I get FUSE to work with the standalone binary?

@athulpa
Copy link
Author

athulpa commented Jan 26, 2025

Also, I am able to use fuse-based drivers like ntfs-3g on my system - so this means I must have some version of fuse?

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Jan 26, 2025

@athulpa I don't know if that is an issue with that binary, you could ask bauerj.

Also, you could try to reproduce without using the binary, see our docs how to install using pip.

@athulpa
Copy link
Author

athulpa commented Jan 31, 2025

The issue has been posted on bauerj's repo as Issue 13.

@athulpa
Copy link
Author

athulpa commented Jan 31, 2025

@ThomasWaldmann , I couldn't install using pip, with these instructions.

It can't find a dependency installed on my system, maybe related to the same error that I got from the borg executable?
Thanks for your time.

INSTALLATION ERROR:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting borgbackup[llfuse]
  Using cached borgbackup-1.4.0.tar.gz (3.8 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      Traceback (most recent call last):
        File "/home/athul/borg-env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
        File "/home/athul/borg-env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/athul/borg-env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-715_2tvn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-715_2tvn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-715_2tvn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 134, in <module>
        File "<string>", line 125, in lib_ext_kwargs
      Exception: Could not find crypto lib/headers, please set BORG_OPENSSL_PREFIX or ensure libcrypto.pc is in PKG_CONFIG_PATH.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Jan 31, 2025

Exception: Could not find crypto lib/headers, please set BORG_OPENSSL_PREFIX or ensure libcrypto.pc is in PKG_CONFIG_PATH.

When installing from source (that includes the pip package), you need to first install the OS-level requirements, see our install docs:

https://borgbackup.readthedocs.io/en/stable/installation.html#from-source

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