keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.9k stars 1.23k forks source link

missing public folder - how to restore on remote linuxVM with Keybase.io installed (command line only) #9164

Closed wireddude closed 6 years ago

wireddude commented 6 years ago

installed keybase in the cloud, command line only. was working fine, and then I installed KBSecret which seemed to blow away my /public folder mount. The public folder is still there. I've deleted KBSecret for now. I'm thinking I will uninstall keybase and reinstall.

my log id: 1046bf6e5e0419e39e55a01c

strib commented 6 years ago

@wireddude it seems like you tried to write into /keybase before you were actually running the KBFS process. Now you have local data under the /keybase directory, and KBFS is refusing to mount on top of that local data. You should use the mount command to make sure nothing is mounted at /keybase/, then rm -rf /keybase/*, then run_keybase, and then try to use kbsecret.

wireddude commented 6 years ago

it all worked but it never re-mounts the /keybase mountpoint again, even though run_keybase says it successfully did.

user01@localhost:/$ keybase fs ls /keybase ▶ ERROR Keybase services aren't running - KBFS client not found. On Linux you need to start them after an update with run_keybase command.

f150539c2b42c073b9b5d41c

2017/10/20 17:30:10 mount helper error: fusermount: mountpoint is not empty 2017/10/20 17:30:10 mount helper error: fusermount: if you are sure this is safe, use the 'nonempty' mount option 2017/10/20 17:30:10 mount helper error: fusermount: mountpoint is not empty 2017/10/20 17:30:10 mount helper error: fusermount: if you are sure this is safe, use the 'nonempty' mount option 2017-10-20T17:30:10.836802-04:00 ?<96>? [ERRO kbfs mount_interrupter.go:52] 0a7 Mounting the filesystem failed: fusermount: exit status 1 kbfsfuse error: (2) fusermount: exit status 1

strib commented 6 years ago

@wireddude: it still looks as if you have data under your local /keybase directory. Please do these steps:

if killall Keybase &> /dev/null ; then
  echo Shutting down Keybase GUI...
fi
if fusermount -uz /keybase &> /dev/null ; then
  echo Unmounting /keybase...
fi
if killall kbfsfuse &> /dev/null ; then
  echo Shutting down kbfsfuse...
fi
if killall keybase &> /dev/null ; then
  echo Shutting down keybase service...
fi
mkdir /tmp/keybase_backup
sudo mv /keybase/* /tmp/keybase_backup/
run_keybase

Also note that keybase fs ls /keybase isn't a valid command by itself, you need to try keybase fs ls /keybase/private, for example.

wireddude commented 6 years ago

Thanks!