Unable to start KBFS on fresh ubuntu 18.04
Hey All,
I've recently installed keybase. However I'm unable to have KBFS work.
This is a fresh ubuntu 18.04 install.
I am able to use the command line to create things like git repos
But I am unable to access the /keybase/ directory. It only shows, KBFS_NOT_RUNNING
I have run run_keybase. This is what I get:
-> % systemctl --user status keybase.gui.service
● keybase.gui.service - Keybase GUI
Loaded: loaded (/usr/lib/systemd/user/keybase.gui.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-05-28 11:17:11 MDT; 7s ago
Process: 32358 ExecStartPre=/usr/bin/env mkdir -p /home/peter/.cache/keybase (code=exited, status=127)
May 28 11:17:11 bigbro systemd[2130]: Starting Keybase GUI...
May 28 11:17:11 bigbro env[32358]: /usr/bin/env: ‘mkdir’: No such file or directory
May 28 11:17:11 bigbro systemd[2130]: keybase.gui.service: Control process exited, code=exited status=127
May 28 11:17:11 bigbro systemd[2130]: keybase.gui.service: Failed with result 'exit-code'.
May 28 11:17:11 bigbro systemd[2130]: Failed to start Keybase GUI.
And:
-- Unit UNIT has begun starting up.
May 28 11:17:11 bigbro sh[32357]: /bin/sh: 1: keybase: not found
May 28 11:17:11 bigbro sh[32357]: /bin/sh: 1: sed: not found
May 28 11:17:11 bigbro sh[32357]: /bin/sh: 1: fusermount: not found
May 28 11:17:11 bigbro env[32358]: /usr/bin/env: ‘mkdir’: No such file or directory
May 28 11:17:11 bigbro systemd[2130]: keybase.gui.service: Control process exited, code=exited status=127
May 28 11:17:11 bigbro systemd[2130]: keybase.gui.service: Failed with result 'exit-code'.
May 28 11:17:11 bigbro systemd[2130]: Failed to start Keybase GUI.
-- Subject: Unit UNIT has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit UNIT has failed.
--
-- The result is RESULT.
May 28 11:17:11 bigbro systemd[2130]: Started Keybase core service.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit UNIT has finished starting up.
--
-- The start-up result is RESULT.
May 28 11:17:14 bigbro systemd[2130]: Started Keybase Filesystem service.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit UNIT has finished starting up.
--
-- The start-up result is RESULT.
Thanks!
my log id: e7122a5934d3d26ece03ab1c
cc: @oconnor663
It seems like there's something seriously strange about your $PATH variable under systemd if it can't find mkdir:
May 28 11:17:11 bigbro env[32358]: /usr/bin/env: ‘mkdir’: No such file or directory
And in the KBFS logs:
25792 2018-05-28T11:13:24.452757-06:00 ▶ [ERRO kbfs mount_interrupter.go:52] 06a Mounting the filesystem failed: fusermount: exec: "fusermount": executable file not found in $PATH
Not sure what would cause this. Are you running in a docker environment or under some other interesting setup?
@strib Thanks for the reply. I'm not running in a docker/container based environment, but I do have docker installed.
@strib mkdir is on my path. But possibly not the user for which is running keybase?
peter@bigbro [11:42:07 AM] [~/code/TI/harmonium] [bug/credit-memo-verbiage]
-> % which mkdir
/bin/mkdir
peter@bigbro [12:05:24 PM] [~/code/TI/harmonium] [bug/credit-memo-verbiage]
-> % mkdir
mkdir: missing operand
Try 'mkdir --help' for more information.
peter@bigbro [12:05:25 PM] [~/code/TI/harmonium] [bug/credit-memo-verbiage]
-> % echo $PATH
/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/peter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-10-oracle/bin:/usr/lib/jvm/java-10-oracle/db/bin:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fasd:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-extras:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/lein:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/screen:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/terraform:/home/peter/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/ssh-agent:/home/peter/.antigen/bundles/zsh-users/zsh-syntax-highlighting:/home/peter/bin
I'm not running in a docker/container based environment, but I do have docker installed.
That's fine. But sometimes running keybase inside a container needs extra privileges. But that's not the case here, so just ignore that.
I have no idea why systemd can't find mkdir. @oconnor663?
Agreed with @strib, it looks like there's something very strange about your setup. Can you think of anything you're doing that a "regular" user might not be doing? Are you accessing your desktop through SSH / chroot / something other than a standard graphical login? I notice linuxbrew in your PATH, and that shouldn't cause any problems if it just adds extra stuff on top of your system, but maybe it does some magic with environment variables?
@oconnor663 Thanks for the response
I can uninstall linuxbrew. linuxbrew is just an experiment I'm running, but my understanding of how it works is that it just points to executables it installs to those locations. I'd be surprised if that was the cause of this.
I'm not doing anything that I can think of. This is a fresh install. All I have installed is some tooling for development.
A you can see mkdir is present on my path. I'm unsure of what paths are being set for the running of run_keybase script
I can try to uninstall linuxbrew and I'll report back
Soo.... You were both right. It's something to do with the PATH. I uninstalled linuxbrew. It fixed Keybase. However, I then reinstalled it to confirm, and keybase still works. I'm unsure of what to think at this point. But it seems to clearly point to something with my PATH and linuxbrew. I am just not sure what, at this time.
Very interesting. It's my first time hearing of that project, so I don't have a lot of suggestions. I wonder if it messed with /etc/profile or put something very interesting in /etc/profile.d.