Skip to content

Not robust against missing "gocryptfs" #2566

Description

@buhtz

🚫 AI-generated code submissions are not welcome. 🚫
⚠️ If you cannot demonstrate full authorship, understanding, and responsibility for your submitted content, your account might be reported to the GitHub/Microsoft abuse team without warning.


BIT is not robust enough against missing dependencies. It throws technical errors and also exceptions.

Steps to reproduce

  1. Install BIT including goryptfs.
  2. Create a gocryptfs profile.
  3. Close BIT.
  4. Uninstall gocryptfs.
  5. Start BIT again.

Problems

After /steps to reproduce/ the first error is this

Image

But the main window opens.

Next open /Manage profiles/ and /Close/ it again.

Traceback (most recent call last):
  File "/usr/share/backintime/qt/manageprofiles/__init__.py", line 376, in accept
    if self.validate():
       ~~~~~~~~~~~~~^^
  File "/usr/share/backintime/qt/manageprofiles/__init__.py", line 332, in validate
    if not self.save_profile():
           ~~~~~~~~~~~~~~~~~^^
  File "/usr/share/backintime/qt/manageprofiles/__init__.py", line 310, in save_profile
    success = self._tab_general.store_values()
  File "/usr/share/backintime/qt/manageprofiles/tab_general.py", line 517, in store_values
    mnt.mount()
    ~~~~~~~~~^^
  File "/usr/share/backintime/common/mount/__init__.py", line 303, in mount
    self.encryptor.mount()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/share/backintime/common/mount/_encryptors.py", line 322, in mount
    with subprocess.Popen(
         ~~~~~~~~~~~~~~~~^
        cmd,
        ^^^^
    ...<3 lines>...
        universal_newlines=True
        ^^^^^^^^^^^^^^^^^^^^^^^
    ) as proc:
    ^
  File "/usr/lib/python3.13/subprocess.py", line 1039, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 1972, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gocryptfs'
Aborted

Related to

Metadata

Metadata

Assignees

No one assigned

    Labels

    Externaldepends on others/upstreamGUI & CosmeticsRelated to the graphical interface. Not specific to Qt, which has a different label.InfrastructureNeed analysisThe issue is not a bug or feature request. It is an analysis and research task.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions