Skip to content

Ubuntu snap packaged Firefox not starting with web-ext run #1696

Open
@GrayedFox

Description

@GrayedFox

Is this a feature request or a bug?

Bug

The error is identical to #1607 however the cause is quite likely due to the app being installed via snap.

What is the current behavior?

Running web-ext run fails due to missing/inaccessible Firefox profile error.

web-ext run -p ~/snap/firefox/common/.mozilla/firefox/lis9gi8g.addons/ -v
[program.js][info] Version: 3.1.1
[program.js][debug] Discovering config files. Set --no-config-discovery to disable
[config.js][debug] Discovered config "/home/grayedfox/.web-ext-config.js" does not exist or is not readable
[config.js][debug] Discovered config "/home/grayedfox/github/multi-dict/web-ext-config.js" does not exist or is not readable
[program.js][info] Applying config file: ./package.json
[config.js][debug] Loading JS config file: "/home/grayedfox/github/multi-dict/package.json" (resolved to "/home/grayedfox/github/multi-dict/package.json")
[config.js][debug] Looking for webExt key inside package.json file
[config.js][debug] Config file /home/grayedfox/github/multi-dict/package.json did not define any options. Did you set module.exports = {...}?
[cmd/run.js][info] Running web extension from /home/grayedfox/github/multi-dict
[util/manifest.js][debug] Validating manifest at /home/grayedfox/github/multi-dict/manifest.json
[extension-runners/firefox-desktop.js][debug] Copying Firefox profile from /home/grayedfox/snap/firefox/common/.mozilla/firefox/lis9gi8g.addons/
[firefox/index.js][debug] Copying profile directory from "/home/grayedfox/snap/firefox/common/.mozilla/firefox/lis9gi8g.addons/"
[firefox/index.js][debug] Running Firefox with profile at /tmp/890adb6d-e660-4dbe-a2d2-d23a5a2237a5
[firefox/index.js][debug] Checking if remote Firefox port 6005 is available
[firefox/remote.js][debug] Connecting to Firefox on port 6005
[firefox/index.js][debug] Executing Firefox binary: /snap/bin/firefox
[firefox/index.js][debug] Firefox args: -start-debugger-server 6005 -foreground -no-remote -profile /tmp/890adb6d-e660-4dbe-a2d2-d23a5a2237a5
[firefox/index.js][info] Use --verbose or open Tools > Web Developer > Browser Console to see logging
[firefox/remote.js][debug] Connecting to the remote Firefox debugger
[firefox/remote.js][debug] Connecting to Firefox on port 6005
[firefox/index.js][debug] Firefox stderr: /snap/firefox/253/bin/desktop-launch: line 174: /home/grayedfox/snap/firefox/common/.config/user-dirs.dirs: No such file or directory
[firefox/index.js][debug] Firefox stderr: cp: cannot create regular file '/home/grayedfox/snap/firefox/common/.config/': Not a directory
[firefox/index.js][debug] Firefox stderr: /snap/firefox/253/bin/desktop-launch: line 177: /home/grayedfox/snap/firefox/common/.config/user-dirs.dirs.md5sum: No such file or directory
[firefox/index.js][debug] Firefox stderr: /snap/firefox/253/bin/desktop-launch: line 177: /home/grayedfox/snap/firefox/common/.config/user-dirs.locale.md5sum: No such file or directory
[firefox/index.js][debug] Firefox stderr: Gtk-Message: Failed to load module "canberra-gtk-module"
...
[firefox/remote.js][debug] Retrying Firefox (250); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[firefox/remote.js][debug] Connect to Firefox debugger: too many retries
[program.js][error] 
Error: connect ECONNREFUSED 127.0.0.1:6005
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)

[program.js][error] Error code: ECONNREFUSED

[program.js][debug] Command executed: run

What is the expected or desired behavior?

Firefox should open with copy of desired or default profile.

Version information (for bug reports)

  • Firefox version:
  • 68.0.2 (64-bit)
  • Mozilla Firefox Snap for Ubuntu
  • canonical-002 - 1.0
node --version && npm --version && web-ext --version
v10.16.3
6.11.2
3.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions