kbfs icon indicating copy to clipboard operation
kbfs copied to clipboard

fatal: Unable to find remote helper for 'keybase'

Open ericjarvies opened this issue 8 years ago • 13 comments

How exactly does one git push or git clone with Keybase encrypted repository?

I am using latest OSX and Keybase and git 2.14.2.

ericjarvies avatar Oct 08 '17 07:10 ericjarvies

Hi @ericjarvies. The latest Keybase comes with a binary installed in /usr/local/bin/git-remote-keybase. As long as /usr/local/bin is in your $PATH, then git on the command line should find it and use it for keybase remote URLs.

Are you using git from the command line? Is /usr/local/bin in your $PATH?

strib avatar Oct 08 '17 16:10 strib

Hmm... it's not in my /usr/local/bin folder. Do I need to download and [re]install the latest version of Keybase in order for git-remote-keybase to install?

ericjarvies avatar Oct 08 '17 16:10 ericjarvies

What version are you running? Did you disable auto-updates? Maybe try keybase update check?

strib avatar Oct 08 '17 16:10 strib

NeedUpdate:false

My default OS X installation of git is in /usr/bin, but I upgraded git using Homebrew, and all of my brew installations are installed in my home folder (e.g.- ~/homebrew/bin/), and I renamed /usr/bin/git to /usr/bin/git-apple and created a git alias in /usr/bin/ that points to ~/homebrew/bin/, and of course /usr/bin/ and /usr/local/bin/ are in my path.

ericjarvies avatar Oct 08 '17 16:10 ericjarvies

Where might I grab git-remote-keybase?

ericjarvies avatar Oct 08 '17 16:10 ericjarvies

It's in the latest OSX package. You can try downloading it manually from our website I guess. Or you can do a keybase log send and we can see what version you're running.

strib avatar Oct 08 '17 16:10 strib

It seems Keybase is not creating aliases in /usr/bin/ or /usr/local/bin/ to the Keybase.app/SharedSupport/bin/ folder for the various other files, e.g.- git-remote-keybase, kbfs, kbnm, and updater, assuming all of them need aliases like keybase does.

ericjarvies avatar Oct 08 '17 17:10 ericjarvies

Hmm, I'm not actually an expert on the layout of the OSX installed files.

@cjb: any ideas here? Is there supposed to be a symlink to the git helper in /usr/local/bin?

strib avatar Oct 08 '17 17:10 strib

Logs: a25a940c7939c2bca91fdf1c

strib avatar Oct 08 '17 17:10 strib

Something like this; sudo ln -s /Applications/Keybase.app/Contents/SharedSupport/bin/git-remote-keybase /usr/local/bin/git-remote-keybase?

ericjarvies avatar Oct 08 '17 17:10 ericjarvies

Yup, that did the trick;

git clone keybase://private/ericjarvies/password_list
Cloning into password_list...
Initializing Keybase... done.
Syncing with Keybase... done.
Syncing encrypted data to Keybase: (100.00%) 2.97/2.97 KB... done.
warning: You appear to have cloned an empty repository.

So, a symbolic link needs to be created when Keybase performs the upgrade? e,g,- sudo ln -s /Applications/Keybase.app/Contents/SharedSupport/bin/git-remote-keybase /usr/local/bin/git-remote-keybase

and what about these; kbfs kbnm updater ?

ericjarvies avatar Oct 08 '17 17:10 ericjarvies

I can confirm I ran into this too using a fresh install of keybase and having similar homebrew setup.

I was able to originally clone a repo, but calling git pull showed the error from the OP.

I also did the ln -s /Applications/Keybase.app/Contents/SharedSupport/bin/git-remote-keybase /usr/local/bin/git-remote-keybase but did not need to include sudo when running the command.

After that git pull worked again.

saltednut avatar Mar 27 '18 17:03 saltednut

In my case it was because of 2 things:

  1. No symlinks for Keybase utils in /usr/local/bin;
  2. No symlink for /usr/bin/git in /usr/local/bin/.

retifrav avatar Apr 22 '18 12:04 retifrav