ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.13k stars 3.01k forks source link

ipfs mount issue – "OSXFUSE version 3.0.4 is not supported" #1610

Open jdmaresco opened 9 years ago

jdmaresco commented 9 years ago

IPFS Daemon is running, just issued ipfs mount, received the following error:

$ ipfs mount
Error: OSXFUSE version 3.0.4 not supported.

OSXFUSE versions <2.7.2 are known to cause kernel panics!
Please upgrade to the latest OSXFUSE version.
It is recommended you install it from the OSXFUSE website:

    http://osxfuse.github.io/

For more help, see:

    https://github.com/ipfs/go-ipfs/issues/177

For context, I just installed Fuse through Homebrew. I used brew install Caskroom/cask/osxfuse, after trying brew install osxfuse and receiving the following error

$ brew install osxfuse
osxfuse: Building this formula from source isn't possible due to OS X
Yosemite and above's strict unsigned kext ban.

You can install with Homebrew Cask:
  brew install Caskroom/cask/osxfuse

You can download from:
  http://sourceforge.net/projects/osxfuse/files/
Error: Unsatisfied requirements failed this build.
whyrusleeping commented 9 years ago

this appears to be a bug in our fuse version check code. For now, you can set DontCheckOSXFUSE to true in your .ipfs/config and it should ignore the check.

whyrusleeping commented 9 years ago

It would actually appear that the check failed here: https://github.com/ipfs/go-ipfs/blob/master/core/commands/mount_darwin.go#L141

I'm going to assume we havent tested on osxfuse 3.0.4 yet, so if that config setting works for you, let us know please!

jbenet commented 9 years ago

yeah looks like a silly bug on our end

jdmaresco commented 9 years ago

@whyrusleeping The config setting didn't work for me. I tried setting "DontCheckOSXFUSE": true in both the root node and the Mounts object of the JSON with no success. I restarted the daemon and my Terminal window as well, just to double-check environment settings, etc.

Could you let me know if I'm using the config setting wrong? Wasn't able to find documentation on how to use it. Thanks

jbenet commented 9 years ago

@jdmaresco can you try:

ipfs config DontCheckOSXFUSE "true"

?

jdmaresco commented 9 years ago

ipfs config DontCheckOSXFUSE "true" didn't work until I added --json

Still didn't allow me to mount, though. Same error.

jbenet commented 9 years ago

@jdmaresco it needs to end up as a string in the config. if it's not letting you, it may be a bug (i.e. expects a value of type equal to the one already there).

  1. confirm that the value is a string in the config, not a json bool. (i.e. `"DontCheckOSXFUSE": "true")
  2. try again.

sorry, this is very useful to find bugs. so far, i think we've found three:

  1. fuse version check is broken.
  2. config value setting fails to change type
  3. the config value for DontCheckOSXFUSE should accept both strings and bool (for ease of use)
jdmaresco commented 9 years ago

@jbenet I've tried again, no luck. Sorry I can't help solve the bug. Limited experience with Go, but learning gradually. Not an urgent issue, just want to be able to understand, use, and contribute to the project over time.