OSX 10.12.6 CLI `keybase updater check` fails to unstable state
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 9.2k
- Forks
- 1.3k
- Avg merge
- 12h 58m
- Merged PRs (30d)
- 56
Description
Attempting to run the app afterwards resulted in a hang. Resolved by running keybase install then keybase update.
$ /Applications/Keybase.app/Contents/SharedSupport/bin/updater check
2017/08/17 09:53:49 DEBG Using default path to keybase: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase
2017/08/17 09:53:49 DEBG Execute: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase [version -S]
2017/08/17 09:53:49 DEBG Executed /Applications/Keybase.app/Contents/SharedSupport/bin/keybase [version -S]
2017/08/17 09:53:49 DEBG Execute: /usr/bin/sw_vers [-productVersion]
2017/08/17 09:53:49 DEBG Executed /usr/bin/sw_vers [-productVersion]
2017/08/17 09:53:49 INFO Checking for update, current version is 1.0.26-20170724171020+b095a794e
2017/08/17 09:53:49 INFO Using updater source: Keybase.io
2017/08/17 09:53:49 DEBG Using options: updater.UpdateOptions{Version:"1.0.26-20170724171020+b095a794e", Platform:"darwin", DestinationPath:"/Applications/Keybase.app", URL:"", Channel:"", Env:"prod", Arch:"amd64", Force:false, OSVersion:"10.12.6", UpdaterVersion:"0.2.12"}
2017/08/17 09:53:49 INFO Request "https://api.keybase.io/_/api/1.0/pkg/update.json?auto_update=1&install_id=--redacted--&os_version=10.12.6&platform=darwin&run_mode=prod&upd_version=0.2.12&version=1.0.26-20170724171020%2Bb095a794e"
2017/08/17 09:53:57 DEBG Received update response: updater.Update{Version:"1.0.28-20170815205142+c36e316c3", Name:"v1.0.28-20170815205142+c36e316c3", Description:"Recent changes:\n---------------\n- Performance! Chats should load faster now, and writes to KBFS should be much faster, avoiding operating system timeouts in most cases.\n\n- Keybase has a new icon. We thank our departing ferret-dog mascot for his years of loyalty.\n\n- Keybase Chat has launched! You can read more about it on the Keybase blog.\n\n- Sharing before signup: Go ahead and put data in /keybase/private/you,friend@twitter/. If you have any invite codes, this will pop up a window with a link to DM them. It also works for end-to-end encryption with Reddit, Coinbase, Github, and Hacker News users.\n\nWhat we are currently working on:\n---------------------------------\n- Mobile apps!\n", InstallID:"--redacted--", RequestID:"--redacted--", Type:0, PublishedAt:1502830302000, Props:[]updater.Property(nil), Asset:(*updater.Asset)(--redacted--), NeedUpdate:true}
2017/08/17 09:53:57 INFO Got update with version: 1.0.28-20170815205142+c36e316c3
2017/08/17 09:53:57 DEBG [Prompt for update]
2017/08/17 09:53:57 DEBG Auto update: true (set=true autoOverride=false)
2017/08/17 09:53:57 INFO Reporting: https://api.keybase.io/_/api/1.0/pkg/act.json map[install_id:[--redacted--] request_id:[--redacted--] version:[1.0.26-20170724171020+b095a794e] upd_version:[0.2.12] action:[auto] auto_update:[1]]
2017/08/17 09:54:02 DEBG Creating: /var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--
2017/08/17 09:54:02 INFO Request https://prerelease.keybase.io/darwin-updates/Keybase-1.0.28-20170815205142%2Bc36e316c3.zip
2017/08/17 09:54:04 INFO Downloading to /var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase-1.0.28-20170815205142+c36e316c3.zip.download
2017/08/17 09:55:25 INFO Downloaded 102436265 bytes
2017/08/17 09:55:26 INFO Verified digest: d0699c9a135f11b0f2ca04302d0e5965ee16dafa8be31345f7704c8da0e2793f (/var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase-1.0.28-20170815205142+c36e316c3.zip.download)
2017/08/17 09:55:26 INFO Moving /var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase-1.0.28-20170815205142+c36e316c3.zip.download to /var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase-1.0.28-20170815205142+c36e316c3.zip
2017/08/17 09:55:26 INFO Verify asset: /var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase-1.0.28-20170815205142+c36e316c3.zip
2017/08/17 09:55:26 INFO Signed by 9092ae4e790763dc7343851b977930f35b16cf43ab0ad900a2af3d3ad5cea1a1
2017/08/17 09:55:26 DEBG Valid KID: 9092ae4e790763dc7343851b977930f35b16cf43ab0ad900a2af3d3ad5cea1a1
2017/08/17 09:55:26 INFO [Before apply]
2017/08/17 09:55:26 DEBG Execute: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase [update check-in-use]
2017/08/17 09:55:26 DEBG Executed /Applications/Keybase.app/Contents/SharedSupport/bin/keybase [update check-in-use]
2017/08/17 09:55:26 INFO [Applying update]
2017/08/17 09:55:26 INFO Unzipping "/var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase-1.0.28-20170815205142+c36e316c3.zip" to "/var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase-1.0.28-20170815205142+c36e316c3.zip.unzipped"
2017/08/17 09:55:31 INFO Moving existing destination "/Applications/Keybase.app" to "/var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase.app"
2017/08/17 09:55:31 INFO Moving /var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--/Keybase-1.0.28-20170815205142+c36e316c3.zip.unzipped/Keybase.app to /Applications/Keybase.app
2017/08/17 09:55:31 DEBG Updating spotlight: /Applications/Keybase.app
2017/08/17 09:55:31 DEBG Execute: /usr/bin/mdimport [/Applications/Keybase.app]
2017/08/17 09:55:32 DEBG Executed /usr/bin/mdimport [/Applications/Keybase.app]
2017/08/17 09:55:32 DEBG Remove quarantine: /Applications/Keybase.app
2017/08/17 09:55:32 DEBG Execute: /usr/bin/xattr [-d com.apple.quarantine /Applications/Keybase.app]
2017/08/17 09:55:33 DEBG Executed /usr/bin/xattr [-d com.apple.quarantine /Applications/Keybase.app]
2017/08/17 09:55:33 WARN Error trying to remove quarantine: exit status 1, ([stderr]: xattr: /Applications/Keybase.app: No such xattr: com.apple.quarantine
)
2017/08/17 09:55:33 INFO [After apply]
2017/08/17 09:55:33 DEBG Execute: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase [ctl app-exit]
2017/08/17 09:55:33 DEBG Executed /Applications/Keybase.app/Contents/SharedSupport/bin/keybase [ctl app-exit]
2017/08/17 09:55:33 INFO Stop output: [stdout]:
Keybase isn't running. To start, you can run:
open /Applications/Keybase.app
, [stderr]: 2017-08-17T09:55:33.285952+01:00 ▶ [ERRO keybase standard.go:232] 001 There were multiple errors: dial unix /Users/saizai/Library/Group Containers/keybase/Library/Caches/Keybase/keybased.sock: connect: no such file or directory; dial unix /Users/saizai/Library/Caches/Keybase/keybased.sock: connect: no such file or directory
2017/08/17 09:55:33 WARN Error requesting app exit: exit status 2
2017/08/17 09:55:33 DEBG Execute: /Applications/Keybase.app/Contents/SharedSupport/bin/keybase [ctl stop --include=service,kbfs]
2017/08/17 09:55:34 DEBG Executed /Applications/Keybase.app/Contents/SharedSupport/bin/keybase [ctl stop --include=service,kbfs]
2017/08/17 09:55:34 INFO Stop output: [stderr]: 2017-08-17T09:55:33.370230+01:00 ▶ [INFO keybase install_darwin.go:685] 001 Uninstall mount: /keybase
2017/08/17 09:55:34 INFO Killing (if failed to exit) Keybase.app/Contents/MacOS/
2017/08/17 09:55:34 DEBG Execute: /usr/bin/open [/Applications/Keybase.app]
2017/08/17 09:55:35 DEBG Executed /usr/bin/open [/Applications/Keybase.app]
2017/08/17 09:55:35 DEBG Checking processes: keybase.processPaths{serviceProcPath:"Keybase.app/Contents/SharedSupport/bin/keybase", kbfsProcPath:"Keybase.app/Contents/SharedSupport/bin/kbfs", appPath:"/Applications/Keybase.app", appProcPath:"Keybase.app/Contents/MacOS/"}
2017/08/17 09:55:35 DEBG Find process Keybase.app/Contents/SharedSupport/bin/keybase (109ns < 10s)
2017/08/17 09:55:36 DEBG Find process Keybase.app/Contents/SharedSupport/bin/keybase (1.007232463s < 10s)
2017/08/17 09:55:37 DEBG Find process Keybase.app/Contents/SharedSupport/bin/keybase (2.01410411s < 10s)
2017/08/17 09:55:38 DEBG Find process Keybase.app/Contents/SharedSupport/bin/keybase (3.021476708s < 10s)
2017/08/17 09:55:38 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (238ns < 10s)
2017/08/17 09:55:39 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (1.007702577s < 10s)
2017/08/17 09:55:40 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (2.013391235s < 10s)
2017/08/17 09:55:41 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (3.023122713s < 10s)
2017/08/17 09:55:42 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (4.028406068s < 10s)
2017/08/17 09:55:43 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (5.031933065s < 10s)
2017/08/17 09:55:44 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (6.039134297s < 10s)
2017/08/17 09:55:45 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (7.044702909s < 10s)
2017/08/17 09:55:46 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (8.048572491s < 10s)
2017/08/17 09:55:47 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (9.055668112s < 10s)
2017/08/17 09:55:48 DEBG Find process Keybase.app/Contents/SharedSupport/bin/kbfs (10.061795974s < 10s)
2017/08/17 09:55:48 DEBG Find process Keybase.app/Contents/MacOS/ (16ns < 10s)
2017/08/17 09:55:48 WARN Error trying to start the app: No process found for Keybase.app/Contents/SharedSupport/bin/kbfs
2017/08/17 09:55:48 DEBG Remove temporary directory: "/var/folders/98/--redacted--/T/KeybaseUpdater.--redacted--"
2017/08/17 09:55:48 INFO Reporting: https://api.keybase.io/_/api/1.0/pkg/success.json map[version:[1.0.26-20170724171020+b095a794e] upd_version:[0.2.12] install_id:[--redacted--] request_id:[--redacted--]]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the macOS /Applications/Keybase.app/Contents/SharedSupport/bin/updater check entry point and compare it with keybase install and keybase update. Trace the update application and process-start checks shown in the log; done means the update completes without leaving the app unusable or hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100