-
-
Notifications
You must be signed in to change notification settings - Fork 742
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
borg mount broken when using brew on macOS #5522
Comments
Just installed osxfuse-3.10.4 vs osxfuse-3.11.2 and I'm getting the same issue... Puzzled... osxfuse-3.10.4 works fine on Borg 1.1.14 on another computer. |
You need to have |
Thanks @ThomasWaldmann. Investigating... |
@ThomasWaldmann I believe I found the issue... do you believe the right decision has been made at the brew-level to remove See Homebrew/homebrew-core@89785cf#diff-4a25217474a5eb61d0776ab4cabc43b42689bc7b3efaaed400f799631dcec71f My gut feeling is the Borg macOS documentation might have to be updated to account for this change. |
Btw, installing FUSE for macOS using |
Considering that macOS brew users work on a closed-sourced non-free operating system anyway, i can't really follow why they have an issue with FUSE for macOS and choose to cause issues for all users using functionality depending on that. But as I said, that is not a borg issue, but a brew policy issue. |
Closes #65603. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
For the record: the Homebrew developers' point of view is that we try to depend only on things we can distribute ourselves, and the base system. We do not distribute osxfuse (since it is closed source), and therefore cannot enable configurations for other things that depend on it. In the past, we made an exception for Fuse explicitly, which we have decided to remove: it was causing support issues on our side, as well. |
That said, the fact that something is not in homebrew-core does not prevent to distribute it through Homebrew: homebrew is extensible and anyone can provide their own tap, under their own control and their own rules: https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap |
@fxcoudert Thanks for taking the time to share Homebrew's thought process with us. I understand why you guys removed FUSE from Homebrew... the question is how can we get |
One way is to take the content of the formula before Homebrew/homebrew-core@89785cf , meaning this: https://github.com/Homebrew/homebrew-core/blob/68158c398ff8076d7027c4525b78edcf31d1a664/Formula/borgbackup.rb and host that in your own tap: https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap |
@fxcoudert Have a moment to share how Homebrew installs The following lines are pretty abstracted... I would like to collaborate with Borg to update the documentation so users who wish to use |
@sunknudsen run the installation with |
Thanks @fxcoudert. My (perhaps naive) understanding is that Homebrew installs Borg using a virtual environment... This makes installing the @ThomasWaldmann How would you like to handle this in the future? I am working on a Borg series (first episode is out) for the privacy guides... Until now, installing Borg using Homebrew was pretty straight forward. Things are too broken now on macOS for less technology literate viewers. |
I don't want to get into caring for distribution/packaging issues. Especially not for an OS and distribution I do not use and do not know too well. If brew makes it too complicated, just use pip or the binary from us. |
Hey @m3nu, what do you think we should do? I see Vorta depends on borgbackup. @fxcoudert Are you guys planning on removing the osxfuse cask from Homebrew? |
@sunknudsen Casks allow non-open source software, so I don't think it would be removed |
Yes, Vorta depends on Borg, but the Borg formula doesn't depend on osxfuse. After getting some user feedback we made it an optional dependency. |
Thanks for the follow-up @m3nu. Have you published instructions on how to install the |
A note regarding |
Unfortunately, it isn't anymore... see Homebrew/homebrew-core@89785cf. Homebrew removed Pleases see comments above. |
I see. Wasn't aware of this change. |
@m3nu I am considering maintaining a tap with previous recipe... no sure what is the best way forward. |
Hey @ThomasWaldmann and @m3nu, I created a tap that includes a patched version of borgbackup called borgbackup-llfuse. It took me some time to figure out how Homebrew works, but the patched formula appears to be working as expected. I am happy to maintain the patched formula, but it feels like a hack... perhaps it should eventually live within the borgbackup organization. brew install sunknudsen/tap/borgbackup-llfuse |
If you guys are happy with the above workaround, I guess we can close this issue. |
@sunknudsen great, thanks for addressing that! Guess I could create a repo within the borgbackup org for the tap. Preferably only for borgbackup, not for wrappers or other additional software not maintained within the org. It would of course still needing somebody who cares for it as I do not use macOS / brew myself (besides when doing release testing of borg). |
Hmm, one idea: in your tap, borg and llfuse is in the same formula now. could that also live in 2 formulas, with borg requiring the llfuse one? i could imagine there might be other users of llfuse suffering from the homebrew issues, so it could be interesting to get it separately even if not using borg. also, in future, we might want to have pyfuse3 (successor of llfuse) also. |
@ThomasWaldmann I believe |
I would be happy to pitch in to create and maintain (perhaps with @m3nu) a borgbackup/homebrew-tap repo that would only include the Full disclosure, I am new to Homebrew and Python so feedback is welcomed. |
https://github.com/borgbackup/homebrew-tap there it is! @sunknudsen i also sent you an invite. |
Happy to also have an eye on this too and keep it working. With Apple's move to ARM we'll see more changes here. The current tap is roughly what we had before plus a version- and conflict check. Shouldn't break much, but will need docs updates eventually. |
@ThomasWaldmann The tap is ready. I just switched my personal Mac from |
Guess we need a docs update for 1.1-maint now (install borg on macOS). I want to release 1.1.15 in december, so it would be cool to have that in before borg (and versioned docs) get released. |
Had some issues when trying the formula today. Will dig deeper tomorrow. |
Works as expected. How did you fix the PyPi issue "Given no hashes to check 151 links ..."? I added some tests and linting here using GH actions: https://github.com/m3nu/homebrew-tap |
Hey @m3nu, the issue was caused by |
Hi, I found this thread while looking why I had this problem after updating borgbackup yesterday... great thread! I tried to install borgbackup-fuse as instructed on the readme page of homebrew-tap page but it fails with the following:
So, first, am I at the right place to discuss the problem? I'll be glad to help! |
Hey @DesertRider, we haven't renamed the formula yet... see borgbackup/homebrew-tap#1. The PR is awaiting review. Please try running |
Hey @DesertRider, |
@sunknudsen this completely solved the mount issue. Thanks! Tested on macOS Catalina 10.15.7 and Big Sur 11.01.1 |
@sunknudsen In order to patch the documentation, what are the ways of installing borgbackup on MacOS? |
Hey @Gu1nness, thanks so much for updating the docs. If you don’t have a Mac, the following episode of the privacy guides shows the process. This is the part that can likely help with the docs. In a nutshell, if one doesn’t need to mount backups, one can install Borg using Homebrew’s formula ( If one wishes to mount backups, Running
Therefore, I recommend the following for the docs.
Let me know if that helps. |
Perfect, exactly what I needed to know. |
If this should get into 1.1.15, do it soon, please. |
No docs PR yet. Guess I'll do it together with #5622 ? |
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.1.14
Operating system (distribution) and version.
macOS Catalina 10.15.7
Full borg commandline that lead to the problem (leave away excludes and passwords)
borg mount ...
Describe the problem you're observing.
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
I believe there is an issue with recent versions of FUSE for macOS.
The above issue is present when https://github.com/osxfuse/osxfuse/releases/tag/osxfuse-3.11.2 is installed, but not when https://github.com/osxfuse/osxfuse/releases/tag/osxfuse-3.10.4 is installed.
The text was updated successfully, but these errors were encountered: