1Password X beta can't establish a connection in Firefox

This discussion was created from comments split from: 1 Password X beta for Firefox [Now available! πŸŽ‰].

Comments

  • Tagging along to register interest and get updates! Currently the X beta installs but says it can't establish a connection to the desktop app, even though it's there, working and unlocked... (is there some place to report bugs or whatever?)

  • hmijailhmijail ✭
    edited December 2019

    FWIW, I installed the beta app, and 1PasswordX still says "unable to establish connection".

    1Password 7 Version 7.4.2.BETA-0 (70402000)
    1Password X 1.17.6
    Firefox 71.0 (64-bit)
    macOS 10.14.6 (18G1012)

  • ag_anaag_ana

    Team Member

    Hi @hmijail! Welcome to the forum!

    Would you be able to send us the console logs so we can take a look at what is happening here? You can find instructions to do that here.

  • bknifflerbkniffler ✭
    edited January 5

    Smae problem (1passwordX 1.18.1, 1password 7.4.2-beta-1, Mac 10.15.2, Firefox 71), here is the log:

    Could not map contract ID '@mozilla.org/sharepicker;1' to CID {1201d357-8417-4926-a694-e6408fbedcf8} because no implementation of the CID is registered.
    Content Security Policy: UngΓΌltiger Host 'wasm-eval' kann nicht verarbeitet werden
    Content Security Policy: 'x-frame-options' wird wegen 'frame-ancestors'-Direktive ignoriert.
    uncaught exception: Object
    TypeError: Argument 1 of PrecompiledScript.executeInGlobal is not an object. ExtensionContent.jsm:567:25
    Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. background.js:27
    Unchecked lastError value: Error: Frame not found, or missing host permission background.js:27
    Unchecked lastError value: Error: Frame not found, or missing host permission background.js:27
    NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAutoCompleteController.getStyleAt] LoginManagerContent.jsm:179
    Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. 110 background.js:27
    Unchecked lastError value: Error: Called raw() on unloaded/inactive context background.js:27
    Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. background.js:27
    port.sender.tab is undefined index.js:1963
    Promise resolved after context unloaded
    hotkeys.js:116
    Initializing 1Password X... background.js:27:633100
    Initializing Desktop App Integration. Attempting to connect to native app. πŸ’Œ background.js:27:611736
    Connecting to native app 2bua8c4s2c.com.agilebits.1password background.js:27:575656
    Preparing hello payload for device rpejnd32jfzuqxz7r7hmxecbhe: background.js:27:577867
    (accountUUID, userUUID, server) => (6MLVLSQGWZEI5AWGXAVIJQKBVQ, WTCGUZEJ3BFDDDROJTTUCQ5Q5Y, 1password.com) background.js:27:577952
    (accountUUID, userUUID, server) => (CKIL6B2BFZA2FHCH2ZT7XFA5MU, PYTDOA3WYFC7ZFWNO2VFILEFMM, 1password.com) background.js:27:577952
    Finished initializing beta 1Password X 1.18.1 in firefox (20096) background.js:27:633602
    Native app port disconnected. Error: None background.js:27:579302
    Signing payload for account 6MLVLSQGWZEI5AWGXAVIJQKBVQ with kid ns2m2peisaryfu6xk7zl7bz6da background.js:27:590492
    Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. background.js:27
    crypto tests: 378ms - Timer beendet background.js:27:531452
    Signing payload for account CKIL6B2BFZA2FHCH2ZT7XFA5MU with kid atngmqixtnbmmysxzjlgh2ey6a background.js:27:590492
    🌈 Sending message to native app background.js:27:586836
    πŸ’₯ Failed to send because our port was disconnected. Browser code signature became invalid? background.js:27:588675
    Attempt #1 to reconnect to the native app background.js:27:579821
    Connecting to native app 2bua8c4s2c.com.agilebits.1password background.js:27:575656
    Preparing hello payload for device rpejnd32jfzuqxz7r7hmxecbhe: background.js:27:577867
    (accountUUID, userUUID, server) => (6MLVLSQGWZEI5AWGXAVIJQKBVQ, WTCGUZEJ3BFDDDROJTTUCQ5Q5Y, 1password.com) background.js:27:577952
    (accountUUID, userUUID, server) => (CKIL6B2BFZA2FHCH2ZT7XFA5MU, PYTDOA3WYFC7ZFWNO2VFILEFMM, 1password.com) background.js:27:577952
    Native app port disconnected. Error: None background.js:27:579302
    Signing payload for account 6MLVLSQGWZEI5AWGXAVIJQKBVQ with kid ns2m2peisaryfu6xk7zl7bz6da background.js:27:590492
    Signing payload for account CKIL6B2BFZA2FHCH2ZT7XFA5MU with kid atngmqixtnbmmysxzjlgh2ey6a background.js:27:590492
    🌈 Sending message to native app background.js:27:586836
    πŸ’₯ Failed to send because our port was disconnected. Browser code signature became invalid? background.js:27:588675
    Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. background.js:27
    Attempt #2 to reconnect to the native app background.js:27:579821
    Connecting to native app 2bua8c4s2c.com.agilebits.1password background.js:27:575656
    Preparing hello payload for device rpejnd32jfzuqxz7r7hmxecbhe: background.js:27:577867
    (accountUUID, userUUID, server) => (6MLVLSQGWZEI5AWGXAVIJQKBVQ, WTCGUZEJ3BFDDDROJTTUCQ5Q5Y, 1password.com) background.js:27:577952
    (accountUUID, userUUID, server) => (CKIL6B2BFZA2FHCH2ZT7XFA5MU, PYTDOA3WYFC7ZFWNO2VFILEFMM, 1password.com) background.js:27:577952
    Native app port disconnected. Error: None background.js:27:579302
    Signing payload for account 6MLVLSQGWZEI5AWGXAVIJQKBVQ with kid ns2m2peisaryfu6xk7zl7bz6da background.js:27:590492
    Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. background.js:27
    Signing payload for account CKIL6B2BFZA2FHCH2ZT7XFA5MU with kid atngmqixtnbmmysxzjlgh2ey6a background.js:27:590492
    🌈 Sending message to native app background.js:27:586836
    πŸ’₯ Failed to send because our port was disconnected. Browser code signature became invalid? background.js:27:588675
    Attempt #3 to reconnect to the native app background.js:27:579821
    Connecting to native app 2bua8c4s2c.com.agilebits.1password background.js:27:575656
    Preparing hello payload for device rpejnd32jfzuqxz7r7hmxecbhe: background.js:27:577867
    (accountUUID, userUUID, server) => (6MLVLSQGWZEI5AWGXAVIJQKBVQ, WTCGUZEJ3BFDDDROJTTUCQ5Q5Y, 1password.com) background.js:27:577952
    (accountUUID, userUUID, server) => (CKIL6B2BFZA2FHCH2ZT7XFA5MU, PYTDOA3WYFC7ZFWNO2VFILEFMM, 1password.com) background.js:27:577952
    Native app port disconnected. Error: None background.js:27:579302
    Signing payload for account 6MLVLSQGWZEI5AWGXAVIJQKBVQ with kid ns2m2peisaryfu6xk7zl7bz6da background.js:27:590492
    Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. background.js:27
    Signing payload for account CKIL6B2BFZA2FHCH2ZT7XFA5MU with kid atngmqixtnbmmysxzjlgh2ey6a background.js:27:590492
    🌈 Sending message to native app background.js:27:586836
    πŸ’₯ Failed to send because our port was disconnected. Browser code signature became invalid? background.js:27:588675
    Timer "PBES2g-HS256(100000)" bereits vorhanden. background.js:27:201023
    PBES2g-HS256(100000): 142ms - Timer beendet background.js:27:201707
    Timer "PBES2g-HS256(100000)" existiert nicht. background.js:27:201707
    [LM] Started (minutes=10, lock on sleep=true). background.js:27:571210
    Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. 113 background.js:27
    cO moz-extension://e5235fcd-5559-0245-953a-d00bcdf99b9a/background/background.js:27
    Unchecked lastError value: Error: Called raw() on unloaded/inactive context background.js:27
    PBES2g-HS256(100000): 138ms - Timer beendet 2 background.js:27:201707
    Signed in successfully to CKIL6B2BFZA2FHCH2ZT7XFA5MU and loaded account details. Elapse time 1967ms. background.js:27:546535
    Signed in successfully to 6MLVLSQGWZEI5AWGXAVIJQKBVQ and loaded account details. Elapse time 2137ms. background.js:27:546535
    Ensuring device keys are available for 2 accounts now that we are unlocked. background.js:27:597806
    port.sender.tab is undefined index.js:1963
    Promise resolved while context is inactive
    hotkeys.js:116
    init moz-extension://c63ea1a2-e37e-4244-9eee-d1169683a982/web/hotkeys.js:116
    Use of nsIFile in content process is deprecated. NetUtil.jsm:253:8
    Promise resolved after context unloaded
    hotkeys.js:116
    port.sender.tab is undefined index.js:1963
    Promise resolved after context unloaded
    hotkeys.js:116

  • dtearedteare Agile Founder

    Team Member

    Thank you for the logs, @bkniffler. They were very helpful.

    I see Firefox is closing our port when we try to connect to 1Password for Mac. The only error we're told by Firefox is this:

    Could not establish connection. Receiving end does not exist.

    This can happen for a few reasons but it all boils down to Firefox being unable to find 1Password for Mac. The way Firefox locates the 1Password for Mac binary is by looking in this file:

    ~/Library/Application\ Support/Mozilla/NativeMessagingHosts/2bua8c4s2c.com.agilebits.1password.json

    Could you look in that folder and see if our json file is there? And if it is, could you share the contents of the file with us here please? There's no sensitive data within it so you're safe to share the entire thing. If the file is not there, please check your folder permissions.

    I'm looking forward to seeing what you find.

    ++dave;

This discussion has been closed.