Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passwords not retrievable on OS X 10.11.6 / Chrome 62.0.3202.94 #13

Closed
NateEag opened this issue Nov 15, 2017 · 9 comments
Closed

Passwords not retrievable on OS X 10.11.6 / Chrome 62.0.3202.94 #13

NateEag opened this issue Nov 15, 2017 · 9 comments

Comments

@NateEag
Copy link
Contributor

NateEag commented Nov 15, 2017

Clicking the extension's icon lists my stored passwords and I can search them, so much of this is working, but when I click on a password to retrieve it, I see the message "No response from native app."

I tried the diagnostics at #8 and verified that nativePass can indeed decrypt my passwords.

Any clues how I might debug this further?

@hsanson
Copy link
Owner

hsanson commented Nov 21, 2017

I have the same chrome version and works perfectly on my PC. If the chrome extension cannot communicate with the native app it could mean that the extension id or the native app path is not set correctly.

Did you follow the troubleshooting section in the README?

@NateEag
Copy link
Contributor Author

NateEag commented Nov 29, 2017

Hey, sorry for the slow response - been pretty busy.

I have gone through the troubleshooting section in the readme.

The only thing that's not exactly as described is that my native host application manifest is in a different folder, presumably due to being on OS X.

It's in ~/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/com.piaotech.chrome.extension.pass.json.

Copying it to ~/.config/google-chrome/NativeMessagingHosts per the troubleshooting section has no effect.

I'll reiterate that I can get the list of usernames fine - it's just when I click one that it fails.

I could probably figure this out myself if I could find the error messages from the nativePass program. Where should I look for those?

@NateEag
Copy link
Contributor Author

NateEag commented Nov 29, 2017

aha - I just discovered I can look at the "Inspect views" link on the chrome://extensions page.

With that I probably have what I need to figure this out.

@NateEag
Copy link
Contributor Author

NateEag commented Nov 29, 2017

If I start Chrome from the command line, per Google's advice for debugging native messaging, the plugin works.

When I first discovered that, I thought it must have been my .bashrc setting the PATH or similar, but it still worked even when I moved it to ~/.bashrc.bak, started a new terminal, and tried it again.

When I start Chrome through Spotlight, regardless of my .bashrc's location, retrieving passwords still fails.

Judging from this page on logging, I don't see a way to enable logging without running from the command line, so I'm unsure how to see the error messages for whatever's going wrong.

@NateEag
Copy link
Contributor Author

NateEag commented Nov 29, 2017

Chrome started from Terminal.app included /usr/local/bin in its PATH env var, while Chrome started by normal means did not.

I needed it there for Python to find gpg, since I installed gpg via Homebrew.

Customizing environment variables for .app bundles on OS X turns out to be much more fraught with difficulty than I would have guessed.

I finally found this solution that did the job for me, and retrieving passwords is working now.

@NateEag NateEag closed this as completed Nov 29, 2017
@NateEag
Copy link
Contributor Author

NateEag commented Nov 29, 2017

Closed the issue since it's a configuration problem.

It might be worth updating the readme to warn people about this, similar to the Linux "wrong GPG version" issue.

@hsanson
Copy link
Owner

hsanson commented Nov 30, 2017

Thanks for the debugging... I added a small comment to the README regarding this possible issue.

@NateEag
Copy link
Contributor Author

NateEag commented Nov 30, 2017

You're welcome. Thanks for updating the readme.

@NateEag
Copy link
Contributor Author

NateEag commented Dec 11, 2017

A caveat to the solution I applied:

It does not work in Chrome instances that were auto-started by OS X after a reboot.

At least that appears to be the pattern, and I believe I saw someone else mention an analogous issue back when I was researching this.

So far, when I've hit an instance of the "No response from native app" issue again, quitting Chrome and restarting it has made it go away.

Just wanted to mention that for anyone else who runs into this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants