multi-account-containers: VPN not detected on linux

Actual behavior

On linux (arch), the web extension does not find the running mozillavpn, even though it is on and all browser traffic goes through it. There are no visible errors.

The extension displays the classic UI when the VPN is not present.

All permissions are given to the extension.

Expected behavior

It should find the (mozilla) VPN, as it is running, and allow normal usage of the multi-account-container VPN features

Steps to reproduce

  1. install linux (arch)
  2. install firefox-developer-edition (pacman), and mozillavpn (aur/yay)
  3. install web extension multi-account-container
  4. restart computer, activate vpn
  5. browse a site and use the web extension -> the VPN seems not to be installed

Notes

I am not so sure on how to debug more, let me know if I can provide additional output or test steps.

Also, I realize opening a new “private window”, also shows the “get the VPN banner”; so it might be more generally an issue with Firefox not detecting mozillavpn?

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 7
  • Comments: 16

Most upvoted comments

I came across this same issue.

As a test of firefox’s native messaging detection, I tried to call connectNative("mozillavpn") directly from the addon’s debug console, but got the “No such native application” error.

This made me suspect that the manifest search paths were wrong.

The from-source install of https://github.com/mozilla-mobile/mozilla-vpn-client/ added /usr/lib64/mozilla/native-messaging-hosts/mozillavpn.json, and since on my system, /usr/lib is not a symlink to /usr/lib64, I suspected that firefox is only checking /usr/lib64/mozilla/native-messaging-hosts/

Anyway, after running sudo ln -s /usr/lib64/mozilla /usr/lib/mozilla and restarting the browser, everything seems to be working now.

Possible bug in how firefox searches the manifest locations?

Hello, for me this issues still exists.

❯ mozillavpn --version
mozillavpn 2.12.0
❯ firefox --version
Mozilla Firefox 109.0

I am running arch and both files also exist on my system. /usr/lib/mozilla/native-messaging-hosts/mozillavpn.json /usr/lib/mozillavpn/mozillavpnnp

Also /usr/lib64 is a symlink to /usr/lib on my system.

Has a solution been found?

Update:

I fixed my issues by

  1. disabling cloud-sync of addons in firefox
  2. reinstalling the addon

You have to click throught the setup, until the “hey, do you want to try out mozillavpn with your container addon” page comes up. Click yes. The plugin will then ask for more permissions. Grant it and it should work.

I think I had an older version of the plugin or the config was old, since only reinstalling it without disabling the syncing of addons didn’t change anything.

@user-09876 does it also work for you on the latest Firefox version?

Hi @bakulf I can confirm the bug:

 $ mozillavpn --version
mozillavpn 2.8.0
 $ firefox --version
Mozilla Firefox 100.0.1

The contain of the mozillavpn package is:

mozillavpn /etc/
mozillavpn /etc/chromium/
mozillavpn /etc/chromium/native-messaging-hosts/
mozillavpn /etc/chromium/native-messaging-hosts/mozillavpn.json
mozillavpn /etc/opt/
mozillavpn /etc/opt/chrome/
mozillavpn /etc/opt/chrome/native-messaging-hosts/
mozillavpn /etc/opt/chrome/native-messaging-hosts/mozillavpn.json
mozillavpn /etc/xdg/
mozillavpn /etc/xdg/autostart/
mozillavpn /etc/xdg/autostart/MozillaVPN-startup.desktop
mozillavpn /usr/
mozillavpn /usr/bin/
mozillavpn /usr/bin/mozillavpn
mozillavpn /usr/lib/
mozillavpn /usr/lib/mozilla/
mozillavpn /usr/lib/mozilla/native-messaging-hosts/
mozillavpn /usr/lib/mozilla/native-messaging-hosts/mozillavpn.json
mozillavpn /usr/lib/mozillavpn/
mozillavpn /usr/lib/mozillavpn/mozillavpnnp
mozillavpn /usr/lib/systemd/
mozillavpn /usr/lib/systemd/system/
mozillavpn /usr/lib/systemd/system/mozillavpn.service
mozillavpn /usr/share/
mozillavpn /usr/share/applications/
mozillavpn /usr/share/applications/MozillaVPN.desktop
mozillavpn /usr/share/dbus-1/
mozillavpn /usr/share/dbus-1/system-services/
mozillavpn /usr/share/dbus-1/system-services/org.mozilla.vpn.dbus.service
mozillavpn /usr/share/dbus-1/system.d/
mozillavpn /usr/share/dbus-1/system.d/org.mozilla.vpn.conf
mozillavpn /usr/share/icons/
mozillavpn /usr/share/icons/hicolor/
mozillavpn /usr/share/icons/hicolor/128x128/
mozillavpn /usr/share/icons/hicolor/128x128/apps/
mozillavpn /usr/share/icons/hicolor/128x128/apps/mozillavpn.png
mozillavpn /usr/share/icons/hicolor/16x16/
mozillavpn /usr/share/icons/hicolor/16x16/apps/
mozillavpn /usr/share/icons/hicolor/16x16/apps/mozillavpn.png
mozillavpn /usr/share/icons/hicolor/32x32/
mozillavpn /usr/share/icons/hicolor/32x32/apps/
mozillavpn /usr/share/icons/hicolor/32x32/apps/mozillavpn.png
mozillavpn /usr/share/icons/hicolor/48x48/
mozillavpn /usr/share/icons/hicolor/48x48/apps/
mozillavpn /usr/share/icons/hicolor/48x48/apps/mozillavpn.png
mozillavpn /usr/share/icons/hicolor/64x64/
mozillavpn /usr/share/icons/hicolor/64x64/apps/
mozillavpn /usr/share/icons/hicolor/64x64/apps/mozillavpn.png
mozillavpn /usr/share/polkit-1/
mozillavpn /usr/share/polkit-1/actions/
mozillavpn /usr/share/polkit-1/actions/org.mozilla.vpn.policy

something is missing? I’m the maintainer of the package MozillaVpn in AUR repo.

Thanks for your help.

Hi there, I do have the same issue. None of the files mentioned exist on my system either. I am also using the package from the AUR.

A few questions:

  • which version of the VPN do you use?
  • Is it installed from the official ubuntu PPA repo?
  • can you please check if you have /usr/lib/mozilla/native-messaging-hosts/mozillavpn.json and /usr/lib/mozillavpn/mozillavpnnp ?

Thanks!