-
Notifications
You must be signed in to change notification settings - Fork 80
Does not work on macOS (unless browser is started from terminal) #13
Comments
Can you start Chrome from the command line and see if an error message is printed? |
Sure, thank you for the response! [28164:60163:1211/113143:ERROR:native_process_launcher.cc(137)] Can't find manifest for native messaging host com.dannyvankooten.browserpass |
Sorry, I had forgotten that I removed the binary, I reinstalled and got the following: I then checked the path to the binary and it was not executable, I changed the permissions and things are working as expected for Chrome, thank you and my apologies for not catching something so simple. |
I get the following with Firefox: 1481480385534 [email protected] WARN Loading extension '[email protected]': Reading manifest: Error processing author: An unexpected property was found in the WebExtension manifest. |
Does it work with Firefox? These are just warnings. |
No, I get the same error talking to pass message. The only other message I
get in the console I get when I click in different parts of the window:
2016-12-12 14:10:55.584 firefox[32596:10486428] IMKInputSession
presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : *NO*
NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain
Code=4097 "connection from pid 0" UserInfo={NSDebugDescription=connection
from pid 0}, com.apple.inputmethod.EmojiFunctionRowItem
Its still working fine in Chrome.
…On Dec 12, 2016 11:12, "emersion" ***@***.***> wrote:
Does it work with Firefox? These are just warnings.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABSrYArNq9XmhbS3dhfMCe-5DJ1K8yPCks5rHYCEgaJpZM4LDAru>
.
|
It seems that native messaging errors are not displayed in the terminal by Firefox. Can you check the browser console instead? Source: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging#Troubleshooting |
The path to the binary was incorrect, I re-ran the install script and
restarted Firefox, I do get a message saying that a password has not been
found for the page I'm on. When I attempt to search I get the Error talking
to Pass message with the following in the console:
The character encoding of the HTML document was not declared. The document
will render with garbled text in some browser configurations if the
document contains characters from outside the US-ASCII range. The character
encoding of the page must be declared in the document or in the transfer
protocol. content.html
File closed NativeMessaging.jsm:246
Searching for: Logz script.js:99:3
Error: File closed script.js:103:7
File closed
It appears as if I can't search using Chrome either.
…On Mon, Dec 12, 2016 at 2:20 PM, emersion ***@***.***> wrote:
It seems that native messaging errors are not displayed in the terminal by
Firefox. Can you check the browser console
<https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Debugging#Viewing_log_output>
instead?
Source: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/
Native_messaging#Troubleshooting
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABSrYLWSQajkL9p43s4nPc5kMOlQzEk1ks5rHayAgaJpZM4LDAru>
.
|
fwiw, I am getting the same errors in the debug console as @jceloria. I am using Arch Linux and Firefox 50.0.1. |
@Cadair How did you install browserpass? @jceloria Can you check @dannyvankooten No problem, thanks for your work! |
I installed the binary from the AUR package and the plugin from the firefox plugins "store" |
@Cadair The binary from the AUR doesn't work because the latest release doesn't include a fix (#14). You can install browserpass-git instead. |
I seem to get a slightly different version of not working now.
|
I've updated to v1.0.2 and now I'm receiving a different message: Firefox:
Chrome:
|
Apparently now, its no longer the pass binary but the gpg binary (for which I also installed via homebrew). There also seems to be a problem with the path to the found pass entry:
|
It seems to be that Firefox is running as a different user (or at least running the binary as a different user) which doesn't have the brew linked libraries in its |
Previously, it did work before when starting from the cli, but now its not:
|
For the Mac, it's nothing to do with the user id. There's no easy way to set environment variables for applications launched via the dock or finder. There are a few launchd commands but they're dubious at best (and I haven't been able to get one to reliably work). The easiest solution would be to fallback to checking common locations (e.g. |
Hi guys, I am suffering from this too, on my Mac, but found a small workaround. While not ideal may help others to get it working until a proper solution can be found. For me, it ended up being 2 things. The PATH didn't include /usr/local/bin, and since I run the curses gpg-agent, I had to make sure the GPG_AGENT_INFO and GPG_TTY environment variables were set. To make this happen:
if [ -f "${HOME}/.gpg-agent-info" ] The above script assumes I have a gpg agent running, writing its environment setting to ~/.gpg-agent-info. Also, note, while the above script is run with no tty, setting GPG_TTY="$(tty)" makes GPG_TTY the value "not a tty", and it still seems to satisfy the gpg-agent. Also, of course change the path of browserpass-darwinx64 to where ever you have it. Hope this helps others, or paves the way to a better solution. NOTE: I did this for chrome. Not sure if it helps with firefox, but sounds like the same symptoms. |
FYI, I was having this issue as well, until I installed the native helper version 1.0.4.r0.f34c1c3-1. That solved it. |
@johnimorris It works! Just remember give it chmod u+x to browserpass-wrapper |
@johnimorris No luck for me unfortunately. Same errors as I mentioned in the other issue: #28 (comment) I guess my issue is different then? |
@johnimorris thanks for the workaround! |
@johnimorris @samhh @tverlaan Didn't get workaround working. Could this be related to using GPGTools for gpg? |
@maximbaz Latest one works fine without any changes to the $PATH as long as pinentry-mac is used. |
Thanks! I'll leave the PR open for a day or two, to let more people try before closing this issue and claiming that it has been fixed. Planning to make a new release on Friday, and also finally upload the browser extensions in the Webstores (under a new name, unfortunately, due to #117). |
@braderhart i believe if you have installed GGP Suite from https://gpgtools.org/ then it can use the os keychain for automatic pin-entry you have to turn that off in System Preferences -> GPG Suite. If you have done that then it will use pinentry-mac for every use of browser pass. Everything (except browserpass and pass) installed via the GPG Suite. @maximbaz i will give it a try but i don't know if i can unfix my path now that i have "fixed it". I can try and restore it to something basic. And test your binary. Too bad about the name on the extension store but i guess we can live with MAXBrowserPass 🦄 . Or maybe Browserpass Community Edition 🍻 (browserpass-ce). PS. Kids pfffff 💃 |
The test build from @maximbaz works great with GPGtools. |
I can also confirm that the test build from @maximbaz works with GPGtools! 👍 |
At last, I'm happy to announce - fixed in v2.0.0! 🎉 |
Installed v2.0.0 (and browserpass-ce, and pinentry-mac) |
Still not working for me out of the box... macOS 10.12.6, Vivaldi 1.12.955.36, browserpass-ce 2.0.0, latest binary. It can find my password files, but if I click on one nothing happens, the extension popup just closes. |
Are you using the GPGtools like others mentioned above? |
You can also install pinentry-mac using brew, and then add it to the pinentry-program in the gpg-agent.conf file.
…________________________________
From: Maxim Baz <[email protected]>
Sent: Saturday, September 30, 2017 8:08:48 AM
To: dannyvankooten/browserpass
Cc: Brad Erhart; Mention
Subject: Re: [dannyvankooten/browserpass] Does not work on macOS (unless browser is started from terminal) (#13)
Are you using the GPGtools like others mentioned above?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#13 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ad1pYTsOBvdzNxxx5I7c3dexYJSm_Nmgks5snlmAgaJpZM4LDAru>.
|
@samhh Does it work for Firefox and/or Chrome ? Could be Vivaldi specific issue ? |
I followed @braderhart's instructions which did get a GPG dialog to pop up successfully. Unfortunately after entering my password and hitting enter nothing is happening (dialog gone, not coming back). I've tested this in both Vivaldi and Chrome. |
Could it be a specific website that is affected, i.e. can you repro the bug on github.com/login ? #164 would help a lot in such investigations... 🙂 Could you also check that right clicking on browserpass icon > Inspect popup has an error "Error talking to browserpass" or something like that when you try select a password entry to fill in? |
Aha, okay, it is working. I've not actually been able to use Browserpass before due to the above issues so I didn't know what to expect, the autofill works surprisingly well! 😄 So my issue here is resolved, thank you all! Outside the scope of this ticket, but are there plans to allow you to view the contents of the decrypted password file a la LastPass, rather than only click to autofill? I know there are a handful of websites I frequent where for one reason or another that's necessary, and it'd be annoying to have to pop open a terminal each time. |
#105 will probably make you happy @samhh. However I'll use this opportunity to stress out again, our goal is to mitigate phishing attacks by making autofill algorithm work as perfect as possible. There have been substantial improvements implemented recently thanks to people who share specific examples of websites where autofill is broken, I urge everyone to share more examples if you happen to stumble upon such. |
I'm also getting the "Error: Native host has exited" message from Chrome 55 and came here from #28 which didn't seem as OS specific I'm on NixOS, although for some reason it couldn't locate the Browserpass packaged on channel nixos-17.03 so I installed it first from the Chrome web store and then later with your install script to see if that would fix the native messaging problem (although they're currently both the same version). The problem persists if I launch Chrome from root. The only other thing I can think of is I haven't added usernames in my password file (either with a backslash on the pass-name or as a separate login), but even if that means Browserpass won't decrypt any passwords it shouldn't affect native messaging. Any ideas? |
Since your issue seems different from this one (different OS, running browser from terminal doesn't solve the problem), could you please create a new ticket and fill out the issue template? Please also mention at which stage you see this error, immediately after clicking on browserpass icon it toolbar or after you select a password entry. Generally "Error: Native host has exited" means that the host app was discovered, but it crashed while performing its operation. The structure of your pass files shouldn't be an issue, but try creating one with a fake username just to test this idea. |
I have created a script
|
To get this to work I had to:
Perhaps this should be added to the install instructions? |
browserpass 0.1.2
Firefox: 50.0.2
Chrome: Version 54.0.2840.98 (64-bit)
macOS: 10.12.1-x86_64
I installed the browser extensions from the Chrome webstore and Firefox, downloaded browserpass-darwinx64.zip and ran install.sh, selected both Chrome and Firefox and restarted both browsers. When I attempt to use browserpass I'm just presented with the message "Error talking to Pass"
I am able to run pass from the command line without issue:
Am I missing something?
The text was updated successfully, but these errors were encountered: