client: Keybase client on Mac failing in daemon mode (via tmux)

I’ve been trying to get the keybase client running on my Mac. Spec:

System Version: OS X 10.10.5 (14F1021)
Kernel Version: Darwin 14.5.0

I get the following issue after brew install keybase

$ keybase login

There are no Keybase services installed. You may need to re-install.
▶ ERROR dial unix /Users/username/Library/Caches/Keybase/keybased.sock: connect: no such file or directory

Then then I try to run the “install” subcommand (I don’t know if this is the correct approach), I get the following:

$ keybase install
▶ INFO Checking /usr/local/bin/keybase (/usr/local/opt/keybase/bin/keybase)
▶ INFO Checking service
▶ INFO Service: Not Installed (Action: Install)
▶ INFO Installing Keybase service
▶ INFO Checking KBFS
▶ INFO KBFS: Not Installed (Action: Install)
▶ INFO Installing KBFS
▶ ERROR Error installing KBFS: exit status 1
▶ INFO Installer for cli: OK
▶ INFO Installer for service: OK
▶ INFO Installer for kbfs: INSTALL_ERROR exit status 1

If I run keybase -standalone login it works as expected.

Suggestions on debugging this?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 2
  • Comments: 21 (11 by maintainers)

Most upvoted comments

NOTE: I just commented on https://github.com/keybase/keybase-issues/issues/1883

For me the cause of this error was running inside of a tmux session. Once I detached from tmux and ran the launchd commands outside of a session everything started to work as expected.

@zoogeny thanks a lot! Running outside tmux solved my issue! It seem to be related to the standard tmux-on-mac issue with decoupling of the user namespace.

Configuring tmux like the following link or using the wrapper as a prefix will also make it work inside tmux: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

@pbnjay I think that was left over from an old version of the installer (kbfs isn’t available from brew yet)… if you run launchctl remove keybase.kbfs it should remove that error message…

What is your output of ls -al ~/Library/LaunchAgents/*keybase*?

If installed from brew you should only have ~/LaunchAgents/homebrew.mxcl.keybase.plist

Any other keybase services you should remove.

Also if you run launchctl list | grep keybase it should only output: homebrew.mxcl.keybase.

Once it’s clear you only have this service installed you can try to reload it by doing:

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.keybase.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.keybase.plist

Update: after running keybase ctl start it started working again. This wasn’t in the documentation or suggested by the login subcommand. Maybe this should be clarified?