Forum Discussion

Former Member's avatar
Former Member
3 years ago

Firefox extension does not connect to Linux app

Dear support community,

I'm running into a weird issue and can't seem to resolve it.

I've got two machines with preferably the same configuration, but one is freshly installed, so it's not exactly the same (yet).
For one, the connection between the Linux app and the Firefox extension works fine, for the other it doesn't. I use the same firefox versions, the same 1Password versions, and the same Linux/Debian versions.
Do you have any pointers on what the issue might be? Cheers! Below you can find the different output for the two machines:

Good

INFO 2022-11-22T22:49:58.612 main(ThreadId(1)) [1P:native-messaging/op-browser-support/src/main.rs:163] Starting 1Password-BrowserSupport 8.9.10-9.BETA production build no. 80910009.
INFO 2022-11-22T22:49:58.616 main(ThreadId(1)) [1P:native-messaging/op-browser-support/src/browser_verification/linux.rs:40] Verifying browser "/usr/lib/firefox-trunk/firefox-trunk"
INFO 2022-11-22T22:49:58.616 main(ThreadId(1)) [1P:native-messaging/op-browser-support/src/browser_verification/linux.rs:54] Browser "/usr/lib/firefox-trunk/firefox-trunk" verified successfully
INFO 2022-11-22T22:49:58.616 main(ThreadId(1)) [1P:native-messaging/op-browser-support-lib/src/communication_logic.rs:122] Starting SLS communication (attempting connection to desktop app)
INFO 2022-11-22T22:49:58.616 main(ThreadId(1)) [1P:native-messaging/op-browser-support-lib/src/communication_logic.rs:187] Connected to the desktop app

Bad

INFO 2022-11-22T23:43:14.208 main(ThreadId(1)) [1P:native-messaging/op-browser-support/src/main.rs:163] Starting 1Password-BrowserSupport 8.9.10-9.BETA production build no. 80910009.
INFO 2022-11-22T23:43:14.212 main(ThreadId(1)) [1P:native-messaging/op-browser-support/src/browser_verification/linux.rs:40] Verifying browser "/usr/lib/firefox-trunk/firefox-trunk"
ERROR 2022-11-22T23:43:14.218 main(ThreadId(1)) [1P:native-messaging/op-browser-support/src/main.rs:195] Browser support error: UnknownBrowser(/usr/lib/firefox-trunk/firefox-trunk), happene>
Additional error context: /usr/lib/firefox-trunk/firefox-trunk isn't a supported browser

P.S. I'm hoping the Snap integration will work one day, I can imagine it would be more convenient.

11 Replies

  • AliH1P's avatar
    AliH1P
    Icon for 1Password Team rank1Password Team

    Thanks for providing that information @tobiasvd 😄

    @smoxy let me know how things go! If you continue to run into issues you can email us at support+linux@1Password.com and we can investigate things further.

    Ali

  • Former Member's avatar
    Former Member

    @smoxy Of course!

    FYI, I did not install Firefox via Snap. Importantly, I installed Firefox daily from a Ubuntu ppa, which has a binary name of firefox-trunk. Your binary name might be different, so this needs to be changed in the following.

    I was sent the following by mail by a support employee:

    1. Ensure that browser integration is enabled from Settings → Browser.
    2. Close 1Password completely.
    3. Open a terminal, and run sudo mkdir /etc/1password (if you've done this already, you can skip it).
    4. Run cd /etc/1password.
    5. Run sudo gedit custom_allowed_browsers.
    6. Paste in the appropriate browser code - in this case firefox-trunk. (ie the binary name)
    7. Save the file.
    8. In the terminal, run sudo chown root:root /etc/1password/custom_allowed_browsers && sudo chmod 755 /etc/1password/custom_allowed_browsers
    9. Run 1Password - it will read the new config file and make the appropriate connections.
    10. Launch your browser!

    Doing this resolved the issue for me!

    Cheers,
    Tobias

    • marty317's avatar
      marty317
      New Contributor

      I realize this is an old thread, but I am enountering the same issue on a Lenovo X1 laptop with Ubuntu 24 LTS. I use default firefox (snap), but I also tried chromium (snap). I followed your instructions to the letter; I looked for processes using 
      ps -e | grep pass
      and killed all processes as appropriate
      My /etc/1password/custom_allowed_browser
      contains the lines:
      firefox-trunk
      chromium
      chrome
      but none of the browser-plugins connects to the main 1Password app when it is running. I can log on to the 1Password app with fingerprint after starting it with the 1Password password, but both browser plugins report a communication problem in their respective settings pages.

      Any help will be appreciated!

      • marty317's avatar
        marty317
        New Contributor

        I searched the internet some more and found the solution. My starting point: I was able to integrate the 1Password standalone app with system authentication/fingerprint reader, but the 1Password plugin in the firefow browser reported a "Communication Errror" with the standalone app. The problem is that Ubuntu installs Firefow via snap. You need to install Firefox as standalone from the Mozilla repositories with apt, not snap. There are some detailed instructions under https://askubuntu.com/questions/1516223/how-to-install-firefox-from-official-mozilla-repository-on-ubuntu-24-04 . The process took about 10 min, but then everything worked.

  • AliH1P's avatar
    AliH1P
    Icon for 1Password Team rank1Password Team

    Hey @smoxy, if you're encountering a similar issue we'll be happy to investigate things further for you. Do you currently have Firefox installed via Snap on your device?

    Ali

  • Former Member's avatar
    Former Member

    Hi @tobiasvd, could you explain how you have fixed it?

  • AliH1P's avatar
    AliH1P
    Icon for 1Password Team rank1Password Team

    I'm glad to hear the issue has been resolved @tobiasvd!

    Don't hesitate to reach out if you ever have any questions 😄

    Ali

  • Former Member's avatar
    Former Member

    Hey AliH1P , we managed to resolve the issue! I had tried setting the custom_allowed_browsers file in /opt/1Password/resources/ , however, that seems to be not used. When I inserted 'firefox-trunk' in /etc/1password/new custom_allowerd_browsers , as per FrankyO1P 's instructions, it resolved my issue.

    Thanks for the quick response, everything works like a breeze again :)

  • AliH1P's avatar
    AliH1P
    Icon for 1Password Team rank1Password Team

    Hey @tobiasvd, thanks for letting us know. It looks like FrankyO1P has been working with you via email and has sent out a potential solution. We'll look forward to hearing how things go!

    ref: QEQ-57117-868

  • Former Member's avatar
    Former Member

    Hi FrankyO1P,

    Thank you for your quick response, I have sent an email as requested and hope we can resolve the issue.

    Cheers,

    Tobias

  • FrankyO1P's avatar
    FrankyO1P
    Icon for 1Password Team rank1Password Team

    Hi @tobiasvd,

    Thanks for bringing this to our attention. There are other users reporting a similar issue and I would love to investigate into this issue further.

    Could you send an email to support+linux@1Password.com?

    With your email please include:

    We'll look forward to hearing from you.