You are not logged in.

#1 2018-06-23 20:19:40

BelowZero
Member
Registered: 2018-03-13
Posts: 59

[Solved] Trying to mount a Borg backup, but getting an llfuse error

I have Borg installed, and it seems to work well to backup my files.  Now I'm trying to mount the Borg repo with the following command:

    borg mount /run/media/BelowZero/Backup/BorgRepo /tmp/files

This should mount the backup and let me browse the files in the backup.  Instead, I get this error:

borg mount not available: loading FUSE support failed [ImportError: No module named 'llfuse']

I understand llfuse can be installed using pip in python.  I've tried to install it using:

pip install llfuse

It returns this:

Collecting llfuse
  Using cached https://files.pythonhosted.org/packages/fc/9f/074ba23d32b961cb4b43c22c70d49f2db2484f7b60777897a87726e2648f/llfuse-1.3.4.tar.bz2
Building wheels for collected packages: llfuse
  Running setup.py bdist_wheel for llfuse ... error
  Complete output from command /home/BelowZero/borg-env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-mux2j2q6/llfuse/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-zgdocogb --python-tag cp36:
  running bdist_wheel
  running build
  running build_ext
  building 'llfuse' extension
  creating build
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/src
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -I/usr/include/python3.6m -c src/llfuse.c -o build/temp.linux-x86_64-3.6/src/llfuse.o -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=29 -Wall -Wextra -Wconversion -Wsign-compare -DLLFUSE_VERSION="1.3.4" -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-parameter -Werror=conversion -Werror=sign-compare
  In file included from src/llfuse.c:582:
  src/xattr.h:28:10: fatal error: attr/xattr.h: No such file or directory
   #include <attr/xattr.h>
            ^~~~~~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for llfuse
  Running setup.py clean for llfuse
Failed to build llfuse
Installing collected packages: llfuse
  Running setup.py install for llfuse ... error
    Complete output from command /home/BelowZero/borg-env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-mux2j2q6/llfuse/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-i9txz8ca/install-record.txt --single-version-externally-managed --compile --install-headers /home/BelowZero/borg-env/include/site/python3.6/llfuse:
    running install
    running build
    running build_ext
    building 'llfuse' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/src
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -I/usr/include/python3.6m -c src/llfuse.c -o build/temp.linux-x86_64-3.6/src/llfuse.o -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=29 -Wall -Wextra -Wconversion -Wsign-compare -DLLFUSE_VERSION="1.3.4" -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-parameter -Werror=conversion -Werror=sign-compare
    In file included from src/llfuse.c:582:
    src/xattr.h:28:10: fatal error: attr/xattr.h: No such file or directory
     #include <attr/xattr.h>
              ^~~~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/home/BelowZero/borg-env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-mux2j2q6/llfuse/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-i9txz8ca/install-record.txt --single-version-externally-managed --compile --install-headers /home/BelowZero/borg-env/include/site/python3.6/llfuse" failed with error code 1 in /tmp/pip-install-mux2j2q6/llfuse/

Unfortunately, I do not understand this error.  Can someone help explain what I need to do?

Last edited by BelowZero (2018-06-23 20:52:07)

Offline

#2 2018-06-23 20:33:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,631
Website

Re: [Solved] Trying to mount a Borg backup, but getting an llfuse error

https://www.archlinux.org/packages/comm … on-llfuse/

borg optdepends wrote:

python-llfuse (optional) - mounting backups as a FUSE file system


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-06-23 20:51:00

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Re: [Solved] Trying to mount a Borg backup, but getting an llfuse error

Worked perfectly and solved all my issues, thanks!

Offline

Board footer

Powered by FluxBB