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

Homebrew Install fails: Error: sshfs has been disabled because it requires FUSE! #1654

Closed
Tarkleigh opened this issue Apr 9, 2021 · 30 comments
Milestone

Comments

@Tarkleigh
Copy link

Tarkleigh commented Apr 9, 2021

Hi everyone,

I tried installing Telepresence following the official installation guide at https://www.telepresence.io/reference/install and the brew command does not work for me. It fails with this output:

brew install datawire/blackbird/telepresence redacted
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 4 formulae.

==> Installing telepresence from datawire/blackbird
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.19.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/9d8f2b865b1f004ad8a1b27b468833da402e5feb31e88557175a25209660d595--gdbm-1.19.big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/mpdecimal-2.5.1.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/29dd7202ebb6142202c80dec9080c1a24ef37a7039f92356a122061477efce21--mpdecimal-2.5.1.big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1k.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/fae83f761867e592ca8209f4cf851a681825ea9a2b5af870b9237aa35ca1ef0f--openssl@1.1-1.1.1k.big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/readline-8.1.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/b03c5b80e59c91f05f4327bf3cb7a4dbab63a8902b76c0c53c6d36eb2e4331e9--readline-8.1.big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.35.4.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/c9a360f163a962e10c1beb105f0478500624eedbec866bda679b0347558375a0--sqlite-3.35.4.big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/python%403.9-3.9.4.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/e85b235944ed11458dbc89ca1e57cc0577bd18b11fbd4c05e03d3e4a0850ad3d--python@3.9-3.9.4.big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/torsocks-2.3.0.big_sur.bottle.1.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/5da81126b71bef8bd6ce670c223f822dd875b993234c02ce45db3c778d3f0efa--torsocks-2.3.0.big_sur.bottle.1.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.3_3.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/60b45c0f23d19cde24cfc8e6834288901010f39f7733d9b3312e759a58229193--libffi-3.3_3.big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/python%403.9-3.9.4.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/e85b235944ed11458dbc89ca1e57cc0577bd18b11fbd4c05e03d3e4a0850ad3d--python@3.9-3.9.4.big_sur.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/glib-2.68.0.big_sur.bottle.tar.gz
Already downloaded: /Users/redacted/Library/Caches/Homebrew/downloads/34a93ed75ca6c68aa1dc16c348870beef563edd005994b4c0ccb88b8e3628fa0--glib-2.68.0.big_sur.bottle.tar.gz
Error: sshfs has been disabled because it requires FUSE!

This happens even after running "brew cask install osxfuse" before and even if I install sshfs and MacFuse manually. Could you please help? I am using MacOS BigSur 11.2.3 (Intel, not Apple Silicon)

Thanks and best regards
Tarkleigh

@nishanksogani
Copy link

+1
I'm facing the same error on running brew install datawire/blackbird/telepresence in BigSure 11.2.3.
I tried reinstalling MacFuse twice and restarting the system after allowing the application in system preferences but it did not help.

@langxiaopiao030
Copy link

Catalina10.15.7 +1

@nishanksogani
Copy link

Installing from Source worked on my system and I'm able run telepresence. I guess the issue is with Homebrew.

@jokerZhou
Copy link

Mojave 10.14.4 +1

@sathishavm
Copy link

same here unable to install with error sshfs has been disabled because it requires FUSE! for catalina 10.15.7

@jokerZhou
Copy link

I solved the problem,follow these step:

  1. install the Release of FUSE for macOS 3.11.2 from https://osxfuse.github.io/2020/10/05/OSXFUSE-3.11.2.html
  2. execute brew command in terminal: brew install datawire/blackbird/telepresence --ignore-dependencies

@evandrix
Copy link

evandrix commented Apr 22, 2021

I solved the problem,follow these step:

  1. install the Release of FUSE for macOS 3.11.2 from https://osxfuse.github.io/2020/10/05/OSXFUSE-3.11.2.html
  2. execute brew command in terminal: brew install datawire/blackbird/telepresence --ignore-dependencies
$ brew install osxfuse
==> Caveats
osxfuse requires a kernel extension to work.
If the installation fails, retry after you enable it in:
  System Preferences → Security & Privacy → General

For more information, refer to vendor documentation or this Apple Technical Note:
  https://developer.apple.com/library/content/technotes/tn2459/_index.html

You must reboot for the installation of osxfuse to take effect.

==> Downloading https://github.com/osxfuse/osxfuse/releases/download/osxfuse-3.11.2/osxfuse-3.11.2.dmg
==> Downloading from https://github-releases.githubusercontent.com/1867347/ab8d9600-06f1-11eb-9e31-17e04b5951ce?X-Amz-Algorithm=AWS4-HMAC-SHA25
######################################################################## 100.0%
==> Installing Cask osxfuse
==> Running installer for osxfuse; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is FUSE for macOS
installer: Upgrading at base path /
installer: The upgrade was successful.
==> Changing ownership of paths required by osxfuse; your password may be necessary.
🍺  osxfuse was successfully installed!

