borgbase / vorta

Desktop Backup Client for Borg Backup
https://vorta.borgbase.com
GNU General Public License v3.0
1.95k stars 130 forks source link

can't mount any archives later than a particular one #1424

Closed chewywater closed 1 year ago

chewywater commented 1 year ago

Description

I have an archive that won't mount. All archives later than this one won't mount either. I can still restore from them using 'extract' though.

REPRODUCE: Boot computer vorta>archives> select archive Rigel-2022-09-28-151826 > hit 'mount' button on right side of archive list.

DETAILS and DATA (note that vorta-log was taken during this activity) vorta>archives>mount Rigel-2022-09-28-111802, mounts vorta>archives>mount Rigel-2022-09-28-131814 mounts vorta>archives>mount Rigel-2022-09-28-151826 FAILS

Rebooted mount Rigel-2022-09-28-151826 FAILS Rebooted mount Rigel-2022-09-28-172339 (the one after the failing archive) FAILS Reboot mount Rigel-2022-09-28-192351 FAILS (2nd one after failing archive) Pattern: it looks like archive Rigel-2022-09-28-151826, won’t mount, and all the archives later than that won’t mount.

Looking through the log now. lots of flatpack warnings after trying to mount and unmount, but these happen regardless of whether the archive is good or not. vorta-log.txt

Reproduction

OS

Linux Mint 21 Cinnamon

Version of Vorta

Vorta 0.8.7 ...... Borg 1.2.0

What did you install Vorta with?

Flatpak

Version of Borg

No response

Logs

vorta-log.txt

not enough room here. please see vorta-log.txt attached
real-yfprojects commented 1 year ago

This primarily seems to be an issue with flatpak-spawn. Please open a bug report at their repository with the title

[Bug]: Unable to read struct signalfd_siginfo: Bad file descriptor

and the following issue description:

This issue occurs with [`com.borgbase.Vorta`](https://github.com/flathub/com.borgbase.Vorta) which is a GUI frontend for the backup tool [borg](https://github.com/borgbackup/borg). Borg allows mounting a backup repository using fuse. For use in the flatpak distribution of Vorta `libfuse` is installed as configured [here](https://github.com/flathub/com.borgbase.Vorta/blob/master/dependencies/libfuse.json) and wrapped with a small script that runs `fusermount` through `flatpak-spawn`. This usually works fine but not on my machine as reported on borgbase/vorta#1424. 

Borg calls backups that are stored in the same repository *archives*. When the vorta application runs `borg mount` a warning is occurs:

(flatpak-spawn:46): WARNING : 12:49:29.683: Unable to read struct signalfd_siginfo: Bad file descriptor


For some archives mounting works nonetheless, for others it doesn't. Since this seems to be an issue of `flatpak-spawn` the vorta devs redirected me to this bug tracker.

Thanks.

chewywater commented 1 year ago

Thanks. I opened the issue on flatpak https://github.com/flatpak/flatpak-xdg-utils/issues/61 as instructed.

OK. So I'm assuming that my best option for a workaround is to install the non-flatpak version of Vorta?

real-yfprojects commented 1 year ago

OK. So I'm assuming that my best option for a workaround is to install the non-flatpak version of Vorta?

Yes, I would recommend installing through python (pip3) for the latest features. This will also allow confirming that this is a flatpak-only issue.

chewywater commented 1 year ago

OK. Thanks for the advice. I'm not sure I'm technical enough to install through pip3.
I'll just install vorta (non-flatpak version 0.8.3-1) through mint's software manager for now, and see how it goes. If you think it's really critical I install from source, let me know.

smcv commented 1 year ago

This actually looks like a bug in the script bundled with vorta's Flatpak packaging, which is invoking flatpak-spawn incorrectly. Please edit the script similar to https://github.com/flathub/org.flatpak.Builder/pull/47 (or open an issue on https://github.com/flathub/com.borgbase.Vorta if the Flatpak packaging has a different maintainer).

The flatpak-spawn bug here is that when it's given an invalid --forward-fd, the error message is unclear and looks like a problem with flatpak-spawn: https://github.com/flatpak/flatpak-xdg-utils/issues/55

real-yfprojects commented 1 year ago

@chewywater You can try the patched version by installing it through the command line:

flatpak install --user https://dl.flathub.org/build-repo/111266/com.borgbase.Vorta.flatpakref
chewywater commented 1 year ago

@real-yfprojects OK I installed the patched flatpak version. Mounting seems to work OK. Thank you. When will this patch become part of the public version offered in Mint Software Manager?

real-yfprojects commented 1 year ago

When will this patch become part of the public version offered in Mint Software Manager?

@Hofer-Julian

Hofer-Julian commented 1 year ago

It's already published

chewywater commented 1 year ago

Awesome, thanks guys!