@evandrix
Copy link

libfuse/libfuse#204

@freebrowser1
Copy link

Does this also work when I have macFUSE 4.1.0 installed ?

@Achieve777
Copy link

@freebrowser1 hey, I install this dependency, but it didn't work when I use it

Looks like there's a bug in our code. Sorry about that!

Traceback (most recent call last):
  File "/usr/local/bin/telepresence/telepresence/cli.py", line 135, in crash_reporting
    yield
  File "/usr/local/bin/telepresence/telepresence/main.py", line 42, in main
    set_kube_command(runner, args)
  File "/usr/local/bin/telepresence/telepresence/startup.py", line 145, in set_kube_command
    for context_setting in kubectl_config["contexts"]:
TypeError: 'NoneType' object is not iterable

@Xeno365
Copy link

Xeno365 commented Apr 30, 2021

Hello, I tried the different solutions of this forum but I still have the error message : "Error: sshfs has been disabled because it requires FUSE!".

This was when I tried to install sshfs with homebrew. I tried installing fuse with homebrew and by downloading it, but I got the error message with both. However, macFUSE is install on my system preferences and I gave him access, so I don't know why fuse can't be find. I also tried to download fuse and sshfs, but sshfs is still not working.

I'm on macOS Big Sur 11.2.

Does someone have another solutions that worked for him ? Thank you in advance for reading my message.

@mpruefer
Copy link

Installing macFUSE 4.1.0 and SSHFS 2.5.0 from https://osxfuse.github.io/ worked out fine for me.

macOS Big Sur 11.3

@freebrowser1
Copy link

Weird, I do have 4.1.0 on Big Sur 11.2 and have sshfs

       sshfs --version
      SSHFS version 2.10
      FUSE library version: 2.9.9
      fuse: no mount point

But updating from brew issues that error "sshfs has been disabled because it requires FUSE!" .

Screenshot 2021-04-30 at 13 15 19

@reorx
Copy link

reorx commented May 17, 2021

I encountered the same problem when trying to install squashfuse, a simple way to fix this is to edit the formula file and remove the fuse restriction temporarily, here's what I did:

diff --git a/Formula/squashfuse.rb b/Formula/squashfuse.rb
index 684df1f2e1..20f80966b3 100644
--- a/Formula/squashfuse.rb
+++ b/Formula/squashfuse.rb
@@ -20,9 +20,9 @@ class Squashfuse < Formula
   depends_on "xz"
   depends_on "zstd"

-  on_macos do
-    disable! date: "2021-04-08", because: "requires FUSE"
-  end
+  #on_macos do
+  #  disable! date: "2021-04-08", because: "requires FUSE"
+  #end

   on_linux do
     depends_on "libfuse"

I think it should be the same as to telepresence, just find the .rb formula file and comment the restiction part.

@freebrowser1
Copy link

freebrowser1 commented May 18, 2021

This does not work.
I edited ~/homebrew/Library/Taps/homebrew/homebrew-core/Formula/sshfs.rb
and did brew upgrade sshfs

and got:
==> Upgrading 1 outdated package: sshfs 2.10_2 -> 3.7.1 ==> Upgrading sshfs 2.10_2 -> 3.7.1 libfuse: Linux is required for this software. Error: sshfs: An unsatisfied requirement failed this build.
The .rb file:

`class Sshfs < Formula
desc "File system client based on SSH File Transfer Protocol"
homepage "https://github.com/libfuse/sshfs"
url "https://github.com/libfuse/sshfs/archive/refs/tags/sshfs-3.7.1.tar.gz"
sha256 "0f0f8f239555effd675d03a3cabfb35ef691a3054c98b62bc28e85620ad9e30d"
license any_of: ["LGPL-2.1-only", "GPL-2.0-only"]

bottle do
sha256 cellar: :any, catalina: "aceff3131dd0b098bdef8b5dda54d117b5dd5269ca146f7a5032ecde3c99b6d2"
sha256 cellar: :any, mojave: "5f69267c0f1f2489989e108919d66210e058423d0d1f1661812c0194b164619c"
sha256 cellar: :any, high_sierra: "58d222f37622b399352f16eaf823d3e564445d9e951629e965281ac31de5ef4a"
sha256 cellar: :any, sierra: "dc4a7f24c2cbebd7c35891200b043d737ba6586a28992708ef849ffedff7bb01"
end

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "libfuse"

#on_macos do
#disable! date: "2021-04-08", because: "requires FUSE"
#end

def install
mkdir "build" do
system "meson", ".."
system "meson", "configure", "--prefix", prefix
system "ninja", "--verbose"
system "ninja", "install", "--verbose"
end
end

test do
system "#{bin}/sshfs", "--version"
end
end
`

@reorx
Copy link

reorx commented May 18, 2021

@freebrowser1 thedepends_on "libfuse" line above the on_macos do should also be commented in this case.

@jconnolly
Copy link

Fails to fetch manifest data for me.

==> Downloading https://ghcr.io/v2/homebrew/core/sshfs/manifests/3.7.1
##O#- #
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "sshfs_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/sshfs/manifests/3.7.1

Curling it manually:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}

@YuhomC
Copy link

YuhomC commented Jun 4, 2021

I tried to install bindfs through brew install bindfs it gave the same error :require FUSE!
All the methods above doesn't work for me.
Then I build from source. It works! Finally!

@Scoppio
Copy link

Scoppio commented Jun 7, 2021

how did you installed it from source? There isnt a make option for that

@YuhomC
Copy link

YuhomC commented Jun 7, 2021

how did you installed it from source? There isnt a make option for that

For bindfs installation, I just referred to the README document.
Please refer to https://github.com/libfuse/sshfs if you want to install sshfs

@florianbellmann
Copy link

Any process on this issue? I'd love to use sshfs on macOS :)

@porg
Copy link

porg commented Jun 29, 2021

@ALL I filed an issue at #libfuse/sshfs/issues/255 — My TL;DR here:

  • Under macOS 11 Big Sur with its raised security settings regarding kernel extensions there seems to arise a chicken-egg-problem between macFUSE and sshfs when attempting to install via brew.
  • But it works when installing both via the PKG installers provided at https://osxfuse.github.io

P.S.: If that resolves your issue please give me a ❤️ here and over there. If you'd appreciate proper brew install macfuse sshfs again give a 👍 over there, to motivate the maintainer, who currently only can offer minimal maintenance.

@porg
Copy link

porg commented Jun 30, 2021

Update:

@porg
Copy link

porg commented Jun 30, 2021

Reason

@Homebrew member @carlocab answered at: Homebrew/discussions#1760 (comment)

macFUSE is no longer open source, and we don't allow non-open source dependencies in Homebrew/core. If you need formulae that depend on macFUSE, try https://github.com/gromgit/homebrew-fuse.

Solution

As instructed on https://github.com/gromgit/homebrew-fuse

  • I uninstalled all previous macFUSE dependent formulae.
  • Then installed the homebrew-fuse versions, which all use as "-mac" suffix.
  • Just try if your needed macFUSE plugin is available by $ brew info XYZ-mac or by looking at the Formula list
  • @YuhomC i.e. your needed bindfs is available as bindfs-mac

I got what I needed by:

  • $ brew install macfuse sshfs-mac curlftpfs-mac
  • Where necessary I used link --overwrite as brew suggested, i.e. brew link --overwrite sshfs-mac

@thallgren
Copy link
Contributor

Thanks @porg for digging into this and finding a solution that actually works!

Here are the exact steps that I needed to take in order to make sshfs work with telepresence v2 after updating my mac to Big Sur 11.4:

  1. Remove old sshfs, macfuse, osxfuse using brew uninstall
  2. brew install --cask macfuse
  3. brew install gromgit/fuse/sshfs-mac
  4. brew link --overwrite sshfs-mac

Now sshfs -V shows you the correct version, e.g.:

$ sshfs -V
SSHFS version 2.10
FUSE library version: 2.9.9
fuse: no mount point

but one more thing must be done before it works OK:

  1. Try a mount (or an intercept that performs a mount). It will fail because you need to give permission to “Benjamin Fleischer” to execute a kernel extension (a pop-up appears that takes you to the system preferences).
  2. Approve the needed permission
  3. Reboot your computer.

@Bwvolleyball
Copy link

Does anyone happen to know the developer id for the sshfs dependency? As a workaround to needing to click install, it's be nice to be able to to it via CLI. Sometimes that allow button is fickle, it has not popped up for me yet.

I'm referencing these commands:

https://apple.stackexchange.com/questions/398514/no-allow-button-in-security-and-privacy-preferences

@thallgren
Copy link
Contributor

Closing this. In case you run into trouble with Fuse on macOS, please visit our troubleshooting guide.

@xf13163350809
Copy link

try download : https://github.com/osxfuse/sshfs/releases/download/osxfuse-sshfs-2.5.0/sshfs-2.5.0.pkg

@TristanBilot
Copy link

try download : https://github.com/osxfuse/sshfs/releases/download/osxfuse-sshfs-2.5.0/sshfs-2.5.0.pkg

Worked on Monterey 12.6.1!

@xf13163350809
Copy link

xf13163350809 commented Apr 4, 2023 via email

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